Cluster:Latex poster creation

From Earlham Cluster Department

Jump to: navigation, search

Contents

Plumbing

Two latex style files and one class file are needed:

These have to be either in the latex path (usually /usr/local/share/texmf/) or in the directory in which you invoke the latex command. Note that to add a style or class file that is not in either the standard or working directory you have to put the path in TEXINPUTS enviroment variable (not including the standard tex include directory in this will result in none of the standard class or style files being found) or put the full path in the \include in the latex source (I haven't tried this --Josh).

I just copied the files to my working directory while confirming the whole poster creation process works. While refining the poster, I just made some links to the textpos and a0size style and class files in a standard place in my home directory. --Josh

Setting up the poster format

\documentclass[landscape,a0,draft]{a0poster}

Setting up and using textblocks

The textpos package sets up a grid over the document with spacing of about two inches per one grid spacing (the exact dimensions are unspecified; some eyeballing is needed) over which arbitrary latex and be placed. To setup the texpos package, use the following command:

\usepackage[absolute,overlay]{textpos}
\textblockcolour{white}
\begin{textblock}{36.0}(3.0, 0.25)
{\scriptsize
\include{problem}
}
\end{textblock}
\begin{textblock}{block_width}(x_loc_of_top_left, y_loc_of_top_left)

Turning images into PS/Latex

The easiest way I know of turning an image into eps is through xfig:

Your chosen export directory should hold both a .pstex file and a .pstex_t file.

Including sized images

Include the following functions to the top of your poster latex file (we should probably make our own .sty file at some point; I haven't done this yet because there are only two functions --Josh).

%  pstex xfig export
\newcommand{\location}{.}
\newcommand{\pstex}[1]{\input{\location/#1.pstex_t}}
% \pstexsized{w}{h}{file}  \width \height---orig, !---keep aspect ratio
\newcommand{\pstexsized}[3]{%
  \resizebox*{#1}{#2}{\input{\location/#3.pstex_t}}}

Example Usage:

\pstexsized{5.1in}{3.9in}{cairo-dppc-rate}

Including a background image

The following latex takes a pstex image and maps it to the size of the poster via tex's makebox function.

\AddToShipoutPicture{%
  \AtTextCenter{%
    \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
      \rotatebox{0}{\pstex{fatc-poster-background-no-title}}}}%
  }
}

Printing the poster in A4

Kludge alert: The only way I have been able to print the poster in A4 is to open the poster pdf on a mac using the default preview app. I use that app to export the image as an A4 jpeg (which prints with no problems) -- Josh.

Personal tools
Namespaces
Variants
Actions
websites
wiki
this semester
Toolbox