1

If I use bm, breqn and pslatex packages together, whenever I type a symbol using \bm, it prints it three times in different sizes.

For example, the following code (I'm using online latex editor - overleaf.com. It does not show any error for this code),

\documentclass{article}
\usepackage{pslatex, breqn, bm}

\begin{document}
$\bm{\theta}$
\end{document}

will produce:

theta three times

If I remove either breqn or pslatex packages, I do not have this problem. Is there any way to use all three packages together without such problems?

The manual says something about overprinting three times, poor man's bold and providing an offset of -1, but I do not understand it.

  • Welcome to TeX.SX! Are you perhaps using LuaLaTeX? – egreg Jul 18 '16 at 21:49
  • Thank you @egreg. I'm actually using overleaf.com. I'm not sure what latex they are using. – omsrisagar Jul 18 '16 at 21:51
  • Can you add a very minimal example of code? – egreg Jul 18 '16 at 21:51
  • @egreg, I have already added a very simple example to my question. Let me know if you want me to add another example. – omsrisagar Jul 18 '16 at 21:52
  • No, a complete document that people can run to make the imag ethat you show. – David Carlisle Jul 18 '16 at 21:53
2

Do not use pslatex unless you are using an apple/sun laser writer from around 1990 and want to use its built in fonts.

use for example

\documentclass{article}
\usepackage{newtxtext,newtxmath}
\usepackage{bm}
\usepackage{breqn}


\begin{document}



($\bm{\theta_{\mathit{old}}}$) ($\theta_{\mathit{old}}$)



\end{document}

which produces

enter image description here


\documentclass{article}

\usepackage{bm}
\usepackage{breqn}


\begin{document}

($\bm{\theta_{old}}$)

\end{document}

produces

enter image description here

Please post a complete small document, as above, which produces the bad output that you show.

with pslatex as mentioned in comments

\documentclass{article}
\usepackage{pslatex}
\usepackage{bm}
\usepackage{breqn}


\begin{document}

($\bm{\theta_{old}}$)

\end{document}

produces

! Argument of \bm@pmb@@ has an extra }.
<inserted text> 
                \par 
l.9 ($\bm{\theta_{old}}
                       $)
? 
Runaway argument?
! Paragraph ended before \bm@pmb@@ was complete.
<to be read again> 
                   \par 
l.9 ($\bm{\theta_{old}}
                       $)
? 
  • Thank you David. I'm using overleaf.com, it doesn't show any error but shows that weird output. As per your comment, I tried loading pslatex after bm and breqn and it works fine! Thank you. The problem is solved. You can add that the solution is to load pslatex after bm and breqn. – omsrisagar Jul 18 '16 at 22:14
  • @omsrisagar No that is not the solution!!!! – David Carlisle Jul 18 '16 at 22:28
  • @omsrisagar I have updated the answer with a solution (at the top, before the line) – David Carlisle Jul 18 '16 at 22:30
  • thank you David. I get this error if I include newtx packages after bm and breqn - "Command \dfrac already defined. Or name \end... illegal, see p.192 of the manual." Probably this is a known issue? – omsrisagar Jul 18 '16 at 22:38
  • @omsrisagar it makes no sense to load font packages after bm newtx should be loaded first, as shown – David Carlisle Jul 18 '16 at 22:50

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.