Open amy-mei opened 8 years ago
Could you please check the following:
authoryear
from the document class options and using custombib
instead?\RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biblatex}
with the appropriate style.fisher1986cambridge
the possible cause is that the biber and biblatex are incompatible versions. Have a look at the compatibility matrix and see if you have the right versions installed. http://anorien.csc.warwick.ac.uk/mirrors/CTAN/biblio/biber/documentation/biber.pdfThank you for your respond. I have the following things in: Preamble **_Bibliography_***: \ifuseCustomBib \RequirePackage[backend=biber, style=verbose-trad1, citestyle=verbose-trad1, sorting=nty, natbib=true]{biblatex} citestyle=numeric, sorting=nty, natbib=true]{biblatex} \bibliography{References/references} \fi \renewcommand{\bibname}{References}
and as the last one at the very end of preamble: \usepackage[style=verbose-trad1,backend=biber]{biblatex}
thesix.tex: \documentclass[oneside,a4paper,12pt,times,numbered,print,index,custombib] and in ****Bibliography****: \begin{spacing}{0.9} \cleardoublepage \printbibliography[heading=bibintoc, title={References}] \end{spacing} The problem is that it doesn't recognize any of the bibliography styles I write here and I tried \bibliographystyle{apalike}, \bibliographystyle{plain}, and \bibliographystyle{ieeetr}, so I decided not to have a style declared in there.
End result among other the following error: "Package biblatex Error: Incompatible package 'natbib'. \begin{document}" which means I still have some leftovers from natbib, but I honestly have no idea where.
It seems like you are defining biblatex
package twice in your preamble.tex
. Please remove the usepackage biblatex you have added at the end of the preamble and try again.
Have you checked if the biber and biblatex are compatible?
After removing usepackage I got the following error: Undefined control sequence. \printbibliography. I haven't checked if biblatex and biber are compatible, as I honestly have no idea how. I tried to look for it in my log files, but there isn't any info on biblatex nor biber.
Please remove numbered from \documentclass
\documentclass[oneside,a4paper,12pt,times,print,index,custombib]
I changed and got the following errors: biblatex2.sty -- File ended while scanning use of \@argdef. ...latex.def}{generic definitions}{}{}{}{} numericx.cbx -- Package biblatex Error: Autocite command 'inline' undefined. ...ographyOptions{labelnumber,autocite=inline} thesis.tex -- Package biblatex Error: No default polyglossia language defined. \begin{document} thesis.tex -- Undefined control sequence. \begin{document} thesis.tex -- Package biblatex Error: File 'thesis.bbl' not created by biblatex. \begin{document}
I think biblatex got corrupted. I tried to generate other templates as they were with no changes and still got the first 2 errors with biblatex2.sty and numeric.cbx.
I have biber 2.2 and biblatex 3.2, so they are not compatible. I downloaded biber 3.2 and switched biber.exe file for the proper one. The fun continues, as I still get different errors and now it seems to me that "numbered" has to stay for some reason and "\printbibliography[heading=bibintoc, title={References}]" has to be changed somehow as it gets the same "undefined control sequence" error all the time.
As long as you have custombib
then numbered
isn't required.
I began with your fresh template and pasted only 2 paragraphs with Chinese, Persian, and chemical substances to check if citation works with my packages and now ALL citations are like this [?]. My packages are:
\usepackage{chemfig} \usepackage{fontspec} \usepackage{xeCJK} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{farsi} \newfontfamily\farsifont[Script=Arabic]{XB Zar} \setotherlanguage{chinese} \newfontfamily\stsong{STSong} \newcommand\chinese{\stsong}
I know polyglossia, xeCJK, and Persian is a bomb in one document, but it worked fine up till the moment I decided it's high time to have bibliography showing up. The only problem with this fresh template with everything default (including sample text) except for the above packages and 2 paragraphs of my Chinese/Persian/chemistry is now with corrupt \cite showing [?]. Seems like even if I want the default bibliography and citation they don't work with my packages. I think I should prepare for CTRL+C and CTRL+V version of bibliography, if I want to keep all my tweaks.
Does the bibliography work without: polyglossia, xeCJK, and Persian
I took the other of your templates (phd-thesis-template-master) and ONLY did all there is to do to use custombib:
RESULT:
Either something is wrong with my biblatex (I honestly have no idea what now that I have the correct version of biber.exe) or this template doesn't wanna work with it.
Other things I want to try today:
I tried to run a different template with biblatex already (this one: https://bitbucket.org/_laursen/laursens-xelatex-thesis-template/src) and got the same error in biblatex2.sty in this line (11142): \blx@inputonce{biblatex.def}{generic definitions}{}{}{}{} Priorities for now: google ---> how do I reinstall biblatex on windows; do whatever they say in results; if it doesn't work, give it a break and enter my bibliography manually.
Uninstalled miktex and texstudio, installed again, run your master-phd template with all default - worked. CHANGED ALL THE THINGS there are to use custombib, no other tweaking done and the result is this error in thesis.tex: Package biblatex Error: File 'thesis.bbl' not created by biblatex. \begin{document}. Maybe I need to uncomment/comment something else to make it work. I don't know any more.
Good news is that renaming "thesis.bbl" file and allowing it to be created again did help and I was able to use verbose on your template (yes! yes! yes!). Bad news: it all does not work with my fancy language packs (booo!) and gives error about polyglossia not having default language set in thesis.tex (probably some other files need renaming). All in all, I switched to "Princeton University Thesis" template and all I wanted works fine (polyglossia, Chinese, Persian, and verbose). I'm really curious why polyglossia doesn't want to work with Krishna's template and biblatex. Anyone reading this let me know, when you find out. I give up for the time being.
Hi @amy-mei I was wondering if you could share sample files with me, so I can see what's wrong. Thanks! Hopefully, I'll be able to fix it
Hi @kks32 Thanks a lot for your help like always. I just have a question about the references. I have my list of references in a references.bib file in the References folder. I don't get any error or anything but the references are not shown. Is there anything else required?
@aj16 could please read the not so short latex manual? It explains at least 4 out of 5 questions you ask. And don't hijack another issue. I am sorry is this sounds harsh. @kks32 my comment can be deleted.
@tabias Thanks for your comment. Please can you send me the link to latex manual? The issue is when I write a paper, my references are shown but with the template I don't get them. Not that there is something wrong with the template, but I guess I may have to make some changes or I am missing something that it does not show. Thanks.
Another free ebook: http://www.dickimaw-books.com/latex/novices/index.html
@AJ16 Unfortunately i agree. This is as well a question that cannot be answered with the amount of information given. The template provides different ways of including a bibliography. No matter which one you choose, it still isn't related to the template.
http://tex.stackexchange.com/questions/63852/question-mark-instead-of-citation-number
@kks32 Have you seen http://ctan.org/pkg/unamth-template? Why are people so ... ARGH!
@johannesbottcher Thanks for the links. I went through them and I guess I am following the steps required to get the list of references. Yet, I don't get them. I try to work more to see what the issue is. Thanks.
Double click to run compile-thesis-windows.bat
. That will run the LaTeX tool chain (PDFLaTeX and BibTex). If this produces a list of references, it means you weren't running bibtex
.
Thanks a lot @kks32. I forgot to update that I managed to resolve the issue. Thank you.
Nice to know that this thread helped to address and solve other issues with references. However, I'm still waiting for a solution to the original problem :) Best option at this point seems to be writing my bibliography in any word editor, saving it as pdf, and bounding together with my PhD written in LaTeX.
Hello everyone!
I would like to thank Krishna for making the wonderful template (2.1 version) for PhD thesis that I, like many other PhD students, use with great pleasure.
There were some tweaks I did (i.e. using Chinese and Persian fonts) and now, having all the pages multiplying due to speed writing, would like to actually begin putting my bibliography in the way I want. I would like to use the "verbose" style with possibility to use "ibid./op. cit./ibid., p.../Lastname, F., op. cit., p...." in footnotes and bibliography with the following style: Lastname, F., \textit{Booktitle}, Publishing House, 2000 (for books); Lastname, F.,
Magazine Article Title", \textit{Magazine}, vol. 1, 2004, pp. 12--23 (for article) (or it can be any other style but with
" for titles in articles and \textit for books. I tried tweaking on my own but I failed, as I probably missed some places where I should have changed something or commented the wrong lines. I'm guessing the bib supporting files got corrupted after my constant trials and will probably need fixing or deleting.I did the following:
Could anyone please guide me through the tweaking of this template, so that my preferred referencing worked? Thank you in advance :)