# Tag Info

2

The book document class issues openright by default, which means that \chapter pages will start on a recto (right) page (typically an odd numbered page): Therefore, it may be that some chapters end without a blank page while others end with one, depending on whether the subsequent page is recto or verso. If you wish to always have a blank page before a ...

0

If the biblatex package is used to produce the bibliography, you can also use one of the predefined headings, i.e. subbibliography You can refer to section 3.6.8 Bibliography Headings and Environments in the biblatex manual.

0

Thank you for your answer David Carlisle. In the end I used the longtabu environment. Here is the code: \begin{longtabu} to \textwidth{p{4cm}Xp{1.5cm}} \caption{Overview of Key Variables\label{tab:variables}}\\ \toprule Variable & Question& Scale\\ \midrule \endfirsthead \caption[]{Overview of Key Variables (continued)}\\ \toprule Variable & ...

0

\documentclass[10pt,a4paper]{scrreprt} \usepackage[utf8]{inputenc} \usepackage{longtable} \usepackage{booktabs} \usepackage{eurosym} \begin{document} \begin{longtable}{@{}p{4cm}p{\dimexpr\textwidth-5.5cm-4\tabcolsep}p{1.5cm}@{}} \caption{Overview of Key Variables\label{tab:variables}}\\ \toprule Variable & Question& Scale\\ \midrule \endfirsthead ...

1

Do not use the float option. A caption is also possible without it: \begin{lstlisting}[frame=single, caption=foo] Long listing start. ... \end{lstlisting}

1

The short answer is: You cannot suppress hyphenation at a page break in the usual TeX formats (plain, latex, context). You can discourage a page break at a hyphenated line (\brokenpenalty does this). Somewhat longer explanation: TeX breaks paragraphs into lines. The lines are than broken into pages without touching the line breaks again. So you can shift ...

5

\\* adds a penalty of 100000 (infinite) to break at that point but if something else allows breaking, or there is no other choice, it can be overridden. in this case the vertical list looks like ....\glue(\rightskip) 0.0 ...\penalty 10000 ...\penalty 150 ...\glue(\baselineskip) 5.05556 so immediately after the 10000 is a widow penalty of 150 which is ...

1

What happens in your case is a simple page break within paragraph. This is not optimal, however, if the whole paragraph is moved to the next page the first one would be too empty (and thus get a penality). What you could do to fix this in your case is to set the penality for the single line on the next page to a large number, cf. How do I prevent widow or ...

3

With a bit of care you can set the float placement parameters to prevent floats within the region, here I set totalnumber to 0. It is a global setting so you need to explicitly set it back at the end, you can not use a group to restore things. Also because of its global nature and the timing of the page breaking sometimes a bit of care needs to be taken into ...

1

An alternative solution is to enclose each section in an \include, because \include does an automatic \clearpage before. No preamble necessary!

1

It's not clear why you'd want to do this as longtable doesn't have any specific formatting, it derives all its table formatting from the underlying tabular implementation. However if you put a longtable in a minipage it will not break. As the output routine is then not invoked you can not use the head and foot code of course but this makes a very long table ...

5

