Experiment to have a LaTeX article class which includes a small Pokémon image, in every page (on the bottom right or left), instead of numbering with indexes!
- First, don't use this code, it's stupid.
- Now, to use it:
- Git clone this repository,
- Copy the
icons
andpokemonnumbering.sty
in your own directory, wherever you are writing your LaTeX document, - Use this LaTeX code in your own document:
\usepackage{pokemonnumbering} % default
- After your introduction, abstract etc, when you want to start numbering your pages with Pokémon, use this LaTeX code:
\pokemonnumbering
- And don't write a document with more than 151 pages! I was lazy and only include the Pokémon from the first generation!
- Compile with
pdflatex
,xelatex
orluatex
(it must support PNG images).
See any of these PDF files (not gitted, on my website):
- test is the default document,
- test_left shows the
left
option, - test_right shows the
right
option (is the same as the default document), - test_rotate shows the
rotate
option, - test_lorem test with a dummy text.
Here are a few examples:
See pokemonnumbering.sty:
- I use
fancyhdr
to add a image to the bottom right or left. - I use
adjustbox
package, withexport
option, to force the image to be flushed right or left.
Others things:
- This Makefile contains some build rule to generate the examples. It takes a few minutes to generate all of them.
For the demo document:
- This bash script (get_data.sh) downloads HTML pages from this website, converts them to Markdown, extract the text, and save the data for each Pokémon as a json file. See 1.json for example (for Bulbasaur).
- This Python script (json2tex.py) converts this json file to a LaTeX file, using this template. See 1.tex for example (for Bulbasaur).
By default, the Pokémon images are inserted on the bottom right corner. The package can be loaded with an option:
right
: by default,
\usepackage[right]{pokemonnumbering} % default
left
: insert them in the bottom left corner instead,
\usepackage[left]{pokemonnumbering}
rotate
: rotate the image by 20° (clock-wise if right, counter clock-wise if left),
\usepackage[rotate]{pokemonnumbering}
MIT Licensed (file LICENSE). © Lilian Besson, 2018.