Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyphen behaviour not consistent with pdflatex and xelatex #162

Closed
joelgombin opened this issue Sep 22, 2013 · 1 comment
Closed

Hyphen behaviour not consistent with pdflatex and xelatex #162

joelgombin opened this issue Sep 22, 2013 · 1 comment
Labels

Comments

@joelgombin
Copy link

Hello,

I have an issue that might eb related with issue #129 (I couldn't say).

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?

@aboruvka
Copy link
Collaborator

This isn't a biblatex issue. You're using two different engines that handle fonts in very different ways. Non-identical output should be expected.

bk pushed a commit to bk/biblatex that referenced this issue Oct 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants