答案1
一个不错的包,可以让你结合Ti钾Z 具有 LaTeX 高效的自动布局功能tikzpagenodes
。使用它,您可以在文本区域内或文本区域外放置内容。然后tikzmark
可以使用库引用页面中的对象(例如项目),并相应地添加框。
\documentclass[14pt]{article}
\usepackage{tikzpagenodes}
\usetikzlibrary{tikzmark}
\begin{document}
\pagestyle{empty}
\begin{center}
\bfseries\sffamily\Huge Welcome to our site!
\end{center}
\begin{itemize}
\item \tikzmarknode{blah1}{blah} blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\item \tikzmarknode{blah2}{blah} blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\item \tikzmarknode{blah3}{blah} blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\item \tikzmarknode{blah4}{blah} blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\end{itemize}
\begin{tikzpicture}[overlay,remember picture]
\foreach \X in {1,...,4}
{\node[minimum width=1.2cm,minimum height=1cm,draw,anchor=north west]
at ([xshift=1mm]current page text area.east|-blah\X.north) {};}
\draw[dashed]
([xshift=-2mm]current page text area.west) to[out=135,in=-135]
++ (0,2) to[out=45,in=-45] ++(0,2);
\node[anchor=south] at (current page text area.south)
{\includegraphics[width=\textwidth]{example-image-duck}};
\end{tikzpicture}
\end{document}
如果您希望更改页面参数(例如宽度或边距),我建议使用该geometry
包。