Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

# Tag Info

5

I suggest to use the ambient cases to write your "equation". Here you have a screenshot of my MWE. \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \[n+m\stackrel{\text{def}}{=} \begin{cases} \underbrace{\sigma(\sigma(\ldots\sigma}_{m\text{ volte}}(n))) & \text{se $m>0$}\\ n & \text{se $m=0$}.\...

0

Your code didn't worked so I couldn't try. But this code should work: \documentclass{standalone} \usepackage{amsmath} \begin{document} \$n + m \overset{\text{def}}{=} \left\{\begin{array}{l} \underbrace{\sigma(\sigma(\ldots\sigma}_\text{m \text{volte}}(n))) \hspace{5mm} \text{se } m > 0\\ n \hspace{24mm} \text{se } m = 0 \end{array} \...

1

To move the units into the new line, you can use \\{} instead of the usual \\: \documentclass{article} \usepackage[abbreviations=true,per-mode=symbol]{siunitx} \usepackage{booktabs} \usepackage{makecell} \usepackage{caption} \begin{document} \begin{table} \caption{Specific Acid Added to Samples} \label{Acid_Added} \centering \begin{tabular}{c S[table-...

2

You shouldn't use an escape character to highlight individual parts of the code, because special characters need to be escaped by hand and the alignment of text will not correspond to the one of the rest of the listing (see also Aligning escaped text in listings). Instead you could define a new delimited environment by moredelim=[is][\color{gray}]{\%}{\%} ...

2

Since you're escaping to LaTeX, you need to escape { and } (as in \{ and \}) in order to print them explicitly. \documentclass{article} \usepackage{listings,xcolor} \lstdefinestyle{mystyle} {escapechar=\%} \lstset{style=mystyle} \begin{document} \begin{lstlisting} public static int foo(String s1) { %\color{black!50}\{ int M = s1.length();\}% ... /...

3

Here's a subcaption-based solution, which works with both \autoref and \cref (provided by the cleveref package). \documentclass{article} \usepackage[demo]{graphicx} % remove 'demo' option in real document \usepackage[utf8]{inputenc} \usepackage{subcaption} \renewcommand\thesubfigure{(\alph{subfigure})} \captionsetup[subfigure]{labelformat=simple} \...

0

Apparently the problem was that the mathematical arrangements of cases and the symbols <, > came into conflict with \usepackage{fouriernc} Removing the package the problem is solved.

0

Use the code below. Add \qquad or similar spacing if you'd like to adjust the lines centering. See photo how the code below looks like. \left(\begin{array}{c} \frac{dS_{d}}{dt}=A+\lambda_{d}R_{d}+\sigma_{d}(1-\gamma_{d})E_{d}-\beta_{d}S_{d}I_{d}-(m_{d}+k_{d}+c_{d})S_{d}\\ \qquad\frac{dE_{d}}{dt}=\beta_{d}S_{d}I_{d}-(m_{d}+\sigma_{d}+c_{d})...

0

IMHO, such displays are to be avoided whenever possible. Indeed, they are likely to create huge white space if a page break is needed. I would write \documentclass[12pt]{article} \usepackage{amsmath} \allowdisplaybreaks \begin{document} \vspace*{13cm} \begin{subequations}\label{eq;globalname} \begin{align} \frac{dS_d}{dt} & = A + \lambda_dR_d + \...

2

Building on LaTeXer's answer, there is also the dcases environment provided by the mathtools package(which extends amsmath). Its advantage is that all equations are in display mode by default. \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} \begin{dcases} \frac{dS_d}{dt} = A + \lambda_dR_d + \sigma_d(1-\gamma_d)E_d -\...

6

Another variant, also based on empheq (which loads mathtools), but with a less tight rows spacing with the spreadlines environment. B.t.w., don't end your multilined environments with a \\; if the environment is numbered, it adds a number for an empty row, and an unwanted vertical spacing. \documentclass{article} \usepackage{empheq} \begin{document} \...

16

Add \left( and \right., but using equation and aligned: \documentclass{article} \usepackage{amsmath} \begin{document} \left( \begin{aligned} \frac{dS_d}{dt}&= A + \lambda_dR_d + \sigma_d(1-\gamma_d)E_d -\beta_dS_dI_d- (m_d+k_d+c_d)S_d \\[0.5ex] \frac{dE_d}{dt}&= \beta_dS_dI_d -(m_d+\sigma_d+c_d)E_d \\[0.5ex] \frac{dI_d}{dt}&= \...

6

Use the empheq package, you can meet your expectation: \documentclass{article} \usepackage{empheq} \begin{document} \begin{empheq}[left=\empheqbiglparen]{align} \frac{dS_d}{dt}&= A + \lambda_dR_d + \sigma_d(1-\gamma_d)E_d -\beta_dS_dI_d- (m_d+k_d+c_d)S_d \nonumber \\ \frac{dE_d}{dt}&= \beta_dS_dI_d -(m_d+\sigma_d+c_d)E_d \nonumber \\ \frac{dI_d}{dt}...

2

You can use the cases environment. You also don't need to add \nonumber to every line, you just need to wrap the equations in some environment that produces a single entity (see here: https://tex.stackexchange.com/a/17529/134574). Output: Code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \begin{cases} \frac{dS_d}{dt} &...

2

As it turns out what you get in the MWE are square brackets, but avant's square brackets are a bit round at the ends. You can, however, still see a small difference between round brackets and square brackets – at least when you see them side by side. Here is a solution to let biblatex use the square brackets from Latin Modern Sans. Note that this only ...

-1

I would recommend to use \usepackage[style=numeric,backend=bibtex8]{biblatex} if there's no specific need for biber. Most of the time, bibtex8 works fine for me and when it doesn't, I quickly find a solution.

Top 50 recent answers are included