Tag Info

Hot answers tagged

14

If you want to change the behaviour of \underbrace globally you could say \documentclass{article} \usepackage{amsmath} \makeatletter \let\ams@underbrace=\underbrace \def\underbrace#1_#2{% \setbox0=\hbox{$\displaystyle#1$}% \ams@underbrace{#1}_{\parbox[t]{\the\wd0}{#2}}% } \makeatother \begin{document} $\underbrace{f(x) = a^2 + 2ab + b^2}_{This is some ...


8

In this code I define a \parunderbrace command, with two arguments, which adjusts automatically to the width of the formula: \documentclass{article} \usepackage{mathtools} \usepackage{ragged2e} \newlength\ubwidth \newcommand\parunderbrace[2]{\settowidth\ubwidth{$#1$}\underbrace{#1}_{\parbox{\ubwidth}{\scriptsize\RaggedRight#2}}} \begin{document} \[ ...


5

Try \begin{equation} \begin{gathered} \rho=a*b \\ \alpha=2*\rho. \label{eqn_one} \end{gathered} \end{equation} equation provides one number for content, which is in gathered environment. Number is vertically centered. It centers two equations. For use of gathered, you need load package amsmath in preamble.


5

Here is a slightly different solution, with the alignat environment, and the \mathrlap command from mathtools, an extension of amsmath. I also suggest another layout, using alignat and aligned: \documentclass{article} \usepackage{mathtools,amssymb} \usepackage{lipsum} \usepackage{eqparbox} \def\cdotsfill{\leavevmode \leaders\hbox{$\cdots$}\hfill \kern0pt} ...


4

New solution answering the question You want to build headings to your problems and their parts using information appearing later in the document. The obvious way to do this is using \label and \ref but as you want to do this behind the scenes the label names need to be generated dynamically. Dynamic labels for cross-referencing Below I have defined two ...


2

One solution is to use standalone instead of externalize (which has the advantage of being far more efficient as well). \documentclass[multi={tikzpicture}]{standalone} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture}[scale=1] \begin{axis}[legend pos=outer north east] \addplot[red,domain=1:2] {x^2}; \addlegendentry{$x^2$}; ...


1

The command to remove the equation number is \notag. Here a MWE. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} \rho=a*b \notag\\ \alpha=2*\rho. \end{gather} \end{document}


1

The position of the label is calculated through the auto option. It is designed to make labels floating alongside the curve without overlapping. As a result the pin-edge is nearly orthogonal to the tangent line for safety. It is not difficult to override auto but it may ruin the whole engine. A workaround is to use the temporary point (label visualizer ...


1

The texlive-lang-european is for a bunch of European languages, among which there's not French; do sudo apt-get install texlive-lang-french See https://packages.debian.org/stable/tex/texlive-lang-french and https://packages.debian.org/stable/tex/texlive-lang-european for details about the packages.


1

The label=... syntax gives a clue that enumitem is used. \boxed is from amsmath or mathtools package, but it doesn't need to be enclosed with a $...$ pair, since it's basically the same as \fbox. \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label={\fbox{\Alph*}}] \item text text text \item text text text \item ...


1

Using stacks: \documentclass{article} \usepackage{amsmath,stackengine} \stackMath \begin{document} \[ \sum_{p,q}g^{pq}A_{1\ldots \stackengine{2pt} {\scriptstyle p} {\scriptstyle\text{$a$th position}\rule[1pt]{2ex}{.5pt}\mkern-5mu\raisebox{1.1pt} {\stackon[-.1pt]{\rule{.5pt}{9.1pt}}{\uparrow}}}{U}{r}{F}{T}{S} \ldots \stackengine{2pt} {\scriptstyle ...



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