# Tag Info

8

I encapsulate the \includegraphics inside a \vcenter{\hbox{}}, since I am in math mode already and want the images to be centered about the math axis. I changed scale= to height/width specs, since in demo mode, the scale parameter does not really apply. In the MWE below, I incorporate this process into a new macro \Includegraphics[]{} (with a capital I). ...

6

I think the to paths use some control points that extend the bounding box of the second figure. You can see this by adding \draw (current bounding box.south east) rectangle (current bounding box.north west); at the end of each tikzpicture, which gives you this: As you can see there is some extra whitespace around the second one. I don't know of an ...

4

Your problem comes from the fact that graphics are laid on the base line. A solution uses \raisebox: \documentclass{book} \usepackage[demo]{graphicx} \usepackage[shortlabels]{enumitem} \begin{document} \begin{enumerate}[(a)] \item $3,6,9,12, \dots$ \item $3,5,7,9,11, \dots$ \item $2,3,5,7,11,13, \dots$ \item ...

4

Another option is to add \usepackage[export]{adjustbox}, and then add valign=t to the options of \includegraphics. \documentclass{book} \usepackage[demo]{graphicx} \usepackage[shortlabels]{enumitem} \usepackage[export]{adjustbox} \begin{document} \begin{enumerate}[(a)] \item $3,6,9,12, \dots$ \item $3,5,7,9,11, \dots$ \item \$2,3,5,7,11,13, ...

4

There is nothing wrong. When a glyph forms a curve at the top or bottom, it usually overshoots it; similarly, some overshoot is allowed at diagonal junctions. Without this overshoot, combinations such as AT IS would appear not aligned, due to how the eye perceives shapes. This has been used for centuries. Here's the relevant part from cmr10.mf: ...

4

Here is a solution with siunitx and booktabs. Don't use too many rules. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs, array} \usepackage{siunitx} \begin{document} \begin{table} \centering \begin{tabular}{ l*{4}{S[table-format=4.2, table-number-alignment=center]}} \toprule ...

4

I propose this solution… but I would advise for something simpler (second solution): \documentclass[preview]{standalone} \usepackage[utf8]{inputenc} \usepackage{mathtools} \usepackage{makebox} \begin{document} \begin{align*} ( A - B) ∪ (A - C) & = (A ∩ B^\mathrm{c}) ∪ (A ∩ C^\mathrm{c}) \\% & = A ∩ (B^\mathrm{c} ∪ C^\mathrm{c}) \\% ...

3

By using the syntax \newcommand{\myslide}[1][]{...}, your \myslide macro was specified with an optional argument, thus requiring invocation \myslide[...] (bracket delimiters, not braces). I made the argument mandatory, and all was immediately fixed. \documentclass[12pt,oneside]{article} \usepackage[a4paper, margin=1in] {geometry} \pagestyle{empty} ...

3

Your minipages should be like \begin{minipage}[b]{\linewidth} Material\par\xdef\tpd{\theprevdepth} \end{minipage} Then the regex match code could be \NewDocumentCommand{\tarassinput}{om} { \tl_set_from_file:Nnn \l_tarass_input_tl { } { #2 } \regex_match:nVTF { \A \c{begin} \cB. minipage \cE. } \l_tarass_input_tl {% true branch: input the minipage ...

3

Quick fix: You can for example use specific anchors, for example set left=of NodeB.north west,anchor=north east, and vice versa for the other. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,shadows,shapes,arrows} \tikzset{abstract/.style={rectangle, draw=black, rounded corners, fill=blue, drop shadow, text centered, anchor=north, ...

3

Here is a simple solution using the generic set of macros \insbox: \documentclass{article} \usepackage[showframe]{geometry} \usepackage[]{currvita} \usepackage{graphicx} \usepackage{lipsum} \input{insbox} \makeatletter \@InsertBoxMargin = 5mm \makeatother \begin{document} \vspace*{-6ex} ...

2

Too long for a comment: The problem is not related to latex 3 or the input method. It can be shown with a MWE like the following. As one can see the minipage disturbs the spacing. And while one can find with careful analyzing of the code suitable values to correct the spacing, I would avoid such a structure at all costs. It looks unnatural and wrong. ...

2

Assuming you're using either the report or book document class, or a document class that's built on one of these classes, insert the following instructions in the preamble of your document to have the part-level header be placed close to the top edge of the text block: \usepackage{etoolbox} \patchcmd{\part}{\vfil}{}{}{} To have the part-level header be ...

2

With makecell and multirow, you have the first column horizontally centred by default (but it may be changed). The makecell package allows for a common formatting and linebreaks in table cells, with the thead,\makecell, \multirowthead,multirowcell commands: \documentclass[10pt,oneside]{article} \usepackage[landscape, margin=0.2in, showframe]{geometry} ...

2

I am not sure if LaTeX / KOMA-Script (>=3.15) means that you can use the up to date version 3.19a too. If that is possible you can redefine \sectionlinesformat to insert a \strut at the end of all section headings. \documentclass[twoside]{scrartcl}[2015/10/3] \makeatletter \renewcommand{\sectionlinesformat}[4]{% \@hangfrom{\hskip ...

2

Try to shift image with raisebox: \documentclass[a4paper,12pt, fleqn]{amsart} % \usepackage{graphicx} \usepackage{hyperref} % \begin{document} % \begin{align*} \left< \raisebox{-1em}{\includegraphics[scale=0.1]{example-image}} \right> & = A\left<\includegraphics[scale=0.1]{example-image} \right> + ...

2

Just for completeness here is a solution based on adjustbox: \documentclass[a4paper,12pt, fleqn]{amsart} % \usepackage{graphicx} % overload \includegraphics with extra options \usepackage[export]{adjustbox} \usepackage{hyperref} % \begin{document} % \begin{equation*} = A\left< \includegraphics[scale=0.1,valign=c]{example-image} \right> + ...

2

I wouldn't mix geometry and LaTeX syntax, and write simply \documentclass[twoside,10pt]{report} \usepackage[papersize={169mm,239mm},top=37mm,text={111mm,165mm},centering]{geometry} \usepackage{lipsum} \begin{document} \lipsum[0-5] \end{document} The behavior you noticed is due to the one-inch driver margins: roughly, the margin is not given by ...

1

if what you're inserting is only one line, you could \smash it and insert a \strut of the "usual" size to establish the baseline. \smash gives the "smashed" material a zero height and depth. that would result in it being moved higher on the page, so you really need to reset the height to the "usual" value. that's what a \strut does. \strut also resets the ...

1

Something like this \documentclass[11pt,a4paper]{memoir} \usepackage[utf8]{inputenc} % Tikz is used to draw the figure \usepackage{tikz} % Just some changes to the margins \setlrmarginsandblock{3cm}{*}{0.875} \setulmarginsandblock{3cm}{*}{1.2} \checkandfixthelayout[nearest] \usepackage{caption} % The new floating environment ...

1

\setbeamertemplate{frametitle}[default] is defined in beamerouterthemedefault.sty. If you take the definition from there, you can redefine it according to your needs. For example add a shift with \hspace*{1cm}: \documentclass{beamer} \makeatletter \setbeamertemplate{frametitle}{ \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}% ...

1

Here, I use a \raisebox wrapped inside a macro named \Includegraphics (capital "I"). The key is knowing the proper downward vertical shift of the image, which is otherwise aligned to the baseline. That shift, in this case, is -.5\dimexpr\height-\ht\strutbox+\dp\strutbox, which will work regardless of image height and font size. \documentclass{beamer} ...

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