Fonts & Character Sets ⇒ Citation fails (foreign font?)
Citation fails (foreign font?)
I am trying to use the following citation:
@BOOK{Bogoli︠u︡bov1965,
AUTHOR = {Bogoli︠u︡bov, Nikolaĭ Nikolaevich AND Mitropolʹskiĭ, I︠U︡riĭ Alekseevich},
...
and I get the warning:
Package natbib Warning: Citation 'Bogoli︠u︡bov1965' undefined.
The bib data is from http://www.literatur-generator.de.
I suppose that it is because of the foreign font, but I do not know how to use it right!?
Thanks a lot for your help,
Stefan
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Citation fails (foreign font?)
\"u for the ü (U+00FC, latin small letter u with dieresis). Drawback is the lost kerning. There is quite a simple solution. Using biblatex along with the bibliography processor biber. The combo can handle utf8 encoded files (like yours seems to be) natively. There is a compatibility mode for natbib as well. biblatex doesn't work with bst-files, all decisions about what and how stuff is written to the bibliography happens at the LaTeX layer. That means changing the appearance of the bibliography is quite easy, once you understand what's going on.
Did you do bibliographies before? The warning is an indication, that you have never run a bibliography processor, which is needed to extract the relevant information from the external file, sort it and give back the data to LaTeX in the bbl-file.
If you post a compilable but minimal example we could easily do some tests.
Please note, that encoding issues are always about a what, while the font defines how the what (ü) should look like.
Citation fails (foreign font?)
I recognized that BibTex will not work for my citation. Like you posted, I tried to work with BibLatex, but obviously did not implement it right. Here is a short example of my *.tex file:
Code: Select all
\documentclass[review]{elsarticle}
\usepackage[backend=biber,
style=authoryear,
natbib=true,
hyperref=true,
]{biblatex}
\addbibresource{testbibfile}
\begin{document}
Das ist der Text mit dem Zitat \cite{Bogoli︠u︡bov1965}.
\section*{References}
\printbibliography
\end{document}
Code: Select all
@BOOK{Bogoli︠u︡bov1965,
AUTHOR = {Bogoli︠u︡bov, Nikolaĭ Nikolaevich AND Mitropolʹskiĭ, I︠U︡riĭ Alekseevich},
YEAR = {1965},
TITLE = {blabla},
EDITION = {},
ISBN = {},
PUBLISHER = {Akademie-Verlag},
ADDRESS = {Berlin},
}
Compilation of the above leads to several errors.
Thanks a lot for your help,
Stefan
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Citation fails (foreign font?)
Natbib relies on bibtex. After years (decades) of doing the stuff with bibtex, a publisher like elsevier hesitates to implement modern and new stuff (which is more likely to break).
That probably means you have to convert everything to plain ascii. Sorry.
Re: Citation fails (foreign font?)
Thanks Stefan
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Citation fails (foreign font?)
Citation fails (foreign font?)
Code: Select all
\documentclass[review]{elsarticle}
\bibliographystyle{elsarticle-num}
\begin{document}
Hier wird zitiert \cite{Meier2013}.
\section*{References}
\bibliography{testbibfile}
\end{document}Code: Select all
@PHDTHESIS{Meier2013,
AUTHOR = {Meier, Hans},
TITLE = {Experimentelle \MakeUppercase{M}odellbildung zum \MakeUppercase{T}est},
SCHOOL = {Rheinisch-Westfalisch Technische Hochschule Aachen},
YEAR = {2013},
}Code: Select all
> H.~Meier, Experimentelle \makeuppercase
> .............................................................{M}odellbildung zum
> ! Undefined control sequence.
Thanks a lot
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Citation fails (foreign font?)
The solution here is quite simple, enclose the words you don't want to change in curly brackets:
Code: Select all
\begin{filecontents}{\jobname.bib}
@PHDTHESIS{Meier2013,
AUTHOR = {Meier, Hans},
TITLE = {Experimentelle {Modellbildung} zum {Test}},
SCHOOL = {Rheinisch-Westf\"alisch Technische Hochschule Aachen},
YEAR = {2013},
}
\end{filecontents}
\documentclass[review]{elsarticle}
\bibliographystyle{elsarticle-num}
\begin{document}
Hier wird zitiert \cite{Meier2013}.
\section*{References}
\bibliography{\jobname}
\end{document}