# Tag Info

0

I didn't understand why exactly it worked, but I managed to do it. I just had to add \leavevmode at the beginning of the definition: \renewcommand\section{\leavevmode\@startsection{section}{1}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% ...

0

You could use the titlesec package to redefine the \section command. For example, it says: If you dislike typing the full skip values, including the plus and minus parameters, an abreviation *n is provided (where n is an integer). In the beforesep argument this is equivalent to n ex with some stretchability and a minute shrinkability. In the ...

5

You can prevent (or at least infinitely discourage) linebreaking in the footnote, which may or may not be suitable, depending. This produces a broken URL as you describe if you comment out the setting of \interfootnotelinepenalty. \documentclass{article} \setlength\textheight{3cm} \usepackage{hyperref} \def\a{One two three four. } \def\b{\a Five six seven ...

2

Here is a list-like approach for your resume. Lists can break across the page boundary, so there's no worry about subsequent overflows. I've added the showframe option to geometry to highlight the page boundaries: \documentclass{article} \usepackage{enumitem,fancyhdr,lipsum}% http://ctan.org/pkg/{enumitem,fancyhdr,lipsum} ...

2

Using longtable instead of unbreakable tabular should solve the problem. \documentclass[10pt]{article} \usepackage{array, xcolor, lipsum, bibentry} \usepackage[margin=3cm]{geometry} \usepackage{scrbase,scrpage2} \pagestyle{scrheadings} % pagestyle with page number \usepackage{longtable} % PS \lohead{My Name} \definecolor{lightgray}{gray}{0.8} ...

1

If you really dont want to set the postdisplaypenalty value globally, you could create a new environment which modifies the display penalty inside the environment, and resets it prior to leaving. \makeatletter \newenvironment{tighten}{ \let\pen@old\postdisplaypenalty \postdisplaypenalty=100 }{ \let\postdisplaypenalty=\pen@old } \makeatother ...

4

All \nopagebreak's are undesired: \documentclass{scrartcl} \usepackage{longtable} \usepackage{booktabs} \begin{document} \section{Table test} \begin{longtable}{llc} \hline & & \multicolumn{1}{c}{All} \\ \hline m & \rule{0pt}{1.7\normalbaselineskip}April & $1$ \\ & July & $1$ \\ & June & $1$ \\ l & ...

0

\begin{framed} \begin{lstlisting} or \lstinputlisting{...} \end{lstlisting} \end{framed}

9

Stealing gratuitously from topskip's answer (although I did vote for it as well:-) He showed how to push the whatsit into the horizontal list (which is basically what \textcolor{}.. does as opposed to \color) But if you want the whatsit to be in the vertical list but have no break point before the following paragraph, you can do as I suggest in comments and ...

11

You should add the whatsit into paragraph itself (i.e. the horizontal list). I guess you have something like this: \documentclass{article} \usepackage{luacode,luatexbase} \begin{document} \begin{luacode*} w = node.new("whatsit","user_defined") w.type=100 function foo(head) new_head = node.insert_before(head, head, w) return new_head end ...

13

A whatsit (user-defined or not) is always non-discardable. So if glue follows it, that glue constitutes a break point. If glue precedes it, that might stretch along with the rest of the page. To make it adhere to the following paragraph, you can make it part of the paragraph. The LaTeX way is to put \leavevmode before it. That positions the whatsit at the ...

0

I've just discovered the FloatBarrier command from the placeins package, which is designed to resolve this exact problem; similarly to Max's answer on Clearpage without pagebreak?.

1

The version 1.5.0 of eledpar add tools to manage pagebreak on eledpar. There is two commands : \ledpb to make page break, and \lednopb to prevent page break, by adding new line. It needs to make two runs.

2

See \allowdisplaybreaks and \displaybreak in the amsmath documentation amsldoc. You can also enlarge the page with \enlargethispage.

4

Here is the result with the tcolorbox package and your complete code. To achieve this you need to add the following MWE to your code \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{breakable,skins} \newcounter{exe} % this will create a new counter for auto numbering the exercises \newcommand{\mytitle}{ ...

2

The markup in the MWE is very odd but as a box never breaks one possibility would be \noindent \begin{minipage}{\textwidth} More text. \textbf{I don't want this line to be the last line of the page.} even more text \end{minipage} but that freezes the vertical space so it may not match flexible space on the same page. Depending on your real use case it ...

1

These deluxetables are floating objects. As far as I can make out their parameters are bp meaning that can be placed at the bottom of the page, or on a separate float page. Now by default LaTeX does not reserve much room for floats at the bottom of the page, indeed \bottomfration is by default 0.3 meaning that they may only fill the bottom 30% of the page. ...

2

If you don't need a footer and are ok with footnotes relegated to the end of the document via endnotes then a simple modification of your proposed workflow could fit the bill. \usepackage [paperheight=50cm, textheight=48cm, paperwidth=21cm]{geometry} or whatever is enough instead of 50cm, 48cm. Or only paperheight and vscale=0.95 for example. The 21cm if ...

0

It's guesswork without a complete example, but let's see how my psychic powers are working today. Try adding this to your preamble. \usepackage{etoolbox} \pretocmd{\abstractname}{\newpage}{}{}

2

My previous comment considered using the standalone documentclass. That uses the preview package. Going directly to preview gives a solution: \documentclass{article} \usepackage{lipsum} \usepackage[active, tightpage]{preview} \begin{document} \begin{preview} \section{Intro} \lipsum[1] \end{preview} \newpage \begin{preview} \section{Another section} ...

2

Try adding a \clearpage, i.e. Insert --> Formatting --> Clear Page instead of a New page. If you want the bibliography to be printed in one column rather than two, add an ERT (Ctrl + L) just before the bibliography, and write \onecolumn in it.

0

Thank you very much! This is almost what I was looking for. I have a few questions. Is it possible here to add vertical lines on the right and on the left to remind table and a horizontal line at the bottom of each page? If at the end of each page I do not like this, the second column becomes the first in a new page.

0

I’m not sure that a typesetting system exists, which could break within a table row. You need to re-work your approach. However, if you are not scary of low-level LaTeX, you can try my code: http://uucode.com/blog/2010/12/06/multi-page-tables-with-inter-row-page-breaks/

Top 50 recent answers are included