[XeTeX] Super/subscript
Gildas Hamel
gweltaz at ucsc.edu
Mon May 28 06:54:08 CEST 2007
Hi Thomas,
I can suggest the following example, but others I hope will simplify it:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\TeXXeTstate=1
\documentclass{article}
\usepackage{fontspec}
\setromanfont[Mapping=tex-text,
SmallCapsFont={{AGaramondPro-Regular}/S=0:+smcp},
VerticalPosition=Ordinal,
Numbers=OldStyle]
{Times}
\newcommand{\superscript}[1]{\ensuremath{^\textrm{#1}}}
\newcommand{\subscript}[1]{\ensuremath{_\textrm{#1}}}
\begin{document}
\section*{example}
{\scshape a.šà}\superscript{\scriptsize (meš/ḥi.a)}\\
\superscript{\scriptsize (é)}{\scshape an.za.gàr}\\
{\scshape min}~\superscript{\scriptsize
lú}~\emph{ka\subscript{\scriptsize 4}-bi-s[sú]}\\
{\scshape min}~\superscript{\scriptsize lú}~\\
Et cetera....
\end{document}
See the pdf attachment for result.
I have typed "min" rather than "MIN". You may want to try the second, as
well as change Scale.
Hope this helps,
--Gildas Hamel
Thomas Thackery wrote:
> I would be very grateful for a couple of examples. I need to super &
> subscripts when transcribing Akkadian. Attached is an example of what
> I'm trying to achieve (I used a word processor for the example). I'm
> researching how to use smallcaps instead of the capital letters, but you
> can see what I'm after.
>
>
> ------------------------------------------------------------------------
>
>
>
> Thomas
>
>
> On May 27, 2007, at 3:22 AM, Peter Baker wrote:
>
> Jonathan Kew wrote:
>
>> On 27 May 2007, at 8:29 am, Thomas Thackery wrote:
>>
>>
>>> I can not get fontspec to produce super- or subscripts (i.e. Superior
>>> and Inferior respectively in fontspec). What is missing from this
>>> command: {\fontspec[VerticalPosition=Superior]{Junicode}{ some text
>>> here }
>>>
>>>
>>
>> This is only expected to work if the font defines the "superiors"
>> feature for the particular characters in your text. I haven't looked
>> at Junicode lately, but some OpenType fonts define this only for a
>> small subset of the character set (e.g., only for the digits).
>>
>> JK
>>
>
> That's it: Junicode defines super- and subscripts only for digits and
> the few other characters in the Unicode Super- and Subscripts range, and
> those only in the Regular style, and in recent releases of the font. If
> you want more, you're better off scaling and then raising or lowering
> existing glyphs.
>
> Peter Baker
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
--
Gildas Hamel
Chair of Language Program
Cowell College
UCSC
Santa Cruz, CA 95064
831 459 2669 (office)
831 423 1849 (home)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: caps.pdf
Type: application/pdf
Size: 50262 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070527/6d275953/attachment-0001.pdf
More information about the XeTeX
mailing list