# Tag Info

## New answers tagged spacing

0

Here's a way: I copied the code for the southall style (section B.1.4 of the memoir manual) and modified it, giving it a new name. Adjust to suit. The package showframe is used just to better show the positioning of title. Note that memoir provides functions similar to titlesec, so they're not normally used together. More information about chapter styles is ...

3

It seems to be an interaction between stfloats and the class or other packages used. removing that and changing [b] to [!bp] to allow more flexibility in the float positioning produces a better result:

2

I am currently disabling kerning between an apostrophe and a succeeding letter by using XeTeX's interchartoken mechanism: \XeTeXinterchartokenstate=1 \newXeTeXintercharclass\ApostropheClass \XeTeXcharclass'\ApostropheClass \newXeTeXintercharclass\AfterApostropheClass \XeTeXcharclassa\AfterApostropheClass \XeTeXcharclassA\AfterApostropheClass ...

0

I contacted Mr. Tellechea (maintainer of chemfig package) and he replied to my question. I put here his code: ‎\documentclass[11pt]{article}‎ ‎\usepackage{chemfig}‎ ‎\makeatletter‎ ‎\catcode\~12‎ ‎\def\CF@chemfig@v{%‎ ‎ \let\CF@next@action\CF@chemfig@v% \a priori‎, ‎on reboucle‎ ‎ \ifx\CF@remain@molecule\@empty‎ ‎ \let\CF@next@action\endgroup‎ ...

1

This happens because the bemaer column system uses the LaTeX minipage behind the scenes: a vertical box. As these are not set with a fixed height they don't stretch, in contrast to setting a frame where beamer does some resizing (so the stretch is important). For a one-off application I'd be tempted to use a raw minipage and adjust as require. For example ...

1

You have a \checkboxeshook command that allows to modify the list parameters used by the checkboxes environment: \documentclass[a4paper, 11pts]{exam} \usepackage{multicol, setspace} \usepackage{textcomp, booktabs,colortbl} \usepackage[table]{xcolor} \setlength\columnsep{40pt} \onehalfspacing \renewcommand\checkboxeshook{\setlength\leftmargin{0cm}} ...

3


5

This problem affects most Adobe fonts (Adobe, are you listening?). I don’t use xetex enough to know what can be done about it in xetex, but in luatex you can write a feature file to adjust the kerning without editing the font itself. It’s much easier than it sounds. E.g., \documentclass[12pt]{article} \usepackage[french]{babel} ...

2

This may have the drawback of slightly affecting line spacing, but... I substitute \Overline which does an \overline with a little extra stack gap added. And for \preclosure, I modified it so that it preserves the math style of the argument, using the \ThisStyle{...\SavedStyle...} construct of the scalerel package. I did not really address the issue of ...

2


3

You can use the trick you can find in my answer to How to keep a constant baselineskip when using minipages (or \parboxes)? You should also avoid repetitive explicit markup, by defining an environment. \documentclass{article} \usepackage{calc,xparse} \NewDocumentEnvironment{entry}{O{2.5cm}mm} {\noindent\begin{minipage}[t]{\textwidth-#1} \textsc{#3:} ...

7

i nearly always agree with david, but i think a little less space is called for: \documentclass{article} \usepackage{amsmath} \begin{document} $\vec{r}_{i}^{2} \quad {\vec{r}_{i}}^{\,2}$ \end{document}

4

\documentclass{article} \usepackage{amsmath} \begin{document} $\vec{r}_{i}^{2} \quad {\vec{r}_{i}{}}^{2}$ \end{document}

3

You should write all your \parboxes using \parbox[.]{<len>}{\strut ... \strut} in order to obtain the appropriate line-height - \strut ensures this. However, your input can be presented a little differently using the following tabularx approach and it's far easier to manage: \documentclass{article} \usepackage{tabularx,array} ...

2

An easy work-around would be to supply the skip as part of the options to an mdframed environment. The documentation mentions the following lengths: As such, also supply skipabove=10in and skipbelow=10in. However, I'd use the power of mdframed and create your own mdquoting environment: \documentclass{article} \usepackage{mdframed} ...

5

You can make url to break the lines at places you want by adding these lines to your preamble: ...

2

I'm not really sure you want to do it, because it will be confusing your reader. \documentclass{scrbook} \usepackage{amsmath,mathtools} \begin{document} $$\begin{pmatrix} a \\ b \\ c \end{pmatrix}_{\!\!\mathrlap{\mathrm{SCR}}} = x$$ \end{document} The \!\! is for moving the subscript nearer the parenthesis (I always use ...

4


0

There is a difference. Here are 5 versions of your formula, with the normal spacing, and adding \,, \:, \; and \. In my opinion, the only places that might justify adding some space are just between the quantifiers. For the parentheses and the binary symbol, spacing is fine: \documentclass{article} \usepackage{mathtools} % \begin{document} \begin{gather*} ...

0

Can't see any problem here. Does none of these work for you? Just in order to give some examples. You can find a big list here. % arara: pdflatex \documentclass{article} \usepackage{mathtools} \newcommand*{\test}[1]{$G#1(\forall(x)#1\forall(y)#1(p(x)#1\vee#1\neg{}p(y)))$\par} \begin{document} \test{} \test{\,} \test{\>} \test{\ } \test{\mkern+10mu} ...

3

Something more or less like this, basically tell latex to leave a big space (4cm here) but then tell it that footnotes do not take up any space so tex does not make the page any shorter when there are footnotes. \documentclass{article} \def\a{One two three four five six seven eight. } \def\b{Red blue yellow green black white} \def\c{\a\a\b\b\a\a\a\a} ...

0

If you also want to get rid of the margin outside the tabular, use the flushleft: \begin{flushleft} \begin{tabular}{@{}l l} Content & Content \end{tabular} \end{flushleft}

6

What you're asking for is an overlapping macro. Either use \rlap (which produces a right overlap): \rlap{?}! or \llap (which produces a left overlap): ?\llap{!} The order of the punctuation ? and ! doesn't really matter, although they have different widths (and therefore may set slightly differently when switched around). The LaTeX2e equivalent is ...

4

For some reason beyond my understanding, using the keyboard guillemets « and » together with the following option in the babel package \frenchbsetup{og=«,fg=»} solves the problem (and elegantly too). Of course, one needs access to utf8 characters. Here is a full example. \documentclass{article} \usepackage[utf8]{inputenc} ...

2

Mico beat me to it, so I'll post another option, the quick and dirty way to get the same result—maybe useful if this is the only table with this kind of spacing issue and you don't want to load another package. You can just use \par to insert line breaks and imitate \raggedright: \documentclass{article} \begin{document} \begin{table}[h] ...

3

Be sure to load the array package and replace p{9.0cm} with >{\raggedright}p{9.0cm}: \documentclass{article} \usepackage{array} \begin{document} \begin{table}[h] \centering \begin{tabular}{|>{\raggedright}p{9.0cm}|p{1.5cm}|} \hline User-agent string & dummy\\ \hline Googlebot (compatible; Googlebot/2.1; ...

3

Here is how I would do it, using the siunitx package: \documentclass{article} \usepackage{booktabs} \usepackage[separate-uncertainty]{siunitx} \begin{document} \begin{table} \small % change according to needs \setlength\tabcolsep{6pt} % change according to needs \centering \begin{tabular}{ l S[table-format = ...

1

You can use this: \documentclass{article} \usepackage[showframe, nomarginpar]{geometry} \usepackage{mathtools} \usepackage{enumitem} \begin{document} Some text some more text some more text some more text some more text some more text some more text some more text some more text. \begin{enumerate}[align = left,labelwidth =* ,labelsep*=-1pt,itemindent = ...

1

You can use a redefinition of \headrule to add a convenient (negative) skip before the rule is typeset; the following example code shows the necessary redefinition using -2pt (change this value according to your needs in the line marked % change here) \documentclass{book} \usepackage{fancyhdr} \usepackage{lipsum} \makeatletter \def\headrule{{ ...

0

You can also use the YAML header to put commands in the preamble: --- header-includes: - \usepackage{titlesec} - \titleformat*{\section}{\itshape} ---

0

From the User Guide: -H FILE, --include-in-header=FILE Include contents of FILE, verbatim, at the end of the header. [...] This option can be used repeatedly to include multiple files in the header. They will be included in the order specified. Implies --standalone. You can then put your customisation code in FILE. The code inside FILE will be ...

4

The reason for these "random spaces" is as a result of the particular document composition. Take a look at pages 3 and 4: Note that you have a heading \section*{Results} which happen to be at the top of the first column of page 4. TeX decided that there is no way to place this heading together with at least one line "Lorem ipsum dolor sit amet, ...

3

You should avoid philex for the reasons egreg gives in his answer. The most commonly used packages for typesetting linguistic examples are gb4e, expex, and linguex (which is loaded by philex). See Alan Munn's excellent comparison of these packages for more details. Many of the features that philex adds to linguex (cross-referencing, repeating examples, ...

0

Not an answer but a comment with images: I'm not sure to understand the problem. If I replace your images (which I don't know where to find them neither their size) with example-images from mwe package I obtain two slides with everything inside. So, what's what doesn't fit? where?

2

The lingmacros package is very old, and is really not very practical for numbering anything other than the most basic examples. For instance, it requires you to label subexamples manually, which really defeats the purpose of LaTeX and automatic numbering of things. See the following question for a summary of three widely used packages for linguistic ...

2

The reason is that the philex package is written in a terrible way and doesn't protect end-of-lines in definitions. The space you see is caused mainly by these unprotected spaces. See When is it harmful to add percent character at end of lines in a \newcommand, or similar for more information. They are too many unprotected end-of-lines for proposing a fix; ...

Top 50 recent answers are included