# Tag Info

14

This is because Word has no descenders, while A long word and Another long word both have a descender (g). Here are some options: \documentclass{article} \usepackage{amsmath} \begin{document} $\underbrace{\text{A long word}}_{=a}$, $\underbrace{\text{Another long word}}_{=b}$, $\underbrace{\text{Word}}_{=c}$ $\underbrace{\text{A long word}}_{=a}$, ...

7

Move the \marginpar inside the argument for \section: \documentclass[openany]{book} \begin{document} \chapter{Chapter Heading} \section[Section Heading]{Section Heading\protect\marginpar{\normalfont\normalsize Associated text}} Is it working? \end{document} As an alternative, you can use \marginnote from the marginnote package instead and move the ...

6

\documentclass[openany]{book} \usepackage{marginnote} \renewcommand*\marginfont{\normalcolor\normalfont\small} \begin{document} \chapter{Chapter Heading} \section[Section Heading]{Section Heading\marginnote{Associated text}} %The optional argument of \section is used for the TOC Is it working? \end{document}

6

You can use a m{length} column type for the first column: \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage{graphicx} \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} \usepackage{array} \newcommand{\mybox}[1]{ \begin{center} \fbox{% \parbox{0.8\linewidth}{% \begin{center} ...

6

You can use valign macro from the adjustbox package in \includegraphics[valign=c,height=0.3in]{example-image-a} Code: \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage[export]{adjustbox} %% export is needed \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} \usepackage{array} \newcommand{\mybox}[1]{% ...

6

Since you're using punctuation (which I agree with), the QED symbol should share the baseline with the punctuation. Here's a trick that avoids using ntheorem (which I never use nor recommend); I also show why you shouldn't lower the tombstone. \documentclass{article} \usepackage[width=7cm]{geometry} % Only for reducing space in this MWE ...

6

You have to measure the bigger picture. \documentclass[10pt, a4paper]{amsart} \usepackage{graphicx, subfig} \usepackage{graphics} \usepackage{tikz} \usepackage[all]{xy} \usetikzlibrary{arrows,automata} \usetikzlibrary{shapes,snakes} \usetikzlibrary{positioning} \newsavebox{\bigpicture} \newcommand{\adapttobigpicture}{% \vrule height\ht\bigpicture ...

5

To answer your question, in an array or tabular environment, line spacing is done by placing a strut in every row of height and depth given by \arraystretch times the height and depth of the strut produced by an ordinary \strut commmand. Thus, you can get the desired value (under normal circumstances) with something like \newlength\mylen ...

5

You can change the \arraystretch like \def\arraystretch{0.15} Choose an appropriate value. \documentclass{article} \usepackage{graphicx} \usepackage{siunitx} \sisetup{per-mode=symbol} \begin{document} \begin{center} \setlength{\tabcolsep}{0pt} \def\arraystretch{0.15} \begin{tabular}{c} \hline \includegraphics[height=27mm]{example-image-a} ...

5

The interrow padding is because the bottom of an image is on the baseline and the tabular rows take into account the possible depth of descenders. We can remove the white space by lowering the images on the top row. A similar trick can be used to have a symmetric padding above the images. \documentclass{article} \usepackage{graphicx} ...

4

You could use three (vertically centered) side-by-side minipages: The code: \documentclass[letterpaper]{article} \usepackage[margin=0.75in]{geometry} \usepackage[colorlinks=true,urlcolor=cyan]{hyperref} \usepackage{tabularx} \def\name{John Doe} \def\email{john.doe@gmail.com} \def\phone{(123) 456-7890} \def\address{123 Main St} \def\city{Toronto} ...

4

You can set extrarowheight with the help of array package. \documentclass{article} \usepackage{siunitx} \usepackage{array} \setlength{\extrarowheight}{2pt} %% adjust suitably \begin{document} \begin{tabular}{lcccc} \hline\hline & \textbf{$d_{(O_{1}-Zn/Mg)}(\SI{}{\angstrom})$} & \textbf{$d_{(O_{2}-Zn/Mg)}(\SI{}{\angstrom})$} & ...

4

There are a few problems with your table: You shouldn't use \hline. Instead, use \...rule from the booktabs package. Putting \textbf around a math expression has no effect; if you want bold math, use \mtathbf. If you use \ce from the mhchem package when typesetting chemical elements, you get the correct output. Here, use \si{<unit>} instead of ...

4

Use t (top alignment) for the optional argument of tabularx: \documentclass[12pt]{report} \usepackage{amsmath, amssymb, amsthm} \usepackage{tikz} \usetikzlibrary{shadows} \newcommand*\squared[1]{\tikz[baseline=(char.base)]{\node[shape=rectangle, draw, inner color = white, drop shadow = {opaque, black}, inner sep=3pt, text justified] (char) {#1};}} ...

4

This is a job for \valign! Although I don't think this will help readers much. \documentclass{article} \begin{document} \valign{#\cr \vbox{\hbox{% Equivalent if $A$ $\left\{\vphantom{\begin{tabular}{c} A\\B\\C\end{tabular}}\right.$% }} \vfill\cr \hbox{\begin{tabular}{@{}c@{}} Condition (1) \\ Condition (2) \\ Condition (3) \\ ...

4

Here's a crazy idea: use a tabular. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{array,chemfig} \usepackage{lipsum}% dummy text \begin{document} \lipsum[1] \begin{figure}[htbp] \centering \begin{tabular}{c@{\qquad}c@{\qquad}c} \chemfig{ ...

3

Here's a solution that uses only arrays to align the three parts. The outermost array, which is set up to have three columns, serves to "house" the three horizontal parts. Each horizontal part consists of four rows, but some of the cells in the left-hand and right-hand parts -- which are constructed as nested arrays, each consisting of a single column -- are ...

3

The 22pt was found by trial and error. It should represent the height of the font used for the title plus 1/2 the gap. For some reason \chapter didn't like \raisebox, hence the \savebox. \documentclass{book} \usepackage{graphicx} \usepackage{mwe} \newsavebox{\tempbox} \begin{document} ...

3

Apart from reminding about the verse environment (and the package with the same name that provides some enhancements), I want to suggest using a special environment for this: the advantage is greater flexibility. In the example I show that by just modifying the definition of \poet you get a different effect without acting on all poems. ...

3

The problem is that right after \begin{remarks} TeX is in vertical mode; using \leavevmode (and a possible negative vertical spacing), for example, solves the problem: \documentclass[12pt]{report} \usepackage{amsthm} \newtheoremstyle{multiple_remarks} {1.0em} {1.0em} {\normalfont} {0pt} {\bfseries} {:} {\newline} {} ...

3

To get the right wide of the \multicolumn you have to add the right \tabcolsep from the first column and the left from the second column to the both column widths. For example: \multicolumn{2}{|>{\centering\arraybackslash}m{\dimexpr2.5cm+2\tabcolsep\relax}|}{Courant} Code: \documentclass[captions=tableabove]{scrartcl} \usepackage{array} ...

3

You need \multirow{2}{*}{content} to substitute the \multicolumn environment. Thanks to @Mico. Code \documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[htbp] \centering \caption{caption} \label{} \begin{tabular}{|c|c|c|c|c|c|} \hline \textbf{111} & \textbf{222} & \textbf{333} & \textbf{444} & \textbf{555} ...

3

\vfill instructs TeX to insert vertical space as necessary to, well, fill when appropriate. What this means depends on the context but, in this case, you are telling TeX that if it needs to, it is perfectly fine to put such space before and after the table, effectively pushing the first page of the table to the bottom and the final page to the top. If you ...

3

Here is a solution with the ntheorem package: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{heuristica} \usepackage{amsmath} \usepackage[thmmarks, amsmath, thref]{ntheorem} \usepackage{cleveref} \theoremstyle{plain} \theoremheaderfont{\bfseries} ...

3

As Enrico already mentioned, I wouldn't use a stop after the matrix. However, you can use the \tag amcro from amsmath: \documentclass{article} \usepackage[width=7cm]{geometry} % Only for reducing space in this MWE \usepackage{amsmath} % For bmatrix \usepackage{amsthm} % For proof environment \begin{document} \begin{proof} And this proof ends with ...

2

It seems to work fine for me if I delete the \raggedright command. Then I just used the same code you used for Section and it aligns just like you wanted. \titlecontents{figure} [2.25pc] {} {\hspace*{-.75pc}\makebox[0pt][r]{\thecontentslabel}\hspace*{.75pc}} {} {\hspace{.5pc}\raisebox{.3ex}{$\scriptstyle\cdot$}\hspace{.5pc}\thecontentspage} But then the ...

2

My suggestion would be to use some sectioning command rather than your font-change macro. Perhaps \newcommand{\Largebf}{\subsection*} or the like. Why doesn't \textbf{\Large ...} provide the desired spacing? That's because font switching macros doesn't take the \baselineskip into account unless a \paragraph is set (or a proper \strut is inserted). The ...

2

This is the purpose of the paracol package. The text of a leftcolumn carries over to the left column on the next page, and likewise for the rightcolumn. It still balks if you give it too much at once (like \lipsum[1-50]), and there are some issues with line-breaking, which may be solvable from within the package options. EDIT I edited the example to show ...

2

The package booktabs changes the spacing between lines and the table cells. It uses the commands \toprule and \bottomrule for thicker lines (you used a double \hline for it) and midrule inside the table. Vertical lines are problematic in booktabs and this solution somewhat changes your layout, but maybe it helps: \documentclass{article} ...

2

Here's a mildly more complicated solution: the picture, with possible options, is given as a trailing optional argument to \chapter. It would be possible to use the standard \chapter syntax and define a \chapterfigure command that needs to be placed just before \chapter. \documentclass[a4paper]{book} \usepackage{xparse,graphicx,xpatch} ...

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