# Tag Info

2

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

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 ...

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 ...

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 ...

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 ...

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>} ...

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} ...

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 ...

0

If you need to spread vertically every itemize in the presentation (document), then you can write in your preamble: \let\olditem\item \renewcommand{\item}{\setlength{\itemsep}{\fill}\olditem} This is useful because the line \setlength{\itemsep}{\fill} only alters one single itemize.

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

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, ...

2

I had the same problem with Inkscape. Searching here, I found something about the \raisebox command: \raisebox{lift}[height][depth]{text} You can use \height or \depth or \totalheight in the first parameters with a constant to precisely set the vertical shift. For my own usage, I use the following: ...

1

Title style is defined with beamercolor and beamerfont templates. Use them inside a beamercolorbox with correct dimensions or just fix them before writing the title. If you want also horizontally centre ordered or unordered lists, use varwidth package. Next is a modification of Christof's example. Adjust it to your stylish needs. \documentclass{beamer} ...

1

My quick and dirty solution is something like this: \documentclass{beamer} \usefonttheme{} \usetheme{Rochester} \usecolortheme{beaver} \usepackage{xcolor} \setbeamercolor*{item}{fg=red!70!black!100!} \useinnertheme{circles} \usepackage{fontspec} \defaultfontfeatures{Mapping=tex-text} % % \setmainfont{Cambria} % \setsansfont{Calibri} \begin{document} ...

6

Just add a zero text depth to the leaf nodes: \tikzset{every leaf node/.append style={text depth=0pt}}

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 ...

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} ...

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} ...

1

Since I don't have the pictures you mention, I'm using some provided by mwe. Since I'm unfamiliar with the inclusion-tactics of tikz, I can only speculate whether this will work/not: \documentclass{article} \usepackage{subcaption} \usepackage[export]{adjustbox} \begin{document} \begin{figure}[htb] \centering \begin{subfigure}[t]{0.35\textwidth} ...

3


1

A solution with only 3 alignment points and one pair of braces (as a spacing argument of the alignat* environment – first line): \documentclass[12pt]{article} \usepackage{mathtools} \usepackage{siunitx} \begin{document} \begin{alignat*}{3} & \text{Honning:}\qquad &\frac{\SI{16710}{\g}}{\SI{33075}{\g}} · \SI{360}{\degree} &= {\mkern ...

1

This answer replaces the \alignat with a \alignShortstack from the just released tabstackengine package (may or may not have propagated to a CTAN mirror near you). The good news: 1) the approx does not need a {}; and 2) the result looks the same The bad news: 1) it runs very slow (I am not sure why); and 2) the lone \qquad needs a {} (I am not sure why). ...

3

Since the construction is consistent and doesn't require numbering, you can define a macro to handle each row, constructing an array as needed: \documentclass{article} \usepackage{amsmath,siunitx} \ExplSyntaxOn \newcommand{\calculation}[2]{% \calculation{<num>}{<denom>} \dfrac{\SI{#1}{\g}}{\SI{#2}{\g}} \cdot \SI{360}{\degree} & ...

1

If you remove the & following the \approx, here are two ways you can achieve the desired result: Add a \phantom{1} for the last case to right align it. Define a custom MySI which uses \makebox to make sure that the text is right aligned within the appropriate width. Code: \phantom: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} ...

Top 50 recent answers are included