This is an old revision of the document!
Tips and Tricks for LaTeX
- For the redefining the header, you can use
\markboth– two parameters (left and right page) or\markrightwith just one parameter\markboth{\uppercase{Summary}}{\uppercase{Summary}}- You should note that a left-hand heading is generated by the last
\markbothcommand before the end of the page, while a right-hand heading is generated by the first\markbothor\markrightthat comes on the page if there is one, otherwise by the last one before the page. (source)
\chaptermark,\sectionmark, … withfancyhdrpackage- see http://en.wikibooks.org/wiki/LaTeX/Page_Layout for more details
- Useful page (and a figure) for lists:
- foreach in TeX (thanks to TMA):
- If you want to
\dothis{}with each word in\foreach{Peter, Paul, John, Ringo}, you can do this as follows:\def\foreach#1{\first#1,,}\def\first#1,{\if,#1,\else\dothis{#1}\expandafter\first\fi}
- and then write something here:
\def\dothis#1{ … whatever #1 … }
