Skip to content

Commit

Permalink
Change masterthesis to mastersthesis
Browse files Browse the repository at this point in the history
The question which one is "correct" is apparently not completely trivial
to decide. Apparently Mendeley uses the former (at least this is implied
on <https://tex.stackexchange.com/q/415204>, but that reference also points
out this is wrong)

The wrong name is also given at <https://www.bibtex.com/e/entry-types/>
but note that the example they give here uses the right form, as do the
templates at <https://www.bibtex.com/t/template-mastersthesis/> (I've
reported this to the company running that website)

Also the biblatex manual lists only `mastersthesis`.

But ultimately, the source of truth should be bibtex itself; so see e.g.
<http://tug.org/svn/texlive/trunk/Build/extra/bibtex/alpha.bst?view=markup#l736>
  • Loading branch information
fingolfin authored and Azzaare committed Jun 23, 2021
1 parent 0798ed9 commit 9c4cd69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bibtex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Required = Union{String,Tuple{String,String}}
"incollection" => ["author", "booktitle", "publisher", "title", "year"]
"inproceedings" => ["author", "booktitle", "title", "year"]
"manual" => ["title"]
"masterthesis" => ["author", "school", "title", "year"]
"mastersthesis" => ["author", "school", "title", "year"]
"misc" => []
"phdthesis" => ["author", "school", "title", "year"]
"proceedings" => ["title", "year"]
Expand All @@ -28,7 +28,7 @@ const rules = Dict{String,Vector{Required}}([
"incollection" => ["author", "booktitle", "publisher", "title", "year"]
"inproceedings" => ["author", "booktitle", "title", "year"]
"manual" => ["title"]
"mastersthesis" => ["author", "school", "title", "year"]
"mastersthesis" => ["author", "school", "title", "year"]
"misc" => []
"phdthesis" => ["author", "school", "title", "year"]
"proceedings" => ["title", "year"]
Expand Down
4 changes: 2 additions & 2 deletions src/constant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Fields = Dict{String,String}
:incollection,
:inproceedings,
:manual,
:masterthesis,
:mastersthesis,
:misc,
:phdthesis,
:proceedings,
Expand All @@ -29,7 +29,7 @@ const entries = [
:incollection,
:inproceedings,
:manual,
:masterthesis,
:mastersthesis,
:misc,
:phdthesis,
:proceedings,
Expand Down

0 comments on commit 9c4cd69

Please sign in to comment.