6

I have a problem within ShareLaTex. I copied a reference from biblatex and pasted it into my bib file and the ignored command is

author={Ran{\v{n}}ik, Jk{\v{r}}{\n}́}

which should generate

 not this: {Ran{\v{n}}ik, Jk{\v{r}}{\n}́}

I get the following error message:

Unicode char' (U+301)

I add references to my bib file with ~ signs or accents.

  • 1
    U+0301 is a combining accent, it is best to enter accented commands as single characters or as tex markup \'{e} rather than e followed by a unicode combining acute – David Carlisle Sep 12 '16 at 18:11
  • I copy reference from bibatex and paste it in my bib file and the command is ignored author={Ran{\v{n}}ik, Jk{\v{r}}{\n}́ – John Sep 12 '16 at 18:26
  • 5
    The ́ character is the obvious culprit. Retype the name using proper encoding. Moreover \n makes no sense. If I google for Ranňik I get nothing – egreg Sep 12 '16 at 19:14
  • 1
    It's quite obvious that you should at least use i if you want an accented i. But if you're using biblatex, why not simply Ranňik Jkrí? – egreg Sep 14 '16 at 18:08
  • 1
    Also relevant: Input encoding error after upgrading from Biber 1.9 to Biber 2.1 as well as linked questions. – moewe Sep 15 '16 at 7:29
6

Just type in the name using UTF-8 characters:

\begin{filecontents*}{\jobname.bib}
@article{test,
  author={Ranňik, Jkří},
  title={Title},
  journal={Journal},
  year={2016},
}
\end{filecontents*}

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\cite{test}
\printbibliography
\end{document}

enter image description here

3

\n is generally not defined and the ' afterwards generates the error message. About the "{\'{i}} an error occurs" from your comments: That should be \'{\i}, where \i creates an "i" without dot, so that the "´" can be placed there.

Thus author={Ran{\v{n}}ik, Kj{\v{r}}{\'{\i}}} should produce the right output.

About accents etc. you can find additional information at:

How to type special/accented letters in LaTeX?

"accents" tag wiki

Escaped codes

  • 2
    For being BibTeX compatible it should be Ran{\v{n}}ik, Kj{\v{r}}{\'{i}} – egreg Sep 14 '16 at 18:06
  • @egreg: Thanks, +1, fixed my answer for the missing brackets, but \i instead i also for BibTeX, or not? – Stephen Sep 14 '16 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.