# Tag Info

1

You could place the graphs in minipage environments -- each one associated with a \caption command -- all within one and the same figure environment. \documentclass{article} \usepackage[demo]{graphicx} % omit 'demo' option in real document \begin{document} \begin{figure} \centering % first group of figures \begin{minipage}{0.31\textwidth} ...

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

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

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

0

I think this was fun figuring out by myself. Since there appears as though there is no direct convenient method, I simply solved it using the following code for the tikzpicture block. I added the original x tick labels to be in integer positions and extra tick labels at 0.5,1.5,... positions and changed the style of the extra ones to be much longer. But, I ...

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

1

There are two kinds of environments in algorithmicx. One is algorithmic, which typesets algorithms very much like normal text. This will stay between two paragraphs, if you put it there, but it will break across pages. The other is algorithm, which is a floating object. This means that it can get a caption, it will stay on one page and LaTeX will try to ...

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

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

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

0

The following (somewhat complicated approach) seems to cover all cases: \documentclass{article} % packages needed only for the purpose of illustration \usepackage[a6paper,margin=0.5cm,bottom=1.5cm,landscape]{geometry} \usepackage{graphicx} \usepackage[english]{babel} \usepackage{blindtext} % packages which are actually used for putting the credits box at ...

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

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

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

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

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

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

1

\documentclass{article} \usepackage[all]{xy} \begin{document} \hrule \centerline{\xymatrix{% \txt{short} \ar[d] \ar[r] & \txt{short} \ar[d] \\ \txt{\makebox[2em][r]{long long long long long}} \ar[d] \ar[r] & \txt{short} \ar[d] \\ \txt{short} \ar[r] & \txt{short} }} \hrule \end{document}

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

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

1

use \begin{verbatim} GREATER(x,y)=true =false \end{verbatim}

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

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

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}

2

First of all, LaTeX is not really intended for unattended typesetting of large documents. ConTeXT may lend itself marginally better for this, but will still not be on par with the requirements for automatically typesetting a newspaper. By contrast, the combination of HTML and CSS performs way much better at automatically positioning and resizing content ...

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

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

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

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

1

By building the item as a stack, and taking the glue out of the above-section-head, you can avoid all those nasty glue issues. The vertical spacings of the stack are controlled by the optional arguments to \stackon and \stackunder, which can be changed to suit. Note that the renewed \section macro is for the default article document class. Other document ...

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

2

You can patch \@makechapterhead and \@makeschapterhead to suppress the 50pt space inserted: \documentclass{book} \usepackage{showframe}% just for the example \usepackage{etoolbox} \setcounter{secnumdepth}{-2} \makeatletter \patchcmd{\@makechapterhead}{\vspace*{50\p@}}{}{}{} \patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{}{}{} \makeatother ...

1

If you take a look at the documentation of poker.sty, you find that it can generate a full deck of cards. You can download the package here. You can easily modify this style to display other info on the cards, the style file is pretty straight forward. Another option might be this style code. I would suggest you choose either of the two and get back to ...

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

1

Using the lscape package , the landscape mode can be achieved. You will have to use the environment \begin{landscape} and \end{landscape}. Secondly, to put the appropriate things on a single page or the number of pages as per requirement you have you use the multicolspackage and the multicols environment having an argument of the number of columns you ...

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

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

0

Although it isn't meant for that purpose, I guess you might find a workaround using the baposter.cls. It has nice options for drawing frames, aligning boxes, etc.

3

You can use the tikz package to accomplish this easily. Working with the template you mentioned, you have to include: \usepackage{tikz} in the preamble. Then in the body of your document (right after \begin{document}) the following: \addtobeamertemplate{headline}{} {\begin{tikzpicture}[remember picture, overlay] \node [anchor=north east, inner ...

4

One way is to add this after your \begin{document}: \addtobeamertemplate{headline}{} { \begin{tikzpicture}[remember picture,overlay] \node [shift={(-10 cm,-5cm)}] at (current page.north east) {\includegraphics[height=5cm]{logo}}; \end{tikzpicture} } I had to compile twice.

Top 50 recent answers are included