# Tag Info

14

To have LaTeX place some material below below the string "max", simply use the macro \max_{...}: If you're in displaymath mode (which you will be if you're in an environment such as equation), this will result in the argument of the \max command being placed below (rather than in a subscript position) the string "max". Separately, I would recommend that you ...

14

You probably want that it does nothing whenever it follows another vertical skip: \def\smartmedskip{\par \ifdim\lastskip>0pt \else \medskip\fi } This will be followed by a {\tt\string\medskip}. \smartmedskip This has a displayed formula $$a+b+c+d+e+f+g+h+i+j+k+l+m+n$$ \smartmedskip but the {\tt\string\smartmedskip} does nothing. This has a ...

11

this uses multline (not multiline), and changes one pair of parentheses that would have to be split between lines to \bigl( and \bigr). as harish kumar points out, this should use \sin and \cos rather than \text, but i didn't change those. also, \mathrm would be better than \text for "xg" and similar, since \text follows the surrounding text style, which ...

10

When you're typesetting a numerical quantity with units, you're supposed to use the \SI macro: \SI{3.7d10}{\becquerel} That effectively formats the first argument using \num, the second using \si, and inserts the proper spacing between them, even when typesetting an equation (i.e. when in math mode). Normally spaces are ignored in math mode, so that you ...

9

