Tag Info

3

The following suggestions only work if you center both pictures. You can use the option trim axis left (or maybe trim axis right) for both tikzpictures: \begin{tikzpicture}[trim axis left] Code: \documentclass{scrartcl} \usepackage{pgfplots} \pgfplotsset{width=8cm,height=6cm} \begin{document} \begin{center} \begin{tikzpicture}[trim axis left] ...

2

Here's a solution that uses a TikZ picture instead of a tabular environment: \documentclass[border=4pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \makeatletter \def\aerow{0} \def\aehu{0.45cm*}%% horizontal unit for placement of circled nodes \newcommand\ae@parse@current@skill[2]{%% \xdef\aerow{\number\numexpr\aerow+1}%% ...

3

You have to use [t] for setting the vertical alignment; however, your tabular will be too wide. \documentclass[draft]{scrbook} \usepackage[pass,showframe]{geometry} % just to show the margins \usepackage{tabularx,calc} \usepackage[ruled,longend,german,algochapter]{algorithm2e} \usepackage{lipsum} \newenvironment{algotabularx} ...

4

\documentclass{scrbook} \usepackage{tabularx} \usepackage[ruled,longend,german,algochapter]{algorithm2e} \usepackage{lipsum} \begin{document} \begin{algorithm}[tbp] \SetKwInOut{Input}{Input} \SetKwInOut{Output}{Output} \LinesNumbered \caption[Description]{Description} ...

1

The command \smash does work, as long as it is within math mode, How would it operate in the formula, which in turn is within an itemize list, without overwriting the lines above it, unless it's within such environment. So, the comment above, by Menke, is partially correct, and I said partially, because its implementation to resolve the problem in your ...

3

Would this be close to wha you seek? This solution proposes keep your code with minor changes shown by % here and add a raisebox scheme to lower the text \raisebox{-1.5ex}[0ex][0ex]{\tiny\uppercase{#1}\hspace{-14ex}} Code %!TEX program = xelatex \documentclass[border=10pt]{standalone}%[a4paper]{article} \RequirePackage{pgffor} ...

3

I'd do something like this (also you had a lot of % where they were not needed \else% and a lot of % missing where they were needed (everywhere else:-) \documentclass[a4paper]{article} \RequirePackage{wasysym} \RequirePackage{graphicx} \newcommand{\dotrating}{% \ifnum\count0<\count2 % \newmoon \else \fullmoon ...

1


4

\documentclass{article} \usepackage[labelfont=bf]{caption} \usepackage[demo]{graphicx} \begin{document} \begin{minipage}[b]{.4\linewidth} \centering \includegraphics[width=140pt]{test} \captionof{figure}{First image with very very very very very very very very long caption} \end{minipage} \hfill \begin{minipage}[b]{.5\linewidth} \centering ...

3

Adding a \leavevmode helps here: \documentclass{article} \usepackage{xcolor} \usepackage{listings} % fancy code listings \usepackage{caption} % fancy chapters for fancy code listings \captionsetup[lstlisting]{singlelinecheck=false, margin=0pt, font={sf,sl,footnotesize}} \lstset{% language=[ISO]C++, basicstyle=\ttfamily\footnotesize, ...

2


10

You are perfectly correct in saying that eqnarray is not the right tool here. The amsmath package provides several environments for displayed equations with correct spacing. (Extra features are available from the mathtools package.) In your example align* is the relevant construct to use (remove the * if you want equation numbers): ...

2

\vspace{0pt} works in a p column because it's set in a \parbox. For an r column you can use adjustbox: \documentclass{article} \usepackage{adjustbox} \usepackage{pst-barcode} \usepackage[crop=off]{auto-pst-pdf} \begin{document} \begin{tabular*}{\textwidth}{@{}l @{\extracolsep{\fill}} r@{}} Title Text & \begin{adjustbox}{valign=t} ...

0

The vertical centering in the cells gets much better with help of the package booktabs. If you really need that many horizontal lines, you may uncomment the line commands after each line. If you want the text in the first column vertically centered, please rephrase your question. This wasn't that clear. The minus sign for numbers has to be typeset using ...

8

Package fancyhdr puts the elements of the footer into a \parbox[t]. At the beginning You are using \color{...}. It does not start a new paragraph, thus the first top element of the \parbox[t] is the color whatsit (\special). It is aligned with the base line of the other entries. A then goes below the color whatsit. Solution: The color whatsit should go into ...

2

I found a solution that works for both tex4ht and pdflatex to vertically align an image in a table cell. For pdf, I'll use m since it works with little extra effort. For tex4ht I had to resort to using \Css configuration after much trial and error. Then in the latex file, I check if I am running tex4ht or pdflatex and set things accordingly. Here is the ...

1

Here are two solutions – at least to produce a pdf. The first one uses the \makecell and \thead commands from the makecell package, the second one uses the \raisebox command and requires manual adjustment: \documentclass[11pt]{article} \usepackage{mwe} \usepackage{longtable} \usepackage{array, mathtools} \usepackage{multirow} ...

2

You can measure the items and then set the condition and rule name parts pretending they have no width: \documentclass{article} \usepackage{proof,environ,array} \newcommand\centerinfer[4]{% % #1=condition, #2=rule name, #3=lower, #4=upper \ifcenterinfermeasure $#1\ \vcenter{\infer{#3}{#4}}\ #2$% \else \llap{$#1$\ }\vcenter{\infer{#3}{#4}}\rlap{\ ...

1

Alignment without the proof package is possible with some "box manipulation" (phantoms and overlapping): \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{array}{c} \phantom{\text{conditions}}\ \dfrac{\text{topA}}{\text{bottomA}}\ \rlap{\text{rule nameA}}\phantom{\text{rule name rule B}} \\ \\ \text{conditions}\ ...

Top 50 recent answers are included