Positionierung in Picture Umgebung

"Peter Seitz" <[email protected]>
Newsgroups gmane.comp.tex.german
Organization K+S Ingenieur-Consult GmbH & Co. KG
Message-ID <[email protected]>
Hallo Liste,

ich wollte in einer Picture Umgebung einen Text (speziell einen
QR-Code) positionieren. Dazu habe ich versucht einen Längenzähler zu
definieren und die Länge auszurechnen, wo ich positionieren möchte. Nun
kommt als Fehlermeldung:

\qrplatz=\skip80

! Missing number, treated as zero.
<to be read again>
                   \protect
l.210 }
       %
? q
OK, entering \batchmode...
! Illegal unit of measure (pt inserted).
<to be read again>
                   \protect
l.210 }
       %
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

Hier der Codeschnipsel
--8<---if--you--cut--here--you--will--probably--destroy--your--monitor--
\newlength{\qrplatz}
\setlength{\qrplatz}{\textwidth-1.5cm}
\begin{picture}(0,0)
\unitlength1cm
\put(\qrplatz,0.35){%
\hspace*{0.0em}\raisebox{0.6cm}{{\color{black}\qrcode[height=1.5cm]{http
://www.iabse.de/}}}
}%
\end{picture}%
--8<---if--you--cut--here--you--will--probably--destroy--your--monitor--

Wenn ich \put(0.0,0.35) schreibe, ist der Fehler weg.

Ich vermute somit, dass der Fehler aus dem \put-Befehl kommt mit der
berechneten Längenangabe und dass hier eine Längeneinheit steht. Hier
kann man ja dann nur Zahlen angeben. Ich habe als Einheit 1cm
definiert.

Kann ich irgendwie definieren, dass auf meiner Längenvariablen ein Wert
in cm ohne Längseinheit steht, so dass es für den \put-Befehl passt?

Danke für Euere Kommentare.

--
With best compliments

Dipl.-Ing. (TU) Peter Seitz
Geschäftsführender Gesellschafter / managing director

         Member of the Pegasus Mail Support Group
        Coordinator of the Pmail Translation Process
     +++++++++++++++++++++++++++++++++++++++++++++++++++
     K+S Ingenieur-Consult GmbH & Co. KG
     Kompetent geplant, erfolgreich gebaut

     Waldaustrasse 13, D-90441 Nuernberg, Germany
     Tel: INT+49-911-62793-242, Fax: INT+49-911-62793-10
     +++++++++ http://www.ks-ingenieurconsult.de/ ++++++++++++++++

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.