# Tag Info

2

Here is a solution. Use \setlength{\cftbeforetoctitleskip}{<dimen>} because \lstlistoflistings use \tableofcontents \documentclass{article} \usepackage{tocloft} \usepackage{listings} \setlength{\cftbeforetoctitleskip}{5cm} \begin{document} A \lstlistoflistings \begin{lstlisting}[caption={bla bla},label=list] for i:=maxint to 0 do begin { do nothing } ...

2

The warnings (not errors) come from the bookmark code. The setting of the space factor by \@ can be used with TeX, but not in bookmark strings. There the command can be disabled by: \usepackage{hyperref}% option "pdfencoding=auto" or "unicode" recommended \pdfstringdefDisableCommands{\let\@\@empty}

1


5


0

You can use the \smashoperator command, from mathtools: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation*} \smashoperator{\bigcup_{a \in \{\text{set that is very wide}\}}} S_a \end{equation*} \end{document}

0

I came around \lower and \raise TeX "primitives" here at https://www.tug.org/utilities/plain/cseq.html. And manually lower and raise a box in the \overset works fine for me. \overset{\lower.5em\hbox{aaa}}{bbb}

1

You can always check with \ifvmode or \ifhmode, e.g., \ifvmode do this\else do that\fi. But here you don't need that because \par acts that way (don't use \newline or \\ to end paragraphs). I added the \noindent which does no harm if \parskip=0pt and acts as you seem to want when \parskip≠0pt. \newenvironment{myenv} {\begin{trivlist}\item} {\par\...

2

Use \floatsetup{captionskip=…}: \documentclass{book} \usepackage{graphicx} \usepackage{floatrow} \usepackage{caption} \captionsetup{ slc=false, } \begin{document} \begin{figure} \floatsetup{captionskip=2cm} \ffigbox[\FBwidth] {\caption{Caption goes here.}} {\includegraphics{example-image-a}} \end{figure} \end{document}...

1

The relevant LaTeX parameters are: \intextsep: the space between text and floats in the running text \textfloatsep: the space between a float at the top of the page and the text, also the space below text and a float at the bottom of the page \floatsep: the space between to consecutive floats Thus you should be adjusting the first two of these parameters....

0


5

You can try with a sidebyside box from tcolorbox. Option sidebyside adapt= ... defines which part fixes proportions between left and right parts and the other one takes the rest of the line. \documentclass[parskip=full]{scrartcl} \usepackage{blindtext} \usepackage{tikz} \usepackage[most]{tcolorbox} \begin{document} \Blindtext[1] \tcbsidebyside[...

5

Coffins were really invented to address this, you want a baselineskip offset between the pole along the bottom baseline of the first coffin and the top baseline of the second \documentclass{article} \usepackage{expl3,kantlipsum} \begin{document} \ExplSyntaxOn \coffin_new:N \l_exp_my_coffin \coffin_new:N \l_exp_your_coffin \vcoffin_set:Nnn \l_exp_my_coffin ...

2

You can add struts \documentclass{article} \usepackage{xcoffins,kantlipsum} \begin{document} \footnotesize\parindent=0pt \NewCoffin \MyCoffin \NewCoffin \YourCoffin \SetVerticalCoffin \MyCoffin {.5\linewidth} {% \strut\kant*[1]\strut } \SetVerticalCoffin \YourCoffin {.5\linewidth} {% \strut\kant*[2]\strut } \hrule \JoinCoffins \MyCoffin [b,l] \...

1

It is easier than you might think, without loading any package. \documentclass[12pt,a4paper, egregdoesnotlikesansseriftitles% The name of this option might change in the future ]{scrreprt} \usepackage{graphicx} \usepackage{lineno} \usepackage[english]{babel} \usepackage[super]{natbib} \usepackage{booktabs} \usepackage{textcomp, gensymb} \usepackage[table]{...

0


3

Have you considered using the tasks package? It can achieve something like what you're asking for. \documentclass{article} \usepackage{tasks} \begin{document} I'm trying to make a list in which each item has multiple lines, and I want the items to line up horizontally, like this: \begin{tasks}(2) \task this is the first item in the ...

2

Here is how to remove the dotted line from the toc, at least for article class. \documentclass{article} \makeatletter \renewcommand*\l@subsection[2]{% \ifnum \c@tocdepth >\@ne \addpenalty\@secpenalty \addvspace{\z@ \@plus\p@}% vertical space (1.0em \@plus\p@ for section} \setlength\@tempdima{2.3em}% #3 from \@dottedtocline \begingroup ...

0

A quick workaround would be to delete the following lines %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \makeatletter \addtocontents{toc}{\begingroup \let\protect\l@chapter\l@specialchapter} \addcontentsline{toc}{chapter}{CHAPTER} \addtocontents{toc}{\endgroup} \makeatother %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% in ...

2

The bottom option essentially adds \vfill at the end of every page, so your \vfill makes TeX divide the blank space in two equal chunks. Use third order infinite glue: \documentclass[a4paper]{article} \usepackage[hang,bottom]{footmisc} \begin{document} This is my text\footnote{this is my footnote} \vspace{0pt plus 1filll} This is my bottom-of-page ...

0

I needed it for only one specific table and instead of changing how it works through the entirety of document I found that doing the following suited my needs: \begin{table} \centering {\def\arraystretch{1.3} \begin{tabularx}{0.75\textwidth}{clX} \textbf{\#} & \textbf{User} & \textbf{Occupation} \\ \hline 1 & Test Person 1 &...

2

Based on Measure remaining space on page and use it on another page, I formulated the \fixV macro, applied to the end-of-page comment. \documentclass[a4paper]{article} \usepackage[hang,bottom]{footmisc} \newcommand\fixV[1]{\edef\tmp{\the\parindent}\setbox0=\hbox{% \begin{minipage}{\textwidth}\hspace{\tmp}\strut#1\strut\end{minipage}}\box0% \vspace{\...

1

I've removed an extra \dotfill from \tocchapter since there is already a \dotfill as part of \@tocline. Secondly, I've created a macro that specifically handles your CHAPTER entry via a local redefinition within the ToC itself: \documentclass{amsbook} \usepackage{blindtext} \makeatletter \renewcommand\tocchapter[3]{% \indentlabel{\@ifnotempty{#2}{\...

Top 50 recent answers are included