Tag Info

New answers tagged

3

The first thing to try is, of course, reducing the arrow lengths. If all else fails, use \mathclap that, however, requires ampersand replacement; or enclose the diagram in an lrbox. I'll show all three possibilities. \documentclass[12pt,a4paper]{article} \usepackage{mathtools} \usepackage{tikz-cd} \newsavebox{\wideeqbox} \newcommand{\sample}{Lorem ipsum ...


5

You shouldn't use titlesec with KOMA-script generally. Assuming that you have needs, here is a way. We can use a \parbox or minipage to enclose the chapter title and fix the height of the \parbox/minipage. I have used explicit option for titlesec and used \parbox[t][2\baselineskip][t]{\textwidth} {\MakeUppercase{#1}} Here the height of the box is ...


5

TOTAL REVISION from original misunderstanding. EDIT again to provide two approaches: (1) \IBAN{} for turning an unspaced string of letters into a spaced IBAN number that nonetheless copy/pastes without the spaces, and (2) \ncs{} for taking a space filled string and making it so that a copy/paste removes the spaces. THE \IBAN{} MACRO APPROACH Following up ...


0

I found a solution by adding a vertical space vspace to the ruler. I think this can be useful, thus here is the code: \documentclass[onecolumn,twoside,openright,a4paper,11pt]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{blindtext} \usepackage{lipsum} \usepackage{fancyhdr} \fancyhf{} ...


1

