# Tag Info

8

\vdots has been designed for matrices. You can use a modified version that doesn't add space at its top: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{chains} \makeatletter \DeclareRobustCommand{\rvdots}{% \vbox{ \baselineskip4\p@\lineskiplimit\z@ \kern-\p@ \hbox{.}\hbox{.}\hbox{.} }} \makeatother \begin{document} ...

7

This is fairly standard multicols behaviour when the text in the first column is short: \documentclass{article} \usepackage{multicol} \begin{document} \begin{multicols}{2} \subsubsection{title} Broken text that spreads over two lines to demonstrate behaviour. \columnbreak \subsubsection{title} foo \end{multicols} \begin{multicols}{2} ...

7

If I understand correctly, you need to add [t] alignment: \documentclass{article} \begin{document} \begin{enumerate} \item \begin{tabular}[t]{cccccccccc} %%%% note [t] here. $x[n] =$ & \{1/3 & -1/2 & 1/4 & -1/8 & 1/6\} & and\\ & & & $\uparrow$ & & & \\ \end{tabular} ...

6

You can create a new column on the fly with the duplicate values replaced by quotes as follows: \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{pgfplotstable} \pgfplotsset{width=10cm,compat=1.6} \usepackage{filecontents} \usepackage[T1]{fontenc} \begin{filecontents}{testdataExisting.dat} id val 1 5634 2 78945 3 78945 ...

6

Without sub- and superscripts: \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|c|c|lr|lr|} \hline &\multicolumn{5}{c|}{Adversary}\\ \hline \multirow{5}{*}{Defender} && \multicolumn{2}{c|}{Terminal 1}& \multicolumn{2}{c|}{Terminal 2}\\ \cline{2-6} &\multirow{2}{*}{Terminal 1}& & -3 && ...

6

\documentclass[11pt]{article} \usepackage{array} \begin{document} \begin{tabular}{|p{1cm}|>{\vspace{.5cm}}p{1cm}<{\vspace{.5cm}}|} \hline 1-1 & 1-2\\ \hline 2-1 & 2-2\\ \hline \end{tabular} \end{document} In your original your paragraph entries are only single line so it is hard to spot the difference ...

5

