用螺旋活页夹将页面分开

用螺旋活页夹将页面分开

我需要 tikz 对此(课程计划)格式的帮助。

在此处输入图片描述

现在,这是基于薛定谔猫的答案。

在此处输入图片描述

答案1

这就添加了这样一个螺旋活页夹。

\documentclass[twoside]{article}
\usepackage[inner=2.5in]{geometry}
\usepackage{tikzpagenodes}
\usetikzlibrary{matrix}
\definecolor{mylightblue}{RGB}{185,204,222}
\definecolor{myblue}{RGB}{117,150,175}
\definecolor{mydarkblue}{RGB}{19,36,75}
\usepackage[explicit]{titlesec}
\usepackage{eso-pic}
\usepackage{lipsum}
\tikzset{pics/spiral/.style={code={
\fill[black] (-0.8em,0) circle[radius=3pt] (0.8em,0) circle[radius=3pt];
\draw[line width=0pt,left color=mylightblue,right color=mylightblue,middle color=white] 
 (-0.8em,-1.5pt)arc[start angle=270,end angle=90,radius=1.5pt]
  -- (0.8em,1.5pt)arc[start angle=90,end angle=-90,radius=1.5pt] -- cycle;
}}}
\AddToShipoutPictureBG{\begin{tikzpicture}[overlay,remember picture]
\path (current page.north) coordinate (N) (current page.south) coordinate (S);
\ifodd\value{page}
 \path (current page text area.west) coordinate (W);
 \fill[mylightblue] ([xshift=-0.3em]W|-N) rectangle ([xshift=-1.3em]W|-S);
 \fill[myblue] ([xshift=-1.7em]W|-N) rectangle (current page.south west);
 \fill[mydarkblue] ([xshift=-2em]W|-N) rectangle ([xshift=-3em]W|-S);
 \path foreach \Y in {8,7,...,-8} 
  {([xshift=-1.6em,yshift=\Y cm]current page text area.west) pic{spiral}};
\else
 \path (current page text area.east) coordinate (E);
 \fill[mylightblue] ([xshift=0.3em]E|-N) rectangle ([xshift=1.3em]E|-S);
 \fill[myblue] ([xshift=1.7em]E|-N) rectangle (current page.south east);
 \fill[mydarkblue] ([xshift=2em]E|-N) rectangle ([xshift=3em]E|-S);
 \path foreach \Y in {8,7,...,-8} 
  {([xshift=1.6em,yshift=\Y cm]current page text area.east) pic[xscale=-1]{spiral}};
\fi 
\end{tikzpicture}}
%
\titleformat{\section}[display]{}{}{0pt}
  {\begin{tikzpicture}[baseline={(title.base)}]
  \node[fill=mydarkblue,text=white,font=\LARGE\bfseries\sffamily,outer sep=0pt,
    inner ysep=1ex] (title) {#1};
  \fill[mydarkblue] ([xshift=-1pt]title.south east) --
  ([xshift=0.95\linewidth-1.5em]title.south west)
  to[out=180,in=0]
   ([xshift=0.95\linewidth-3em]title.north west)
   -- ([xshift=-1pt]title.north east);
  \fill[mylightblue] ([xshift=0.95\linewidth-1.5em]title.south west)
   -- ++ (1.5em,0) 
  to[out=180,in=0] ([xshift=0.95\linewidth-2em]title.north west)
  -- ++ (-1.5em,0)  to[out=0,in=180] cycle;
  \fill[myblue] ([xshift=0.95\linewidth-2.7em]title.south west)
   -- ++ (0.8em,0) 
  to[out=180,in=0] ([xshift=0.95\linewidth-3.9em]title.north west)
  -- ++ (-0.8em,0)  to[out=0,in=180] cycle;
 \end{tikzpicture}}[]

\titleformat{name=\section,numberless}[display]{}{}{0pt}
 {\begin{tikzpicture}[baseline={(title.base)}]
  \node[fill=mydarkblue,text=white,font=\LARGE\bfseries\sffamily,outer sep=0pt,
    inner ysep=1ex] (title) {#1};
  \fill[mydarkblue] ([xshift=-1pt]title.south east) --
  ([xshift=0.95\linewidth-1.5em]title.south west)
  to[out=180,in=0]
   ([xshift=0.95\linewidth-3em]title.north west)
   -- ([xshift=-1pt]title.north east);
  \fill[mylightblue] ([xshift=0.95\linewidth-1.5em]title.south west)
   -- ++ (1.5em,0) 
  to[out=180,in=0] ([xshift=0.95\linewidth-2em]title.north west)
  -- ++ (-1.5em,0)  to[out=0,in=180] cycle;
  \fill[myblue] ([xshift=0.95\linewidth-2.7em]title.south west)
   -- ++ (0.8em,0) 
  to[out=180,in=0] ([xshift=0.95\linewidth-3.9em]title.north west)
  -- ++ (-0.8em,0)  to[out=0,in=180] cycle;
 \end{tikzpicture}}[]
\newcommand{\OuterColumn}[2][]{\begin{tikzpicture}[overlay,remember picture]
\ifodd\value{page}
 \path ([xshift=-4em,yshift=1em]current page text area.north west)
  node[below left,matrix of nodes,nodes={text width=1.7in}]{
  #2
  };
\else
 \path ([xshift=4em,yshift=1em]current page text area.north east)
  node[below right,matrix of nodes,nodes={text width=1.7in}]{
  #2
  };
\fi  
\end{tikzpicture}}

\newsavebox{\mypic}
\sbox{\mypic}{\begin{tikzpicture}[thick,mylightblue]
\draw[clip] circle[radius=1.5cm];
\node{\includegraphics{example-image-duck}};
\end{tikzpicture}}

\renewcommand*\familydefault{\sfdefault}
\pagestyle{empty}
\begin{document}
\section{A section}
\OuterColumn{%
~~~\usebox\mypic\\[1.5em]
|[fill=mylightblue,font=\large\bfseries]| PFT PFT\\
|[text=white]|{\begin{enumerate}
  \item bla
  \item blub
  \end{enumerate}}\\}%
\lipsum[1-2]
\clearpage

\section*{Another section}
\OuterColumn{%
|[fill=mylightblue,font=\large\bfseries]| PFT PFT\\
|[text=white]|{\begin{enumerate}
  \item bla
  \item blub
  \end{enumerate}}\\}%

\end{document}

在此处输入图片描述

相关内容