[XeTeX] xelatex: chapter style in book

baptiste Auguié ba208 at exeter.ac.uk
Sun May 25 14:31:05 CEST 2008


Hi,

Using XeTeX for my thesis with the book document class, i'm trying to  
customize the look of the chapter pages.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: preview.png
Type: image/png
Size: 41824 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080525/e966b149/attachment-0001.png 
-------------- next part --------------


I've been looking at the "quotchap" package [*] to include a quote  
next to the chapter number. However, the macro is really made for  
pdflatex, and my attempts at tweaking it for use with XeTeX have met  
only with limited success. The best I've come up with so far is the  
example below. There are several problems:

1) the font changes are made manually for each chapter

2) I cannot change the big numbers' font to the one I want (Hoefler  
text, say)


Would someone be kind enough to direct me in what to change? (maybe  
using the titlesec package only with a clever macro?)

Best regards,

baptiste

[*]: http://www.ctan.org/tex-archive/help/Catalogue/entries/ 
quotchap.html


Here's an example:

> %!TEX TS-program = xelatex
> %
> \documentclass[xetex,a4paper,11pt]{book}
> \pdfpageheight=297mm
> \pdfpagewidth=210mm
> \setlength{\textwidth}{14.5cm}
>
> \usepackage{fontspec,xltxtra,xunicode}
> \defaultfontfeatures{Mapping=tex-text}
> \setromanfont[Mapping=tex- 
> text,VerticalPosition=Ordinal,Contextuals=Swash]{Hoefler Text}
>
> \newfontfamily\QF[Alternate=1,Color=8C8C8CBB]{Hoefler Text Italic}  
> % quote text
> \newfontfamily\CF[Alternate=1,Color=8C8C8CBB]{Hoefler Text} %  
> chapter font
>
> \usepackage[sf,medium]{titlesec}
> \usepackage[helvetica]{quotchap}
>
> \begin{document}
> 	
> 	\begin{savequote}[8cm]\QF
> 	?Would you tell me, please, which way I ought to go from here?'\\
> 	`That depends a good deal on where you want to get to,' said the  
> Cat.\\
> 	`I don't much care where--' said Alice.\\
> 	`Then it doesn't matter which way you go,' said the Cat.\\
> 	`--so long as I get somewhere,' Alice added as an explanation.\\
> 	`Oh, you're sure to do that,' said the Cat, `if you only walk long  
> enough.'?
> 	  \qauthor{Lewis Carroll, In decisions}
> 	\end{savequote}
> 	
> \chapter{\CF Testing chapters}
>
> \section{Section\dots}
>
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do  
> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim  
> ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut  
> aliquip ex ea commodo consequat. Duis aute irure dolor in  
> reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla  
> pariatur. Excepteur sint occaecat cupidatat non proident, sunt in  
> culpa qui officia deserunt mollit anim id est laborum.
>
>
> \end{document}










More information about the XeTeX mailing list