# [R-pkg-devel] [External] R package submission fails due to using LaTeX functions that have not been implemented for building pdfs (not due to mathjaxr)

Marc Scherstjanoi m@rc@@cher@tj@no| @end|ng |rom thuenen@de
Fri Jun 25 22:58:09 CEST 2021

Thank you for your answers.
Putting \if{html}{\eqn{}} before \mjeqn{}{} works!
Kind regards,
Marc

----- Ursprüngliche Mail -----
Von: "Viechtbauer, Wolfgang (SP)" <wolfgang.viechtbauer using maastrichtuniversity.nl>
An: "Richard M. Heiberger" <rmh using temple.edu>, "Marc Scherstjanoi" <marc.scherstjanoi using thuenen.de>
CC: r-package-devel using r-project.org
Gesendet: Freitag, 25. Juni 2021 20:30:10
Betreff: RE: [External] [R-pkg-devel] R package submission fails due to using LaTeX functions that have not been implemented for building pdfs (not due to mathjaxr)

That doesn't seem to work for me (or I am not following this suggestion properly). But putting \if{html}{\eqn{}} before \mjeqn{}{} does. A bit of a hackish solution, but if it works, it works.

Not sure why \mjeqn{}{} at the beginning of a paragraph actually leads to a line break, but it's yet again one of these quirks that is good to document.

Best,
Wolfgang

>-----Original Message-----
>From: Richard M. Heiberger [mailto:rmh using temple.edu]
>Sent: Friday, 25 June, 2021 16:53
>To: Marc Scherstjanoi
>Cc: Viechtbauer, Wolfgang (SP); r-package-devel using r-project.org
>Subject: Re: [External] [R-pkg-devel] R package submission fails due to using
>LaTeX functions that have not been implemented for building pdfs (not due to
>mathjaxr)
>
>> One more question. If I use mjeqn at the beginning of a paragraph it
>automatically sets a line break afterwards.
>> Any idea what I can do to prevent this?
>
>    \vspace*{1ex}
>to back up one line.
>
>Rich
>
>> On Jun 25, 2021, at 07:51, Marc Scherstjanoi <marc.scherstjanoi using thuenen.de>
>wrote:
>>
>> Hi Wolfgang,
>>
>> thank you for this information.
>> I will try with \mjtdeqn and stick to the intended latex functions for building
>the pdf.
>> Moreover, we will bring up the more complicated equations in a vignette pdf.
>>
>> One more question. If I use mjeqn at the beginning of a paragraph it
>automatically sets a line break afterwards.
>> Any idea what I can do to prevent this?
>>
>> Best regards,
>> Marc