Hot answers tagged

6

This uses a 'tricky' overlay approach, setting explicitly another tcolorbox as the box title for the broken parts of the box. The extras middle and last= option is meant to add features to the 'middle' and 'last' box parts, i.e. the ones after breaking the box. \documentclass{article} \usepackage{lipsum}% \usepackage[all]{tcolorbox}% \begin{document} \...


6

The first part of Werner’s answer won’t work if the sender’s address is also specified (with the \address declaration). In my opinion, it is more robust to patch the \opening command: \documentclass[a4paper]{letter} % To avoid confusion, let me explicitly declare % the paer size. \usepackage[T1]{fontenc} % Unrelated to ...


4

\documentclass{article} \usepackage[many]{tcolorbox} \usepackage{pgffor} \begin{document} \begin{tcolorbox}[breakable] blblbllb \foreach\x in {1,2,...,60} {\strut\par} blbll \end{tcolorbox} \end{document}


4

Probably there's a much more elegant tcolorbox solution, but you could always 'freelance' the frame as well: \documentclass{article} \usepackage{lipsum} \usepackage[skins,breakable]{tcolorbox} \begin{document} % Example taken from Thomas F. Sturm Manual for version 3.93 p. 346 % Problem: After a break, The style of the boxed title is lost % Christian ...


4

My assumption here is that you want to use some letter-head that is already on a piece of paper... If you really want what you're after and insist on using the letter class, then you'll have to use a hack. To replicate your output with the top margin on the first page 0.5" bigger than the rest, add \vspace*{0.5in} as part of a new \date declaration... even ...


4

The flowfram package has no problem changing margins between pages. OTOH, it only defines the text area. \documentclass{article} \usepackage{lipsum} \usepackage[margin=1.5in,showframe]{geometry} \usepackage{flowfram} \newflowframe[1]{\textwidth}{\dimexpr \textheight-0.5in}{0pt}{0pt} \begin{document} \lipsum[1-7] \end{document}


3

As is often the case all errors shown after the first are essentially spurious, the error is \label{xxx}\caption{..} which should be \caption{....\label{..}} \label always needs to be after the \caption if it is to label the correct value, but in tables it is particularly bad to use this form as you get an error not just the wrong value, as the label ...


3

Add the twoside parameter. One a one-sided document, which is the default for the report-class, leaving empty pages would just be confusing. Code \documentclass[12pt,a4paper,twoside]{report} \usepackage{lipsum} \begin{document} \cleardoublepage \lipsum[1] \cleardoublepage \lipsum[2] \cleardoublepage \lipsum[3] \cleardoublepage \end{document}


2

You can change the goal height of the tabular before the problematic line. This will force an earlier page break: \documentclass[a4paper,12pt]{book} \usepackage{helvet} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[francais]{babel} \usepackage{supertabular} \usepackage{lipsum} \begin{document} \newcounter{MyCounter} \lipsum[1] ...


2

This is an old topic but as I'm releasing a new version of boiboites I hope it's appropriate to dig it up. You can now use xeboiboites to draw your boxes over multiple pages. Plus, you can control the style of the edges that "break" from one page to another. For example, you can achieve this: It's a work in progress but seems stable, you can check ...


2

Here's a way to avoid page breaks in the whole object: \documentclass[12pt]{article} \usepackage[a5paper]{geometry} \usepackage{fontspec} \usepackage{microtype} \usepackage{multicol} \usepackage[defaultlines=2,all]{nowidow} \usepackage{ragged2e} \usepackage{lipsum} \usepackage{enumitem} \usepackage{parskip} \newcommand{\indexClass}[1]{\index{#1}} \...


1

Two Answers 1- For Short Lists Using a \vtop box: \documentclass[12pt]{article} \usepackage[a5paper]{geometry} \usepackage{fontspec} \usepackage{microtype} \usepackage{multicol} \usepackage[defaultlines=2,all]{nowidow} \usepackage{ragged2e} \usepackage{lipsum} \usepackage{enumitem} \usepackage{parskip} \tolerance=1000 \makeatletter \newcommand{\...



Only top voted, non community-wiki answers of a minimum length are eligible