[XeTeX] biblatex and xetex issue

Herbert Schulz herbs at wideopenwest.com
Tue Sep 24 20:52:40 CEST 2013


On Sep 24, 2013, at 12:41 PM, George N. White III <gnwiii at gmail.com> wrote:

> What differences do you see?
> 
> With my TeX Live 2013, the xelatex example used Latin Modern while pdflatex used cm-super.  Adding "\usepackage{lmodern}" gives the same fonts.  The xelatex output has a bit of extra space before the "?" in "anyone?".  
> 
> 
> 
> On Tue, Sep 24, 2013 at 12:52 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 
> On Sep 24, 2013, at 2:28 AM, Joel GOMBIN <joel.gombin at gmail.com> wrote:
> 
> > Hi,
> >
> > I encountered a small issue while trying to use biblatex with xetex. I reported it to biblatex but they said it wasn't a biblatex-related issue (see https://github.com/plk/biblatex/issues/162#issuecomment-24971883)
> >
> > With the exact same params passed to biblatex, when I compile with pdflatex and xelatex, I get different results with regards to the way punctuation is handled inside bibitems titles. Let me provide MWEs. This is the file compiled with xelatex :
> >
> > \usepackage{fontspec}
> > \usepackage{xunicode}
> > \usepackage{xltxtra}
> > \usepackage[british,french]{babel}
> > \usepackage[citestyle=authoryear-comp, bibstyle=authoryear, natbib=true, babel=hyphen, language=auto]{biblatex}
> > \usepackage{csquotes}
> >
> > \usepackage{filecontents}
> > \begin{filecontents}{\jobname.bib}
> > @ARTICLE{agnew_iv._1987,
> >   author = {Agnew, John},
> >   title = {{IV.} Place anyone? A comment on the {McAllister} and Johnston papers},
> >   journal = {Political Geography Quarterly},
> >   year = {1987},
> >   volume = {6},
> >   pages = {39--40},
> >   number = {1},
> >   month = jan,
> >   doi = {10.1016/0260-9827(87)90030-9},
> >   file = {Agnew - 1987 - IV. Place anyone A comment on the McAllister and.pdf:/home/joel/.zotero/zotero/lkxpsie2.default/zotero/storage/WWPCJ577/Agnew - 1987 - IV. Place anyone A comment on the McAllister and.pdf:application/pdf;ScienceDirect Snapshot:/home/joel/.zotero/zotero/lkxpsie2.default/zotero/storage/VB7RPMZE/login.html:text/html},
> >   hyphenation = {english},
> >   issn = {0260-9827},
> >   shorttitle = {{IV.} Place anyone?},
> >   url = {http://www.sciencedirect.com/science/article/pii/0260982787900309},
> >   urldate = {2012-08-02}
> > }
> > @ARTICLE{bussi_repenser_2007,
> >   author = {Bussi, Michel},
> >   title = {Repenser les territoires ensemble : une inflexion paradigmatique
> >       pour la géographie politique ?},
> >   journal = {{L'Espace} Politique},
> >   year = {2007},
> >   number = {3},
> >   month = sep,
> >   note = {La géographie dans sa dimension politique a été longtemps assimilée
> >       à une science stratégique, utile à la conquête d'un territoire,à
> >       sa maîtrise ou à sa gestion… La géographie politique s'intéresse
> >       ainsi classiquement aux conflits territoriaux ou pour le moins aux
> >       rapports de force exprimés dans un contexte spatial. Il existe assurément
> >       suffisamment de conflits, de violences ou de rapports de force à
> >       arbitrer dans le monde pour justifier pleinement de l'utilité d'un
> >       tel objet scientifique pour d (...)},
> >   abstract = {La géographie dans sa dimension politique a été longtemps assimilée
> >       à une science stratégique, utile à la conquête d'un territoire,à
> >       sa maîtrise ou à sa gestion… La géographie politique s'intéresse
> >       ainsi classiquement aux conflits territoriaux ou pour le moins aux
> >       rapports de force exprimés dans un contexte spatial. Il existe assurément
> >       suffisamment de conflits, de violences ou de rapports de force à
> >       arbitrer dans le monde pour justifier pleinement de l'utilité d'un
> >       tel objet scientifique pour d [...]},
> >   copyright = {Tous droits réservés},
> >   editor = {Bussi, Michel},
> >   hyphenation = {fr},
> >   issn = {1958-5500},
> >   shorttitle = {Repenser les territoires ensemble},
> >   url = {http://espacepolitique.revues.org/index648.html},
> >   urldate = {2011-11-16}
> > }
> > \end{filecontents}
> >
> > \addbibresource{\jobname.bib}
> >
> > \begin{document}
> >
> >  Some text.
> >
> >  Some text, with a citation \citep{agnew_iv._1987}. Et une autre citation \citep{bussi_repenser_2007}.
> >
> >  And now a bibliography.
> >
> >  \printbibliography
> > \end{document}
> >
> >
> > And now here is the MWE code for pdflatex:
> >
> >
> > \documentclass{article}
> > \usepackage[T1]{fontenc}
> > \usepackage[utf8]{inputenc}
> > \usepackage[british,french]{babel}
> > \usepackage[citestyle=authoryear-comp, bibstyle=authoryear, natbib=true, babel=hyphen, language=auto]{biblatex}
> > \usepackage{csquotes}
> >
> > \usepackage{filecontents}
> > \begin{filecontents}{\jobname.bib}
> > @ARTICLE{agnew_iv._1987,
> >   author = {Agnew, John},
> >   title = {{IV.} Place anyone? A comment on the {McAllister} and Johnston papers},
> >   journal = {Political Geography Quarterly},
> >   year = {1987},
> >   volume = {6},
> >   pages = {39--40},
> >   number = {1},
> >   month = jan,
> >   doi = {10.1016/0260-9827(87)90030-9},
> >   file = {Agnew - 1987 - IV. Place anyone A comment on the McAllister and.pdf:/home/joel/.zotero/zotero/lkxpsie2.default/zotero/storage/WWPCJ577/Agnew - 1987 - IV. Place anyone A comment on the McAllister and.pdf:application/pdf;ScienceDirect Snapshot:/home/joel/.zotero/zotero/lkxpsie2.default/zotero/storage/VB7RPMZE/login.html:text/html},
> >   hyphenation = {english},
> >   issn = {0260-9827},
> >   shorttitle = {{IV.} Place anyone?},
> >   url = {http://www.sciencedirect.com/science/article/pii/0260982787900309},
> >   urldate = {2012-08-02}
> > }
> > @ARTICLE{bussi_repenser_2007,
> >   author = {Bussi, Michel},
> >   title = {Repenser les territoires ensemble : une inflexion paradigmatique
> >       pour la géographie politique ?},
> >   journal = {{L'Espace} Politique},
> >   year = {2007},
> >   number = {3},
> >   month = sep,
> >   note = {La géographie dans sa dimension politique a été longtemps assimilée
> >       à une science stratégique, utile à la conquête d'un territoire,à
> >       sa maîtrise ou à sa gestion… La géographie politique s'intéresse
> >       ainsi classiquement aux conflits territoriaux ou pour le moins aux
> >       rapports de force exprimés dans un contexte spatial. Il existe assurément
> >       suffisamment de conflits, de violences ou de rapports de force à
> >       arbitrer dans le monde pour justifier pleinement de l'utilité d'un
> >       tel objet scientifique pour d (...)},
> >   abstract = {La géographie dans sa dimension politique a été longtemps assimilée
> >       à une science stratégique, utile à la conquête d'un territoire,à
> >       sa maîtrise ou à sa gestion… La géographie politique s'intéresse
> >       ainsi classiquement aux conflits territoriaux ou pour le moins aux
> >       rapports de force exprimés dans un contexte spatial. Il existe assurément
> >       suffisamment de conflits, de violences ou de rapports de force à
> >       arbitrer dans le monde pour justifier pleinement de l'utilité d'un
> >       tel objet scientifique pour d [...]},
> >   copyright = {Tous droits réservés},
> >   editor = {Bussi, Michel},
> >   hyphenation = {fr},
> >   issn = {1958-5500},
> >   shorttitle = {Repenser les territoires ensemble},
> >   url = {http://espacepolitique.revues.org/index648.html},
> >   urldate = {2011-11-16}
> > }
> > \end{filecontents}
> >
> > \addbibresource{\jobname.bib}
> >
> > \begin{document}
> >
> >  Some text.
> >
> >  Some text, with a citation \citep{agnew_iv._1987}. Et une autre citation \citep{bussi_repenser_2007}.
> >
> >  And now a bibliography.
> >
> >  \printbibliography
> > \end{document}
> >
> >
> > You can see the difference in the first reference title (using polyglossia instead of babel doesn't change anything). I believe the expected behaviour is the one that pdflatex gives. Any idea how to fix this?
> >
> > Thanks,
> >
> > Joel
> >
> > --
> > Joël Gombin
> >
> 
> Howdy,
> 
> I see no difference at all between the xelatex and pdflatex documents! This is with TeX Live 2013 with all updates as of today. Placing a \listfiles at the top of the xelatex source I get
> 
>  *File List*
>  article.cls    2007/10/19 v1.4h Standard LaTeX document class
>   size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
> fontspec.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
>    expl3.sty    2013/07/28 v4582 L3 Experimental code bundle wrapper
>  l3names.sty    2012/12/07 v4346 L3 Namespace for primitives
> l3bootstrap.sty    2013/07/28 v4581 L3 Experimental bootstrap code
>     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
> l3basics.sty    2013/07/28 v4581 L3 Basic definitions
>  l3expan.sty    2013/07/24 v4565 L3 Argument expansion
>     l3tl.sty    2013/07/28 v4581 L3 Token lists
>    l3seq.sty    2013/07/28 v4581 L3 Sequences and stacks
>    l3int.sty    2013/07/28 v4581 L3 Integers
>  l3quark.sty    2013/07/21 v4564 L3 Quarks
>    l3prg.sty    2013/07/28 v4581 L3 Control structures
>  l3clist.sty    2013/07/28 v4581 L3 Comma separated lists
>  l3token.sty    2013/07/28 v4581 L3 Experimental token manipulation
>   l3prop.sty    2013/07/28 v4581 L3 Property lists
>    l3msg.sty    2013/07/28 v4581 L3 Messages
>   l3file.sty    2013/07/28 v4581 L3 File and I/O operations
>   l3skip.sty    2013/07/28 v4581 L3 Dimensions and skips
>   l3keys.sty    2013/07/28 v4581 L3 Experimental key-value interfaces
>     l3fp.sty    2013/07/09 v4521 L3 Floating points
>    l3box.sty    2013/07/28 v4581 L3 Experimental boxes
> l3coffins.sty    2012/09/09 v4212 L3 Coffin code layer
>  l3color.sty    2012/08/29 v4156 L3 Experimental color support
> l3luatex.sty    2013/07/28 v4581 L3 Experimental LuaTeX-specific functions
> l3candidates.sty    2013/07/24 v4576 L3 Experimental additions to l3kernel
>    ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
>   xparse.sty    2013/07/28 v4582 L3 Experimental document command parser
> fontspec-patches.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTe
> X
> fixltx2e.sty    2008/08/10 v1.1mf fixes to LaTeX
> fontspec-xetex.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
>  fontenc.sty
>   eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings
>   eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
> xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth
> er characters in Unicode lower plane
>  eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern
> graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
>   keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
> graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
>     trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
> graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
>    xetex.def    2013/04/29 v0.96 LaTeX color/graphics driver for XeTeX (RRM/JK)
> 
> fontspec.cfg
>  xltxtra.sty    2010/09/20 v0.5e Improvements for the "XeLaTeX" format
> ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
>  ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
> realscripts.sty    2013/03/18 v0.3c Access OpenType subscripts and superscripts
> 
> metalogo.sty    2010/05/29 v0.12 Extended TeX logo macros
>    babel.sty    2013/05/16 v3.9f The Babel package
>  english.ldf    2012/08/20 v3.3p English support from the babel system
>  frenchb.ldf    2013/07/06 v2.6e French support from the babel system
> scalefnt.sty
> biblatex.sty    2013/07/15 v2.7a programmable bibliographies (PK/JW/AB)
> biblatex2.sty    2013/07/15 v2.7a programmable bibliographies (biber) (PK/JW/AB
> )
> etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX
> kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
>  ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
> kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
> infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
> etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
>   logreq.sty    2010/08/04 v1.0 xml request logger
>   logreq.def    2010/08/04 v1.0 logreq spec v1.0
>   ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
>      url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
>   blx-dm.def
> authoryear-comp.dbx
> authoryear.dbx
> biblatex-dm.cfg
> blx-compat.def    2013/07/15 v2.7a biblatex compatibility (PK/JW/AB)
> biblatex.def
> blx-natbib.def    2013/07/15 v2.7a biblatex compatibility (PK/JW/AB)
> standard.bbx    2013/07/15 v2.7a biblatex bibliography style (PK/JW/AB)
> authoryear.bbx    2013/07/15 v2.7a biblatex bibliography style (PK/JW/AB)
> authoryear-comp.cbx    2013/07/15 v2.7a biblatex citation style (PK/JW/AB)
> biblatex.cfg
> csquotes.sty    2011/10/22 v5.1d context-sensitive quotations
> csquotes.def    2011/10/22 v5.1d csquotes generic definitions
> csquotes.cfg
> filecontents.sty    2011/10/08 v1.3 Create an external file from within a LaTeX
>  document
>   french.lbx    2013/07/15 v2.7a biblatex localization (PK/JW/AB)
>    t3cmr.fd    2001/12/31 TIPA font definitions
>    Xtest.bbl
>  eu1lmtt.fd    2009/10/30 v1.6 Font defs for Latin Modern
>  ***********
> 
> for the version list.
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest dot com)

Howdy,

Never thought of looking that closely. I assumed the difference would be obvious from the original post.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the XeTeX mailing list