13

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.

11
  • 2
    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 Commented Sep 12, 2016 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
    Commented Sep 12, 2016 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
    Commented Sep 12, 2016 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
    Commented Sep 14, 2016 at 18:08
  • 2
    Also relevant: Input encoding error after upgrading from Biber 1.9 to Biber 2.1 as well as linked questions.
    – moewe
    Commented Sep 15, 2016 at 7:29

2 Answers 2

10

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

1
  • Only this worked for me.
    – outmind
    Commented Dec 10, 2020 at 2:30
4

\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
  • 3
    For being BibTeX compatible it should be Ran{\v{n}}ik, Kj{\v{r}}{\'{i}}
    – egreg
    Commented Sep 14, 2016 at 18:06
  • @egreg: Thanks, +1, fixed my answer for the missing brackets, but \i instead i also for BibTeX, or not?
    – Stephen
    Commented Sep 14, 2016 at 18:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .