# Tag Info

10

Updated version After the edit with the question, I propose a different approach here not using a list to place the labels but reducing the width for the tcolorbox and using an optional argument (it could easily be turned into mandatory) and the overlay key to place the label at a fixed vertical position; since the label is placed inside a node of fixed ...

9

If you want to play with \multirow, you can use the second optional argument, which is the "fixup", a length for fine tuning the position. In your case it should be -2\baselineskip MWE: \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \usepackage{multirow} \begin{document} \noindent \begin{tabularx}{\linewidth}[t]{l X p{1.3cm}} ...

8

You can use the baseline option to your tikzpictures. (Use $\ast$ instead of plain *, to adjust the baseline) \documentclass{article} \pagestyle{empty}% for cropping \usepackage{tikz} \begin{document} \begin{tabular}{ccccc} \begin{tikzpicture}[baseline={(0,1.4-1.4/2)}] \draw[step=0.2cm,gray,very thin] (0,0) grid (0.2,1.6); \end{tikzpicture} ...

7

You have to use the p specifier intead of m when declaring your new column types: \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} Then there is no ...

6

You can use m column specifier for the last cell in last row. \documentclass{article} \usepackage{array} %% you need this \begin{document} \begin{table}[!htbp] \centering \caption{Spanish Traffic Sign according to the color and shape \cite{Paper12}} \begin{tabular}{|>{\raggedright}p{3.1cm}|>{\raggedright}p{3.1cm}|> ...

6

You can put your material in a \parbox and use the [b] option to make the alignment point be the baseline of the last line. Of course you should make sure there is enough room for the footer. \documentclass[a4paper]{article} \usepackage[includefoot,margin=0.8cm,showframe]{geometry} \usepackage{lipsum,fancyhdr} \pagestyle{fancy} \fancyhf{} ...

5

You can always use an appropriate shift for one of the nodes: \documentclass{article} \usepackage{tikz} \usepackage{tqft} \begin{document} \begin{tikzpicture}[ tqft/flow= south, anchor=south, every tqft/.style={draw} ] \matrix { \node[tqft/cup,yshift=-35pt] {}; & \node[tqft/cap] {};\\ \node {Cup}; & \node {Cap};\\ }; \end{tikzpicture} ...

5

Depending on the type of content associated with XXX, the following is an easy way of obtain the bottom-alignment that doesn't require knowledge of the preceding column entries: \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \noindent \begin{tabularx}{\linewidth}[t]{l X p{1.3cm}} & Header & Title ...

5

\pagegoal, \pagetotal \pagegoal is a internal register that contains the height that needs filling, \pagestotal is the amount that is already filled. Example: \documentclass[a4paper]{report} \usepackage[margin=1in,showframe]{geometry} \usepackage{lipsum} % Put a line in the middle of text height for testing \usepackage{atbegshi,picture} \AtBeginShipout{% ...

4

\vspace inside a table cell is added after the current row. Use the optional argument of \\ for additional space between rows: \documentclass{article} \begin{document} \begin{tabular}{r|p{9cm}} Feb, 2014 -- & Master Thesis Student \\ Present & \emph{INEB, Porto}\\ & \footnotesize Exploring degradable Gatg Dendrimers as Nucleic Acid Vectors ...

4

(Edited answer, using different mechanism) \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \makeatletter \def\foo#1{\leavevmode \expandafter\ifx\csname PDFSAVE#1\endcsname\relax \expandafter\gdef\csname PDFSAVE#1\endcsname{0sp}% \fi \pdfsavepos\write\@auxout{\gdef\string\PDFSAVE#1{\the\pdflastypos}}} \makeatother \begin{document} ...

4

It sounds like you might like the adjustbox package, which can be used as follows \item \begin{adjustbox}{valign=t}\begin{tabularx}{3in}{YY} Here's a complete MWE: % arara: pdflatex \documentclass[letterpaper,twoside,openright]{memoir} \usepackage[bmargin=1in]{geometry} \setlength{\parindent}{0pt} \usepackage{enumitem} ...

4

Use \begin{tabularx}{\linewidth}[b]{YY} to set the tabularx to be aligned to the bottom. Using \linewidth makes it fit within the column width, even with \item:

4

One way is to set the baseline key of the environment \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tabular}{ccccc} \begin{tikzpicture}[baseline=(current bounding box.center)] \draw[step=0.2cm,gray,very thin] (0,0) grid (0.2,1.6); \end{tikzpicture} & = & \begin{tikzpicture}[baseline=(current bounding box.center)] ...

4

The culprit of this behavior is the tocloft package. Adding the option titles when loading it: \usepackage[titles]{tocloft} causes the titles of the custom lists to be typeset using the default LaTeX methods, and so your problem is resolved. MWE (note that there's no need to load caption since it is loaded by chemstyle): \documentclass[oneside, 12pt, ...

3

3

Remove the leading & on both lines. \documentclass[fleqn]{scrartcl} \usepackage{amsmath} \begin{document} \begin{align*} \frac{1}{2} & = 0.5 \\ & = 0.25 + 0.25 \end{align*} \end{document}

3

Like this? Code: \documentclass{article} \usepackage{array} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} \newcolumntype{L}[1]{>{\raggedright\arraybackslash}m{#1}} \newcolumntype{N}{@{}m{0pt}@{}} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{|C{3cm}|L{4cm}|C{3.5cm}|N} \hline \textbf{\textit{fine/coarse}} & ...

3

This works. Just remember to leave a blank line before a \subsection when it doesn't start the section, e.g. \section{name} text \subsection{name} and the opposite when it is the first thing in the section, e.g. \section{name} \subsection{name} MWE: \documentclass[a4paper]{article} \usepackage{titlesec} \usepackage{lipsum} \newcounter{mycounter} ...

3

I want suggest another possibility. It still needs some work but let me know if it's interesting. \tcolorboxes have upper and lower parts which can be placed side by side. Therefore instead of trying to align some external text with a tcolorbox text, place both inside. External text will be upper text and interior one will be lower text and left hand rule ...

3

Here is a tikz way. \documentclass{article} \usepackage{tikz-qtree} \begin{document} \begin{center} \begin{tikzpicture}[baseline=(current bounding box.center)] %%% this added \Tree [.9 [.7 ] \edge[draw=none]; \node[draw=none]{}; ] \end{tikzpicture}, \begin{tikzpicture}[baseline] %%% this added \Tree [.5 ] \end{tikzpicture} ...

3

the documentation for the 'amsmath' package says that there should be no blank lines between consecutive displays. instead, "subsidiary" environments should be used within another more inclusive environment. for example: text \begin{gather*} \begin{aligned} a &= b + c\\ &= d + e \end{aligned}\\ \begin{aligned} fgh &= ijk + lmn\\ ...

2

I am assuming you are referring to the \ChapFrame command as given in this answer to Chapter Title in rotated vertical box at the margin. In that case, the answer is yes, you can conditionally activate/deactivate the frames. A little example: \documentclass{book} \usepackage{background} \usetikzlibrary{calc} \usepackage{ifthen} \usepackage{lipsum} ...

2

You can use the \newgeometry and \restoregeometry commands from the geometry package with a code like this one: \newgeometry{centering,margin=1.5cm} \thispagestyle{empty} \mbox{}\vfill \begin{center} \Huge\bfseries My Lovely Title \end{center} \vfill \mbox{} \restoregeometry These commands start a new page:

2

All credits goes to David Carlisle and Torbjørn T. \documentclass{article} \usepackage{tikz} \makeatletter \protected\def\vvv#1{\leavevmode\bgroup\vbox\bgroup\xvvv#1\relax} \def\xvvv{\afterassignment\xxvvv\let\tmp= } \def\xxvvv{% \ifx\tmp\@sptoken\egroup\ \vbox\bgroup\let\next\xvvv \else\ifx\tmp\relax\egroup\egroup\let\next\relax \else ...

2

Set a box as high as half the text height; some little adjustments must be added: \documentclass{article} \usepackage[pass,showframe]{geometry} \usepackage{lipsum} \begin{document} \vspace*{-\topskip}\vspace{-\baselineskip}% some backing up \noindent \begin{minipage}[t][.5\textheight][s]{\textwidth} \centering \vspace*{\fill} {\Large Title\\} \vspace{4ex} ...

2

One way is to place each diagram in \vcenter: \documentclass{article} \usepackage{tikz,tikz-qtree} \tikzset{blank/.style={white},every tree node/.style={draw,circle}} \begin{document} \begin{center} \( \vcenter{\hbox{\begin{tikzpicture} \Tree [.9 [.7 ] \edge[blank]; \node[blank]{}; ] \end{tikzpicture}}}, \vcenter{\hbox{\begin{tikzpicture} ...

2

If you are willing to manually do the linebreaks within a row yourself, you can use a \Centerstack, as shown here. In that case though, the p columns are not really needed, unless you want them for their width. You can dispense with them by deleting that declaration and uncommenting the 3 other lines in my code. \documentclass{article} \usepackage{array} ...

2

This isn't automated, but you didn't say it had to be (8^b) What I did was define length \tmplength equal to the line-skip length inside the table (11pt), and used \raisebox{-n\tmplength}{number} to place "number" n-multiples of 11pt below the top line. The manual part of this solution is that you have to count lines of reference "text", to know how many ...

1

A solution without defining newcolumn types nor computing the column widths. Simply use themakecell, caption and multirowpackages, plus hhlineto improve the appearance of double lines. The table can fit into your margins in two way: reduce tabcolsep to 4pt and either use a smaller font size for the document (I give an example in 11pt) or reduce the font ...

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