如下图:
代码如下:
\documentclass[12pt]{book} \usepackage{titlesec} \usepackage{xcolor,lipsum} \titleformat{\chapter}[block] {} {\llap{\color{gray}\chapterNumber\thechapter \hspace{10pt}\vline}} {10pt} {\formatchaptertitle} \newcommand{\formatchaptertitle}[1]{% \parbox[t]{\dimexpr\textwidth-10pt}{\raggedright\LARGE\scshape#1}} \newcommand{\chapterNumber}{% \fontsize{50}{50}\usefont{U}{eur}{b}{n}} \begin{document} \chapter{Long long long long long long long long long long title} \lipsum[1] \end{document}
选自: http://tex.stackexchange.com/questions/111251/chapter-title-alignment-with-titleformat
发表评论 取消回复