Re: [XeTeX] Combined sub- and superscript - solved

2010-08-07 Thread Michael Lynch
On 07/08/2010 23:32, Ross Moore wrote: Hi Peter, Sebastien, On 08/08/2010, at 7:33 AM, Peter Dyballa wrote: Am 07.08.2010 um 22:44 schrieb Sebastian Gerecke: BUT: This just has to be an utter hack and I can not believe it is the way it is supposed to be done. This hack is necessary becau

Re: [XeTeX] Combined sub- and superscript - solved

2010-08-07 Thread Ross Moore
Hi Peter, Sebastien, On 08/08/2010, at 7:33 AM, Peter Dyballa wrote: > > Am 07.08.2010 um 22:44 schrieb Sebastian Gerecke: > >> BUT: This just has to be an utter hack and I can not believe it is the way it >> is supposed to be done. > > This hack is necessary because mhchem is not aware of f

Re: [XeTeX] Combined sub- and superscript - solved

2010-08-07 Thread Peter Dyballa
Am 07.08.2010 um 22:44 schrieb Sebastian Gerecke: BUT: This just has to be an utter hack and I can not believe it is the way it is supposed to be done. This hack is necessary because mhchem is not aware of font features, it's a simple LaTeX package that maltreats simple TeX fonts in the

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Peter Dyballa
Am 07.08.2010 um 12:27 schrieb Sebastian Gerecke: the colored ^{14}_{6}C example in the middle I think with simply using the Linux Libertine O font you won't reproduce this, because mhchem is using \ensuremath, its documentation also mentions math mode. So just smaller sized glyphs from

Re: [XeTeX] Combined sub- and superscript - solved

2010-08-07 Thread Sebastian Gerecke
For anyone who is interested and might have the same problem The solution looks like this: \begin{document} \font\up="Linux Libertine O:+sups,script=latn,language=DEU" \font\down="Linux Libertine O:+sinf,script=latn,language=DEU" \ce{^{\down 14}_{\up 6}C} \end{document} That produces the desire

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Michiel Kamermans
Since this has to do with the box alignment of sub/super script, I'm fairly certain this has nothing to do with fontspec at all. Instead, let's just write our own macro for isotopes: \documentclass{minimal} \usepackage{fontspec} \setmainfont{Linux Libertine O} % align by adding phantom text an

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Peter Dyballa
Am 07.08.2010 um 20:55 schrieb Khaled Hosny: And when you additionally use \defaultfontfeatures{Mapping=tex-text} instead? Sorry, but I fail to see how "Mapping=tex-text" would make any difference here. Does it help you when I cite the original line? \defaultfontfeatures{

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Sebastian Gerecke
Am Samstag 07 August 2010, 20:35:54 schrieb Peter Dyballa: > And when you additionally use > > \defaultfontfeatures{Mapping=tex-text} > > instead? Hi Peter, that does not make a difference, either. I do use that setting, but since it only does what Khaled explained I stripped it out of

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Khaled Hosny
On Sat, Aug 07, 2010 at 08:35:54PM +0200, Peter Dyballa wrote: > > Am 07.08.2010 um 13:49 schrieb Sebastian Gerecke: > > >No, that does not help. > > > And when you additionally use > > \defaultfontfeatures{Mapping=tex-text} > > instead? Sorry, but I fail to see how "Mapping=tex-text"

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Peter Dyballa
Am 07.08.2010 um 13:49 schrieb Sebastian Gerecke: No, that does not help. And when you additionally use \defaultfontfeatures{Mapping=tex-text} instead? -- Mit friedvollen Grüßen Pete Vielfalt im Regal statt Einfalt im Hirn! -

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Sebastian Gerecke
Am Samstag 07 August 2010, 13:22:49 schrieb Peter Dyballa: > Does this work better: > > \usepackage{fontspec,xltxtra} No, that does not help. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex

Re: [XeTeX] Combined sub- and superscript

2010-08-07 Thread Peter Dyballa
Am 07.08.2010 um 12:27 schrieb Sebastian Gerecke: \usepackage{fontspec} Does this work better: \usepackage{fontspec,xltxtra} -- Mit friedvollen Grüßen Pete Wer nichts zu verbergen hat, hat schon alles verloren. (Juli Zeh)

[XeTeX] Combined sub- and superscript

2010-08-07 Thread Sebastian Gerecke
Dear all, for a document I am preparing I want something like this: http://www.linuxlibertine.org/index.php?id=87&L=1 (the colored ^{14}_{6}C example in the middle}. Unfortunately I don't get it to work using Linux Libertine and TL2010PT xelatex. Though the Libertine documentation is fairly com