如何在文档标题页左侧从上到下添加一个小(1厘米)彩色条?
答案1
\documentclass[a4paper]{article}
\usepackage{atbegshi,color,picture}
\AtBeginShipoutNext{\AtBeginShipoutUpperLeft{%
\put(0,-\paperheight){{\color{red}\rule{1cm}{\paperheight}}}}}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}
请参阅文档阿特别格什其他示例。
答案2
\documentclass{article}
\usepackage{xcolor,picture,calc}
\title{foobar}
\author{foo}
\begin{document}
\begin{titlepage}
\picture(0,0)\put(-2\oddsidemargin,-\textheight-3.8cm){\color{red!40}\rule{1cm}{\paperheight}}\endpicture
\begin{center}
\huge Me, I and myself
\vspace{3cm}
\normalsize by\\[1cm]
\Large Erasmus von Rotterdam
\vfill
\rule{\linewidth}{5mm}
\end{center}
\end{titlepage}
\end{document}