Use of memoir instead of book (style chapter)
This commit is contained in:
parent
4687ee03f4
commit
74ffa1724a
2 changed files with 24 additions and 1 deletions
|
@ -1,7 +1,13 @@
|
|||
% Author Yann Esposito©2010
|
||||
%!TEX TS-program = xelatex
|
||||
%!TEX encoding = UTF-8 Unicode
|
||||
\documentclass[10pt]{book}
|
||||
\documentclass[10pt]{memoir}
|
||||
|
||||
\renewcommand{\it}{\itshape}
|
||||
\renewcommand{\sc}{\scshape}
|
||||
\renewcommand{\tt}{\texttt}
|
||||
\renewcommand{\bf}{\textbf}
|
||||
|
||||
% -- XeLaTeX --
|
||||
\XeTeXdefaultencoding utf-8
|
||||
\usepackage{xltxtra,fontspec,xunicode}
|
||||
|
|
|
@ -3,6 +3,23 @@
|
|||
% -- Personal style --
|
||||
%%# LATEX HEADER FROM config.rb #%%
|
||||
|
||||
|
||||
\makechapterstyle{combined}{
|
||||
\setlength{\midchapskip}{-60pt}
|
||||
\setlength{\afterchapskip}{2.5cm}
|
||||
\renewcommand*{\printchaptername}{}
|
||||
\renewcommand*{\chapnumfont}{\normalfont\sffamily\bfseries\fontsize{20}{0}\selectfont}
|
||||
\renewcommand*{\printchapternum}{\flushright\chapnumfont{\thechapter}}
|
||||
\renewcommand*{\chaptitlefont}{\normalfont\sffamily\bfseries}
|
||||
\renewcommand*{\printchaptertitle}[1]{%
|
||||
\hrule\vspace{.2ex}\hrule\vspace{2ex}%
|
||||
\chaptitlefont\parbox[t]{\textwidth-3cm}{\raggedright##1}
|
||||
\vspace{2ex}\hrule\vspace{.2ex}\hrule}
|
||||
}
|
||||
|
||||
\chapterstyle{combined}
|
||||
|
||||
|
||||
\author{}
|
||||
|
||||
\title{}
|
||||
|
|
Loading…
Reference in a new issue