\documentclass{report} \usepackage{graphicx,lipsum,lmodern}% http://ctan.org/pkg/{graphicx,lipsum,lm} \makeatletter \def\@makechapterhead#1{% \vspace*{50\p@}% \noindent\hspace*{.1\linewidth}\smash{\rule[-2\textheight]{5pt}{3\textheight}}% Thick rule \hspace{.05\linewidth}\smash{\rule[-2\textheight]{2pt}{3\textheight}}% Thin rule \hspace{.1\linewidth}% {\parbox[t]{\dimexpr.75\linewidth-7pt}{\raggedright \ifnum \c@secnumdepth >\m@ne \normalfont\bfseries\fontsize{30\p@}{36\p@}\selectfont \@chapapp\space \scalebox{2}{\thechapter} \par\nobreak \vskip 30\p@ \fi \interlinepenalty\@M \fontsize{45\p@}{55\p@} \bfseries #1 } }\thispagestyle{empty}\clearpage} \def\@makeschapterhead#1{% \vspace*{50\p@}% \noindent\hspace*{.1\linewidth}\smash{\rule[-2\textheight]{5pt}{3\textheight}}% Thick rule \hspace{.05\linewidth}\smash{\rule[-2\textheight]{2pt}{3\textheight}}% Thin rule \hspace{.1\linewidth}% {\parbox[t]{\dimexpr.75\linewidth-7pt}{\raggedright \fontsize{45\p@}{55\p@} \bfseries #1 } }\thispagestyle{empty}\clearpage} \makeatother \begin{document} \chapter{Name of the chapter} \lipsum[1] \chapter*{Name of the chapter} \lipsum[1] \end{document}
选自:http://tex.stackexchange.com/questions/130758/vertical-lines-across-page-for-each-chapter
发表评论 取消回复