Tag Info

Hot answers tagged

7

Add a \strut or define text depth for those nodes. I have also changed above leftto left and above right to right appropriately. \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{automata,arrows,calc,positioning} \begin{document} \begin{tikzpicture}[->,node distance=25mm] \node[state,initial,accepting] (q0) {$q_0$}; ...


5

As first thing, I would add the options text height=1ex, text depth=0pt in the tikzpictures option to force all labels having the same (vertical) size. Having done this, the problems As you can see, the 'b' on the arrow from q1 to q3 is positioned lower than the 'a, b, c' on the arrow from q3 to q2. Also, the 'b' on the edge from q2 to q3 is ...


4

As it stands, your document does not contain enough text for LaTeX to put the figure at the top of a page. On the first page, floats at the top are banned. There is no second page (of text). So, having the figure left at the end of the document, LaTeX does whatever it must to place it: it puts it on a page of floats and, by default, that means the floats are ...


4

For this case, I would replace toggle enlargement by some direct code: \documentclass[12pt]{memoir} \usepackage{calc,lipsum} \usepackage[T1]{fontenc} %---------------------------------------------------------------% \setstocksize{297mm}{210mm} \settrimmedsize{\stockheight}{\stockwidth}{*} \settypeblocksize{247mm}{120mm}{*} ...


3

Your description isn't so clear, but perhaps this. Note you should avoid \ in math mode, and don't use math italic for multi-letter works such asmaxand just use\text` for text phrases, not math operators. Also, please always post complete documents. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} &\min \mu \\ ...


3

You can adjust the settings with \@totalleftmargin: \documentclass[12pt]{memoir} \usepackage{calc,lipsum} \usepackage[T1]{fontenc} %---------------------------------------------------------------% \setstocksize{297mm}{210mm} \settrimmedsize{\stockheight}{\stockwidth}{*} \settypeblocksize{247mm}{120mm}{*} \setulmargins{25mm}{*}{1} ...


2

Styles can greatly improve readability. Here's a proof of concept using only styles. The idea is to define a <name-of-node>pos style for each named node so that you can specify positioning by defining this style using keys like at or left etc, separately from the point of creation of the nodes. \documentclass{standalone} \usepackage{tikz} \tikzset{ ...


2

You can adjust the list environments to compensate. I've used enumitem to simplify this. I've also used memoir's facilities to set the margin notes up, which you should certainly do. (No point having it fix the layout if you then go and immediately mess it up again!) \documentclass[12pt]{memoir} \usepackage{calc,enumitem,lipsum} \usepackage[T1]{fontenc} ...


1

A combination of \par and \medskip (or the combining command \medskip) will give you, what you want. You can define an environment for that as shown in this nice answer. % arara: pdflatex \documentclass{article} \usepackage{blindtext} % for dummy text \usepackage{multicol} \usepackage{microtype} % for nice typesetting in narrow columns ...


1

Without more specifications, two minipages are enough: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[htp] \centering \includegraphics[height=.3\textheight]{example-image-16x9}\\[1em] \begin{minipage}[c]{.3\linewidth} \includegraphics[width=\linewidth]{example-image-a}\\[1em] ...


1

I use a combination of the \stackrel and \phantom commands. In particular \newcommand{\rz}[1]{\stackrel{#1}{\phantom{.}}} seems to work well (i.e. looks pretty natural) in many cases. If you want precise control, I suppose you can replace the \phantom{.} with \phantom{\begin{minipage}{0.001\textwidth}\vspace{#2}\end{minipage}} Then the #2 argument ...


1

Percusse's answer helped me a lot, but the colorbar was not placed perfectly aligned to my plot. I made a slight modification, which works without using an extra \node and without static widths. This is done by placing the colorbar with colorbar style. The colorbar is finally displayed by \pgfplotscolorbarfromname{commonbar}. \documentclass{standalone} ...


1

\documentclass{article} \makeatletter \newcommand{\ch}[1]{% \leavevmode\@bsphack \raisebox{2ex}{\makebox[0pt][l]{\small\bfseries\strut#1}}\nolinebreak \@esphack } \makeatother \begin{document} \begin{verse} \ch{G}.. Mamma take this \ch{D}badge from \ch{Am7}me\\ \ch{G}.. I can't use\ch{D} it any \ch{C}more\\ \ch{G}.. It's getting \ch{D}dark, too dark ...


1

You could use TiKZ to create an overlay image that does not disturb the rest of the layout. I don't know what packages you used to create the screenshot above, so I could not reproduce exactly your layout. That is one of the reasons why we insist on providing a minimum working example, (MWE) -- see my comment above. The following should get you started ...


1

[More of a comment, but to move off the unanswered list] With the standard document classes, loading dblfloatfix would allow some flexibility here. However, as you are using REVTeX that does not work (you can load the package but it has no effect). The best that you can do is miss out the positional arguments entirely: LaTeX will then at least be able to ...


1

This happens because the bemaer column system uses the LaTeX minipage behind the scenes: a vertical box. As these are not set with a fixed height they don't stretch, in contrast to setting a frame where beamer does some resizing (so the stretch is important). For a one-off application I'd be tempted to use a raw minipage and adjust as require. For example ...



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