[XeTeX] Book Templates

Wilfred van Rooijen wvanrooijen at yahoo.com
Mon Nov 2 07:34:15 CET 2009


Shouldn't you use the \setmainfont or something similar from fontspec? IIRC this sets the main font for the entire document.

Cheers,
Wilfred

--- On Mon, 2/11/09, sjo <sjo222 at gmail.com> wrote:

> From: sjo <sjo222 at gmail.com>
> Subject: Re: [XeTeX] Book Templates
> To: "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
> Date: Monday, 2 November, 2009, 11:10 AM
> > \RequirePackage{fourier}
> > \RequirePackage[scaled=0.85]{berasans}
> > \RequirePackage[scaled=0.85]{beramono}
> 
> > Herb Schulz
> > (herbs at wideopenwest dot com)
> 
> Very nice combination.
> 
> I tried it with xelatex/bidi (font in Hebrew) and I like
> it. The
> problem is that after typing in Hebrew, and changing back
> to English I
> don't get the berasans, but something else (Ezra Sil
> English
> perhaps?). See below
> 
> How do I set the main font to always be
> berasans/beramono/fourier.
> 
> ===============
> % !TEX TS-program = xelatex
> \documentclass[10pt]{article} % use larger type; default
> would be 10pt
> 
> \usepackage{fourier}
> \usepackage[scaled=0.85]{berasans}
> \usepackage[scaled=0.85]{beramono}
> 
> \usepackage{bidi}
> \usepackage{fontspec}
> \usepackage{xltxtra}
> \usepackage{hebcal,url}
> \usepackage{xunicode}
> \newfontfamily\ezra[Script=Hebrew]{Ezra SIL}
> \def\h{\beginR\setRL\ezra}
> \def\e{\beginL\setLR}
> 
> \begin{document}
> 
> 
> \section{First section}
> \section{What is bidi?}
> Bi-directional text is text containing text in both text
> directionalities, both right-to-left (RTL) and
> left-to-right (LTR). It
> generally involves text containing different types of
> alphabets, but
> may also refer to boustrophedon, which is changing text
> directionality
> in each row.
> $x = \beta \rightarrow \alpha$
> 
> 
> \h
> אבגדהו
> אבגדהואבגדהואבגדהואבגדהו
> אבגדהו אבגדהו אבגדהו אבגדהו
> אבגדה
> 
> \e
> Bi-directional text is text containing text in both text
> directionalities, both right-to-left (RTL) and
> left-to-right (LTR). It
> generally invol
 also refer to boustrophedon, which is changing text
> directionality
> in each row.
> $x = \beta \rightarrow \alpha$
> 
> \subsection{A subsection}
> 
> More text.
> 
> \end{document}
> 


      Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/


More information about the XeTeX mailing list