# Tag Info

14


8

\documentclass{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \begin{document} \label{linspring} p = qx = \frac {q^2} {k} E. \qquad \includegraphics[width=0.2\linewidth, valign=c]{example-image} \end{document} Adding the key valign=c from the adjustbox package can simply do ...

6

You can install the background or background canvas templates to include your image; I placed it inside a \raisebox hiding its height and depth so you can move it freely. \documentclass{beamer} \setbeamertemplate{background canvas}{% \raisebox{-\paperheight}[0pt][0pt]{% \makebox[\paperwidth][c]{% ...

6

The tabular environment is contained in a begin table pgfkey and is initially \begin{tabular} (see current manual of pgfplotstable package, v. 1.12.1, as of (2015/05/02)) If the table should be top-aligned, say begin table={\begin{tabular}[t]} as an option to the \pgfplotstabletypeset command. \documentclass{article} \usepackage{filecontents} ...

6

Instead of modifying the macros \argmin and \bla to include math-struts, I suggest you load the mathtools package -- a superset of the amsmath package -- and use that package's \adjustlimits macro to align the expressions in the limits. Remark: As @egreg has noted in a comment, the instruction \operatornamewithlimits has been deprecated for quite a few ...

5

You can use baseline option to tikzpicture \newcommand{\venn}[1]{% \begin{tikzpicture}[scale=0.15,baseline={(current bounding box.center)}] This will give In your approach using \raisebox, you have an extra space before the closing brace: \raisebox{-.35\height}{\venn{0010} } which should be \raisebox{-.35\height}{\venn{0010}} %<-- no space here ...

5

You have to leave a blank line before \vspace{3mm}, not after it. On the other hand, you can also use only one tabular and add the vertical space with \\[3mm]. \documentclass{article} \begin{document} \begin{figure}[htb] \centering \begin{tabular}{*{3}{c}} 1 & 1 & 1 \\ 1 & 1 & 1 \\ \end{tabular} \vspace{3mm} \begin{tabular}{*{3}{c}} 1 ...

5

To add the text, you just need \node[font=\tiny\bfseries\sffamily]{STOP};. The vertical alignment can be adjusted with the baseline option to the \tikz command. I needed to increase the size a bit to make the text fit. A completely different approach is to use a symbol from marvosym. \documentclass{article} \usepackage{tikz} \usepackage{marvosym,graphicx} ...

5

Here it is with a stackengine approach. EDITED to use \i instead of i. The vertical position of the star may be adjusted with the .02\baselineskip optional argument, and the horizontal position of the star may be adjusted with the \mkern-.2mu adjustment. \documentclass{article} \usepackage{stackengine} \newcommand\istar{\def\useanchorwidth{T}% ...

4


4

The number is not going to the next line but aligned to the baseline of the picture. To avoid this you need a \hbox while using \vcenter. Also it is better to use width instead of scale for \includegraphics. \documentclass{article} \usepackage{graphicx} \begin{document} \label{linspring} p = qx = \frac {q^2} {k} E. ...

4

\vcenter is a low level command (a primitive, actually), that needs some care in using it. You can do it without any low level command and any external package (besides amsmath that you should load anyway if you have math in your document): a one-line gathered environment will do. \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} ...

4

I suggest you use a single gather environment (provided by the amsmath package) instead of four separate equation environments. To keep the distance between equations 3 and 4 roughly equal to that between equations 2 and 3, you could insert a \vphantom ("vertical phantom") in the third equation, as is shown in the code below. ...

4

It's possible to use itemsep from enumitem with some negative values, to reduce the spacing. It holds for itemize as well: \documentclass{article} \usepackage{multicol} \usepackage{enumitem} \begin{document} \begin{itemize}[itemsep=-5pt] \item First \item Second \end{itemize} \hrule \vskip\baselineskip Normal vertical separation \begin{multicols}{2} ...

4

Using tcolorbox you can say something like this: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lipsum}% just to generate filler text \newtcolorbox{tcbremark}{ breakable, enhanced jigsaw, oversize, rightrule=0pt, toprule=0pt, bottomrule=0pt, colback=white, arc=0pt, outer arc=0pt, title={Remarque :}, title ...

4

You can modify the t key which is defined in the file beamerbaseframe.sty like this: \define@key{beamerframe}{t}[true]{% top \beamer@frametopskip=.2cm plus .5\paperheight\relax% \beamer@framebottomskip=0pt plus 1fill\relax% \beamer@frametopskipautobreak=\beamer@frametopskip\relax% \beamer@framebottomskipautobreak=\beamer@framebottomskip\relax% ...

4

TikZ has a package known as shapes.geometric, by which we can easily draw regular polygons like this with adding labels inside. I drew two of them; one is not filled (the outer one) and the other is filled black and has the sign text. \parboxes naturally center their content vertically, so I used a \parbox of the same width as the sign to automatically ...

4

The effect is the result of the numberals being lining and so having no depth. That is, there is nothing below the baseline. If you add a letter which has depth e.g. y and one with only height e.g. f, you can see that the content is aligned correctly (from TeX's point of view, at least) in terms of the baseline: \documentclass[]{article} \begin{document} ...

4

This is an opportune time to use \vphantom: \documentclass{beamer} \usepackage{amsmath} \begin{document} $$\underset{1}{x} = \underset{1}{p_{A|B}}$$ $$\underset{1}{\vphantom{p_{A|B}}x} = \underset{1}{p_{A|B}}$$ \end{document}

4

The first minipage doesn't have a [t] placement option and (that's the main reason) the base line, for a graphic file, is the bottom of the graphic. A simple \raisebox will solve the problem. I don't have you graphic file so I replaced it with one of mine: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} ...

3

You should change the line Checksum flag & 1 & Value is set to 1 if the data is followed by a 16-bit checksum. %Set to 0 if no checksum exists \\ onto Checksum flag & 1 & Value is set to 1 if the data is followed by a ...

3

Package tabularx uses \tabularxcolumn for the column type of X columns. The default is p{#1}. It can be redefined to match the other m column: \documentclass[12pt,letterpaper]{article} \usepackage{tabularx} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} \newcolumntype{Y}{>{\centering\arraybackslash}X} \usepackage{tikz} \begin{document} ...

3

LaTeX has an undocumented but very useful feature: \phantom{text} \hphantom{text} \vphantom{text} will create “phantoms”; they occupy the same space of text, but \hphantom just for the width (no height and depth) and \vphantom just for the height and depth (no width). In any case no character will appear, just the space they would occupy. For TeXnical ...

3

What you want is: to modify the spacing around chapter titles. This is done for instance by using the package titlesec: \usepackage{titlesec} \titleformat{\chapter}[display]{\normalfont\huge\bfseries}% {\chaptertitlename\ \thechapter}{20pt}{\Huge} \titlespacing*\chapter{0pt}{10pt}{40pt} You can fiddle with the values 10pt and 40pt to fine-tune the ...

3

TikZ actually provides an example of a STOP! sign in the manual using the chamfered rectangle shape, which can be adapted as follows: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{shapes.misc,positioning} \begin{document} \begin{tikzpicture}[font=\sffamily]% modified from manual page 736 \node (stop) [chamfered rectangle, text=white, ...

3

The problem is \noindent \begin{align} you have a paragraph break there. Remove the blank line. The space at the top of the page is not dropped as it is not vertical space it is a one line blank paragraph. With blank line before equation: Without blank line: With the corrected version and the addition of \showoutput \showboxdepth5 The log ...

2

This is a nice puzzle, but there is an explanation. The end-of-line after \end{tabular} counts as a space The blank line after \vspace{3mm} is the same as \par. Thus we can examine the situation as if it was \mbox{X} \vspace{3mm}\par as there's no conceptual difference between a tabular and a box. Since \vspace is found when TeX is still making a ...

2

This should work, also: (in xelatex or lualatex) \documentclass{article} \usepackage{fontawesome} \begin{document} \faHandStopO \end{document}

2

Well I'm not sure exactly what you're asking for but I read it as you wanting a more sensible way to control the width of your matrix braces. The approach I chose uses makeboxes. The downside is you need to re-enter math mode as it seems makeboxes take you out of it. Here's the code: \documentclass{article} \usepackage{amsmath} \begin{document} ...

2

Why don't you use the gather environment, from amsmath? \documentclass[12pt,a4paper]{article} \usepackage{fullpage} \usepackage{amsmath} \begin{document} \begin{gather} \sum_{e \in \mathcal{E}}\sum_{f \in \mathcal{F}} k_{ef} + \sum_{d \in \mathcal{D}} x_{abcd} + T_{abc} \leq 1 \quad \forall a \in \mathcal{A}, b \in \mathcal{B}, c \in \mathcal{C}\\ ...

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