Tag Info

Hot answers tagged

4

I'd avoid unbalanced conditions, readers knows that they should look for the variable and the mixed right-left alignment is awkward. There is an easy possibility for aligning the variables, that is, using interval notation: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation}\label{piecewise} \frac{M_{xB} (z)}{M_s} \sim ...


3

A variant, with the cases and alignedat environments: \documentclass{article} \usepackag{mathtools} \begin{document} \begin{equation} \dfrac{M_{xB} (z)}{M_s} \sim\begin{cases} \begin{alignedat}{2} & 0, & z & {}< -b_{xB} \\ & 1+\frac{z}{b_{xB}}, &\quad -b_{xB} & <z<0 \\[0.5ex] & 1-\frac{z}{b_{xB}}, ...


3

A slightly alternate suggestion, based on the conditions of z: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \frac{M_{xB} (z)}{M_s} \sim \left\{ \begin{array}{ll} 0, & z<-b_{xB} \\ 1+\frac{z}{b_{xB}}, & -b_{xB}<z<0 \\ 1-\frac{z}{b_{xB}}, & 0<z<b_{xB} \\ ...


3

To accommodate for any minute shifts, use separate (centred) columns: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{center} \begin{tabular}{l *{10}{@{\quad}c}} Group ID: & $1 \quad 2$ & $3$ & $4 \quad 5$ & $6$ & $7 \quad 8$ & $9$ & $10 \quad 11$ & $12$ & $13 \quad 14$ & $15$ \\ Group ...


2

another way of looking at this: in the second row, there is a repeating pattern. take advantage of it. \documentclass{article} \usepackage{amsmath} \newcommand{\myubrace}[2]{% \rlap{$\underbrace{#1 \quad #1}_{#2}$}\phantom{#1\quad#1} \quad #1 \quad} \begin{document} \begin{center} \begin{tabular}{lp{.8\linewidth}} Group ID: & $1 \quad 2 ...


2

You can dispense with the minipages; it's enough to use a tabular with b (botoom) alignment in which the central column is of paragraph type p{<length>} (thus allowing text wrapping) and not to leave blank lines between the tabular and the legend: The code: \documentclass{beamer} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} ...


2

Here are two solutions, using mathtools, and makebox for one of them. For the second one , with eqparbox , more automated. I define a \varpabs command which uses a tag: all \varpabs which share the same tag will have the same width – that of the widest argument: \documentclass{article} \usepackage{mathtools} \usepackage{etoolbox} \usepackage{makebox, ...


2

You can even have wider margins fiddling with the font size and the value of tabcolsep. I took the opportunity to simplify your code and improve the appearance of the table with siunitx and makecell: \documentclass[landscape, 12pt]{report} \usepackage[showframe, nomarginpar, top=0.8in, bottom=1.25in, left=1in, right=1in]{geometry} \usepackage{siunitx} ...


2

With help of `makecell˙package is really simple: Code: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{multirow,booktabs,makecell} \renewcommand\theadfont{\normalfont} \begin{document} \begin{table} \begin{tabular}{lrrrr} \toprule \multirow{2}[3]{*}{Method} & \multicolumn{2}{c}{group} ...


1

\multicolumnn can also be used for a single column to overwrite the column specification. The first argument of \cmidrule specifies some trimming. The example uses (lr). Then you will see, the line is also shorter at the right side. Example: \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \begin{document} \begin{table} ...


1

Here's a solution that uses a single dcases environment (provided by the mathtools package) along with a couple of \phantom statements. If you prefer having the fractional terms to the right of the large curly brace typeset using smaller symbols, switch from dcases to cases. \documentclass{article} \usepackage{mathtools} \newlength\mylen ...


1

memoir accommodates the use of the caption package. Then you can split out your regular \caption and some referencing scheme (say) \figuresource using \caption*: \documentclass{memoir} \usepackage{graphicx,caption} \newcommand{\figuresource}[1]{% \par\vspace*{-\abovecaptionskip} \caption*{\footnotesize\itshape #1}} \captionsetup{ ...


1

Use an outer array for ensuring constant spacing and inner arrays for the groups: \documentclass{article} \usepackage{amsmath} \newcommand{\dbl}[5]{% \underbrace{\begin{array}[b]{@{}cc@{}} #1 & #2 \\ #3 & #4 \end{array}}_{#5}% } \newcommand{\sgl}[2]{% \begin{array}[b]{@{}c@{}} #1 \\ #2 \end{array}% } \newcommand{\hdr}[3]{% ...


1

Slightly simplified @Werner's code: \documentclass{article} \usepackage{amsmath} \usepackage{array} \begin{document} \begin{center} \begin{tabular}{l *{10}{@{\quad}>{$}c<{$}}} Group ID: & 1 \quad 2 & 3 & 4 \quad 5 & 6 & 7 \quad 8 & 9 & 10 \quad 11 & $12$ & 13 \quad 14 & 15 \\ Group size: & ...



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