von Manuela » Do 4. Mai 2023, 17:09
Ich möchte Text in einem pspicture horizontal zentrieren, gibt es dafür einen Automatismus?
\documentclass{article}
\usepackage{pstricks}
\usepackage{psvectorian}
\usepackage[a4paper,
total={210mm,297mm},
left=5mm,right=5mm,top=5mm,bottom=5mm]
{geometry}
\pagestyle{empty}
\begin{document}
\null\vfill
\begin{center}
\begin{pspicture}(-.45\paperwidth, -.45\paperheight)
(.45\paperwidth, .45\paperheight)
\psset{unit=1cm}
% GRID
\psgrid[griddots=10,subgriddiv=0,gridlabels=12pt,gridcolor=black!80](0,0)(-14,-19)(14,19)
\rput[tl](-7,0){{\Huge \textbf{horizontal zentrieren}}}
\end{pspicture}
\end{center}
\vfill
\end{document}
Ich möchte Text in einem pspicture horizontal zentrieren, gibt es dafür einen Automatismus?
[code]\documentclass{article}
\usepackage{pstricks}
\usepackage{psvectorian}
\usepackage[a4paper,
total={210mm,297mm},
left=5mm,right=5mm,top=5mm,bottom=5mm]
{geometry}
\pagestyle{empty}
\begin{document}
\null\vfill
\begin{center}
\begin{pspicture}(-.45\paperwidth, -.45\paperheight)
(.45\paperwidth, .45\paperheight)
\psset{unit=1cm}
% GRID
\psgrid[griddots=10,subgriddiv=0,gridlabels=12pt,gridcolor=black!80](0,0)(-14,-19)(14,19)
\rput[tl](-7,0){{\Huge \textbf{horizontal zentrieren}}}
\end{pspicture}
\end{center}
\vfill
\end{document}[/code]