8

I'm new to LaTeX - can anyone suggest why the $\mathplus$ is not rendering as +?

It can be seen in the bibliography entry of another question,

publisher = {Springer Science $\mathplus$ Business Media},

Identically to how I'm trying to use it, in Rmarkdown (which basically runs R code then writes markdown). I have texlive-full installed on Linux Mint, and am writing using the xelatex engine, via knitr (which writes to PDF using pandoc).

Can anyone suggest what else I need to use this character? Is there a list somewhere of which 'control sequences' are found in which packages etc.?

  • I have never seen that command (but it might exist). In any case, why not write + directly? – Manuel Nov 17 '14 at 17:45
  • @Manuel it's not me writing it: the knitcitations package is providing the reference indirectly, dynamically (from a DOI) is the problem, so I can't get rid of it. – Louis Maddox Nov 17 '14 at 17:46
  • @lmmx just stick \newcommand\mathplus{+} in your document and it will be defined. – David Carlisle Nov 17 '14 at 17:47
  • 1
    Just for reference: see this (closed) issue on the knitcitations repo. – Stefano M Oct 6 '16 at 10:04
9

If you can not remove this (rather pointless) definition as it is being auto-generated, put

\newcommand\mathplus{+}

in your document preamble so that \mathplus expands to +.

| improve this answer | |
2

You should use unicode-math package by adding:

  \usepackage{unicode-math}

in the beginning of your file.

remember to delete all auxiliary files including the .bbl file then run your .tex file using XeLaTeX and again using BibTeX and again using XeLaTeX.

| improve this answer | |

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.