Re: Positionierung in Picture Umgebung

Ulrike Fischer <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Am Tue, 04 Oct 2022 16:44:21 +0200 schrieb Peter Seitz:

> calc hatte ich nicht geladen, hat aber doch irgendwie funktioniert

Nun, es gibt keinen Fehler. Aber die gewünschte Länge gibt das
nicht:

\documentclass{article}
\begin{document}
\newlength{\qrplatz}
\setlength{\qrplatz}{\textwidth-1.5cm}
\showthe\textwidth
\showthe\qrplatz
\end{document}


> Ich bräuchte aber den Wert 6.412 ohne eine Einheit, damit dieser im
> \put-Befehl verwendet werden kann

in einem aktuellen LaTeX akzeptiert \put auch Längen mit Einheiten
und dein Code läuft bei mir fehlerfrei:

\documentclass{article}
\usepackage{calc,color,qrcode}
\begin{document}
\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}%

\end{document}
 


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.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.