用黑条填充 A6 文档页面边框

用黑条填充 A6 文档页面边框

我有以下代码:

\documentclass[14pt,landscape]{book}
\usepackage{fauve}
\usepackage[a6paper]{geometry}% http://ctan.org/pkg/geometry

\setlength{\parindent}{0pt}
\begin{document}

  \thispagestyle{empty}
  \vspace*{\fill}

  Mr. Paul \bsc{Durant}, her husband

  Miss Laura \bsc{Durant}, his daughter

  Mr. and Mrs. Jean \bsc{Racine}, his cousins

  pain you of the death of

  \paragraph*{}
  Laura \bsc{Smith}

  \vspace*{\fill}
\end{document}

因此,我想要用 0.5 厘米的黑线填充边框,输出可能是这样的:

输出模型

那么,我要使用什么代码才能获得这种渲染?

答案1

\usepackage{eso-pic}
\newlength\rightside
\setlength\rightside{\paperwidth}
\addtolength\rightside{-5mm}
\AddToShipoutPicture{%
  \AtPageLowerLeft{%
    \rule{5mm}{\paperheight}}
  \AtPageLowerLeft{%
    \hspace{\rightside}\rule {5mm}{\paperheight}}
  \AtPageUpperLeft{%
    \rule[-5mm]{\paperwidth}{5mm}}
  \AtPageLowerLeft{%
    \rule{\paperwidth}{5mm}}
}

相关内容