# Tag Info

6

As this: \documentclass{article} \pagestyle{empty} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture}[scale=.9] % to suppress Overfull \hbox \begin{axis}[axis lines=none,samples=150,domain=-10*pi:10*pi,ymin=-.5, ymax=1.5] \addplot [mark=none]{sin(deg(x-pi))/(x-pi)}; \addplot ...

6

You can use the path operator |- in the paths: \draw[->] (model) -> (model|-solver.north); And also in the node positioning: \node[font=\bfseries] (solution) at (model|-simplification) {Solution}; Fixes: The alignment problem was due to the fact that Solution was much shorter in height than Simplification, because this last one has a "P" in it ...

6

They are centred vertically. That is, they are centred on the current baseline. (See explanation below.) The problem is that the bottom of the tikzpicture is on the baseline by default. To centre that, we can use baseline in the argument for the picture: \documentclass[12pt,letterpaper]{article} \usepackage{array} \usepackage{tabularx} \usepackage{tikz} ...

6

You can use two side-by-side minipages: \documentclass{article} \usepackage{pgf} \usepackage{bbding} \usepackage{enumitem} \begin{document} \noindent \begin{minipage}{.5\textwidth} \begin{itemize}[label=\Square] \item 1 \item 2 \item 3 \item 4 \item 5 \item 6 \end{itemize} \end{minipage}% \begin{minipage}{.5\textwidth} \centering \begin{pgfpicture} ...

5

Correct this behaviour manually by vertically skipping back to the same baseline: \documentclass[10pt]{article} \usepackage[margin=0.75in, left=1.5in]{geometry} % Section headers in margins % http://tex.stackexchange.com/a/1315/10906 \usepackage{titlesec} \titleformat{\section}[leftmargin] {\sffamily} {}{0pt}{} \titlespacing{\section} {4pc}{1.5ex ...

5

Three options: Using a tabular* of width equal to \textwidth and m{<length>} columns. Using the adjustbox package. Boxing one of the images to measure its height (this assumes all four images have the same height). In all three cases the labels are placed inside a \rotatebox. The code: \documentclass{article} ...

5

I see nothing strange: \documentclass{scrbook} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{graphicx,float} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} % just to show the head sep \begin{document} \makebox[0pt][l]{\vrule height0pt depth0.2pt width 30cm}% \lipsum[3] \newpage ...

4

The problem is that catchfilebetweentags ignores blank lines. If you remove the blank line in the “local” part, you get exactly the same. Solution: use \par in the auxiliary file instead of a blank line. \documentclass{article} \begin{document} %<*eq001> \begin{multicols}{2} \label{equ:X} X = ...

3

This is a well known (and documented; cf. section 9.5 of the beamer documentation) effect with overlays and I am afraid there's no general solution. Two possible solutions are to use \struts for the \items or to use an overprint or an overlayarea environment: \documentclass{beamer} \begin{document} \begin{frame} \begin{block}{The One} ...

3

Also possible with tabulars: \documentclass[12pt]{article} \usepackage{array,enumitem,pgf,bbding} \begin{document} \begin{tabular}{m{.4\linewidth}m{.4\linewidth}} \begin{itemize}[label=\Square] \item 1 \item 2 \item 3 \item 4 \item 5 \item 6 \end{itemize} & \begin{pgfpicture} ...

3

There's no need to issue \singlespacing, which is causing your vertical mis-alignment. Regardless, you can also use a tabular to stack content vertically within math mode: \documentclass{article} \setlength{\parindent}{0pt} \setlength{\parskip}{12pt plus 1pt minus 1pt} \usepackage{amsmath,array,setspace} \usepackage[margin=25mm]{geometry} % Margins ...

2

To get aligned to line up with the first line remember the [t] option. Don't use \text for anything but textual comments in display math. This _\text{el} is not a textual comment. Better to use another construction. \documentclass[a4paper]{memoir} \usepackage{mathtools} \DeclareMathOperator\Tr{Tr} % for text only subscripts ...

2

Two options: Using some tabulars for each layer and the subcaption package: The code: \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \begin{document} \begin{figure} \begin{minipage}{\linewidth} \centering \begin{tabular}{ccc} \includegraphics[width=.28\linewidth,height=1cm]{example-image-a} & ...

2

Obvious your picture is to wide to be fit in text width. See comparison: As you can see, figures b and c overlap. What to do: 1. enlarge (locally text width for example with help of package changepage. With \adjustwidth}{<leftmargin>}{<rightmargin>} <your figures> \end{adjustwidth} redesign your second and third figures so, that ...

2

