# Tag Info

8

don't do this: \ifmw@fonts \RequirePackage{ifxetex,ifluatex} \newif\ifengineright If you allocate a new if in a conditional section the \ifengineright might or might not be defined but the \fi is always a fi so you have unmatched fi in the undefined case.

5

Where's the problem? Here's the analysis. You have \ifmw@fonts \RequirePackage{ifxetex,ifluatex} \newif\ifengineright\enginerightfalse%Define new if to check if luatex or xetex are being used. To avoid typing the xetex/luatex commands twice. \ifengineright %Add those commands \setmathrm{Times New Roman} \setmathsf{Times New Roman} % several ...

4

I get no error with the first example, unless I add a blank line between \let\macro\foo and A: \def\foo#1\par{\vbox{#1}} \def\bar#1\par{\hbox{#1}} \let\macro\foo \macro A paragraph consisting of text. \let\macro\bar \macro A paragraph consisting of text. \everypar={\macro} A paragraph consisting of text. \let\macro\foo A paragraph consisting of text. ...

2

I have no problem with an up-to-date TL 2014: \documentclass[]{article} \usepackage{mathtools} \usepackage{physics} \begin{document} \begin{multline} \frac{a^2}{2b} \left(-\log \left(a^2 \left(\sqrt{\frac{a^2 y(x)}{b^2 x^2}} +1\right)-\frac{2 a^2 y(x)}{b x^2}\right)-\frac{2 a \tanh ^{-1}\left(\frac{a^2-4 b \sqrt{\frac{a^2 y(x)}{b^2 x^2}}} ...

2

It has something to do with the physics package as you already mention. And it is only \frac{a^2 \log (x)}{b}+c_1,y(x) that is problematic, that is it is actually \log, remove it and the MWE works just fine. The physics package messes with \log, even after looking at the code, I do not quite understand why. Update: Physics makes \log(x) have ...

1

The physics package implements more intelligence to the macros \log, \sin etc. These macros scan their math parameter and use \left \right primitives at begin of the parameter by very specific way. When you redefine these primitives then these macros collapse, of course. If you need to redefine \left and \right and if you need to use physics package then you ...

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