Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is driving me nuts...

I need to write out an explicit plus sign, like (q, 1, +1).

But LaTeX just swallows the '+' sign...

\documentclass{article}
\usepackage{amsmath, amssymb, fourier, mathrsfs}
\usepackage{lmodern, fourier}
\usepackage{dcolumn}

\begin{document}

      \begin{tabular}{>{\(}l<{\)}*{3}{|>{\(}c<{\)}}}
        \multicolumn{1}{c|}{\boldmath\(q\)\unboldmath} &
          \multicolumn{1}{c|}{\boldmath\(0\)\unboldmath} &
          \multicolumn{1}{c|}{\boldmath\(1\)\unboldmath} &
          \multicolumn{1}{c|}{\boldmath\(b\)\unboldmath} \\
        \hline
        q_0 & (q_0, 0, +1) & (q_0, 1, +1) & (q_1. b, -1) \\
        \hline
      \end{tabular}
\end{document}
share|improve this question
    
@Werner have you seen the column specification? it seems to add \( and then \) around each entry. To the OP: if you load lmodern before fourier it seems to resolve the issue –  cmhughes Jul 10 at 19:31
    
@cmhughes, right. Leaving out lmodern does fix this nonsense. Thanks! –  vonbrand Jul 10 at 19:37
1  
The package fourier uses different encodings for math fonts than the standard ones, so it shouldn't be used along other font packages that use OMS or OMX. This doesn't affect stmaryrd and amssymb that use direct calls of the slots for their symbols. –  egreg Jul 10 at 19:50

1 Answer 1

up vote 10 down vote accepted

It is the fourier package that ate your + with that you get the warning

Missing character: There is no   in font lmsy10!

\documentclass{article}
\usepackage{amsmath, amssymb, 
%fourier,
 mathrsfs
}
\usepackage{lmodern, fourier}
                      %%% OK
\usepackage{dcolumn}

\begin{document}
  \begin{tabular}{>{\(}l<{\)}*{3}{|>{\(}c<{\)}}}
    \multicolumn{1}{c|}{\boldmath\(q\)} &
      \multicolumn{1}{c|}{\boldmath\(0\)} &
      \multicolumn{1}{c|}{\boldmath\(1\)} &
      \multicolumn{1}{c|}{\boldmath\(b\)} \\
    \hline
    q_0 & (q_0, 0, +1) & (q_0, 1, +1) & (q_1. b, -1) \\
    \hline
  \end{tabular}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.