# Tag Info

2

OPTION 1: Row specific padding One can add a \stackgap to a given element of the line, which pads the element vertically by the amount of the optional argument (default 3pt). The MWE below shows 3 rows that have been padded with 1pt, 3pt, and 5pt, respectively. \documentclass{article} \usepackage{stackengine} \begin{document} \begin{table}[!h] ...

3

You're overspecificating: stating column widths is usually unnecessary; you also have p{2.5cm}X which means two column specifiers. If you want that the first column takes all the available space, use X; for getting centered entries, >{\centering}X. \documentclass{article} \usepackage{array} \usepackage{tabularx} \usepackage{booktabs} ...

8

The problem is not in diacritics, it is in LaTeX tables. You can give rows some vertical padding with the cellspace package, which ensure a minimal vertical distance between a cell and the above and below rules. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{array, cellspace} \setlength\cellspacetoplimit{3pt} ...

6

Insert a large \strut. \documentclass{article} \begin{document} \begin{table}[!h] \begin{tabular}{|c|c|c|c|c|c|} \hline {\Large\strut}\"Ostersund & \AA m\aa l & Oxel\"osund & Alings\aa s & \'Orlaith &O\'O\"O\H{O}\\ \hline \end{tabular} \end{table} \end{document}

8

I think the best way to proceed is to stop using \hline -- and, while you're at it, ditch all vertical bars -- and to use the line-drawing macros of the booktabs package. For the table at hand, \toprule and \bottomrule should be used. If, for some reason, you simply must use vertical bars (and hence can't use \toprule and \bottomrule), I suggest you load ...

0

See, if the following can help you: \documentclass{book} \usepackage{graphicx} \usepackage{showframe} \begin{document} \newpage \section{Appendix} \label{append} \vfill \begin{table}[htb] \includegraphics[width=\textwidth]{example-image} \caption['Tis table1]{'Tis table1} \label{table1} \end{table} \vfill \clearpage next page \end{document} I assume, ...

2

It is easier to show how to fix it than explain why it fails, which would require looking into exactly how \settototalheight works. It is generally safer to expand \usebox{\mybox} than just \mybox (which deletes the contents, at least locally). Since you have glue inside the minipage, you might as well use [s]. The difference is that the default ...

5

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}) \\% ...

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

0

I packaged the text next to the pictures into parboxes. In general, I recommend not to use fixed space. \begin{column}{.32\textwidth} \hspace*{2mm} \includegraphics[height=0.2\textheight]{test1} \parbox[c][0.2\textheight][t]{\linewidth}{ \hspace*{2mm} John}\\ \hspace*{2mm} \includegraphics[height=0.2\textheight]{test1} ...

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

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

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

0

You can alter the vertical space between title and the edge of the poster by passing the titletotopverticalspace option to \maketitle. However, I wouldn't recommend to fully remove the spacing as you asked, and as I did below, because if you want to print the poster, the printer could cause trouble, because its unlikely that it accurately prints to the edge ...

7

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

0

\documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{|p{0.2\textwidth}|>{\centering\arraybackslash}m{0.3\textwidth}|>{\centering\arraybackslash}m{0.2\textwidth}|} \hline \vspace{-1.35cm}I am not at the top of this cell & Longer Line that is centred and wrapped, and appears in the correct place of this LibreOffice Writer table ...

0

Combining tabu and multirow behaves as wished: \documentclass{article} \usepackage{multirow,tabu} \begin{document} \begin{tabu}{|p{4cm}|p{4cm}|c|} \hline \multicolumn{3}{|l|}{Appearance(as appropriate for style)}\\ \multicolumn{3}{|l|}{Comment on color,clarity and head(retention,color and texture)}\\ \hline Expected:Runs from copper to dark brown. ...

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

0

Using the multirow package : \multirow{8}[4]*{\textbf{Peter}}& the code : \documentclass[10pt,oneside]{article} \usepackage[landscape, margin=0.2in]{geometry} \usepackage{booktabs,array} \newlength{\cwidth} \setlength{\cwidth}{1.4in} \usepackage{multirow} \begin{document} \section{School Timetable} ...

0

I would suggest another approach: using booktabs, you get horizontal rules which have some vertical padding (\aboverulesep and \belowrulesep), which results in more or less the same layout as cellspace, and variable line widths. There is also the need for a correction, but is intrinsic (-\aboverulesep), and it may be incorporated in a user command. Of ...

0

I don't understand why consecutive slides (which are not displayed at the same time) cannot be different, but ... As it seems that columns environment introduces some vertical space before its contents, the first slide could be written inside a columns environment with one column. This way both spaces will be equivalent. \documentclass[t]{beamer} ...

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

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

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

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

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

0

Had exactly the same problem. Firstly wrap the tree in \vbox{} and then you should be able to rotate it by wrapping all that in \rotatebox{-60}{}. The -60 seemed to be the right angle for me to align the tree from the top left corner to bottom right corner. Though I also had to wrap it all in \scalebox{0.8}{} to fit in on the page! Link below describes why ...

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

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

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

0

At last there is a little bug in the class moderncv. One possibility is to write \name{Klmopq}{\\[1ex]\mbox{VeryLongName}} With \\[1ex] you get a new line with 1ex distance between the two lines. Change 1ex to values you want. Command \mbox does not allow a hyphenation of the VeryLongname. With command \setlength{\makecvheadnamewidth}{12cm} you can ...

0

If you check the examples comming with class moderncv you can find several commands prepared doing a layout you want. But if you insist some lines of your code be reworked. But at last (in my opinion) your question to have a centered "Programming languages" breaks the layout principles of class moderncv. The first column is right justified, so you can ...

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

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

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

Top 50 recent answers are included