[XeTeX] footnotes with opentype superscript, and bibtex with xetex (quotes and hyphens)
lists+tex+xetex at bueno.imap.cc
lists+tex+xetex at bueno.imap.cc
Sun Feb 4 18:15:58 CET 2007
Hi Will,
Thanks for the quick reply!
On 04/02/2007, at 15:54 , lists+tex+xetex at bueno.imap.cc wrote:
>> I've included xltultra, which I thought was supposed to fix this, and
>> it does for \textsuperscript, but not for footnotes.
>>
>
> Hmmm, me too. How embarrassing. How didn't I notice this?
> I'll get back to you with a fix...at some stage.
> Thanks for pointing it out.
I realize this morning (of course) that my lack of sleep last night
was impairing my judgement of little tiny numbers. xltxtra does use
OT superscripts. I think I must have had some line of code in the
wrong place or something, but now I can't reproduce it.
What xltxtra does do is to use the default font, which in my case
meant it would use old-style numbers. So I did this:
\makeatletter
\def\@makefnmark{{\fontspec{Minion Pro:+sups,-onum}{\@thefnmark}}}
\makeatother
I'm not sure why, but I like the little codes ;-)
Then I used the command \addfontfeatures and found that
\addfontfeatures{+sups,-onum} doesn't work. So I tried
\makeatletter
\def\@makefnmark{{\addfontfeatures
{Numbers=Lining,VerticalPosition=Superior}{\@thefnmark}}}
\makeatother
But that produced superscripts strangely with too much space in front:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nospace.png
Type: image/png
Size: 2395 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070204/164c4d9f/attachment.png
-------------- next part --------------
But using the \fontspec one above works correctly:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: space.png
Type: image/png
Size: 2386 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070204/164c4d9f/attachment-0001.png
-------------- next part --------------
>> Second, I'm having minor issues with bibtex and xetex. Using unicode
>> input, TeX doesn't replace certain text codes for their correct
>> characters (` to ?, -- to en-dash, etc.). This is not a problem in
>> the main file, but bibtex doesn't seem know about this. So for this
>> reference
>>
>
> Add the font feature [Mapping=tex-text]. I need to add a bigger note
> about this in the fontspec documentation.
I had [Mapping=tex-text], but after the font definitions. Though,
surely enough, it's listed on the xetex faqs site: ... in order to
automatically apply this mapping to the subsequent fonts you load.
Makes perfect sense; just missed it.
And while I'm on the subject of footnotes, I've got another question,
though maybe not specific to xetex. thefnmark seems to apply to both
the footnote number in the text and in front of the note. How might I
make only the numbers in front of the notes non-superscript (and add
a tad more spacing in between)?
Best,
Alex
More information about the XeTeX
mailing list