5mp74代码如下:

\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

点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部