Tag Info

New answers tagged

0

The “right” solution to this problem is probably to set \@itempenalty to 10000 for the first and last item in the list, although this has the slight disadvantage that, in order to know which is the last item, you need to record the total number of items in the list during a previous LaTeX run. This technique has already been proposed in previous answers. ...


2

multicol and longtable are not designed for such use and table environment don't allow page break. Here a solution with paracol package \documentclass[12pt,a4paper,final]{report} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{relsize} \usepackage{paracol,lipsum} \usepackage[frenchb]{babel} %\columnratio{.5} %\columnsep =10pt ...


5

The package detects this and warns that the final frame segment at the page break is empty. It does however output the segment, otherwise you would not get the final border of the frame. here though you only have side borders so (I think, I don't know this code that well) it is safe just to discard the final segment. It seems to work here at least. (See ...


1

I can show how to set this feature in plain TeX with OPmac. The \begitems and \enditems are redefined. First one reads the data from REF file (this is similar like aux in LaTeX). The result of such reading is the \lastitem macro where the number of items in the current items-list is stored. The second one (\enditems) saves the \itemnum (i.e. the number of ...


2

You were just unlucky. With \rule{373.44246pt}{505pt} It takes 2 pages, with section 2 and the image on page 2. With \rule{373.44246pt}{510pt} It takes 3 pages, with blank page 2. However TeX does warn in that case Overfull \vbox (4.90276pt too high) has occurred while \output is active Normally an overfull vbox does what you might expect and ...


0

Ok I solved my question looking from another post. So if it is judged as a duplicate can be removed. Here is a MWE with my desired output: \documentclass[a4paper,11pt,titlepage,twoside,openright]{book} \usepackage[makeindex,acronym,numberedsection,counter=chapter,nonumberlist]{glossaries} \usepackage[titletoc, page]{appendix} \newacronym{abc}{ABC}{Alpha ...


0

You can add without any writing, just go to menu bar. As simple as that:


1

Starting left on even pages Package showframe visualizes very good, why the table does start quite with an indentation on even pages. As can be seen, the head line is also moved and the left space is occupied by quite a large "marginpar" column with width 5.5cm. Therefore you might want to correct the option values for package geometry. Too wide table ...


1

\begin{center} around longtable does not affect alignment, it just adds spurious vertical space. longtable is centred by default, but if you want left alignment you can use \begin{longtable}[l] but you can not align it at all as it is much too wide Overfull \hbox (95.13185pt too wide) in alignment at lines 16--21 You don't have room for two 7cm ...


3

Since the given code is not compilable and especially the information about the used CSharp style is missing, I cannot test the problem. But, I have a guess about the cause of the problem and so I try to give a best guess answer. When a tcolorbox encounters a page break, the colors of the following box part are restored to their set-up values. The reason ...


2

In your example you have a six line paragraph, whereas there's only place for at most five lines in the page. The paragraph is fully typeset, then the lines (as horizontal boxes) are sent to the “recent contributions list” and the “page builder is exercised”, that is, the material in the recent contributions is moved to the main vertical list and TeX does ...


6

Context Since the edit, it seems that what OP requested is different from the given answers. This is a totally different approach. This one assumes that you want the same file (for the instructors and students), but the instructor version has more information than the students file. (Please correct this assumption. If that is what you need, the other ...


2

It is enough to change \vspace{20pt} % to \vspace{\fill}% Note that you should not use inputenc as you are using xetex or luatex.


1

Shaded theorems in thmtools are implemented with the shadethm package, not mdframed. You can do the shading with mdframed instead by passing the option mdframed={backgroundcolor=LightGrey} to the theorem declaration. This will allow page breaks in the defintion and gives output as in the sample below. If the options you want to pass to mdframed are ...


9

I am extending the solution presented by @Ethan Bolker. I just put some hooks and reworked the environments to produce all the output from a single file. I think that this is more manageable than having several files. Moreover, this solution will compile the students (main file) and the instructors one (defined inside with the macro \instructorMainFile). ...


4

Here is a way that may be helpful:(Edited: marginpar added) suppose your maintext.tex file is like this (after add some marks) Edit: text with more sense used \mtmark{ita} Here is the revised specification given by k.t.hagen, verbatim: 1. The answer on SX essentially puts page numbers to the student edition whenever there's an instructor's note. ...


4

This approach, using everypage, concatenates all the \responsibles into the footer in a comma separated list. Upon each page break, only the last invocation of responsible is retained going into the next page. In order to meet the needs of the OP, I also introduce a macro \Newresponsible{} to wipe the slate clean and not carry over the prior list of names. ...


1

The only sure way to tell what page you are on is to use the aux file. However, to force \responsible to not occur until the second page you must use \ignorespaces or remove the \par (blank line) between it and the text. It is possible that \listfooter will work with standard footer packages. I haven't tried it. \documentclass[a4paper,12pt]{scrreprt} ...


3

With etoolbox you can apply a \clearpage before \part \documentclass{article} \usepackage{lipsum} %for dummy text \usepackage{etoolbox} \preto{\part}{\clearpage} \title{Some} \author{you} \begin{document} \maketitle \part{The first} \lipsum[1-2] \part{The second} \lipsum[3-4] \end{document}


5

Try this. \documentclass{article} \usepackage{lipsum} %for dummy text \let\oldpart\part \renewcommand\part{\newpage\oldpart} \begin{document} \part{The first} \lipsum[1-2] \part{The second} \lipsum[3-4] \end{document}


1

Use the commands \endfirsthead and \endhead from longtable package to solve this issue (however, this is not failsafe) As it stands, the number of table columns is reduced by one in the lower part of the first page and for the rest which should appear on the second page, so \cline{1-7} is the correct form for horizontal lines there. \endfirsthead ...


1

If tcolorbox could be a solution following code could be a starting point. It defines a notes environment which includes a default "Notes" title with all notes. This box is breakable between pages, but at least 3 notes lines are included before a page break, otherwise the whole box starts in a new page. If for any reason the box should not be breakables, ...


1

While I originally suggested a needspace approach to the OP by way of a comment (and still think it the best approach), the OP prefers not to load additional packages. So here is an alternative. After some discussion in the comments, this approach (I think) remedies the two issues noted by the OP. The vertical space at the beginning of the page is ...



Top 50 recent answers are included