Re: [MiKTeX] textblock-statement doesnt work with miktex 2.7 or 2.8
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: Philip G. R. <phi...@fa...> - 2010-01-21 17:44:13
|
> i have a big problem with my bachelor thesis. I have a standard title > style but since i installed windows 7 and miktex 2.7 or > miktex 2.8 the > "textblock" statement doesn't work anymore. Can anybody help > me, please? > > Here an example: > \documentclass[% > pdftex,% > a4paper,% % DIN A4 > oneside,% % einseitiger Druck > headsepline,% % Strich unter der Kopfzeile > 12pt,% % 12pt Schriftgröße > ]{article} > > \usepackage{color} > \usepackage{textpos} > \definecolor{green}{rgb}{0,0.78,0.54} > > \begin{document} > The textblock statement doesnt work in miktex2.7/8: > \begin{textblock}{210}(0,99) > I cant see this Text! > \textblockcolor{green} > \vspace*{99mm}\hspace{1cm} > \end{textblock} > \end{document} Did you try reading the manual or playing with the length arguments? I quote the Textpos manual: p.2 \begin{textblock}{<hsize>}(<hpos>,<vpos>) text... \end{textblock} The <hsize> and <hpos> arguments are given in units of a module \TPHorizModule, and <vpos> is given in units of a module \TPVertModule. ... The text in the environment will be set in a box <hsize> modules wide, and placed on the page with its upper left corner at the position (hpos,vpos). As is natural in TEX, the <vpos> parameter indicates distance down from the reference point. p.6 \TPVertModule The length unit which is used for the vertical positioning and \TPVertModule size parameters of the { textblock } environment. Set it using the command \setlength{\TPVertModule}{ h dimen i } (or \addtolength). The default is one sixteenth of the paper height. Thus, your command sets the block 99/16 paper heights down! Cheers, Phil |