# Tag Info

## New answers tagged spacing

2

It's not clear what \phantom{\hspace{10cm}} is meant to do other than producing An overfull box The standard \qed going to the next line Note that redefining \qedsymbol to empty doesn't disable the mechanism; if you remove the redefinition, you get the following output that clearly explains the issue. I suggest simply changing the symbol, if you ...

4

Jsut add an empty boxes at the end of the page: \documentclass[12pt]{article} \usepackage{geometry} \geometry{paper=letterpaper,margin=2cm, showframe} \usepackage[autostyle]{csquotes} \usepackage[dvipsnames]{xcolor} \definecolor{marronMedio}{HTML}{AB8000} \definecolor{amariClaro}{HTML}{FFFFCA} \definecolor{grisMedio}{HTML}{999999} ...

3

The spaces used for word space are available in the font domen parameters in classic tfm metrics and emulated as the same values in xetex when using system fonts, the What do different \fontdimen<num> mean so you want \fontdimen2\font however the only reason there is font specific spacing here is that the macro adds 6 interword spaces for each ...

1

The easiest place to find a fixed point on the page is the page head (or foot) so you can place each of the boxes by coordinate from the baseline of the header using a zero sized picture mode. I just do 3 here, using 1cm units. \documentclass[11pt,a4paper]{report} \usepackage[grid=false]{showframe} \usepackage{lipsum} \usepackage{graphicx} ...

2

You can place the content you want to reduce the width of inside a box of fixed width that suits your needs. Below I've created a similar mock-up to your scenario and placed the long content - a very long condition that is very long - inside a zero-width box that is left-aligned. This allows the upper-right cases to now be left-aligned to otherwise3: ...

0