You can use baseline=(current bounding box.center) so the center ot the picture is put on the baseline of the surrounding text. \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} Q = \left\lbrace \tikz[baseline=(current bounding box.center)]{ \Tree[.E $\alpha$ [.E [.E [.E [.E E $\beta$ ] $\gamma_3$ ...

8

In the case of \max, the text below automatically. For other operators (like \int) or for inline formulas, you can use \limits. Longer text has to be in curly brackets: \max\limits_{n_j \in succ(n_i)} To get a line over your text, you can use \overline: \overline{w_i} Your formulas would be: rank_u(n_i) = \overline{w_i} + \max\limits_{n_j \in ...

8

The following pictures explain the problem, which should brought to the attention of the package maintainer. The comma in the math letters font (family 1) has a wrong bounding box With newtxmath \documentclass[12pt]{article} \usepackage{newtxmath} \begin{document} % draw a tight bounding box with hairline rules \setlength{\fboxsep}{0pt} ...

6

You can define a command \seqref that mimics what \eqref does, without using a box; we have to use refcount to allow hyphenation also in the last word. I wouldn't redefine \eqref, because hyphenation of tags should not be used generally. \documentclass[draft,11pt]{article} \usepackage{amsmath,refcount} \newtheorem{thm}{Theorem} \makeatletter ...

6

A possible solution is use of array Code \documentclass{article} \usepackage{amsmath,amsfonts,amssymb} \begin{document} \left \{ \begin{array}{lll} \bullet& \Bigl \{1,\theta,\frac{\theta^2}{k}\Bigr\}\;\;& \text{if}\;\;m^2\not\equiv 1 \pmod 9 \vspace{3mm}\\ \bullet& \Bigl \{1,\theta,\frac{k^2\pm k^2 ...

6

This is the example file from the numberedblock package. It makes the labels slightly different than equation numbering, so that one doesn't confuse them if both are used in the document. However, label placement and style can be changed. The documentation is briefly covered in the .sty file itself, as well as this example file. The parameter defaults, ...

6

I would't use center alignment for the three equations: either you align them at the equals sign or left align them because of the side conditions. I wouldn't put the conditions too far from the equations, either: the conditions are part of the equations, after all. A \quad or \qquad seems sufficient. \documentclass{article} \usepackage{amsmath} ...

6

This defines a new environment myequation with the help of environ package: \NewEnviron{myequation}{% $$\scalebox{1.5}{\BODY}$$ } Code: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{graphicx} % \scalebox \usepackage{environ} \NewEnviron{myequation}{% ...

6

I find that if things are aligned that they are easier to read, especially for the case where there is significant repetition: Notes: I defined macros for \xg, \yg and \IG with \mathrm as per @barbara beeton's suggestion. However as they are macros they are easier to change. To get proper alignment of the \cos and \sin, I define macros to do account for ...

5

I hope, this is what you want: \documentclass{article} \pagestyle{empty}% for cropping \makeatletter \let\c@equation=\c@subsection \let\theequation=\thesubsection \makeatother \begin{document} \section{A} $$1+1=2$$ \subsection{X} $$1+1=2$$ $$1+1=2$$ ...

5

You need to fix all errors before looking at the alignment, TeX's error recovery is designed to let it continue, not to make any reasonable output at the point of the error. Your expression is just too long to fit on one line in 2 column, here are a couple of possibilities: \documentclass[10pt,twocolumn]{article} \usepackage{amsmath} \begin{document} ...

5

You can use the hf-tikz package, which was built as a result of Beamer: highlighting aligned math with overlay. Here's a MWE- note that I had to use \tikzmarkin{c}(0.1,-0.4)(-0.1,0.5) to get the boundaries corrected- you might want to adjust them further as you see fit :) % arara: pdflatex % arara: pdflatex % !arara: indent: {overwrite: yes} ...

5

You can change the way the equation numbers are printed by modifying the definition of \tagform@. This one prints the text in the right margin: \makeatletter \renewcommand\tagform@[1]{\maketag@@@{(\ignorespaces#1\unskip\@@italiccorr)\rlap{ some text}}} \makeatother MWE: \documentclass{article} \usepackage{amsmath} \makeatletter ...

5

I removed all \left and \right as they seem to be un-necessary. Also, \text{Cos} and \text{Sin} looked odd to me and I changed. Further, many parenthesis and brackets may be reduced to make the equation less cluttered (this is an assignment left) \documentclass[draft]{article} \usepackage{amsmath} \begin{document} \begin{align*} &(\text{xg} ...

5

You can't have active characters in the glossary label. You'll need an extra parameter to provide a label: \documentclass{report} \usepackage{enumitem} \usepackage{glossaries} \makeglossaries \newcommand{\mathgloss}[4]{% \newglossaryentry{#1}{name={#2},description={#3},symbol={#4}}% \begin{description}[labelwidth=3em]% \item[\gls{#1}]#3 ...

5

When writing equations in inline-math mode, don't use \dfrac ("display-style fractions"). Use either \frac, e.g., \frac{1}{2}, or use the "slanted division symbol", i.e., $(1/2)$. Below are three possible solutions for the paragraph you've provided. The first solution uses \frac{1}{2}. Note that I would not place the squared norm term on the numerator of ...

5

If you're going to spread out the content with some paragraphs between them, then you could surely use a construction like the one below: \documentclass{article}% \newcommand{\labeleqn}[3][150pt]{% \makebox[0pt]{\makebox[\linewidth][l]{#2}}% Set label \makebox[0pt]{\makebox[\linewidth][l]{\hspace*{#1}$\displaystyle#3$}}}% Set equation ...

5

Another solution using alignat: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat}{2} &\text{Uniaxial Local Buckling:} &\qquad &MOS=\frac{\sigma_Y}{\sigma}-1 \label{e:failuniaxlocal}\\ &\text{Shear Local Buckling:} & &MOS=\frac{1}{2} \label{e:failshearlocal}\\ ...

4

You can remove all those \;\; by using ~ Also \Big{ can be replaced \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{cases} \bullet \left\{1,\theta,\frac{\theta^2}{k}\right\} & \text{if~} m^2\not\equiv 1 \pmod 9 ...

4

You can introduce a new counter mysub \newcounter{mysub} \setcounter{mysub}{0} \renewcommand{\themysub}{def\arabic{mysub}} and use this one instead of \theequation inside the subequations. If you also want this counter to be reset after the end of the subequations, also add the following lines \usepackage{etoolbox} ...

4


4

You don't need \left and \right; your input has several mistakes, by the way: for instance \split{equation} means nothing (and it will produce errors). Also “mean” should be treated as an operator. I don't think the parentheses () around the set are useful. With split you can choose the alignment point; here's a possibility: \documentclass{article} ...

4

Using \displaystyle or \dfrac inside in-line math equations can have this unwanted side effect. You are better with only \frac. It can also be preferable to use manually scaled delimiters instead of automatic scaling. \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{mathtools} % loads »amsmath« ...

4

Unless I'm missing something obvious, you can just use \documentclass{article} \usepackage{siunitx} \begin{document} $$\SI{1.234}{\m\per\square\s}$$ \end{document} Another possibility (but not a recommended one) is \documentclass{article} \usepackage{siunitx} \begin{document} ...

4

You can use the command \noeqref{<label>}. This ensures that the corresponding equation has a number regardless of the value of showonlyrefs. MWE: \documentclass[a4paper,12pt]{report} \usepackage{mathtools} \mathtoolsset{showonlyrefs=true} \begin{document} $$\label{eq:ab}\noeqref{eq:ab} a=b$$ % Some text follows % ...

4

I think logically they are (text) equation labels rather than part of the math alignment so the markup should be \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \tag{T} 0 &= -a \\ \tag{L} 1 &= a-3b \\ \tag{M} 0 &= b+c \end{align} \end{document} By default that puts them on the right in () rather than ...

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