You can also anchor nodes on its baseline: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[every node/.style={above=2mm, anchor=base}] \draw[color=red](0,3)--(11,3); \draw (0.5,2.5)--(0.5,3) node {For Example:}; \draw (3,2.5)--(2.5,3) node {this looks}; \draw (5,2.5)--(5.5,3) node {not nice vertically aligned}; ...

2

If I understand your posting correctly, there are three separate formatting issues in play: On pages that contain floats and text, the floats must be at top or bottom of the page. On floats-only pages, if there are two or more floats, they must be "centered" on the page, i.e., the spaces above, between, and below the floats must be equal; and if ...

2

Try choosing the same anchor as the left group, then add an x-shift to compensate for this. Note that the unit of length for the shift should be chosen relative to the font size (em, ex, ...) and not fixed units (pt, in, mm, cm, ...). \documentclass[border=2mm]{standalone} \usepackage{tikz} \usepackage{tikz-timing} \usetikztiminglibrary{nicetabs} ...

2

This is a known issue, and it has been treated before1 but it could be a problem in the code for the fit library.2 However you can use the solution found in one of those questions and use the label instead. I also think it's easier if you create a new command for placing your nodes which reduces 3 lines of code for one node, to one line of code, using the ...

2

I introduce the leftitemize environment, that places its labels in a 2cm wide left-aligned box (in bold). The labels are aligned with the enclosing environment margin. \documentclass{article} \usepackage{enumitem} \let\svitem\item% \def\mybox#1{\makebox[2cm][l]{\bfseries#1}} \newenvironment{leftitemize} ...

2

The easiest way to me seems to be to load enumitem and define a new list: \usepackage{enumitem} \newlength\myitemwidth \setlength\myitemwidth{5em} % <<< choose what you need here \newlist{myacronymlist}{description}{1} \setlist[myacronymlist]{ labelindent = 0pt , labelsep = 0pt , leftmargin = \myitemwidth , labelwidth = \myitemwidth , ...

2

Following the answer given by @LaRiFaRi, groupplots works for me (code at ShareLatex): \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{pgfplots.groupplots} \pgfplotsset{compat=1.3} \begin{document} \begin{tikzpicture} \pgfplotsset{footnotesize,samples=10} \begin{groupplot}[group style = {group size = 3 by 1, horizontal sep = ...

2

The first rule is indented with the standard paragraph indentation. Right click the line right next to the rule, select Paragraph settings, uncheck the box for Indent paragraph.

2

One option would be to use fixed height minipage's instead of column environments: The code: \documentclass[10pt,aspectratio=1610,t]{beamer} \usepackage{tikz} \begin{document} \begin{frame}\frametitle{Minimum Working Exaple} \begin{minipage}[t][.8\textheight][t]{.5\textwidth} This is the first column.\par ...

1

You have to use the top align parameter [t] of the minipage environment here. % arara: lualatex % you may use pdflatex, just remove the package I've loaded \documentclass{article} \usepackage{lua-visual-debug} % just for demo \begin{document} \noindent % this was missing \begin{minipage}[t]{0.4\textwidth} By:\\ Student ...

1

From data, which you provide, I only can suggest to ad option h to figure environment. If after line, to which follows figure is enough place, figure will stay there, otherwise it will move on top to next column/page. \begin{figure}[h]% <--- h as here, sometime help !h \centering \caption{Original Image} ...

1

I don't fully understand your first paragraph, but I suspect you might want to just switch the p and the m. \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{|>{\raggedright\arraybackslash}m{0.5in}|>{\raggedright\arraybackslash}p{0.5in}|} \hline abcde fghijk lmnopq & $\Bigg( x \Bigg)$ \\ \hline \end{tabular} ...

1


1

This works perfect as long as your text doesn't get too long. \documentclass[tikz, border=6mm]{standalone} \begin{document} \begin{tikzpicture}[x=1mm, y=1mm] \coordinate[](0_r1) at (0,22.5); \coordinate[](0_r2) at (0,42); \coordinate[](0_r3) at (0,49); \coordinate[](b1_r2) at (14.4,42); \coordinate[](b1_r3) at (14.4,49); ...

1

This is the command I usually employ to cope with this situation: \newcommand*\cleantop{% \dimen@ \baselineskip \advance \dimen@ -\topskip \prevdepth \dimen@ } After this definition, I use \cleantop at the beggining of the floating environment, as I show in the following MWE: \documentclass{scrbook} \usepackage{lipsum} \usepackage{showframe} ...

1

I am not sure if I got you right as you have not give so much information. But maybe you have been searching for the [b] parameter of the tabular environment. Like it stands now, it is too wide for the page, but as I do not know your documentclass and margin settings, I just leave it as it is. % arara: pdflatex \documentclass{article} ...

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