在 pgfornaments 中的 \rput 中不允许出现新行吗?

在 pgfornaments 中的 \rput 中不允许出现新行吗?

在此处输入图片描述
以上代码来自以下代码 -

\documentclass{scrartcl} 
%\usepackage[banglamainfont=Kalpurush,banglattfont=Siyam Rupali]{latexbangla}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[dvipsnames]{xcolor}
\usepackage{tikzrput}
\usepackage[object=vectorian]{pgfornament} 
\begin{document}  
\tikzset{pgfornamentstyle/.style={draw = Periwinkle,
                                  fill = SpringGreen}}   
\unitlength=1cm   

\begin{center}   
\begin{picture}(10,10)%
  \color{Blue}%
   \put(0,0){\framebox(10,10){%
   \rput[tl](-3,5){\pgfornament[width=6cm]{71}}%
   \rput[bl](-3,-5){\pgfornament[width=6cm,,symmetry=h]{71}}%
   \rput[tl](-5,5){\pgfornament[width=2cm]{63}}%
   \rput[tr](5,5){\pgfornament[width=2cm,,symmetry=v]{63}}%
   \rput[bl](-5,-5){\pgfornament[width=2cm,,symmetry=h]{63}}%
   \rput[br](5,-5){\pgfornament[width=2cm,,symmetry=c]{63}}%
   \rput[bl]{-90}(-5,3){\pgfornament[width=6cm]{46}}%
   \rput[bl]{90}(5,-3){\pgfornament[width=6cm]{46}}%
 \rput(0,0){\Huge \color{Maroon}\textbf{Helal}\\Belal}}%
   \rput[b](0,0.5){\pgfornament[width=5cm]{69}}%
   \rput[t](0,-0.5){\pgfornament[width=5cm,symmetry=c]{69}}%
%   \rput[tr]{-30}(-1,2.5){\pgfornament[width=2cm]{57}}%
%   \rput[tl]{30}(1,2.5){\pgfornament[width=2cm,symmetry=v]{57}}}}% 
 }}
\end{picture} 
\end{center}
\end{document} 

答案1

您可以使用 atabular来换行。正如 Thruston 在评论中指出的那样,该行后面还有一个额外的括号,并且在最后一个(注释的)装饰后面有两个额外的括号。

在此处输入图片描述

\documentclass{scrartcl} 
%\usepackage[banglamainfont=Kalpurush,banglattfont=Siyam Rupali]{latexbangla}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[dvipsnames]{xcolor}
\usepackage{tikzrput}
\usepackage[object=vectorian]{pgfornament} 
\begin{document}  
\tikzset{pgfornamentstyle/.style={draw = Periwinkle,
                                  fill = SpringGreen}}   
\unitlength=1cm   

\begin{center}   
\begin{picture}(10,10)%
  \color{Blue}%
   \put(0,0){\framebox(10,10){%
   \rput[tl](-3,5){\pgfornament[width=6cm]{71}}%
   \rput[bl](-3,-5){\pgfornament[width=6cm,,symmetry=h]{71}}%
   \rput[tl](-5,5){\pgfornament[width=2cm]{63}}%
   \rput[tr](5,5){\pgfornament[width=2cm,symmetry=v]{63}}%
   \rput[bl](-5,-5){\pgfornament[width=2cm,symmetry=h]{63}}%
   \rput[br](5,-5){\pgfornament[width=2cm,symmetry=c]{63}}%
   \rput[bl]{-90}(-5,3){\pgfornament[width=6cm]{46}}%
   \rput[bl]{90}(5,-3){\pgfornament[width=6cm]{46}}%
   \rput(0,0){\Huge \color{Maroon}%
              \begin{tabular}{@{}c@{}}
               \textbf{Helal}\\[-7pt]
                Belal
               \end{tabular}}%
   \rput[b](0,1){\pgfornament[width=5cm]{69}}% % moved this up
   \rput[t](0,-1){\pgfornament[width=5cm,symmetry=c]{69}}% % moved this down
   \rput[tr]{-30}(-1,2.5){\pgfornament[width=2cm]{57}}%
   \rput[tl]{30}(1,2.5){\pgfornament[width=2cm,symmetry=v]{57}}%  %removed two braces here
 }}
\end{picture} 
\end{center}
\end{document} 

相关内容