# Tag Info

13

This adds the image as part of the last page foot: \documentclass{article} \usepackage[a6paper,margin=0.5cm,landscape]{geometry} \usepackage{graphicx} \usepackage{blindtext} \pagestyle{empty} \AtEndDocument{\enlargethispage{-2.5cm}\thispagestyle{credits}} \makeatletter \def\ps@credits{% \def\@oddfoot{\hfill ...

7

For the first (risky (see link below)) possibility (force all figures to appear exactly where they are declared in the code, suppressing flotation), you can use the float package and its \floatplacement command together with the H specifier: \documentclass{article} \usepackage{float} \floatplacement{figure}{H} \begin{document} <contents> ...

5

I'm afraid this can not be done from within the \xymatrix and requires to make some calculations. So, we load the calc package and calculate the horizontal spacing that has to be added to achieve what you want: \usepackage{calc} \newlength\mylength \setlength\mylength{(\widthof{long long long long long}-\widthof{short})/2} Then we add an ...

5

I'd suggest you to draw the whole matrix as a TikZ matrix; this gives you easy control over the attributes of the cells (I added some colors just optionally): \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \tikzset{ table/.style={ matrix of nodes, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={rectangle,text ...

5

Another possible solution where the OP code is used but slightly modified. The underfull problem is taken care by adding an X column in the last column so that \textwidth is satisfied. The OP's tikz struture in the cell is redefined as tikzmark taking two arguments. and connected by \link macro. Create a new column type M with horizontal and vertical ...

5

Put both tabulars into one table environment: \begin{table}[!htb] \centering \begin{tabular}{lcl} \toprule \textbf{asd} & \phantom{-} & \textbf{asd} \\\cmidrule{1-1} \cmidrule{3-3} asd && asd\\ asd && asd\\\bottomrule \end{tabular} \caption{blaa}\label{tab:asd} \begin{tabular}{lcl}\toprule \textbf{asd} ...

5

Here’s one way you could do it: \documentclass{article} \usepackage{amsmath} \usepackage{rotating} \begin{document} \begin{equation*} % % the vertical brace % \rotatebox[origin=c]{90}{\scriptsize{ $n$ parts }} % % an invisible matrix for height % \left\{\begin{matrix} \vphantom{} \\ \vphantom{} \\ \vphantom{} \\ ...

4

The positioning of text inside \txt is really strange... As a workaround, add the following lines in your preamble \makeatletter \xydef@\txt@ii#1{\vbox{\vspace*{-7pt}% \let\\=\cr \tabskip=\z@skip \halign{\relax\hfil\txtline@@{##}\hfil\cr\leavevmode#1\crcr}}} \makeatother MWE: \documentclass{article} \usepackage[all]{xy} \makeatletter ...

4

One option: the inset is saved in a box and then placed at the desired position using a \node and the axis coordinate system for the main plot (See Section 4.17.1 Accessing Axis Coordinates in Graphical Elements): \documentclass{article} \usepackage{pgfplots} \newsavebox\mybox \begin{document} % the box is filled with the inset \savebox\mybox{% ...

4

\documentclass[11pt,a4paper,twoside]{article} \makeatletter \renewcommand\fps@table{htbp} \makeatother \begin{document} \section{Section 1} \cleardoublepage \section{Section 2} \begin{table} \begin{tabular}{|l|} This is just a table \\ \end{tabular} \end{table} \end{document}

4

Using multicol package: Code: \documentclass{article} \usepackage[landscape,margin=2cm]{geometry} \usepackage{multicol} \begin{document} \pagestyle{empty} \setlength{\columnsep}{35pt} \begin{multicols}{4} \small \section*{Monday} \subsection*{Work} \vspace*{-15pt}\hrulefill \begin{itemize} \item \item \item \end{itemize} ...

3

Two options: Recreate the image so you don't have to scale the content. This would allow you to fine-tune the placement of the replacement text. Use horizontal spacing techniques within the replacement text of \psfrag{<tag>}{<replace>} to push the content left/right. For example, \psfrag{xy}{$xy$\hspace{1cm}} would push the content 5mm to the ...

3

3

Another attempt with tcolorbox with a counter and you can label it. \documentclass[11pt,a4paper,twoside,openright]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{color} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{verbatim} \usepackage{caption} \usepackage{tcolorbox} \tcbuselibrary{skins,breakable} \newcounter{example} ...

3

Use positioning library: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{arrows,automata,positioning} \begin{document} \begin{tikzpicture} \node[draw,circle,minimum size=5mm] (a1) at (0,0) {}; \node[draw,circle,minimum size=5mm] (a2) at (1,0) {}; \node[draw,circle,minimum size=5mm] (b1) at (1,-3) {}; \node[draw,circle,minimum ...

3

Here is one drawback, that stems from the fact that [H] floats are set as a minipage: \documentclass{article} \usepackage{float} \newcommand{\pangram}{The quick fox jumped over the lazy dog.} \begin{document} \pangram \begin{figure}[h] \pangram \caption{\pangram} \end{figure} \pangram \clearpage \pangram \begin{figure}[H] \pangram ...

3

This is similar to Gonzalo's answer, but has the advantage of not requiring explicit computations nor strange adjustments. \documentclass{article} \usepackage[demo]{graphicx} % for inclusion of graphics \usepackage{booktabs} \usepackage{capt-of,calc} \newsavebox{\figurebox} \begin{document} \begin{figure}[t] %% get the dimensions of the figure ...

3

(Updated to include @Mico's suggestion of a \bigskip.) Here's one possibility that makes use of \parboxes. This solution makes sense, I think, if you want all of the figures to have a figure number that increases. You can change the length for the first two \parboxes and the length for the first two \includegraphics commands if you want the top two figures ...

3

you could use something like this: \documentclass{article} \usepackage{tikz,pgfplots} \pagestyle{empty} \begin{document} \begin{tikzpicture}[>=latex] \begin{axis}[ axis x line=center, axis y line=center, xtick={-5,-4,...,5}, ytick={0,1,...,5}, xlabel={$x$}, ylabel={$y$}, xlabel style={below right}, ylabel style={above left}, xmin=-5.5, ...

3

Here is a way to do it with laps and stacks: \documentclass{article} \usepackage{tabularx} \usepackage{graphicx} \usepackage{stackengine} \def\RA{\rlap{\scalebox{1.6}{$\rightarrow$}}} \def\DA{\bclap{\scalebox{1.6}{$\downarrow$}}} \def\mystrut{\rule{0ex}{3ex}} \begin{document} \setstackgap{S}{6pt} \begin{tabularx}{\textwidth}{r|c|c|c|c|l} ...

3

To force a float to remain in a specific location, add the float package to your preamble \usepackage{float}% http://ctan.org/pkg/float and use the [H] float placement specifier. Done. \documentclass{article} \usepackage[margin=1in]{geometry}% For this example \usepackage{algorithm,algpseudocode,float} \usepackage{lipsum}% For this example ...

2

Here's how you can do it with stacks: \documentclass{article} \usepackage{tabstackengine} \stackMath \begin{document} \setbox0=\hbox{\setstacktabbedgap{1ex}\tabbedCenterstack{ \bullet & \bullet & \bullet & \bullet & \bullet & \cdots & \bullet\\ \bullet & \bullet & \bullet & \cdots & \bullet\\ \bullet & ...

2

Don't leave a blank line (this tantamounts to starting a new paragraph for the tikzpicture): \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} for tree={ draw, minimum height=2cm, anchor=north, align=center, child anchor=north }, [{Size 5}, align=center, name=SS [{Size 1 \\ Size 2\\ Size 3}] [{Size 6 \\ Size 9 \\ Size 10}] ] ...

2

If it is text: Option 1: Using tabbing: \documentclass{article} \begin{document} \begin{tabbing} GREATER(x,y)\= $=$true \\ \> $=$false \end{tabbing} \end{document} Option 2: Using tabular: \documentclass{article} \begin{document} \begin{tabular}{r@{$=$}l} GREATER(x,y)& true \\ & false \end{tabular} \end{document} ...

2

it is set in mathmode by default and \txt uses the text mode. If you want an upright A use: \documentclass{article} \usepackage[all]{xy} \begin{document} \xymatrix{A \ar[r] & \mathrm{A}} \end{document} if you want real text, then use \documentclass{article} \usepackage[all]{xy} \newcommand\TXT[2][t]{\tabular[#1]{l}#2\endtabular} \begin{document} ...

2

The align environment is essentially treated as text for the purposes of splitting and flow. It seems as though things are happening the way the are supposed to, just not the ideal way in this particular case. The align environment is not a float, and so it would not make sense to have the rest of the align equations appear above the table on the next ...

2

Another alternative is use of subfigure package with subfigure command. Edit: Reminded by Adam, subfigure is depreciated, so a new update here subfig is used with subfloat command. Code \documentclass[]{article} \usepackage[margin=1cm]{geometry} \usepackage{subfig} \usepackage[demo]{graphicx} \begin{document} \begin{figure*}[htbp] \centering ...

2

Use of \floatbox \capbeside and \thisfloatsetup from floatrow, inspired and learned from Gonzalo Medina's work http://tex.stackexchange.com/a/29144/34618 Code \documentclass{article} \usepackage[landscape]{geometry} \usepackage[demo]{graphicx} % for inclusion of graphics \usepackage{floatrow} \newfloatcommand{capbtabbox}{table}[][\FBwidth] ...

2

I think that using minipages of fixed height is easier here; captions were provided using \captionof from the caption package: \documentclass{article} \usepackage[margin=3.5cm]{geometry} \usepackage{graphicx} \usepackage{adjustbox} \usepackage{caption} \usepackage{booktabs} \begin{document} \begin{figure} \begin{minipage}[c][8cm][t]{.67\linewidth} ...

2

Here, I created a macro \addfig that draws the two interconnected circles, and places a label at elevation y=-\labelht, which is specified in advance. \addfig takes four arguments: 1) a unique identifier used in creating a node name, 2) the x-coordinate of the top circle (y=0 assumed), 3) the x-coordinate of the bottom circle, 4) the y-coordinate of the ...

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