Tag Info

8

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). ...

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 ...

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}

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. ...

4

Typically a \bibliography in a class that provides chapters are set as a chapter. Since you're using book, this seems to be the case. A local redefinition to use \section instead of \chapter might be a feasible option. In your preamble, add \let\oldbibliography\bibliography% Store \bibliography in \oldbibliography \renewcommand{\bibliography}[1]{{% ...

3

With fancyhdr, it is not complicated. \documentclass{article} \usepackage{fancyhdr} \usepackage{kantlipsum} \fancypagestyle{firstpagestyle}{% \fancyhf{} \rfoot{Continued on next page $\longrightarrow$} \renewcommand{\headrulewidth}{0pt} } \fancypagestyle{regular}{% \fancyhf{} \rhead{LOGO} \chead{Some} \lhead{\thepage} \rfoot{This is other page}% } ...

3

Here in short whats going on. The colon is defined as \active@prefix :\active@char:. This definition is so that under certain conditions (e.g. in a protected@write, or when \if@safe@actives is true (which is the case in \@newl@bel)) the : expands to something that it "safe" in a label. But in your example : no longer has this safe definition as listings ...

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}

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.

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 ...

2

You can use fancyhdr coupled with zref-lastpage: \documentclass{article} \usepackage{zref-lastpage,fancyhdr} \usepackage{kantlipsum} \pagestyle{fancy} \renewcommand\headrulewidth{0pt} \fancyhf{} \fancyfoot[C]{\small\thepage} \makeatletter \fancyfoot[R]{% \ifnum\value{page}<\zref@extract{LastPage}{page}% \scriptsize\itshape Continue to next page ...

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 ...

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

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

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} ...

1


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