Tag Info

Hot answers tagged

6

Unwanted space at the right side The first issue is just a unwanted space by a line end: \centerline{% \begin{tikzpicture}...\end{tikzpicture} } Then the tikzpicture with width \paperwidth plus the space after \end{tikzpicture} is centered, leaving the half of the space at the right side of the paper. Solution: \centerline{% ...


4

Notwithstanding the question of whether protrusion may be pointless with ragged text, my patch you referred to is simply incomplete. You also need to add the following: \def\@vwid@measure{% \ifvoid\z@ \else % numbered equations not part of alignments can't be reset, % so force retention of full width. \ifnum\count@=\@vwid@postnump ...


4

Use the S column type as intended: In your case, convert the column specification to \begin{tabular}{| l || S[table-format=7.0] | S[table-format=8.0] | S[table-format=8.0] |} The table-format key is already a special key. In these case you could define before hand \sisetup{table-figures-decimal} and than just use the table-figures-integer key with 7, 8 ...


3

After \newline spacing such as \hspace is ignored; you can force it to work with \hpsace* instead. Try this little example to see what happens: \noindent Text\newline \hspace{2cm}text\newline \hspace*{2cm}text. However, what you probably want is a tabbing environment, otherwise the columns are not going to line up. Compare the first example below with ...


3

Nice version \documentclass{article} \usepackage{array} \usepackage{booktabs} \usepackage{caption} \usepackage{siunitx} \begin{document} \begin{table} \centering \caption{Table example} \begin{tabular}{ S[table-format=4.2] S[table-format=3.2] } \toprule \textbf{Number} & \textbf{Probability} (\si{\percent}) \\ \midrule 0 & 100 \\ ...


2

The lstlisting package only boxes the contents if it starts in horizontal mode (which is the reason why it boxes the contents in a tabular). A solution is to coerce horizontal mode, but there's the added problem of setting the caption, which can be done with the help of \captionof, persuading LaTeX into thinking this is a listings and not a figure. In ...


1

or by using tabularx: \documentclass{article} \usepackage{tabularx} \usepackage[framemethod=TikZ]{mdframed} \usetikzlibrary{shadows} \newmdenv[shadow=true,shadowcolor=black,font=\sffamily, align=right, leftmargin=10pt]{shadowbox} \usepackage[active,tightpage]{preview} \PreviewEnvironment{shadowbox}% <-- just for showing only the shadowbox ...


1

You can think of the notation *{<num>}{<col-spec>} as a very simple 'repeater' or loop, if you will. Its only effect is that any valid set of column specifications <col-spec> will be placed literally <num> times into the tabulars preamble at the spot it's used. So something like \begin{tabular}{*{2}{c}} will become effectively ...


1

If I modify your example so it can be run using general images \documentclass[standard]{letter} \usepackage[usestackEOL]{stackengine} \stackMath \usepackage{graphicx} \def\imgi{} \begin{document} \begin{center} \stackinset{l}{ .1in}{b}{.2in}{}{% \stackinset{r}{ .2in}{t}{.3in}{\includegraphics[width=4.5in]{example-image-a}}{% ...



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