Tag Info

9

For one-off spacing changes, \smallskip, \medskip, and \bigskip are defined for this task. \documentclass{article} \newcommand\TestSkip[1]{% \begin{minipage}[t]{0.2\linewidth} \raggedright This is some dummy text. #1 This is some dummy text. \end{minipage}} \begin{document} \TestSkip{} \TestSkip{\smallskip} \TestSkip{\medskip} ...

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

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 ...

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} ...

5

\documentclass{article} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \omega_{1}^2&=1-2\sqrt[3]{19}+\sqrt[3]{19^2}\\ \omega_{1}^{2}&=b\omega_{1}+a\omega_{2}+r\\ a=3, & \qquad b=-3, \qquad r=-3 \\ ...

4

You have too many useless \left and \right. You also should be using split instead of eqnarray*. The fractions can be managed with \tfrac that makes them smaller. \documentclass[11pt,a4paper,oneside]{report} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} ...

4

You need to make (at least) the following changes: If you want the minipages to be placed one below the other rather than side-by-side, remove the \hfill instruction and simply leave a blank line If you want the captions to occupy the full width of the textblock, don't restrict the minipage widths to 0.48\linewidth. Instead, set their widths to ...

4

Draw the node separately again. \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \coordinate (dm1) at (0,3); \coordinate (dm2) at (0,-3); \node[rectangle,draw,minimum width=2cm] [fit = (dm1) (dm2)] (bx4) {}; \node[align=center,font=\large,rotate=90] at (bx4.center) {Storage Advisor}; \end{tikzpicture} ...

4

You can use $\vcenter{...}$: \documentclass{article} \usepackage{graphicx} \usepackage{longtable,amsmath,tabularx} \begin{document} \begin{longtable}{m{0.2\linewidth} m{0.7\linewidth}} \hline $\vcenter{\includegraphics[keepaspectratio,width=\linewidth]{example-image-a.jpg}}$ & \!\begin{aligned} A &= b\cdot{}h\\ P &= 2(b+h)\\ ... 4 You can use adjustbox package with export option so that the keys are available inside the \includegraphics command. \usepackage[export]{adjustbox} and then use valign=c \includegraphics[keepaspectratio,width=\linewidth,valign=c]{example-image-a.jpg} Code: \documentclass{article} \usepackage{graphicx} \usepackage{longtable,amsmath,tabularx} ... 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 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 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 ... 3 Just to close this off You have to give the position specifiers to the table environment. It is preferrable to give [htb] instead of [!t] so that latex has some room to improve the appearence. \documentclass{article} \usepackage{array,kantlipsum} \begin{document} \kant[1-4] \begin{table}[htb] %%<<--- give it here \centering \caption{Vertical ... 3 You can use split for getting equation numbers and \\[2ex] for the additional space \documentclass[11pt,a4paper,oneside]{report} \usepackage{graphicx} %% no need of pdftex \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} \usepackage{amsfonts,amssymb,amsthm} %% no need of amsmath, already loaded by mathtools \usepackage[a4paper, ... 2 The code could be written as shown below \documentclass{article} \usepackage[pdftex]{graphicx} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \omega_{1}^2&=1-2\sqrt[3]{19}+\sqrt[3]{19^2}\\ ... 2 You need to put the vspace before the hspace and leave a blank line before the vspace, so it is working in vertical mode. 2 what is happening here is that you've had the bad luck to run into the situation where two lines of the "next" paragraph (the one that starts on page 2) won't fit at the bottom of page 1, so the page is broken after the first paragraph of section 2, and the pre-section-head stretch (quite a large stretch) takes over. if you really want to modify the space ... 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

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

There are two factors that influence your problem. The default behavior of geometry is to divide the available vertical space for the top and bottom margins in a ratio 2:3. Another slight source for space is the usage of the center environment. Just use \centering that doesn't add vertical space. You can look at how geometry sets the page elements by adding ...

2

Option-1: You can add the space after each \\ like \\[2mm] at every row end. \documentclass{article} \usepackage{array} %% habitual addition \begin{document} \begin{tabular}{ l | c c c } \textbf{Programming Languages} & Java & C & Python \\[2mm] %%<-- note [2mm] here \textbf{Web Development} & Javascript & jQuery & ...

2

You are abusing \multirow anyway, hence do it once more ;-). \documentclass[a4paper,fontsize=12pt,a4paper,DIV=10,BCOR=10mm,twoside,titlepage=false,openany,pagesize]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{blindtext} \setkomafont{disposition}{\normalfont\bfseries} \usepackage{graphicx} ...

1

The m{} tabular alignment from the array package (which you already load) was made for this. Change your table spec to: \begin{longtable}[c]{>{\centering\arraybackslash}m{0.1\textwidth}>{\centering\arraybackslash}m{0.2\textwidth}>{\centering\arraybackslash}m{0.4\textwidth}} Then you can remove all of your \multirow kludges: ...

1

Some suggestions: You could use \parbox macros to typeset the shorter pieces in each of the two groups of statements. The widths of the parboxes would be those of the corresponding longer pieces. Use two separate, nested equation and split environments instead of one large align environment. This will give you the equation number placement and numbering ...

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