Tag Info

New answers tagged

3

\documentclass{article} \usepackage{array} \newcolumntype{C}[1]{>{\centering\arraybackslash$}p{#1}<{$}} \usepackage{graphicx}% for \rotatebox \newsavebox{\tempbox} \newlength{\tempwidth} \newlength{\tempheight} \begin{document} %calculate size of left brace and overbrace \savebox{\tempbox}{$\begin{array}{@{}C{2em}C{2em}C{2em}C{2em}@{}} 1 & ...


2

In my experience, the benefits of constructing complicated layouts often do not exceed their drawbacks. For instance, your students might completely overlook the N(d_1) and N(d_2) parts if they're stuck far to the right of the other material. Your students may be better off, I suspect, if the material is presented with a single vertical alignment axis, which ...


3

amsmath provides many environments like aligned, alignedat etc which may be handy for such cases. For details, refer to amsldoc (texdoc amsldoc from terminal) Here is a shot using aligned: \documentclass{article} \usepackage{amsmath} \begin{document} \[\begin{array}{ll} \begin{aligned}%[t] d_1 &=\frac{ ...


3

Trick cleveref into thinking that “name” is the number. \documentclass{article} \usepackage{array,booktabs,cleveref} \newcounter{typerule} %%% standard format %\crefname{typerule}{rule}{rules} %%% more complex form \crefformat{typerule}{#2rule~\textit{#1}#3} \Crefformat{typerule}{#2Rule~\textit{#1}#3} \newcommand{\typerule}[4]{% \def\thetyperule{#1}% ...


2

egreg already fixed the actual problem. However, in my humble opinion, if it is going to be ugly at least you should make it worth it. So I would propose to type it in the following format such that the reader at the very least would have the chance to realize what hit them; \documentclass{article} \usepackage{mathtools,amssymb,lipsum} ...


4

Here's my proposal. First of all, remove almost all \left and \right, keeping only a couple of them. Then use an inner aligned with bottom reference point for the two big functions, so they can be split in pieces. Some notes: the low dot is never used for denoting multiplication; either nothing or \cdot (somebody uses \times when it is at the end of a ...


2

Your idea with array is good, but needs some refinement. However, I wouldn't set the equation number above the equals sign, but on the side. I'll show both ways. \documentclass{book} \usepackage{amsmath,array} \newcolumntype{R}{>{\displaystyle}r} \newcolumntype{C}{>{\displaystyle{}}c<{{}}} \newcolumntype{L}{>{\displaystyle}l} ...


3

My answer http://tex.stackexchange.com/a/136374/15925 may be adapted to introduce a command \cmdcol for material to be centered in a column in display math in alignat and related environments: \documentclass{book} \usepackage{mathtools} \numberwithin{equation}{section} \makeatletter \newcommand{\cmdcol}[1]{\omit\hfil\strut@ \( \m@th\displaystyle #1 ...


0

No neeed to complicate your life for this sort of things \documentclass{article} \usepackage[demo]{graphicx} \begin{document} \begin{figure} (a)\includegraphics[width=2cm,height=2cm]{image1}% (b)\includegraphics[width=2cm,height=2cm]{image1} (c)\includegraphics[width=2cm,height=2cm]{image1}% (d)\includegraphics[width=2cm,height=2cm]{image1} \end{figure} ...


5

It is better to use tabular than array: \documentclass[demo]{article} %% remove demo in your file \usepackage{amsmath} \usepackage[export]{adjustbox} %% gives valing key \usepackage{graphicx} \begin{document} \begin{figure} \centering \begin{tabular}{r@{\hspace{2pt}}lr@{\hspace{2pt}}l} (a) & \includegraphics[valign=b,height=2cm]{image1.jpg} ...


3

Just a minor modification to your MWE, but better output: \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \begin{document} \begin{figure} \[ \begin{array}{rlrl} (a) & \includegraphics[height=2cm]{image1.jpg} & (b)& \includegraphics[height=2cm]{image3.jpg} \\ (c) & \includegraphics[height=2cm]{image2.jpg} & (d)& ...


1

I'll admit it is a kludge (that is to say, it is tailored for your specific problem rather than as a general approach), but I added the following to the end of the 2nd to last equation: \quad\smash{\raisebox{-10pt}{$\left.\rule{0pt}{17pt}\right\} a=b$}} \documentclass[leqno,10pt]{article} \usepackage{soul} \usepackage[margin=0.75in]{geometry} ...


6

\multicolumn works inside array too. And in the last column, , can be removed by adding the \phantom and thin space similar to the first column. \documentclass{article} \usepackage{colortbl} \usepackage{cancel} \newcommand*\nonly[1]{\cancel{\textcolor{red}{#1}}} \begin{document} \begin{equation} \left\{ \begin{array}{c @{\,,\,} c @{\,,\,} c ...



Top 50 recent answers are included