Thesis type not being exported to .bib file
I have a Thesis entry in Zotero (5.0.97-beta.65+15ae72d14). I noticed that the value for the Type field is sometimes not exported to the .bib file. If I enter "PhD dissertation" or "PhD thesis" for the Type in Zotero, the resulting @phdthesis entry in the .bib file does not have a type field. However, if I enter "PhD report" for the Type in Zotero, then the entry in the .bib files has a type field with the correct value. Is this a known issue?
I believe I am using Better BibTex 6.1.10. Sorry if this is not the right forum for this issue.
I believe I am using Better BibTex 6.1.10. Sorry if this is not the right forum for this issue.
EDIT: Looks like "MA" or "Masters" gets mapped to @masterthesis.
https://forums.zotero.org/discussion/comment/366329/#Comment_366329
BibTeX uses a different data structure convention. In BibTeX, doctoral and masters theses are two separate item types (@phdthesis and @mastersthesis). They are not distinguished by a type field the way they are in CSL. If you are writing a paper in LaTeX, what BetterBibTeX is producing by omitting the Type field after classifying as phdthesis or @mastersthesis is correct. The BibTeX citation style you use should add the relevant labels, etc as needed.
Note that if you are writing with Markdown, you should be exporting to Better CSL JSON or Better CSL YAML, not BibTeX.
Type
field, remove any character that is not in the range a-z, removethesis
if it appears at the end, and then map the remainder according to this list:phd: phdthesis,
dissertation: phdthesis,
phddissertation: phdthesis,
doctoraldissertation: phdthesis,
ma: mastersthesis,
master: mastersthesis,
masters: mastersthesis,
ba: bathesis,
bachelor: bathesis,
bachelors: bathesis,
cand: candthesis,
candidate: candthesis,
candidates: candthesis
However, none of the rest of them work, bathesis, mathesis and candthesis.
I would suggest that Zotero map the thesis "type" field to the 4 bibtex types: bathesis, mathesis, candthesis and phdthesis, perhaps even by introducing a drop-down menu.
Bibtex has other thesis types, such as technical report, etc. that should also work.
zotero 6.0.15
Better BibTeX for Zotero 6.7.24
When exporting the references to the .bib file using "BibLaTeX" or "Better BibLaTeX", the "type" field of theses is being overwritten as follows:
"PhD thesis" -> "phdthesis"
"Master's thesis" -> "mathesis"
"Bachelor's thesis" -> "bathesis"
If you disagree, though, you have access to the Zotero item in BBT post-processing hooks, so you can change this for your export.
Note: my previous issue was that my .bib file output contained "type={{phdthesis}}" instead of "type={phdthesis}" (due to a post-processing script I was using) which was not rendering "PhD thesis" as expected in the list of References.