define your own command: \documentclass{article} \newcommand\tab[1][1cm]{\hspace*{#1}} \begin{document} foo\tab bar\tab[2cm]baz \tab foo\tab bar\tab[2cm]baz \rule{1cm}{1pt}foo\rule{1cm}{1pt}bar\rule{2cm}{1pt}baz \end{document}


8

Beware of {\large ``The simplest proof of the last theorem of Fermat''}\\[5mm] as if the title ended up being more than a line you would have large text set to a normal baseline and inconsistent spacing, size changes should almost always include the end of the paragraph so {\large ``The simplest proof of the last theorem of Fermat''\par\vspace{5cm}} ...


9

At the TeX level using \\ doesn't start a new paragraph while using \par obviously does. As noted in comments, When to use \par and when \\ covers the difference between the two in general. To see what is going on in the current case, where we are talking about 'design', a small demo such as \documentclass{article} \begin{document} \tracingoutput=2 ...


3

The breakpoint is before the glue, and if it broke there, the first line would be too underfull. You can add an additional breakpoint after the glue: \hsize 5cm \hrule Do you like me? \hfill\hbox{\quad$\bigcirc$ Yes\quad$\bigcirc$ No}. Do you like me?\ \hfill\allowbreak\hbox{\quad$\bigcirc$ Yes\quad$\bigcirc$ No}. Do you like me?\ ...


0

\def\@pardis{9em}% \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \addcontentsline{toc}{part}{\CTEXthepart\hspace{\@pardis}#1}% \else \addcontentsline{toc}{part}{#1}% \fi \@endpart} give it a new definition \def\@pardis{9em}% you could set the whatever value you want, then it works!


1

You can make TeX decide for the line breaks: \documentclass{article} \usepackage{amsmath} \usepackage{lipsum} % just for the example \newcommand{\lrand}{\mathrel{\land}} % a relation, while \wedge=\land is an operation \newenvironment{mrule} {\relpenalty=0 \flushleft$\displaystyle} {$\endflushleft} \newenvironment{mruleA} {\relpenalty=0 \quote ...


3

This look, maybe? \documentclass{article} \begin{document} $\scriptstyle \begin{array}{l@{\quad}r} XXXXXXX(XXXX(A,B,C),XXXX(D,E,F)) &\leftarrow \\ XXXXXX(A,B,C) \quad \wedge \quad XXXXXX(D,E,F) &\wedge\\ XXXXX(XX(A,B),XX(D,E)) & \wedge \\ XXXXX(XX(B,C),XX(E,F)) & \wedge \\ XXXXXX(XXX(A,B,C),XXX(D,E,F)).\\ \end{array}$ \end{document} If ...


8

I am not too sure if getting advice from TeX hackers on typography is good advice but certainly is solid advice on anything related to LaTeX. My own preference is to mix both floating and non-floating figures and I like non-floating figures. Here are some samples: Here is the same "style" for an arts page Here is one "Life Magazine style" These and ...


7

The answers depend a lot on what kind of document you are producing. LaTeX's float placement algorithm is a lot better and has a lot more parameters than many users believe. See Frank's description One of the most common problems of course is that when things don't go quite as people expect they use [h] which makes it much more likely that the figure can ...


3

\part sets its ToC-entry within \@part (from report.cls): \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% \else \addcontentsline{toc}{part}{#1}% \fi \markboth{}{}% {\centering \interlinepenalty \@M \normalfont \ifnum ...


0

You can also extract each inline math into a separate tight page as follows. The border can be adjusted, see my comment in the code. This approach frees you from manually copying and pasting each inline equation from your original TeX input file to a new input file as you did in your minimal working example. Does it sound much better approach? ...


4

Just use your first version, with \displaystyle. \documentclass[preview,varwidth ,multi,border=1pt]{standalone} \usepackage{amsmath} \def\D{\mathrm{d}} \begin{document} %(i) \preview $\displaystyle\int^{10}_0{\frac{1}{2}\D t}$ \endpreview \end{document} For systems of equations, you can use aligned inside single dollar signs. ...


4

You better use pmatrix: \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{amsmath} \begin{document} Preliminary Theorem 1.1.2. If $(\lambda_1,\dots,\lambda_n)$, $(\mu_1,\dots,\mu_n)$, and $(k_1,\dots,k_n)$ are arrangements of $(1,\dots,n),$ then \begin{align*} &ϵ\begin{pmatrix} \lambda_1,\dots,\lambda_n \\ ...


5

If a list such as itemize is placed at the start of a minipage its usual vertical spacing before the list is omitted. Adding multicols the way you did it is producing a box around the itemize list just like a minipage and thus the \topsep is not added. Instead what you see is the \multicolsep which is added before and after the multicol environment. In ...


1

As I just found out, using fragile=singleslide (instead of just fragile) as an argument of frame solves this particular issue too. However, the accepted answer is likely to fix other issues as well and arguably should be the preferred way to do it.


5

As stated in the Beamer manual v3.33 at the end of page 62, when trying to use a frame environment inside \newenvironment, the ending must end with \end{frame} and not contain any other \end command, since the actual mechanics are somewhat sensitive. So in order to add additional environments, the manual suggests to define a separate new command to contain ...


0

Full Code \documentclass[onecolumn,twoside,openright,a4paper,11pt]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{blindtext} \usepackage{lipsum} %\usepackage[top=2.25cm, bottom=1.5cm, left=2.25cm, right=2.25cm]{geometry} \usepackage{layout} %\setlength{\hoffset}{1cm} % 1 ...


0

if you open up the \setlength{\footskip}{1.5cm} command in preamble you can achieve what you wanted to do


2

If you want the space to match the width of the characters Th, do this: \documentclass{article} \setlength{\parindent}{0pt} \begin{document} This is first line\\ \phantom{Th}This is second line\\ This is third line\\ This is fourth line \end{document} I can't see why you would want to do this, but that's a way. Or you can use \hspace: ...


0

\noindent command is the correct answer. Overfull \hbox (15.0pt too wide) is a warning only. After applying \noindent command before starting \begin{tabularx} command your code runs perfectly well. I got zero error, zero warnings and zero bad boxes. However, I am working with MikTex 2.9 in windows 8.


6

Please upgrade your LaTeX installation. That is one horribly old LaTeX installation In my system (TeX Live 2014), then the only warning I get is a overfull \hbox (15.0pt too wide). 15pt is the standard size of the paragraph indentation. So you may want to use \noindent \begin{tabularx}... or \begin{center} \begin{tabularx}.... ... \end{tabularx} ...


1

To reduce the spacing between figures and text, you can use \belowcaptionskip if all your figures have a \caption: \setlength\belowcaptionskip{-3ex} \begin{figure}[h] \centering Figure contents \caption{Figure caption} \end{figure} In order to reduce the spacing between paragraphs, set \parskip: \setlength{\parskip}{0mm} To see the current ...


3

The default page formatting includes the flushbottom directive, which makes text end at the same place (vertically) on each page and can result in excessively large vertical spacings. This not sensible for verse, and you can use the raggedbottom directive instead, which will not stretch vertical skips.


3

In according to the manual, you have to change the \afterpoemtitleskip length: \documentclass{book} \usepackage{verse} \setlength{\afterpoemtitleskip}{0pt} \begin{document} \poemtitle{Lamp} \begin{verse} The lamp is nice\\ The lamp is cool\\ Blah diddy blah\\ The lamp turns blue \end{verse} \end{document}


2

Here is a simple solution that ensures frames on every page, with the typogrid,geometry and framed package, with \FrameRule set to 0pt. One has to make titles by hand, as \maketitle creates empty (framed) pages before the title. The framed environment is used only to have a small space between text and frame. \documentclass[a4paper]{article} ...


4

Here is an adaptation of Place a TikZ picture on every page: Notes: This does require two runs. First one to determine the locations, and the second to do the drawing. Code: \documentclass[12pt]{book} \usepackage[demo]{graphicx} \usepackage[all]{background} \usepackage{lipsum} %\usepackage{showframe} \usepackage{tikz} \usetikzlibrary{calc} ...


3

Instead of (mis-)using a combination of gather and aligned you could use a normal tabular with a p{}-type column for the descriptions. This could be wrapped up in a custom environment, eqdescription or something. The example below uses the center and the tabular environments but it uses the internal commands in the definition of eqdescription, i.e., \center ...


0

You can halve the line spacing and add an extra empty line when needed. \usepackage{setspace} %[...] \begin{spacing}{0.5} \begin{gather} \text{LBG} [\%] = \frac{\text{AP}_\text{L}}{\text{AP}_\text{G}} \cdot 100\\ \begin{aligned} \\ &\text{LBG} &&= &&\text{Lieferbereitschaftsgrad} \\~\\ ...


0

Try this. I've added a negative space, but this isn't a good solution, IMHO :-( \begin{gather} \text{LBG} [\%] = \frac{\text{AP}_\text{L}}{\text{AP}_\text{G}} \cdot 100\\ \begin{aligned} \\ &\text{LBG} &&= &&\text{Lieferbereitschaftsgrad} \\ &\text{AP}_\text{L} &&= &&\text{S\"amtliche ...


2

Here's one way to go about implementing issues #1, #2, and #3. (I leave aside #4; but this is an issue that can be dealt with much later on.) \documentclass[11pt,twoside,openright]{book} % If we store the book title in a macro, we can use it in many places \newcommand{\thebooktitle}{Heat and Mass Transfer} % Fonts, encodings, languages ...


2

There are two factors that influence your problem. The default behavior of geometry is to divide the available vertical space for the top and bottom margins in a ratio 2:3. Another slight source for space is the usage of the center environment. Just use \centering that doesn't add vertical space. You can look at how geometry sets the page elements by adding ...


3

\intextsep deals with the gap between a float within the text body and the rest of the text around it (see Remove space after figure and before text). Since you're using only a tabular, there is no floating behaviour, hence the non-response from setting \intextsep. If you wish to add some space above/below the non-floating tabular, do so using ...


8

There are now a series of different flexible delimiters between the parts of a name (when using Biber). They are \bibnamedelima, to \bibnamedelimd plus \bibnamedelimi and the marker command \revsdnamepunct. Their full use cases are described in the manual: basically, \bibnamedelima/\bibnamedelimb go between first names or between surnames (i.e. for gaps ...


3

This uses stacks instead of tikz. The inter-letter kerning, as well as the vertical and horizontal offset distances of the inset letters can be changed. The l and b indicate the insets are relative to the left-bottom of the base image. \documentclass{article} \usepackage{xcolor,stackengine,graphicx} \begin{document} ...


9

You could try a few values until you get the desired results: As requested in the comments, here is an example with opacity applied to the main text as well as well as the lower case inserted text: References: Tikz: use opacity for fill, yet leave draw (lines) untouched Notes: A \kern was applied to get the F right just touching the E. I would ...


2

\documentclass[oneside]{book} \begin{document} \chapter*{A} Some text \chapter*{\phantom{A}} Some text without heading, starting at the same position as above. \end{document}


0

@Torbjørn T. Thank you very much. The problem has been solved. For anyone facing the same problem, the steps are as follows: Change the Document>Settings>Text Layout to Indentation: Default (Even if you still want to keep your document not-indented as I do) This will be quite tedious! For all figures: inside the figure float, change the paragraph settings ...


5

The interrow padding is because the bottom of an image is on the baseline and the tabular rows take into account the possible depth of descenders. We can remove the white space by lowering the images on the top row. A similar trick can be used to have a symmetric padding above the images. \documentclass{article} \usepackage{graphicx} ...


5

You can change the \arraystretch like \def\arraystretch{0.15} Choose an appropriate value. \documentclass{article} \usepackage{graphicx} \usepackage{siunitx} \sisetup{per-mode=symbol} \begin{document} \begin{center} \setlength{\tabcolsep}{0pt} \def\arraystretch{0.15} \begin{tabular}{c} \hline \includegraphics[height=27mm]{example-image-a} ...


5

Looking into the aaai.sty file will learn that the area is controlled by titlebox whose default value is 2.25in. Therefore, use a less value in the preamble should remove the space, displayed below \setlength\titlebox{1in} Code \documentclass[letterpaper]{article} \usepackage{aaai} \usepackage{times} \usepackage{helvet} \usepackage{courier} ...


2

(It is a little bit difficult to say for sure, but I think I know why this happens. At least partly.) There are two problems relating to the paragraph settings of the paragraphs containing the floats that can produce additional whitespace. 1. Empty paragraphs If you look at the LaTeX source of one of the figures you'll see something like \noindent ...


1

Try this and see \uplevel{ \begin{choices} \choice \choice \choice \choice \end{choices}}


4

The mystery is readily solved: tabu processes its input twice or more. It disables some commands during the trial processing, but it forgets to do it for \stepcounter and \addtocounter. One of the commands it disables is \write, with the consequence that the \vspace is added but the message is not issued. \documentclass{article} \usepackage{tabu} ...


0

I get the desired result by removing some of your '\\', specifically the ones after line 2 and the one on the line before line 3: \begin{document} \begin{lxtabu} Line 1\\ \begin{lxtabu} Line 2 %\\ \end{lxtabu} %\\ Line 3, should not have big empty space above it \\ \end{lxtabu} Line 4, should have \verb|\baselineskip| space above it. ...


2

I've always been a big advocate of setting a letter using the default article document class, since it allows you the freedom you want in a natural way. There's no need to adjust the setting of the letter class to suit your needs rather than just writing it using another (more flexible) class. \documentclass{article} \usepackage{newcent} % Default font ...


1

Well, most of your questions have already been answered either in the question itself or in the comments, so here's just a recap to satisfy the site's mores: The workaround to allow spaces in keywords that microtype.dtx employs is to use the "non-breaking space" in lieu of a normal space to make listings believe that it's a letter, while it will be output ...



Top 50 recent answers are included