[XeTeX] How can I use IEEEtran class with XeLaTeX?

Ross Moore ross.moore at mq.edu.au
Sun Jan 30 23:32:21 CET 2011


Hello Maxim,

On 31/01/2011, at 7:56 AM, Maxim Cournoyer wrote:

> Dear XeTeX community,
> 
> I've been trying to use the IEEEtran.cls to write an article paper in _french_.
> So my guess was to just load the xltxtra & polyglossia packages in my document:
> \usepackage{xltxtra}
> \usepackage{polyglossia}
> \setdefaultlanguage{french}


> 
> This solves the accentuation part, but introduces ugly spacing & font in the process. I've
> attached samples output of "before" and "after" loading the xltxtra package.
> 
> I also tried changing the font, by issuing using these commands:
> \defaultfontfeatures{Mapping=tex-text}
> \setromanfont{Linux Libertine O}
> \setsansfont{Linux Biolinum O}
> \setmonofont[Scale=0.8]{DejaVu Sans Mono}


The IEEE class file is not aware of the existence of XeTeX.
It does a lot of stuff with fonts --- e.g., for the fancy
dropped capitals at the start of paragraphs --- that will
need to be rewritten to work with the way XeTeX declares
and handles fonts.

> 
> But this fails, when encountering the IEEEtran's \IEEEPARstart defined macro, as shown in the following
> error message output:
> (./out/bare_jrnl.aux)kpathsea: Invalid fontname `Linux at ', contains ' '
> 
> ! Font \@IEEEPARstartsubfont=""Linux at "" not loadable: Metric (TFM) file or i
> nstalled font not found.
> <to be read again> 
>                    \@IEEEtrantmpdimenA 
> l.75 \IEEEPARstart{C}{e}
>                           fichier de démonstration est un «~fichier de dé...
> 
> It seems like this function does not like my font name having spaces in it (Linux Libertine O).
> I'm digging in the IEEEtran.cls right now, but I'm no expert so it's a slow process.


For instance, line 4232 of IEEE.cls has:

    \font\@IEEEPARstartsubfont\@IEEEPARstartFONTNAME\space at \@IEEEtrantmpdimenA\relax%

This might work OK as:

    \newfontinstance{\@IEEEPARstartsubfont}{"\@IEEEPARstartFONTNAME" at \@IEEEtrantmpdimenA}

but then there are other difficulties too.

The macro  \IEEEPARstart  tries to construct \font ...
instances, to determine the correct size for dropped capitals,
and create a new font instance especially for each example.

You'll need a TeX expert familiar with XeTeX fonts to have a good look at this.


> 
> Any help would be much appreciated,
> 
> Maxim



Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross.moore at mq.edu.au 
Mathematics Department                           office: E7A-419      
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------






More information about the XeTeX mailing list