New answers tagged

1

minipages can be useful. Here is a slightly modified version of your MWE where I have used a minipage in the definition of \did and in the first speech by HELLEN. % didprob.tex SE 551856 \documentclass[a4paper,12pt]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcase} \usepackage{xcolor} \usepackage[top=15mm, bottom=20mm, ...


0

I get good results with \xsimsetup{ exercise/begin-hook = \begin{samepage}, exercise/end-hook = \end{samepage}, solution/begin-hook = \begin{samepage}, solution/end-hook = \end{samepage}, } The solution from @cgnieder with pre-hook/post-hook gave strange effects.


0

No extra packages needed. Just use \newpage \ \newpage: my current page \newpage \ % The empty page \newpage The next page


3

Suprisingly, I have not encountered this situation before. As commented before, there seems to be to much shrinkable space inside the box. The break algorithm detects that the box cannot be broken further, but the resulting last box seems to be too large to fit on the page (not really true here). So, the bounding box for the last box part is made smaller to ...


0

User-almost-half-a-million probably isn't reading, but preventing the page breaks around a tabbing environment is a fairly simple matter of telling the tabbing not to promote breaks in those places, as it normally does. Those settings would go in the same place as one puts the settings that prevent the extra white space. \makeatletter \newenvironment{...


0

I've not found a way to prevent the overlap from happening, but I have figured out how to know if it occurs (kind of). The idea is to call \pdfsavepos so that \pdflastypos knows the end of the tcolorbox and the beginning of what comes after. Then we can compare them and type out a warning if something is wrong. The only downside is that using the tcolorbox ...


0

i have found a trick to solve the issue using minipage, where the page break issue exist. but this is obviously not the best solution. Any one having the better solution please share..


2

notitlepage doesn't remove the titlepage. It only avoids that \maketitle creates a page on its own (doesn't use the titlepage environment internally): \documentclass[notitlepage]{report} \author{Lone Learner} \title{Lorem Ipsum} \begin{document} \maketitle Some text on the titlepage \chapter{Dolor Sit} Amet \end{document}


3

Your problem is that the parameter \qquad...\qquad is processed in horizontal mode and \vspace behaves like \vadjust{<space>}, so it does not leave the horizontal mode. We use only third parameter of the \titlecontents which is processed in vertical mode. Next parameters are empty. \titlecontents{chapter}[0em] {\fontsize{13}{15}\selectfont \...


Top 50 recent answers are included