Tag Info

New answers tagged

2

Consider the following example, with black boxes as auxiliary spacers. \documentclass{article} \usepackage{lmodern}%get scalable font \usepackage{showframe} \usepackage{titling} \pretitle{\begin{center}\fontsize{18bp}{18bp}\selectfont} \posttitle{\par\end{center}} \preauthor{\begin{center}\fontsize{14bp}{14bp}\selectfont} ...


2

Look what the standard classes do here, in size11.clo you see \renewcommand\normalsize{% \@setfontsize\normalsize\@xipt{13.6}% \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@ \abovedisplayshortskip \z@ \@plus3\p@ \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} which sets up ...


0

Patch \lst@MakeCaption to do \linespread{1}: \documentclass[a5paper]{article} \usepackage{listings} \usepackage{etoolbox} \makeatletter \patchcmd\lst@MakeCaption {\ignorespaces} {\linespread{1}\selectfont\ignorespaces} {}{} \makeatother \begin{document} \begin{lstlisting}[ float, basicstyle=\ttfamily\footnotesize, lineskip=-0.7ex, ...


3

You can use caption package with setspace. \documentclass[a5paper]{article} \usepackage{listings} \usepackage{caption} \usepackage{setspace} \captionsetup[lstlisting]{font={stretch=1}} \begin{document} \begin{lstlisting}[float, basicstyle=\ttfamily\footnotesize, lineskip=-0.7ex, columns=fixed,basewidth=0.5em, captionpos=b, caption={Long caption text that ...


5

It is a known problem that row colors doesn't work with longtable: However, \rowcolor in front of individual rows runs nicely. Added: There is a problem using booktabs with rwcolor(s): as it adds some vertical padding around its rules, there appears white strips that may be unwanted. In such a case I propose another solution, based on the boldline and ...


1

You also can use the \addlinespace command from booktabs. The value of \defaultaddspace can be adjusted in preamble. I also slightly simplified the code for the first column: \documentclass{article} \usepackage{array, booktabs, multirow} \begin{document} \begin{tabular}{ > {\bfseries}l*3l} \toprule R1 & 12 & 13 & 14 \\ \addlinespace ...


1

\\ has an optional argument, meaning the vertical space added. Hence you can rewrite your example as (the value is left to your taste): \begin{tabular}{*4l}\toprule \textbf{R1} & 12 & 13 & 14 \\ \multirow{2}{*}{\textbf{R2-3}} & 22 & 23 & 24 \\[-3pt] % here is the change ...


1

I believe \itemsep is reset at the start of each itemize or enumerate and is given different values for different levels or when cramped. For a global value, see Global setting of spacing between items in itemize environment for beamer \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item Here I go again \item creating a ...


2

I would have a look on the package listings if you want to add code to your text. For your example, you may use any addition of vertical space as mentioned here: http://tex.stackexchange.com/a/41488 Here are some examples: % arara: pdflatex \documentclass{article} \begin{document} \noindent Blah: \\[1cm] line1 \medskip\\ % or smallskip or bigskip ...


0

Updating the packages algorithmicx and algorithms did not help, but indeed the problem was that on one machine one of the packages was outdated. After a thorough search/comparison of the package dates in the MiKTeX Package Manager on both machines, I found that on one system the package caption had a different date than the other. Uninstalling the older ...


6

First of all, you absolutely need to tell whoever is in charge of the project what you’re almost saying in the comments: what you’re asking to do here is the consequence of bad decisions that you shouldn’t have to deal with. All you’re doing here is working around these bad decisions because you can’t tackle the main issue. Now, as long as you’re aware of ...



Top 50 recent answers are included