%% %% This is file `textpos-example.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% textpos.dtx (with options: `example') %% Textpos: absolute positioning of text on the page %% This software is copyright, 1999, 2001--2003, 2005--7, 2009 Norman Gray. %% %% This program is free software; you can redistribute it and/or %% modify it under the terms of the GNU General Public License %% as published by the Free Software Foundation; either version 2 %% of the License, or (at your option) any later version. %% %% This program is distributed in the hope that it will be useful, %% but WITHOUT ANY WARRANTY; without even the implied warranty of %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %% GNU General Public License for more details. %% %% You should have received a copy of the GNU General Public License %% along with this program; if not, write to the Free Software %% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %% %% Author: Norman Gray, norman@astro.gla.ac.uk. %% Department of Physics and Astronomy, University of Glasgow, UK %% %% See the file LICENCE for a copy of the GPL. %% You can also find an online copy at http://www.gnu.org/copyleft/gpl.html . %% %% \documentclass{article} \usepackage[absolute]{textpos} \setlength{\TPHorizModule}{30mm} \setlength{\TPVertModule}{\TPHorizModule} \textblockorigin{10mm}{10mm} % start everything near the top-left corner \setlength{\parindent}{0pt} \begin{document} \begin{textblock}{3}(0,0) This block is 3 modules wide, and is placed with its top left corner at the `origin' on the page. Note that the length of the block is not specified in the arguments -- the box will be as long as necessary to accomodate the text inside it. You need to examine the output of the text to adjust the positioning of the blocks on the page. \end{textblock} \begin{textblock}{2}(2,1) \textblocklabel{block two} Here is another, slightly narrower, block, at position (2,1) on the page. \end{textblock} \begin{textblock}{3}[0.5,0.5](2,3) This block is at position (2,3), but because the optional argument [0.5,0.5] has been given, it is the centre of the block which is located at that point, rather than the top-left corner. \end{textblock} \end{document} \endinput %% %% End of file `textpos-example.tex'.