# Displaystyle and left-alignment

\newcommand{\mbi}[1]{\textbf{\emph{#1}}}
\documentclass[preview]{standalone}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{large}
\displaystyle
$${\mbi s} = {\mbi P}{\mbi d}, {\qquad{(2)}}\nonumber$$
\end{large}
\end{document}


I'm using displaystyle to get the image without the white space. But this invariably produces errors and warnings. When I don't use it, there are no errors, but then this produces extra white space on the left. Any help will be appreciated.

-
It is also possible to modify this border for left/right and top/bottom border using border={<l/r> <t/b>} or for each border specifically using border={<l> <r> <b> <t>}. These options are described in the standalone documentation (section 2.2 Class options, p 6). –  Werner May 24 '12 at 19:00
why not omit the $$...\nonumber$$ and just surround the math with single $ signs? the \displaystyle should take care of the choice of shapes and limit styles. – barbara beeton May 24 '12 at 19:21 The instructions \displaystyle, \textstyle, \scriptstyle, and \scriptscriptstyle should only be use in math mode. Currently, you issue \displaystyle outside of math mode. Incidentally, upon entering an equation environment LaTeX is automatically in \displaystyle math mode. – Mico May 24 '12 at 19:33 ## 2 Answers You could wrap the content in a varwidth environment, and use \Large to obtain larger text: As mentioned in the comments \displaystyle should be used in math mode, So if you were using inline math $ ... $, the you could add \displaystyle as follows: $\displaystyle {\mbi s} = {\mbi P}{\mbi d}, {\qquad{(2)}}\nonumber$ ## Code: \documentclass{standalone} \newcommand{\mbi}[1]{\textbf{\emph{#1}}} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{varwidth} \begin{document} \begin{varwidth}{\linewidth} \Large $${\mbi s} = {\mbi P}{\mbi d}, {\qquad{(2)}}\nonumber$$ \end{varwidth} \end{document}  - The "correct" way to write the document is, in my opinion, \documentclass[border=0 0 0 1]{standalone} \usepackage{bm} \begin{document} \large$\displaystyle

Notice how I get the boldface math italic letters. The \displaystyle is reduntant, in this case, but it's needed in case you have "big operators" such as \sum. Here's the result