Tag Info

6

Something like this? Note that you don't really need alignat (and you're giving too many equation columns to that environment). \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \max\quad & \sum_{i=1}^n p_i s_i \\ \text{s.t.\quad} & ...

6

Since you're using an align*, I assume you're not interested in numbering the equations. As such, using an array allows you the freedom of specifying your alignments as you wish: \documentclass{article} \usepackage{array} \begin{document} \[ \setlength{\arraycolsep}{0pt}% Remove horizontal column separation \renewcommand{\arraystretch}{1.2}% ...

5

Similar to Herr K. but more “semantic” \documentclass{scrartcl} \usepackage{mathtools,array,amssymb} \let\geq\geqslant \let\leq\leqslant \def\maximize#1\subjectto#2\stop{% \begin{array}{r>{\displaystyle}l} \text{max.} & #1 \\ \text{s.t.} & \begin{array}[t]{@{}>{\displaystyle}l@{\qquad}>{\displaystyle}l@{}}#2\end{array} ...

5

There's no need for the \displaystyle directives, no need to surround - and + with {} (empty math atoms), and no need for the \; spacing directives. Instead, use a single align* environment. To maximize the likeness with the template, use \ell instead of l, load a Times Roman font family and (not implemented in the code shown below) use \leq and \geq instead ...

4

I do not know another solution but tweaking around with two columns. Is there a reasons why you do not want to use two? % arara: pdflatex \documentclass[12pt]{report} \usepackage{booktabs} \usepackage{siunitx} \usepackage{caption} \begin{document} \begin{table} \centering \caption{My caption} ...

4

A simple solution with the eqparbox package. I define an \eqmathboxcommand, which types its contents in displaystyle math mode. It uses a tag which ensures all boxes with the same tag will all have the width of the largest contents. \documentclass{article} \usepackage{eqparbox} \newcommand\eqmathbox[2][]{\eqmakebox[Eq#1]{\ensuremath{ \displaystyle#2}}} ...

3

The problem is that when you declare the function, there are spurious spaces that are being created (so the problem is not the plot itself). I marked the space with a dot: \pgfmathdeclarefunction{gauss}{2} {. \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% } If you delete all spaces from your function definition at the end of the line and ...

3

Since Zarko said so: \begin{table}[p] \input{table1} \end{table} \clearpage \begin{table}[p] \input{table2} \end{table} :)

3

Maybe something like this: \documentclass[12pt]{report} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{table} \centering \sisetup{ table-figures-integer = 4 , table-figures-decimal = 0 , table-space-text-post = {~(\SI{99}{\percent})} , table-number-alignment = center } ...

3

It seemed to me the OP's question had to do with the ragged right margin, based on his/her description of "sentences don't fill up the entire space". As new LaTeX users discover, the default LaTeX behavior is for fully-aligned marginal justification. However, various classes and code imported from elsewhere can override that. The enabling macro to ...

3

Use alignat environment. Code \documentclass{article} \usepackage{mathtools} \begin{document} \begin{alignat}{3} aaa&=bbb &&\quad\Longleftrightarrow\quad & ccc&=ddd \\ a &=b &&\quad\Longleftrightarrow & c &=d \end{alignat} \end{document} Output

2

A bit tricky, but resorting to inline math seems worth the pain. \documentclass{article} \usepackage{amsmath} \usepackage{lipsum} % just for the example \begin{document} \lipsum*[2] \begin{equation*} \mathrm{Vect} = \biggl( \begin{minipage}[t]{.85\displaywidth} % make locally the comma to allow line breaks \mathchardef\comma=\mathcode`, ...

2

The TABLE environment starts a \vbox, so if it occurs at the beginning of a sentence, it switches to vertical mode. To prevent that, add a \dontleavehmode. \starttext Normal text \setupnarrower[left=2cm] \startnarrower[left] Narrower text \blank[small] \dontleavehmode \bTABLE \bTR \bTC Misbehaving ...

1

\setbeamertemplate{frametitle}[default] is defined in beamerouterthemedefault.sty. If you take the definition from there, you can redefine it according to your needs. For example add a shift with \hspace*{1cm}: \documentclass{beamer} \makeatletter \setbeamertemplate{frametitle}{ \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}% ...

1

Try putting stuff in columns. (Beamer manual -- 12.7 Splitting a Frame into Multiple Columns). This way you can later add content to the left side later if you wish so. Example from the manual \begin{columns}[t] \begin{column}{5cm} Two\\lines. \end{column} \begin{column}{5cm} One line (but aligned). \end{column} \end{columns} The below example does not ...

1

The IEEEeqnarray environment is bulky, but powerful. It lets you have several aligned columns, and it also gives you the proper spacing around your = and \Leftrightarrow signs. \usepackage[retainorgcmds]{IEEEtrantools} \begin{document} \begin{IEEEeqnarray*}{rClCrCl} aaa & = & bb & \Leftrightarrow & cccc & = & dd \\ e & = ...

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