You need first of all to make the \underbrace a math relation, for spacing; but you also have to extend the space reserved to it, because an underbrace has a minimum width: \documentclass{report} \usepackage{amsmath} % Mathe \usepackage{mathtools} % Mathe \usepackage{amsfonts} % Mathesymbole \usepackage{calc} \newcommand{\ueq}[1][]{% ...

5

One possibility using TikZ; \drawhline draws a horizontal rule and \drawvline, a vertical rule; each command has two optional arguments: the first one allows you to pass options controlling the lines aspect; the second one allows you to specify a vertical shifting for the horizontal line, and a horizontal shifting for the vertical line: ...

5

\documentclass{article} \usepackage{array,multirow} \newcommand\zz[2]{$% {}_{\ifnum#1<0 \else\hphantom{-}\fi#1}% \qquad {}^{\ifnum#2<0 \else\hphantom{-}\fi#2}%$} \begin{document} \setlength\extrarowheight{3pt} \begin{tabular}{|c|c|c|c|} \hline &\multicolumn{3}{c|}{Adversary}\\ \hline \multirow{3}{*}{Defender}&&Terminal 1&Terminal ...

5

The paragraph box congaing the cells is vertically centred (using \vcenter) But that isn't the same thing as centring the digits in the actual content, note that a line box is the same height whether the content is ( or 1 or . You can add \setlength\extrarowheight{2pt} before the table to get a better appearance.

5

The following is a suggestion for a slightly easier notation that is more flexible. Moreover, it provides a consistent and accurate spacing around the math operators you use: \documentclass{article} \usepackage{amsmath,xparse}% http://ctan.org/pkg/{amsmath,xparse} \NewDocumentCommand\printarray{O{~~} >{\SplitList{,}}m} {% ...

5

Combine anchor=base and the baseline option (no need to name the node). Code \documentclass{article} \usepackage{tikz,bm} \tikzset{square/.style={ minimum width=0.5cm, minimum height=0.3cm, shape=rectangle, rounded corners=1pt, draw, text=blue, font=\boldmath, anchor=base}} \newcommand*{\square}[2][]{\tikz[baseline]{\node[square,#1] ...

4

Yes. See the code below. You can use the geometry package and its headsep key with an appropriate value: The code (I only used a5paper for the example): \documentclass{article} \usepackage[a5paper,headsep=3mm]{geometry} \usepackage{lastpage} \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \setlength{\headheight}{96pt} ...

4

Each entry in the table of contents is set as separate paragraph. Therefore the distance between entries can be set via \parskip. \documentclass{article} \begin{document} \begingroup \flushbottom \setlength{\parskip}{0pt plus 1fil}% \tableofcontents \newpage \endgroup \section{Section A} \subsection{Subsection B} \subsection{Subsection C} ...

4

This takes two runs of latex to measure things \documentclass{article} \usepackage{tabularx} \makeatletter \def\savepos#1{\leavevmode\pdfsavepos\write\@auxout{% \gdef\noexpand#1{\the\pdflastypos sp }}} \def\xstart#1{\expandafter\savepos\csname save@start@#1\endcsname} \def\xend#1{\expandafter\savepos\csname save@end@#1\endcsname} \def\xpad#1#2#3{% ...

4

For aligning the marginpar to "Part I", do like this: \documentclass{article} \usepackage[showframe]{geometry} \usepackage{lipsum} \let\origpartname\partname \newcommand{\partmargin}[2]{% % #1 = part title % #2 = margin par \expandafter\def\expandafter\partname\expandafter{\partname \marginpar{#2}}% \part{#1} \let\partname\origpartname } ...

4

\documentclass{article} \usepackage[a4paper]{geometry} \usepackage{tabularx} \usepackage{lipsum} \begin{document} \noindent \begin{tabularx}{\textwidth}{ | X | c | } \hline \lipsum[1] & top\\ \hline \noindent\parbox[c]{\hsize}{\lipsum[1]} & center\\ \hline \noindent\parbox[b]{\hsize}{\lipsum[1]} & bottom\\ \hline \end{tabularx} ...

4

You can use t for the optional argument of aligned to get top alignment; I also changed the first column to be of type p{...}: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs,array} \newcommand*{\sheaf}[1]{\mathcal{#1}} \begin{document} \noindent\begin{tabular}{@{}>{\raggedright}p{10.5em} l l l l@{}} \toprule Rational curve: \\[t,s] ... 4 You have to break the page immediately after the environment, otherwise \vspace*{\fill} won't do what you're expecting. \documentclass{article} \usepackage{lipsum} \newenvironment{myenvironment} {\par\vspace*{\fill} % better ensuring we are between paragraphs \noindent\begin{minipage}{\textwidth} % \noindent \begin{center} OUTLINE OF THIS CHAPTER ... 4 I also would like to suggest you another approach, using a matrix environment instead of a tabular; it's more natural, gives you the desired vertical alignment automatically, and saves you the column format specification: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{enumerate} \item x[n] = \{\begin{matrix} 1/3 & -1/2 & ...

3

You can use the marginblocks mechanism. Margin blocks are margin floats which stack the content from the top downwards. You can use the top key to provide a fixed offset for the first margin block. Here's an example: \setupmarginblocks [width=2cm, top={\blank[8*line]}] \starttext \input knuth \startmarginblock Text in paragraph. ...

3

Floats appearing in the same page at the top or at the bottom are separated by \floatsep space. The default for the article class is 12pt plus 2pt minus 2pt Just say, in your document preamble, \setlength{\floatsep}{24pt plus 4pt minus 4pt} (or the value you find most suitable).

3

While I can't tell what's going on, I can offer a workaround based on the fact that things work as expected with parskip=full: Reduce the stretchability included in the definition of parskip=half (plus 0.5\baselineskip) to that of parskip=full (plus 0.1\baselineskip). \documentclass[parskip=half]{scrreprt} \makeatletter ...

3

The vertical adjustment of the row "c" is related to the definition of the columntype X which uses the specifier p. You need m for a centered adjustment and b for bottom. This can be achieved by \multicolumn, whereby the line width must be saved (I don't know a good solution). Here is an example: \documentclass{article} \usepackage[a4paper]{geometry} ...

3

You can change the .7 multiplier of \baselineskip for fine-tuned adjustments. Note, the \rule at the beginning of \ffig is an artificial way to ensure that a new paragraph is started. If \marginpar is otherwise called at the very beginning of a paragraph, it actually attaches itself to the last line of the prior paragraph. Since you had several instances ...

3

Have you tried this? BTW I would write my sister first, then the brother. \documentclass[a4paper, % Seitenformat 12pt, % bibliography=totoc, % Literaturverzeichnis in das Inhaltsverzeichnis index=totoc, % Index in das Inhaltsverzeichnis abstracton, % mit Abstrakt ...

3

Replace \begin{tabularx}{\textwidth}{|X|} \hline \parbox[b][1cm]{2cm}{Signature} \parbox[b][1cm]{25mm}{\includegraphics[width=25mm]{signature.jpg}} \\ \hline \end{tabularx} by \fbox{Signature\hspace{1cm}% \raisebox{-2pt}{\includegraphics[width=25mm]{signature.jpg}}} and adjust the raisebox argument to taste,

3

This is because LaTeX is formatting your document so that when the pages are printed double-sided, it can be bound as a book. The default is to have different margins on the inner edge (next to the spine) and the outer edge. Try adding \usepackage[hmarginratio=1:1]{geometry} to your preamble. The geometry package is the preferred way to fiddle with page ...

3

The idea of the following example is to insert \vspace{\fill} \pagebreak[0] \vspace{-\fill} at the end of a section. If there is a page break at \pagebreak[0], then \vspace{\fill} fills the page with white space before the page break. The following \vspace{-\fill} is discarded at the top of the new page. Otherwise, without a page break, \vspace{-\fill} ...

3

You could make a table for this. If you use the column specification {r@{\hspace{10mm}}l}, then the first column will be right-aligned (r), the second column will be left-aligned (l), and between them there will be a 10mm gap. As set_kwr has suggested, you could use the tabbing environment. One advantage of the tabular environment is that it calculates the ...

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