Tag Info

New answers tagged

0

what should i do when I have footnotes? this approach puts the figure below the footnotes. for example in ieee.cls, the author affiliations are put in the footnote of the 1st page. So how to put the figure above it?


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


0

As suggested in a comment, the hobete shows one way to do this: alter the frametitle template. As this is 'standard' beamer it's easiest done without the extras of the package: \documentclass{beamer} \setbeamertemplate{frametitle} {% \nointerlineskip \begin{beamercolorbox} [wd=\paperwidth,dp=1ex, ht=4.5ex, sep=0.5ex, colsep*=0pt]% ...


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


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


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


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


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


0

\usepackage{float} \begin{figure}[H] This will force LaTex to put your figure where you want it to be.


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


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

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

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

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


0

If anyone wants to do simple chords here are the commands, \newcommand{\ch}[1]{% \makebox[-6pt][c]{% \raisebox{22pt}[24pt]{~~{\huge\textbf{#1\hspace{-0.33in}}} } } } Then if you write a song like this: \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

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

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

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


0

You don't want to use alignment characters for this, because as your equations get more complex, you might want to align the equals signs or something and that'll break it. This uses \overbracket and \overbrace from \mathtools so that the alignment of the align environment isn't effected: The first example draws a brace over the text you're writing ...


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


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


3

You could also just define your own macro that builds the \node content.. On the left is the manually specified examples you provided and on the right are the ones obtained by calling \Node: Notes: You should use \tikzset instead of \tikzstyle as per Should \tikzset or \tikzstyle be used to define TikZ styles? Code: \documentclass{article} ...



Top 50 recent answers are included