[XeTeX] Replacing `` and '' with the unicode equivalences in
BibTeX?
Steffen Prohaska
prohaska at zib.de
Wed Jul 14 20:41:10 CEST 2004
-----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-----
More information about the XeTeX
mailing list