Hot answers tagged

17

As Phelype says the error is on line 171 (almost certainly the last line) of PaPCh11.aux as that file is re-created every time you run latex, you can delete it and just run latex again. By far the most common way to corrupt an aux file leaving a partly written command is to kill the latex job either by a key shortcut such as control-c or by killing the ...


12

I have another thought. Did you mean that if you search for \cit, the editor will show you \cite together which you don't want. However when you write \cite, it often follows a par of curl bracket {...}. Then you can just search for \cit{ in your source file to find this error.


3

For this solution I will use the xpatch package but if you want you can do without it. First of all, let's remove the square brackets: \xpatchbibmacro{name:andothers}{\mkbibbrackets}{}{}{} Then we create the new macros name:andothers:it and name:andothers:rm and modify the first one so that it prints the string andothers in italics: \letbibmacro{name:...


2

When natbib is loaded the \cite command is redefined to take two optional arguments. When only one is given, it is appended to the citation, as in normal LaTeX; when both are given, the first is prepended and the second appended. \documentclass{article} \usepackage[numbers]{natbib} \begin{document} \cite{foo}, \cite[post]{foo}, \cite[pre][]{foo}, \cite[...


2

Here is a slightly different solution using name wrappers. I figured that the idea is to have the whole author list (including possible "et al."s) in italics and to format the editor list normally. biblatex-gost already defines a special name format called heading for the authors at the beginning of the entry. If we make use of the name wrapper, we ...


2

I completely agree with your advisor that page numbers in citations are a good things. So unless there are very good reasons to remove them, I would not do that. That said, here is a fairly simple method that removes prenotes and postnotes from all citation commands using the standard \AtEveryCitekey-\clearfield trick (cf. Guidelines for customizing biblatex ...


2

There are several issues with your test document: Most importantly, place the \bibliography directive not in the preamble, but inside the document environment, where you want the formatted bibliography to be typeset. Usually, this is toward the end of the document. The jcappub package loads natbib automatically. If you want authoryear-style citation call-...


1

In order to produce citations and a bibliography you not only need to run LaTeX (that is your favourite flavour of LaTeX: pdflatex, lualatex, xelatex, ...) on your document: You also need to run a bibliography tool (normally either BibTeX or Biber). Why that is necessary and what the bibliography tools do is explained brilliantly in Question mark or bold ...


1

Store the old \parencite and redefine it to ignore any optional arguments: \documentclass{article} \begin{filecontents*}[overwrite]{references.bib} @article{einstein, author = {Albert Einstein}, year = {1905} } \end{filecontents*} \usepackage[style=authoryear]{biblatex} \addbibresource{references.bib} \NewCommandCopy\oldparencite\parencite% Copy \...


1

The style from Biblatex style short name is just the biblatex standard style authortitle with two small adjustments: Name initials with giveninits (which was called firstinits a while ago) and different name order with \DeclareNameAlias{sortname}{given-family} (\DeclareNameAlias{sortname}{first-last} in old biblatex versions). If you switch to the standard ...


1

Unfortunately, when \citesetup is used we cannot yet access the delimiter context to branch on the exact citation command we are in. A straightforward, but slightly more tedious solution is to use the wrapper command of \DeclareCiteCommand to wrap \parencite (which is what \autocite becomes here) not only in parentheses, but in tiny parentheses. The original ...


1

The class does nothing to the standard \cite command. In the question you found that deals with a similar problem, there was natbib involved, that changes the processing of \cite. Here it is just a matter to change the “control-space” command in \@citex to the spacing you'd like to get. Similarly, \@cite is the macro to patch for the “composite references”. \...


1

You already a get a good warning in the .log file about missing references even with \nocite, but here is a definition that has almost the same properties as \nocite when the entry key does exist and that prints the key in bold if it doesn't. \documentclass[british]{article} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{csquotes} \usepackage[...


1

I guess the most user friendly solution here is one where biblatex can automatically tell which works are yours and which are not. This can be done with the code from Filter bibliography by author?. (If you don't mind adding entries to categories manually, things are of course a bit simpler.) Then it is just a matter of starting a new refcontext with ...


1

In order to get the numeric-style citation call-outs sorted, you need to load the natbib citation management package with the option sort&compress: \usepackage[sort&compress,<any other options>]{natbib}


Only top voted, non community-wiki answers of a minimum length are eligible