My first has to do with \thispagestyle command used in the middle of very long paragraphs. The command seems to take effect at the beginning of the paragraph, which may not be where you want it.
Consider this MWE. It produces a four page document, all one paragraph. The \thispagestyle occurs on page 2 of the paragraph, where the bold marker is, and the text switches to italics. But rather than affecting page 2, the empty style affects page 1, where the paragraph begins. I can't put it after the paragraph, or it would affect page 4. Is there any way to make it affect page 2?
Code: Select all
Code, edit and compile here:
\documentclass[letterpaper,oneside]{book}\usepackage[english]{babel}\usepackage{blindtext}\begin{document}\blindtext[10]\textbf{This-Page-Style command is here!}\thispagestyle{empty}\textit{\blindtext[10]}\end{document}
Code: Select all
Code, edit and compile here:
\documentclass[letterpaper,oneside]{book}\usepackage[english]{babel}\usepackage{blindtext}\usepackage{fancyhdr}\newcounter{mycounter}\setcounter{mycounter}{0}\pagestyle{fancy}\rhead{My counter: \themycounter}\begin{document}\blindtext[8]\blindtext[1] \textbf{I'm adding to my counter. It will be 1.} \addtocounter{mycounter}{1}\blindtext[3]\blindtext[10] \textbf{I'm adding to my counter. It will be 2.} \addtocounter{mycounter}{1}\end{document}
Is there a way around these things?
Thanks!