Graphics, Figures & Tablestextpos | Text Alignment

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
InternCSE
Posts: 3
Joined: Fri Jul 29, 2011 12:34 pm

textpos | Text Alignment

Post by InternCSE »

Hello

I use the textpos package thanks to some recommendations I read in this forum .
Unfortunatelly I can't flushleft or right when I put a box in a specific location .


I would like to create something like this when I use both textpos and flushright for example:

Code: Select all

                            Placing a text wherever I want to
                                              but flushtright
                                              
          Or writing overthere
          butflushleft 
Do you experts have a clue ? thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

textpos | Text Alignment

Post by localghost »

It could be helpful to see your recent efforts presented in a minimal example (emphasize on "minimal").


Thorsten
InternCSE
Posts: 3
Joined: Fri Jul 29, 2011 12:34 pm

textpos | Text Alignment

Post by InternCSE »

I think I found a way to proceed but I'm not totally happy with this workaround.

Code: Select all

\documentclass{article}
\usepackage[absolute,quiet,overlay]{textpos}
\usepackage{rotating}
%\setlength{\fboxrule}{ 0 pt} % ERROR WHEN UNCOMMENTED
\begin{document} 
\textblockorigin{ 0.2 cm}{ 0.2 cm }
\TPboxrulesize = .1 mm
\TPshowboxesfalse
\TPVertModule = 1 mm
\setlength{\TPHorizModule}{\TPVertModule }
\unitlength = \TPVertModule

\begin{textblock}{56}(15,10) 
\begin{rotate}{-20}
\begin{picture}(56,10)

\framebox(56,20)[r]{textggfdgfd gfegtregter}
\end{picture}

\end{rotate}
\end{textblock}
\end{document}

Code: Select all

*FILE LIST*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 textpos.sty    2009/05/28 v1.7f
everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)
geometry.sty    2008/12/21 v4.2 Page Geometry
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
   ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)
  ifvtex.sty    2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)
rotating.sty    2009/03/28 v2.16a rotated objects in LaTeX
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2009/08/28 v1.8 graphics configuration of TeX Live
  pdftex.def    2009/08/25 v0.04m Graphics/color for pdfTeX
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
supp-pdf.mkii
  1. I have to put a picture environment to flush text right or left . Is there another way to make this ? My only concern is to render document the fastest way possible.
  2. I'd like frameboxes to be invisible but when I uncomment it , I have an error :

    Code: Select all

     Missing number, treated as zero.
    <to be read again> 
                       O
    l.6 \setlength{\fboxrule}{ O.1 pt}
                                      
    ? 
    ! Emergency stop.
    <to be read again> 
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

textpos | Text Alignment

Post by localghost »

Works fine for me.

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 textpos.sty    2009/05/28 v1.7f
everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)
rotating.sty    2009/03/28 v2.16a rotated objects in LaTeX
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2010/02/14 v0.04n Graphics/color for pdfTeX
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
supp-pdf.mkii
pdftexcmds.sty    2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
 ltxcmds.sty    2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2007/09/30 v1.0 Managing graphics extensions (HO)
kvoptions.sty    2010/02/22 v3.7 Keyval support for LaTeX options (HO)
kvsetkeys.sty    2010/03/01 v1.9 Key value parser (HO)
etexcmds.sty    2010/01/28 v1.3 Prefix for e-TeX command names (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
 ***********
I think an upgrade of your TeX distribution is indicated (even mine is not up to date).


Thorsten
Post Reply