You get the following warning: Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 41.53389pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. Use \usepackage{geometry} \geometry{ letterpaper, top=1.0in, bottom=1.0in, left=1.0in, right=1.0in, ...

1

Text \begin{figure}\centering% \vspace{1ex}% \includegraphics{image.jpg}% \end{figure} As of now, that's the best I can think of. If you include a minimal working example above, we could potentially try to be a tiny bit more precise.

0

The lettre class adds a rather big space after the address block and, additionally, twice the \openingspace, which is used between the subject and the opening line. You can patch the \letteropening command in order to add a different spacing (also negative, as in the example below). \documentclass[11pt]{lettre} \usepackage[utf8]{inputenc} ...

6

\let\oldfootnote\footnote \def\footnote{\ifhmode\unskip\fi\oldfootnote} probably works. \unskip is a tex primitive to remove the previous skip (space) and here it's guarded by an \ifhmode test to check that you only do this if you are in horizontal mode within a paragraph not (for some reason) at the start of a paragraph when \unskip would (depending on ...

2

Here's a tocloft way that has not been mentioned so far: tocloft provides the \cftbeforeXtitleskip and \cftafterXtitleskip lengths, where X stands for toc, lof or lot, depending on the specific needs. The advantage of using tocloft is that it hides the specific class settings. The values in the given example are just arbitrary! \documentclass{book} ...

2

Notwithstanding my comments above about whether doing this is desirable, if I were to need this, I'd make the following changes so as to retain some level of manual control over the output: \newtcolorbox{myquote}[1][10]{colback=yellow!20!white, colframe=yellow!75!black, grow to right by=-10mm,grow to left by=-10mm,boxsep=0pt,breakable, % this is the ...

1

You can for example increase the x unit of the chart a little bit from its default 0.5cm, or reduce the font size of the title using title font style=\tiny. Also note that you do not need to put the ganttchart environment in a tikzpicture. \documentclass[tikz]{standalone} \usepackage{pgfgantt} \begin{document} \begin{ganttchart}[ x unit=0.7cm, hgrid, ...

3


1

The cellspace package defines minimal vertu=ical padding at the top and bottom of cells in columnns with specifiers prefixed by the letter S (or C if you use siunitx): \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{array, cellspace} \setlength\cellspacetoplimit{4pt} ...

2

An answer to the first version of the question. Class standalone \documentclass{standalone} \begin{document} lorem ipsum \end{document} Full page: Settings the margins to zero \usepackage[margin=0pt]{geometry} Cropping the PDF file Or the PDF file can be post-processed with pdfcrop to remove the outer margins.

0

I can make two suggestions Embed the tabular environment in a center environment (and omit the \centering instruction), or Embed the tabular environment, along with the \centering instruction, in a table environment, taking care to add [h!] as the positioning specifier in order not to let the environment "float" too far away. This method may be preferable ...

4

Here, environment center makes sense, because it adds space: \begin{center} \begin{tabular}{...} ... \end{tabular} \end{center} Nicer lines are available with package booktabs: \usepackage{booktabs} ... \begin{center} \begin{tabular}{...} \toprule ... \bottomrule \end{tabular} \end{center} Full example: \documentclass{article} ...

1

I had similar problems. Large gaps after figure floats. None of the above had any impact. It was the placement option for the figure floats. Right click on the "float: Figure" The issue stems from if you have large figures in close proximity to each other. Lyx tries to do what you've asked it to. If the check box indicates "Here definitely", the software ...

1

The following example defined \phnum, which supports \X as additional digit. The macro is defined to be a phantom digit, leaving place for a digit. Then the colored number can be composed by overlaying the number with different colors. The digits of different colors are masked out by \X, for example: \documentclass{article} \usepackage{xcolor} ...

2

As @Zarko and @Bernard have already pointed out, setting \small at the start of each cell is not the same as having \small apply to the entire row of a tabular environment: even though the cell contents will be typeset at the same size, the values of \baselineskip will differ. Specifically, given that the main font size of your document is 11pt, the value of ...

2

That is normal: the result of \arraystretch depends on \baselineskip, which depends on the font size. Instead of playing with \arraystretch you can load the cellspace package which defines minimal vertical spacing between a cell and the above and below cells. \documentclass[11pt,openright]{book} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} ...

0

There might be multiple reasons and corresponding solutions: algorithm2e allows to customize the amount of extra vertical spaces before and after the algorithm block by \SetAlgoSkip{skip command}. For example, \SetAlgoSkip{} removes all the additional skips. Check out the documentation for more details. It seems to me making the algorithm environment not ...

3

You can disable the spacing with the nosep option from enumitem. I add also some ways to improve your table, for instance how to make it into filling the whole text width without guessing. Note that the center environment should not be used; also it's better if the \label sits next to the \caption, for easier lookup. I recommend using siunitx for units and ...

1

The nomencl package sets \itemsep to the value of \nomitemsep (default 4pt plus 2pt minus 1pt), which is added to \parsep (default for book class the same as \nomitemsep. If you want tight typesetting, set \nomitemsep to the negative of \parsep. The text below \printnomenclature is meant to compare the two lists. \documentclass{book} \usepackage{nomencl} ...

1

If I interpret your question and answer correctly then you have to add option cleardoublepage=plain and to remove plainheadsepline (if it is in your original code). \documentclass[ a4paper, headsepline, footsepline, plainfootsepline, cleardoublepage=plain% <- added ]{scrbook} \usepackage{blindtext}% dummy text \begin{document} ...

0

here is the answer to my question: i redefined the empty page style to plain: %%% renew style of empty pages \makeatletter \renewcommand*{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else \hbox{}% \thispagestyle{plain}% \newpage% \if@twocolumn\hbox{}\newpage\fi\fi\fi} \makeatother and added the plainfootsepline option to scrbook \documentclass[ ...

1

I think what you want is to change the justification of the material in section-level headers from "full" (the default) to "ragged-right", i.e., no justification at all. This may be achieved by providing the following instructions in the preamble: \usepackage{sectsty} \sectionfont{\raggedright} A side-effect of \raggedright is that no discretionary ...

4

That distance is hard coded in the definition of cvlist environment like \parbox[b]{0pt}{% \makebox[0pt][l]{\box\@cvlistheading}% \\*[0.5\baselineskip plus 1pt minus 1pt]% <---------- this line The length [-0.5\baselineskip plus 1pt minus 1pt] can be cancelled using \xpatchcmd like \usepackage{xpatch} ...

1

Here I patched the cvlist environment to change the gap between the header and the list by a user specified value of \Vshft, shown here as a very exaggerated -10pt. Works for both negative and positive \Vshft values. \documentclass[11pt,a4paper]{scrartcl} \usepackage{currvita} \usepackage{xpatch} \def\Vshft{-10pt} \makeatletter ...

1

Your input misses a couple of &, but it also has some other glitches. Use environments for the logical structures such as theorems and proofs; if you use \noindent in the document body more than once, there's something wrong Never use $$(see Why is $...$ preferable to$$ ... ?) The syntax {\Bbb Z} has been replaced by \mathbb{Z} a couple of ...

1

It seems that you looking for this: Anchors for split of equations should be present in each line of equation: \documentclass{article} \usepackage{amssymb} \usepackage{mathtools} \usepackage{setspace} \usepackage{bm} \begin{document} \noindent \textbf{Binomial Theorem:} If $n \in {\mathbb Z_{\geq 0}}$, then \[ (x+y)^n = \sum_{k=0}^{n} ...

2

If you don't need captions for each axis, I would suggest dropping the \subfloats altogether. They're not needed. I would also suggest putting the first four axes in a groupplot environment, then alignment is default. By only having axis labels on the outer edges you can also save some space. \documentclass{article} \usepackage{pgfplots} ...

1

I like the following solution: \documentclass{article} \usepackage{mathtools} \usepackage{showframe} \begin{document} \begin{align*} u(x) = & \begin{dcases} 1 - \frac{1}{2}\left(\frac{r}{a}\middle)^{-\frac{1}{2}} \middle\{1 + O(1 + \tan ϑ) \middle\} + O\middle(\left(\frac{r}{a}\right)^{\frac{1}{2}}\right) ...

1

The default \chapter command issues three different spaces to set the chapter heading: Space from the top of the text block to the word Chapter; default is 50pt. Space between Chapter and the chapter title; default is 20pt. Space between the chapter title and the chapter body text; default is 40pt. All of this is made by the macro \@makechapterhead (from ...

0

I'd profit of the fact that the first line is much shorter than the second one: \documentclass{article} \usepackage{showframe} % just for the example \usepackage{amsmath} \begin{document} \begin{equation*} u(x) = \begin{cases} \begin{array}{@{}l@{}} 1 - \frac{1}{2}\left(\frac{r}{a}\right)^{-\frac{1}{2}} \{ 1 + O(1 + \tan \vartheta) \} + ...

2

How about one of these solutions? \documentclass{article} \usepackage{mathtools} \usepackage{showframe} \begin{document} \begin{align*} & u(x) = \\ & \begin{cases} 1 - \frac{1}{2}\left(\frac{r}{a}\right)^{-\frac{1}{2}} \left\{ 1 + O(1 + \tan ϑ) \right\} + O\left(\left(\frac{r}{a}\right)^{\frac{1}{2}}\right) \text{as } ϑ\downarrow ...

4

The vertical skip between text page top margin and the chapter title is controlled by \vspace*{50\p@} in \@makechapterhead. (\p@ is an internal representation for pt) Either redefine this command completely or use a \xpatchcmd replacing \vspace*{50\p@} with some other length, that's easier to change, in a special length register, say \chaptertopskip. ...

24


3

The serif font theme does a rather crazy thing: it sets the font for math letters to the text italic font rather than the right math font. You can either use unicode-math or reinstate the correct font: \documentclass{beamer} \usepackage[no-math]{fontspec} \usepackage{polyglossia} \usepackage{mathtools} \usepackage{amsfonts} \usepackage{amssymb} ...

1

The larger space is \belowdisplayskip which is used for the first equation. You could locally set it to \belowdisplayshortskip. But some multiline display environment is probably better: \documentclass{article} \usepackage{amsmath} \begin{document} Hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello ...

Top 50 recent answers are included