New answers tagged

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

See, if this is what you looking for: The code of above equations is: \documentclass[12pt]{book} \usepackage{mathtools} \usepackage{amsfonts} \renewcommand{\baselinestretch}{2.2} \usepackage{lipsum} \newcommand{\sign}{\operatorname{sign}} \newcommand{\ub}[2]{\underbrace{#1}_{#2}} \newcommand{\x}{\textsc {x}} \newcommand{\z}{\textsc {z}} ...


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

For very mysterious reasons, latexsym defines \unlhd as a \mathbin instead of a \mathrel. On the other hand, amssymb provides a better symbol, \trianglelefteq. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \renewcommand{\unlhd}{\trianglelefteq} \begin{document} \subsection{Third Isomorphism Theorem} Let $G$ be a group, and $N\unlhd ...


17

the difference here is caused by the different treatment of two different classes of symbols when the lines in which they occur are justified. the two classes involved here are \mathbin (for \unlhd, a binary operator) and \mathrel (for \subseteq, a relation). in the second example, the line is too long to fit, so spacing is compressed where permitted. ...


0

To modify the first ones, the option is simply: vspace{} \firstname{\Huge{Xan}} \familyname{Do Campo\vspace{-0.24cm}} \title{\Large{Craftman\newline{}\vspace{-0.24cm}\newline{}Wood}} To modify the other distances?


1

If i understood the question correctly, you want the following. \documentclass[12pt]{report} \usepackage{tocloft} % use for th next command in order to remove dots \renewcommand{\cftdot}{} % remove dots of table of content \renewcommand{\cftchapfont}{\cftsecfont} \renewcommand{\cftchappagefont}{\cftsecfont} \setlength{\cftbeforechapskip}{0pt} ...


1

Here's one way which involves using the tikzpicture environment as described in tikz-cd's manual around page 12 with TikZ's pgfinterruptboundingbox environment. It isn't very elegant, but it does work. \documentclass[tikz, border=5pt, multi]{standalone} \usepackage{tikz-cd,amsmath} \begin{document} \begin{tikzpicture}[commutative diagrams/every diagram]% ...


5

You can use lists, with the help of enumitem for setting parameters more easily. \documentclass{article} \usepackage{enumitem} \usepackage[nopar]{lipsum} % just for the example \newenvironment{subindent}[1][0.5in] {\itemize[label={},leftmargin=#1,nosep]\item\relax} {\enditemize} \begin{document} \lipsum[2] \begin{subindent} \lipsum[3] ...


5

Since \indent is already used, I used \myindent and used \mytab for the "tab" size. Pretty much any length will do. \documentclass{article} \usepackage{lipsum} \usepackage{showframe} \newlength{\mytab} \setlength{\mytab}{\bibindent} \newcommand{\myindent}[1]% #1 = text to be indented {\ifvmode\else\par\fi \bgroup\advance\leftskip by \mytab #1\egroup\par} ...


7

Like most latex constructs, a tikzpicture is a box so spacing is controlled as it would be between two letters. You have \end{tikzpicture} \begin{tikzpicture} which is like hello world and puts one word space between them so they are side by side if they fit on the line. You could have a blank line to put them in separate paragraphs one above the ...


5

I looks like the fact that you've wrapped S[..] in braces throws the parser off. At least, removing the {} removes the error. Note that vertical rules and booktabs don't go well together, so below I've removed the rules. I also used an S column for all the six last columns, that have numbers, and some other small changes. \documentclass{article} ...


1

The \tableofcontents is set like any other chapter under memoir and uses the chapter-related settings for spacing. Specifically, the \aftertoctitle macro governs what happens after the toc title. The default is to match \afterchaptertitle, so we can update this to suit our needs: \documentclass{memoir} \usepackage{blindtext} \newlength{\aftertocskip} ...


3

If you need it frequently, then you need to create a macro for it. It'll make life easier and more consistent! \documentclass{article} \usepackage{amsmath} \newcommand{\comb}[2]{{}_{#1}\mathrm{C}_{#2}} \begin{document} $\comb{4}{2} \times \comb{7}{2} = \binom{4}{2} \times \binom{7}{2}$ \end{document}


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