Dave Green's (pdf)LaTeX thesis template: additional features

Here are instructions for two additional features for use with my LaTeX thesis template.

  1. Redacting figures for the ‘published’ version of the thesis.
  2. Adding sequential images at the bottom corners of pages, for flip-books.

1. Redacting figures

For dealing with figures you do not want to/cannot include (e.g. for copyright reasons) in the version of your thesis that is ‘published’, do the following.

If \redactfalse is set, as above, then \includegraphicsredact[...]{...} is actually just \includegraphics[...]{...}, so the figure is shown.

If instead \redacttrue is set, then any calls to \includegraphicsredact[...]{...} actually use \includegraphics with the "draft" option. This does not include the figure, but instead draws its outline (so the spacing is unchanged), and prints the name of the file for the figure.

Finally, if you use \redacttrue, but you do not want the name of file for the figure (that is not included) to be printed, add the following lines before \begin{document}

  \makeatletter
  \patchcmd\Gin@setfile{\expandafter\strip@prefix\meaning\@tempa}{redacted}{
    \message{*Gin@setfile patched OK*}}{\message{*Gin@setfile *NOT*patched}}
  \makeatother

which instead prints the word ‘redacted’, not the name of the file for the figure.


2. Flip-books

For sequential images at the bottom corner of pages (odd and/or even), for a flip-book. Download the cornerflip.sty file, and add

  \usepackage{cornerflip}

before \begin{document} in your main .tex file. Then set the various parameters needed for the flip-book images (i.e. base name for the images, number of images to loop over, dimensions for images, and offsets), and add appropriate commands to switch the flip-book images on/off. See the instructions at the top of the cornerflip.sty file.


addresses | teaching | research | papers


Valid HTML 4.01!