[PATCH -perfbook 3/4] ebook: Use normal epigraph for chapter headings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The \epigraphhead command (of epigraph package) redefines chapter
page style.  This overwrites fancyhdr's settings.
Also, the epigraphs above chapter titles sometime look busy in
ebook-sized builds.

Therefore, switch to normal style epigraphs printed below chapter
headings for ebook-sized builds.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 perfbook-lt.tex | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index ec3e38e1..c45d033c 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -509,7 +509,11 @@
 %\newcommand{\IRQ}{irq}      % For those who prefer "irq"
 \newcommand{\rt}{\mbox{-rt}} % to prevent line break behind "-"
 
-\newcommand{\Epigraph}[2]{\epigraphhead[65]{\epigraph{#1}{#2}}}
+\IfEbookSize{
+  \newcommand{\Epigraph}[2]{\epigraph{#1}{#2}}
+}{
+  \newcommand{\Epigraph}[2]{\epigraphhead[65]{\epigraph{#1}{#2}}}
+}
 
 \input{ushyphex} % Hyphenation exceptions for US English from hyphenex package
 \input{pfhyphex} % Hyphenation exceptions for perfbook
-- 
2.17.1





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux