# Tag Info

7

To place three numbered equations next to one another, you could use the multicols environment, which is provided by the multicol package. In the example below, using this environment makes it unnecessary to fiddle with various tabular-like environments or experiment with \vspace adjustments. Incidentally, using \left( ... \right) to enclose a summation ...

6

A rather simple workaround can be constructed using plain TeX/LaTeX boxes handling; since LaTeX's cell vertical space takes no account for the command \displaystyle, one solution is to avoid it "a priori" by inserting the equation inside a parbox environment: \parbox[<alignment>][<height>][<arrangement>]{<width>}{<contents>} ...

6

The paragraph indentation is added to the left of the \parbox. It can be suppressed with \noindent. The vertical space can be corrected: \nointerlineskip removes the line skip (default: 1pt) that is added because of the large \parbox (without t). \prevdepth that shows the depth of the previous box is saved and restored at the beginning of the \parbox. Then ...

6

Since subfigures are minipages, the following trick works: add \vspace*{0pt} just after each \begin{subfigure}. MWE (I've used images from the mwe package since I don't have yours) \documentclass[a4paper,11pt]{article} \usepackage{subcaption} \usepackage{tikz,pgf,pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{plotmarks,shapes,positioning,fit} ...

6

The alignat* environment does it for you with two alignment characters (&) in front of the equal signs. \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} P^{-1}AP & = P^T\left[\lambda_1p_1, \dots, \lambda_np_n\right] && = \left[\lambda_1P^Tp_1, \dots, ...

5

With the KOMA-Script classes, the definition of \footnoterule includes a stretchable space of 0pt plus 0.05fil. Remove this additional space. \documentclass{scrartcl} \usepackage[a6paper,margin=1cm,bottom=2cm]{geometry} \raggedbottom \usepackage{etoolbox} \makeatletter \patchcmd{\footnoterule}{\vskip \z@ \@plus .05fil}{}{}{} \makeatother \title{KOMA script ...

5

In case if you want to keep table: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{tabular}{lp{10cm}} \scshape Assume: & \begin{minipage}[t]{\linewidth} \begin{enumerate}[leftmargin=*,itemsep=-4pt] \item $r \in \mathbf{Q}$ \item $r^2 = 2$ \end{enumerate} \end{minipage} \\[3ex] \scshape Prove: & False\\ \end{tabular} ...

5

You need two &. The first of the two is for the left part (here empty) of the second equation system: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} P^{-1}AP & = P^T\left[\lambda_1p_1, \dots, \lambda_np_n\right] && = \left[\lambda_1P^Tp_1, \dots, \lambda_nP^Tp_n\right] \\ & = \left[\lambda_1i_1, ...

4

Here is a solution using minipage alignment, baseline option of TikZ picture and the special node current bounding box. \documentclass{scrartcl} \usepackage{tikz} \begin{document} \begin{figure} \begin{minipage}[t]{.5\linewidth} \centering \begin{tikzpicture}[baseline=(current bounding box.north)] \draw [fill=black] (0,0) rectangle (1,1); ...

4

The positioning of text inside \txt is really strange... As a workaround, add the following lines in your preamble \makeatletter \xydef@\txt@ii#1{\vbox{\vspace*{-7pt}% \let\\=\cr \tabskip=\z@skip \halign{\relax\hfil\txtline@@{##}\hfil\cr\leavevmode#1\crcr}}} \makeatother MWE: \documentclass{article} \usepackage[all]{xy} \makeatletter ...

4

You'll notice that the problem only shows itself for columns where you only use paragraph text. Those that have a section heading in them seem to be flush with the bottom... ...this is because you're not using LaTeX's \parskip rubber length properly. Forcing a empty line between paragraphs using \newline\newline technically still sets the two pieces of text ...

4

Just to correct some errors in your code: Don't use \bf which is deprecated in LaTeX, but \bfseries or \textbf (see for example Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX?) With 12pt as an option for the document class, use \large instead of \fontsize{14pt}{2pt} (BTW, it should be something like ...

4

Minion Pro offers 4 kinds of digits, according to the combination of Lining/Oldstyle and Tabular/Proportional features you choose. Tabular digits (or Monospaced) have all the same character width, which makes them suitable for array-like environment. Here is a simple demonstration: \documentclass{article} \usepackage{fontspec} ...

4

Actually you could say only the last is aligned: If you add a final column you get \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{|m{.3\linewidth}|m{.3\linewidth}|m{.3\linewidth}|@{}c@{}} \hline A & B & C& \\[1cm] \hline 1 & 2 & 3& \\[2cm] \hline \end{tabular} \end{document} where you can ...

4

I would consider doing this a little differently, and use an itemize environment instead: \begin{itemize} \item[Assume] \begin{enumerate} \item $r \in \mathbf{Q}$ \item $r^2 = 2$ \end{enumerate} \item[Prove] False \end{itemize} You can get the scshape by loading the enumitem package: \begin{itemize}[font=\sc] ...

4

Instead of \widetilde{s'}, you might try \widetilde{s}' or \tilde{s}'. If you choose \tilde{s}', shown in the third row below, you should probably also go with \tilde{s} instead of \widetilde{s}. Speaking for myself, I find the \widetilde diacritic to be both too wide for the relatively narrow "s" character and placed too far above the "s" character. In ...

3

Another variant: \documentclass{article} \newcommand{\myprime}[1]{\widetilde{#1\mkern1mu\smash{'}\mkern-2mu}} \begin{document} $s$ $s'$ $\widetilde{s}$ $\widetilde{s}'$ \fbox{$\myprime{s}$} $\tilde{s}$ $\tilde{s}'$ \end{document}

3

With adjustbox it's really easy: \documentclass{article} \usepackage{adjustbox} \usepackage{asymptote} \begin{document} \begin{tabular}{c c} Text & \adjustbox{valign=t}{\includegraphics[scale=0.25]{example-image}} \\ Text & \begin{adjustbox}{valign=t} \begin{asy} import graph; unitsize(1inch); draw((0,0)--(1,0)--(1,1)--(0,1)--(0,0)); ...

3

"A simple way to increase vertical spacing in tables" is to replace the optional positioning parameter with an \arraystretch one: \documentclass{article} \let\oldtabular\tabular% Store a copy of \tabular \let\endoldtabular\endtabular% Store a copy of \endtabular \renewenvironment{tabular}[2][\arraystretch] {\edef\arraystretch{#1}% Update \arraystretch ...

3

Some of the other solutions seem rather complicated. All you need is a loop. Use \Slider{<number>} to draw <number>+1 bars with the moving slider; the width and height of the bar can be changed using \BarWd and \BarHt (resp.); the width of the slider is given by \SliderWd and the vertical separation between consecutive bars is given by \BarSep. ...

3

Add these lines in your preamble \makeatletter \let\@topfil\relax \makeatother MWE \documentclass{slides} \makeatletter \let\@topfil\relax \makeatother \begin{document} This text is not centered in the page \end{document} Output:

3

Yet another version with enumitem: Code: \documentclass{article} \usepackage{enumitem} \begin{document} \noindent some text before \begin{description}[font=\normalfont\scshape,nosep,labelwidth=45pt,leftmargin=\dimexpr\labelwidth+\labelsep] \item[Assume:] \begin{enumerate}[leftmargin=*,nosep] \item $r \in \mathbf{Q}$ \item \$r^2 = ...

3

The code: \documentclass{scrartcl} \usepackage{tikz} \newlength\mylen \newlength\mylena \newlength\mylenb \newcommand\SideBySide[6]{% \settoheight\mylen{#1}% \settoheight\mylena{#1}% \settoheight\mylenb{#4}% \ifdim\mylenb>\mylena\relax% \setlength\mylen{\mylenb}% \fi% \begin{figure} \begin{minipage}[c][\mylen][t]{.5\textwidth} ...

3

You can use adjustbox package with export option. Then a key valign is available inside \includegraphics for vertical alignment. \documentclass{article} \usepackage[export]{adjustbox} \begin{document} \begin{enumerate} \item Find the unknown values and in each case, give a reason. \begin{enumerate} \item ...

2

You can use the \droptitle length that is defined in the titlingpackage. On another hand, there are several errors in your preamble: Firstly, the second argument to \fontsize is the value of the vertical space between two consecutive lines, so it should not be smaller than the design size of the font itself. Usually, it is about 20 % larger. Secondly, if ...

2

it is set in mathmode by default and \txt uses the text mode. If you want an upright A use: \documentclass{article} \usepackage[all]{xy} \begin{document} \xymatrix{A \ar[r] & \mathrm{A}} \end{document} if you want real text, then use \documentclass{article} \usepackage[all]{xy} \newcommand\TXT[2][t]{\tabular[#1]{l}#2\endtabular} \begin{document} ...

2

I would think that you'd rather want the caption in the outer margin, so you could say \sidecapmargin{outer} The width of the sidecap is defined by the length \sidecapwidth, which by default is \marginparwidth, so to modify it use \setlength\sidecapwidth{<length of your choice>}. Personally I'd just use the outer margin though. To fix the ...

2

Use the option [t] as \begin{minipage}[t]{.5\textwidth} for minipages. Also, you have to fake and insert an empty rectangle to have both figures with same height. I don't see another option since they were drawn on independent way. So I used \path (0,0) rectangle (1,-2); to push the square up. \documentclass{scrartcl} \usepackage{tikz} ...

2

Put the marginnote before split (not inside). Further, as Gonzalo notes, changes to the font of marginnotes with the marginnote package are to be done using \marginfont. Also note that \footnotesize is a switch and it doesn't take any arguments. \documentclass{article} \usepackage{amsmath} \usepackage[fulladjust]{marginnote} ...

2

use a minipage instead of a \parbox: \documentclass[12pt,a4paper]{article} \begin{document} Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text: \noindent \begin{minipage}[t][][t]{\textwidth}\vspace{0pt}%%% Without \vspace no additional space \begin{itemize} \item More Text More Text More Text More Text More Text ...

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