This can also be done with mdframed: Notes: The showframe package was used just to show the page margins. It is not needed in your actual use case. References: Also see Environments for visually setting text apart Code: \documentclass{article} \usepackage{xcolor} \usepackage{mdframed} \usepackage{showframe} \usepackage{lipsum} \newmdenv[ ...

10

Another LaTeX solution. tcolorbox is your friend (with its xparse library, the two optional arguments can be handled easily): The code (adjust the settings according to your needs): \documentclass{article} \usepackage{xparse} \usepackage[many]{tcolorbox} \usepackage{lipsum} \DeclareTColorBox{mybox}{O{orange}O{0cm}}{ breakable, outer arc=0pt, arc=0pt, ...

6

The problem goes if you lose this line %\parskip2ex plus1ex minus1ex or even just change it to \parskip2ex plus1ex %minus1ex Putting lots (or any) of shrink glue into the vertical list rather complicates the assessment of whether there is room... longtable could try harder to estimate the amount of glue that will really stretch/shrink but currently, ...

1

I'd been using the 10000 penalty for years (since 2005). This morning I learned the default was 150, and 500 was pretty aggressive. When I dropped from 10000 to 500, the widow/orphan lines went up (from 2 to 3). When I left it at default, the typical widow/orphan lines went toward 4...and new sections were more frequently shoved to the next page. Now it ...

5

The commands you want are already provided and they are called \linebreak and \pagebreak: \documentclass{scrartcl} \frenchspacing \begin{document} But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great ...

0

The \mynobreakpar solution does met work properly for user87690 (see comment on the \mynobreakpar solution), because in his scope, the paragraph separator is zero, but the list top separator is not. So it seems better to use the macro \nolisttopbreak below instead. \makeatletter \newcommand{\nolisttopbreak}{\vspace{\topsep}\nobreak\@afterheading} ...

0

I do not understand why a new paragraph should be lauched before the list. Actually, it seems that you need to take into account the effects of \par to get what you want. There is only one situation where I do not like page breaks before lists. Furthermore, I do not like list tags not being aligned. This has led to the following. \makeatletter ...

0

Here's a plain-tex version using the output routine. It is just about as bare-bones as one can get, so it's missing some glues and proper \hsize handling et cetera. But the idea is there. \catcode\@=11 \newdimen\gutter \def\pagebody{ \setbox0\vsplit\@cclv to.5\vsize % split the box no. 255 half into box0 \vbox to\vsize{ \unvbox0 \vfil ...

3

You can put groups of three consecutive entries on the same row without too much change to the markup. \documentclass[a4paper,fleqn,openbib,11pt]{article} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{array} \usepackage{appendix} \usepackage{booktabs} \usepackage{caption} \usepackage{dcolumn} \usepackage{float} \usepackage{graphicx} ...

5

Not really pure latex markup but.... \documentclass{article} \begin{document} \setbox0\vbox{\hsize=3cm\raggedright 1 The quick brown fox jumps over the lazy dog. 2 The quick brown fox jumps over the lazy dog. 3 The quick brown fox jumps over the lazy dog. 4 The quick brown fox jumps over the lazy dog. 5 The quick brown fox jumps over the lazy dog. 6 The ...

5

Here is an example of using parshape: Code: \documentclass{article} \begin{document} \parshape=13 0pt 0.4\textwidth 0pt 0.4\textwidth 0pt 0.4\textwidth 0pt 0.4\textwidth 0pt 0.4\textwidth 0pt 0.4\textwidth 0.6\textwidth 0.35\textwidth 0.6\textwidth 0.35\textwidth 0.6\textwidth 0.35\textwidth 0.6\textwidth 0.35\textwidth 0.6\textwidth 0.35\textwidth ...

2

You are probably looking for something like this, right? If so, here is the code: \documentclass[letterpaper]{article} \usepackage{multicol} \makeatletter \def\articulus{% \vfil \vskip-\prevdepth \nointerlineskip\null \penalty 200 \vfilneg \vskip 3em plus 0.75em minus 0.25em% \centerline{\Large\textsc{Articulus }}% ...

0

The forced page break at the end is more or less required as otherwise it's hard to know what to do with text after the table (at the end of the table you need to finish two pages and you certainly don't want following text on both of them so not allowing it at all is simplest. It would possibly be possible to make \endlastfoot work again but not today. The ...

0

You can add nobreak=true to your definition of mystyle: \mdfdefinestyle{mystyle}{ % backgroundcolor=lichtgrijs, % linewidth=0pt, % innertopmargin=10pt, % innerbottommargin=10pt,% nobreak=true% prevent page breaks in the middle of mystyle } With this your theorem stays on the bottom of the first page:

4

You can add a \nobreak so linebreaking before the tabu cline is discouraged and add a \filbreak so linebreaking (and padding with space) after the line is encouraged. \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage{tabu} \makeatletter \renewcommand*\tabucline{\noalign{\nobreak\ifnum0=`}\fi \tabu@cline} ...

4

\glt is a very simple macro and it seems you can add \nobreak and it works in this case at least... \documentclass[11pt,letterpaper]{article} \usepackage{lipsum} \usepackage{gb4e} \def\glt{\nobreak\vskip.17\baselineskip} \noautomath \begin{document} \lipsum[1-4] \begin{exe} \ex \gll wuz x̃ũch it-ak xohish-em\\ 1\textsc{sg.prn} bread ...

-1

If you go Ctrl+L (or ⌘+L on a Mac) and then \newpage that should work. It does for me.

6

You can use afterpage. \documentclass{report} \usepackage{framed} \usepackage{kantlipsum} \usepackage{afterpage} \begin{document} \kant[1-3] \afterpage{% \begin{framed} \kant[1-3] \end{framed} } \kant[1-7] \end{document}

Top 50 recent answers are included