[XeTeX] Replacing `` and '' with the unicode equivalences in
BibTeX?
Atip Asvanund
atip at andrew.cmu.edu
Wed Jul 14 21:15:10 CEST 2004
Dear Steffen,
For reasons beyond my understand, your macro did work beautifully for me.
I am hoping that it won't break for anything else I will do in the future.
I have an off-topic question for you. Why do you choose Hoefler Text for
your paper writing font?
Thank you,
Atip
On Wed, 14 Jul 2004, Steffen Prohaska wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> On Jul 14, 2004, at 7:09 PM, Atip Asvanund wrote:
>
> >
> > I try to use XeLaTeX with BibTeX. In certain BibTeX styles (e.g.,
> > Harvard
> > Style) bibliography is printed out with quotaions around document
> > titles.
> >
> > However, with XeLaTeX they are printed out as `` and '', rather than
> > the
> > unicode equivalences. Is there a way I can redefine the global
> > property so
> > that the unicode equivalences will show up properly?
> >
>
> I posted a weird macro which would do the job, recently, see
> http://tug.org/pipermail/xetex/2004-July/000564.html
>
> But as I didn't achieve to get such a macro working for '--' I was kind
> of stuck. I'm now trying to completely avoid the TeX specific encodings
> and replace them by macros. The macros can then be either defined to
> expand to old-TeX style or to utf-8, e.g:
>
> old TeX:
> \newcommand{\Quote}[1]{``#1''}
> \def\Dash/{--}
>
> utf-8:
> \newcommand{\Quote}[1]{“#1”}
> \def\Dash/{–}
>
> Together with the macros I posted some minutes ago (to another thread
> to keep things sorted), I'm near to ``works for me'' :) Here they are
> again:
>
> utf-8:
> \renewcommand{\"}[1]{\if#1a{ä}\else\if#1A{Ä}\else\if#1u{ü}\else\if#1U{Ü}
> \else\if#1o{ö}\else\if#1O{Ö}\else ERROR: unexpected character
> >#1<\fi\fi\fi\fi\fi\fi}
> \renewcommand{\c}[1]{\if#1c{ç}\else\if#1C{Ç}\else ERROR: unexpected
> character >#1<\fi\fi}
>
> Steffen
>
> - --
> PGP Public Key: http://www.zib.de/prohaska/prohaska.pgp
> Key id: 0xDA749299
> Key fingerprint: 8B59 83A8 A43D E0E2 DEDB D479 3157 2FEA DA74 9299
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (Darwin)
>
> iD8DBQFA9X5HMVcv6tp0kpkRArxyAJ0b294NaKa7CBlZdo5s7c2XyXuhLQCeI077
> AGigsqx08BInV7uvyK6XTeQ=
> =ZHhZ
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
>
More information about the XeTeX
mailing list