LaTeX takes care of full justification, text height balancing, and placing floating objects such as figures and tables. It does a great job, but sometimes one may need to tell LaTeX to place text or an image exactly at a certain position on a page.
Most positioning commands work in relation to the current position in the document. Now we would like to output text at an absolute position.
We will use the eso-pic
package for positioning. We will print text at the edge of the page, in the middle, and at specific positions. We will break down the code in to fine steps. However, you can copy the code as a whole from the book's website at https://www.packtpub.com or from http://latex-cookbook.org.
Follow these steps:
Start with any document class. We chose the
article
package with A5 paper here:\documentclass[a5paper]{article}
Load the
lipsum
package so that you can generate dummy text:\usepackage{lipsum}
Load the
graphicx
package; we will later use its rotating...