Hot answers tagged

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


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


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


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


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.


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

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.


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


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


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


1

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. \documentclass{book} \usepackage{tocloft} \usepackage{blindtext} ...



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