我怎样才能在某个部分之前水平添加这 3 个链?

我怎样才能在某个部分之前水平添加这 3 个链?

我在文档中添加了背景图像,还在文档边框中添加了装饰。但文本没有从正确的位置开始。另外,我试图在某个部分之前添加五个水平放置的小装饰圆圈。但我不知道如何定义它的位置以及如何控制它的大小。我正在遵循 CTAN 的教程并按照它进行编写。装饰链也从错误的位置开始。这是我的代码

\documentclass{article}
\usepackage{tikz}
\usepackage[top=2cm, bottom=2cm, outer=0cm, inner=0cm]{geometry}

\title{abc}
\author{saad}
\date{12-12-12}

\usepackage[paper=a4paper, verbose, centering]{geometry}
\usepackage{pgfornament}
\usetikzlibrary{chains}
\usepackage{titling}%



\begin{document}
\maketitle
\section{A section A Section A Section A Section}


\tikz[remember picture,overlay] \node[opacity=0.2,inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{bright 2.png}};


\begin{tikzpicture}[remember picture, overlay, start chain, node distance=-2mm]
    \node (nworn) [shift={(5mm,-5mm)}, anchor=north west, on chain ] at (current page.north west) {\pgfornament[width=10mm]{7}};
    \foreach \i in {1,...,17}
      \node [on chain] {\pgfornament[width=10mm]{7}};
    \node (neorn) [on chain] {\pgfornament[width=10mm]{7}};
    \foreach \i in {1,...,24}
      \node [continue chain=going below, on chain] {\pgfornament[width=10mm]{7}};
    \node (seorn) [on chain] {\pgfornament[width=10mm]{7}};
    \foreach \i in {1,...,17}
      \node [continue chain=going left, on chain] {\pgfornament[width=10mm]{7}};
    \node (sworn) [on chain] {\pgfornament[width=10mm]{7}};
    \foreach \i in {1,...,24}
      \node [continue chain=going above, on chain] {\pgfornament[width=10mm]{7}};
\end{tikzpicture}


\begin{tikzpicture}[start chain=circle placed %
{at=(\tikzchaincount*30:2)}]
\foreach \i in {1,...,12} \node [on chain]%
{\pgfornament[width=1cm]{4}};
\end{tikzpicture}

\begin{tikzpicture}[start chain=circle placed %
{at=(\tikzchaincount*30:2)}]
\foreach \i in {1,...,12} \node [on chain]%
{\pgfornament[width=0.8cm]{4}};
\end{tikzpicture}

\begin{tikzpicture}[start chain=circle placed %
{at=(\tikzchaincount*30:2)}]
\foreach \i in {1,...,12} \node [on chain]%
{\pgfornament[width=1cm]{4}};
\end{tikzpicture}
\section{A Section A Section A Section}

\clearpage
text
\end{document}

结果如下 生成的文件

我几乎不知道如何放置这些链并控制它们的大小。所以有人能描述一下解决方案吗?

答案1

在此处输入图片描述

\documentclass{article}
\usepackage{tikz}
\usepackage[top=1cm, bottom=2cm, outer=0cm, inner=0cm]{geometry}

\title{abc}
\author{saad}
\date{12-12-12}

%\usepackage[paper=a4paper, verbose, centering]{geometry}
\usepackage{pgfornament}
\usetikzlibrary{chains}
\usepackage{titling}%



\begin{document}
    \maketitle
        \vspace*{1cm}
    \section{A section A Section A Section A Section}

    
    
%   
%   \tikz[remember picture,overlay] \node[opacity=0.2,inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{bright 2.png}};
%   
    
    \begin{tikzpicture}[remember picture, overlay, start chain, node distance=-2mm]
        \node (nworn) [shift={(5mm,-5mm)}, anchor=north west, on chain ] at (current page.north west) {\pgfornament[width=10mm]{7}};
        \foreach \i in {1,...,17}
        \node [on chain] {\pgfornament[width=10mm]{7}};
        \node (neorn) [on chain] {\pgfornament[width=10mm]{7}};
        \foreach \i in {1,...,4}
        \node [continue chain=going below, on chain] {\pgfornament[width=10mm]{7}};
        \node (seorn) [on chain] {\pgfornament[width=10mm]{7}};
        \foreach \i in {1,...,17}
        \node [continue chain=going left, on chain] {\pgfornament[width=10mm]{7}};
        \node (sworn) [on chain] {\pgfornament[width=10mm]{7}};
        \foreach \i in {1,...,4}
        \node [continue chain=going above, on chain] {\pgfornament[width=10mm]{7}};
    \end{tikzpicture}
    
    
    \begin{tikzpicture}[start chain=circle placed %
        {at=(\tikzchaincount*30:2)}]
        \foreach \i in {1,...,12} \node [on chain]%
        {\pgfornament[width=1cm]{4}};
    \end{tikzpicture}
    
    \begin{tikzpicture}[start chain=circle placed %
        {at=(\tikzchaincount*30:2)}]
        \foreach \i in {1,...,12} \node [on chain]%
        {\pgfornament[width=0.8cm]{4}};
    \end{tikzpicture}
    
    \begin{tikzpicture}[start chain=circle placed %
        {at=(\tikzchaincount*30:2)}]
        \foreach \i in {1,...,12} \node [on chain]%
        {\pgfornament[width=1cm]{4}};
    \end{tikzpicture}
    \section{A Section A Section A Section}
    
    \clearpage
    text
\end{document}
h

相关内容