diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-19 22:32:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-19 22:32:22 +0000 |
commit | 3127e51522e361c647124aed8a4883caff20a9ed (patch) | |
tree | c9ebda6005ffb3c8dc5b64e88804afed91bf11c8 | |
parent | ec055a5e4d5d2e54cbce278de7bc9d9640edafcd (diff) |
xltxtra update (19sep10)
git-svn-id: svn://tug.org/texlive/trunk@19809 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/xltxtra/README (renamed from Master/texmf-dist/doc/xelatex/xltxtra/README) | 25 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/xltxtra/xltxtra.pdf (renamed from Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf) | bin | 147267 -> 136593 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/xltxtra/xltxtra.dtx (renamed from Master/texmf-dist/source/xelatex/xltxtra/xltxtra.dtx) | 231 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/xltxtra/xltxtra.ins (renamed from Master/texmf-dist/source/xelatex/xltxtra/xltxtra.ins) | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/xltxtra/xltxtra.sty (renamed from Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty) | 74 |
5 files changed, 35 insertions, 297 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xltxtra/README b/Master/texmf-dist/doc/latex/xltxtra/README index 75b64b3187c..95c4f5509d0 100644 --- a/Master/texmf-dist/doc/xelatex/xltxtra/README +++ b/Master/texmf-dist/doc/latex/xltxtra/README @@ -1,5 +1,5 @@ _________________________ -THE XLTXTRA PACKAGE v0.5d +THE XLTXTRA PACKAGE v0.5e This package was previous used to provide a number of small features that are useful for XeLaTeX. As of fontspec v2, many @@ -8,15 +8,17 @@ of these have now been incorporated into that package. This package therefore no longer does as much as it used to, but is still provided for backwards compatibility. -- Loads fontspec and Ross Moore's xunicode automatically. +- Loads fontspec automatically. fontspec now loads + Ross Moore's xunicode internally. -- Loads Andrew Moschou's metalogo package for \XeTeX and \XeLaTeX logos. +- Loads Andrew Moschou's metalogo package for \XeTeX + and \XeLaTeX logos. -- Loads the fixltx2e package and patches other LaTeX commands: - \textsuperscript & \textsubscript: - now use fontspec to access - real superior/inferior characters, - \showhyphens: now works, +- Loads the realscripts package to obtain "real" subscript + and superscript glyphs in \textsuperscript etc., + including in footnotes. + +- \showhyphens is redefined so it now works to some degree. - Defines the dubiously useful commands \vfrac - for vulgar fractions with fontspec @@ -24,9 +26,14 @@ but is still provided for backwards compatibility. For more information see the documentation xltxtra.pdf. -____________ +______________ Change History +v0.5e: + Remove the code for subscripts/superscripts and load the + realscripts package instead. + (No user-level changes.) + v0.5d: Remove those parts that have been taken into fontspec v2.0. (No user-level changes.) diff --git a/Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf b/Master/texmf-dist/doc/latex/xltxtra/xltxtra.pdf Binary files differindex 0b6ac7d4ad7..8cdce99c5d6 100644 --- a/Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf +++ b/Master/texmf-dist/doc/latex/xltxtra/xltxtra.pdf diff --git a/Master/texmf-dist/source/xelatex/xltxtra/xltxtra.dtx b/Master/texmf-dist/source/latex/xltxtra/xltxtra.dtx index 2c7d3bae268..9572098597f 100644 --- a/Master/texmf-dist/source/xelatex/xltxtra/xltxtra.dtx +++ b/Master/texmf-dist/source/latex/xltxtra/xltxtra.dtx @@ -1,59 +1,5 @@ % \iffalse %<*internal> -\iffalse -%</internal> -%<*readme> -_________________________ -THE XLTXTRA PACKAGE v0.5d - -This package was previous used to provide a number of small -features that are useful for XeLaTeX. As of fontspec v2, many -of these have now been incorporated into that package. - -This package therefore no longer does as much as it used to, -but is still provided for backwards compatibility. - -- Loads fontspec and Ross Moore's xunicode automatically. - -- Loads Andrew Moschou's metalogo package for \XeTeX and \XeLaTeX logos. - -- Loads the fixltx2e package and patches other LaTeX commands: - \textsuperscript & \textsubscript: - now use fontspec to access - real superior/inferior characters, - \showhyphens: now works, - -- Defines the dubiously useful commands - \vfrac - for vulgar fractions with fontspec - \namedglyph - to access font glyphs by name - -For more information see the documentation xltxtra.pdf. - -____________ -Change History - -v0.5d: - Remove those parts that have been taken into fontspec v2.0. - (No user-level changes.) - -v0.5c: - Update internals for fontspec v2.0. - (No user-level changes.) - -v0.5b: - Bug fix for "\LaTeX" when [no-logos] is used. - Thanks to Enrico Gregorio for finding this. - -______________ -Will Robertson -2006-2010 -Released under the LaTeX Project Public License -%</readme> -%<*internal> -\fi -%</internal> -% -%<*internal> \begingroup %</internal> %<*batchfile> @@ -84,17 +30,16 @@ This work consists of the file xltxtra.dtx \endpostamble \askforoverwritefalse -\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} +\generate{\file{xltxtra.sty}{\from{xltxtra.dtx}{package}}} %</batchfile> %<batchfile>\endbatchfile %<*internal> -\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}} +\generate{\file{xltxtra.ins}{\from{xltxtra.dtx}{batchfile}}} \nopreamble\nopostamble -\generate{\file{README.txt}{\from{\jobname.dtx}{readme}}} -\generate{\file{dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}} +\generate{\file{dtx-style.sty}{\from{xltxtra.dtx}{dtx-style}}} +\def\tmpa{plain} +\ifx\tmpa\fmtname\endgroup\expandafter\bye\fi \endgroup -\immediate\write18{makeindex -s gind.ist -o \jobname.ind \jobname.idx} -\immediate\write18{makeindex -s gglo.ist -o \jobname.gls \jobname.glo} %</internal> % %<*driver> @@ -105,7 +50,7 @@ This work consists of the file xltxtra.dtx %\OnlyDescription \usepackage{dtx-style} \begin{document} - \DocInput{\jobname.dtx} + \DocInput{xltxtra.dtx} \end{document} %</driver> % @@ -114,9 +59,9 @@ This work consists of the file xltxtra.dtx % \errorcontextlines=999 % \makeatletter % -% \GetFileInfo{\jobname.sty} +% \GetFileInfo{xltxtra.sty} % -% \title{The \pkg{\jobname} package} +% \title{The \pkg{xltxtra} package} % \author{Will Robertson} % \date{\filedate \qquad \fileversion} % @@ -180,6 +125,9 @@ This work consists of the file xltxtra.dtx % \cmd\fakesuperscript\ % may be used to access the `new' and `old' functionalities regardless of the \pkgopt{no-sscript}. % +% This functionality is achieved through loading the \pkg{realscripts} +% package. +% % % % \subsection{Logos} @@ -252,14 +200,9 @@ This work consists of the file xltxtra.dtx % % \begin{macrocode} \ProvidesPackage{xltxtra} - [2010/06/03 v0.5d Improvements for the "XeLaTeX" format] + [2010/09/20 v0.5e Improvements for the "XeLaTeX" format] % \end{macrocode} % -% \changes{v0.3}{2007/05/29}{Added proper documentation.} -% \changes{v0.3}{2007/05/29}{Added \texttt{no-} package options to restrict functionality.} -% \changes{v0.4}{2008/07/29}{Added support for verbatim \& visible spaces.} -% ^^A\PrintChanges -% % \paragraph{Not for Lua\TeX} % \begin{macrocode} \RequirePackage{ifluatex} @@ -279,7 +222,7 @@ This work consists of the file xltxtra.dtx \RequirePackage{ifxetex} \RequireXeTeX \RequirePackage{fontspec}[2010/05/14 v2.0] -\RequirePackage{xunicode} +\RequirePackage{realscripts} % \end{macrocode} % % \paragraph{Option processing} @@ -349,38 +292,11 @@ This work consists of the file xltxtra.dtx \setlogokern{aT}{#5}% \setlogokern{eL}{#6}} % \end{macrocode} -% \changes{v0.1}{2006/05/03}{Implemented.} -% \changes{v0.2}{2006/06/11}{Added \cmd\XeLaTeX\ logo. Thanks Herb!} -% \changes{v0.2}{2006/06/11}{Added TFM font check.} -% \changes{v0.2}{2006/08/12}{\cmd\TeX@logo@spacing made ``private'' and added an arg for \cmd\XeLaTeX.} -% \changes{v0.3a}{2007/06/20}{Changed \cmd\setlength\ to \cmd\def. Silly me.} -% \changes{v0.5}{2009/09/02}{Deprecated \cmd\TeX@logo@spacing, replaced with \textsf{metalogo} package (AGM).} -% \changes{v0.5a}{2009/10/25}{Removed metalogo customisations; reply on the package defaults instead.} % \end{macro} % % % \section{Subscript and superscript} % -% For OpenType fonts, the subscript feature (|subs|) is used, but if that doesn't -% exist then the scientific inferior feature (|sinf|) is used on the assumption -% that something's better than nothing. This matches current trends in OpenType font design. -% -% Footnotes are patched to use this better \cmd\textsuperscript. -% -% \begin{macro}{\fakesubscript} -% \begin{macro}{\fakesuperscript} -% The old (`fake') methods: -% \begin{macrocode} -\DeclareRobustCommand*\fakesubscript[1]{% - \@textsubscript{\selectfont#1}} -\DeclareRobustCommand*\fakesuperscript[1]{% - \@textsuperscript{\selectfont#1}} -% \end{macrocode} -% \changes{v0.1}{2006/05/03}{Implemented.} -% \changes{v0.3}{2007/05/29}{Name change from \cmd\fakesubscript. Made robust.} -% \end{macro} -% \end{macro} -% % \begin{macro}{\textsubscript} % \begin{macro}{\textsubscript*} % \begin{macro}{\textsuperscript} @@ -393,123 +309,11 @@ This work consists of the file xltxtra.dtx \@ifstar{\realsubscript}{\fakesubscript}} \DeclareRobustCommand*\textsuperscript{% \@ifstar{\realsuperscript}{\fakesuperscript}} -\else - \DeclareRobustCommand*\textsubscript{% - \@ifstar{\fakesubscript}{\realsubscript}} - \DeclareRobustCommand*\textsuperscript{% - \@ifstar{\fakesuperscript}{\realsuperscript}} \fi % \end{macrocode} -% \changes{v0.1}{2006/05/03}{Implemented.} -% \end{macro}\end{macro}\end{macro} -% \changes{v0.3}{2007/05/29}{Adjusted, made robust (with friends `super' and starred).} % \end{macro} -% -% \begin{macro}{\realsubscript} -% \begin{macrocode} -\ExplSyntaxOn -\DeclareRobustCommand*\realsubscript[1]{ - \fontspec_if_fontspec_font:TF - { -% \end{macrocode} -% OpenType fonts: -% \begin{macrocode} - \fontspec_if_opentype:TF - { - \fontspec_if_feature:nTF {+subs} - { - {\addfontfeature{VerticalPosition=Inferior}#1} - } - { - \fontspec_if_feature:nTF {+sinf} - { - {\addfontfeature{VerticalPosition=ScientificInferior}#1} - } - { - \fakesubscript{#1} - } - } - } -% \end{macrocode} -% ATSUI fonts: -% \begin{macrocode} - { - \fontspec_if_aat_feature:nnTF {10} {2} - { - {\addfontfeature{VerticalPosition=Inferior}#1} - } - { - \fakesubscript{#1} - } - } - } -% \end{macrocode} -% Non-fontspec fonts: -% \begin{macrocode} - { - \fakesubscript{#1} - } -} -% \end{macrocode} -% \changes{v0.1}{2006/05/03}{Implemented.} -% \changes{v0.3}{2007/05/29}{Fixes to catch up with fontspec. Name change.} -% \changes{v0.3c}{2008/03/02}{Fixed crash when used with a TFM font.} -% \changes{v0.5c}{2010/05/14}{Use fontspec programmer's interface.} % \end{macro} -% -% \begin{macro}{\realsuperscript} -% Text superscripts: -% \begin{macrocode} -\DeclareRobustCommand*\realsuperscript[1]{ - \fontspec_if_fontspec_font:TF - { -% \end{macrocode} -% OpenType fonts: -% \begin{macrocode} - \fontspec_if_opentype:TF - { - \fontspec_if_feature:nTF {+sups} - { - {\addfontfeature{VerticalPosition=Superior}#1} - } - { - \fakesuperscript{#1} - } - } -% \end{macrocode} -% ATSUI fonts: -% \begin{macrocode} - { - \fontspec_if_aat_feature:nnTF {10} {1} - { - {\addfontfeature{VerticalPosition=Superior}#1} - } - { - \fakesuperscript{#1} - } - } - } -% \end{macrocode} -% Non-fontspec fonts: -% \begin{macrocode} - { - \fakesuperscript{#1} - } -} -% \end{macrocode} -% \changes{v0.1}{2006/05/03}{Implemented.} -% \changes{v0.3}{2007/05/29}{Fixes to catch up with fontspec. Name change.} -% \changes{v0.3c}{2008/03/02}{Fixed crash when used with a TFM font.} -% \changes{v0.5c}{2010/05/14}{Use fontspec programmer's interface.} % \end{macro} -% -% Patching footnotes: -% \begin{macro}{\@makefnmark} -% \begin{macrocode} -\def\@makefnmark{\mbox{\normalfont\textsuperscript{\@thefnmark}}} -% \end{macrocode} -% \changes{v0.2}{2007/02/04}{Footnotes patched to use new \cmd\textsuperscript.} -% \changes{v0.3}{2007/05/29}{Footnote symbol put in an mbox.} % \end{macro} % % \section{Assorted commands} @@ -520,6 +324,7 @@ This work consists of the file xltxtra.dtx % No error checking is done to ensure that the font actually has the neceessary features. % Requires the \pkg{xunicode} package for \cmd\textfractionsolidus. % \begin{macrocode} +\ExplSyntaxOn \newcommand*\vfrac[2]{ \fontspec_if_fontspec_font:TF { @@ -543,8 +348,6 @@ This work consists of the file xltxtra.dtx } \ExplSyntaxOff % \end{macrocode} -% \changes{v0.1}{2006/05/03}{Implemented.} -% \changes{v0.5c}{2010/05/14}{Use fontspec programmer's interface.} % \end{macro} % % \begin{macro}{\namedglyph} @@ -558,14 +361,13 @@ This work consists of the file xltxtra.dtx \xxt@namedglyph@fallback{#1}% \fi} % \end{macrocode} -% \changes{v0.2}{2006/08/12}{Implemented.} % \end{macro} +% % \begin{macro}{\xxt@namedglyph@fallback} % Redefine this macro to change how glyph names that aren't found get typeset. % \begin{macrocode} \newcommand\xxt@namedglyph@fallback[1]{[#1]} % \end{macrocode} -% \changes{v0.2}{2006/08/12}{Implemented.} % \end{macro} % % @@ -599,7 +401,6 @@ This work consists of the file xltxtra.dtx \expandafter\xxt@sh@cat \fi} % \end{macrocode} -% \changes{v0.3}{2007/05/30}{Implemented.} % \end{macro} % % @@ -672,7 +473,7 @@ This work consists of the file xltxtra.dtx \setlength\exverbgap{0em} \setlength\exoutdent{-0\textwidth} \newsavebox\verbatimbox -\edef\examplefilename{\jobname.example} +\edef\examplefilename{xltxtra.example} \newcommand\typesetexample{\relax \begin{lrbox}{\verbatimbox}\relax diff --git a/Master/texmf-dist/source/xelatex/xltxtra/xltxtra.ins b/Master/texmf-dist/source/latex/xltxtra/xltxtra.ins index 8b46ff7fcbd..4b0ce56590c 100644 --- a/Master/texmf-dist/source/xelatex/xltxtra/xltxtra.ins +++ b/Master/texmf-dist/source/latex/xltxtra/xltxtra.ins @@ -37,7 +37,7 @@ This work consists of the file xltxtra.dtx \endpostamble \askforoverwritefalse -\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} +\generate{\file{xltxtra.sty}{\from{xltxtra.dtx}{package}}} \endbatchfile %% %% Copyright (C) 2006-2010 by Will Robertson <wspr81@gmail.com> diff --git a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty b/Master/texmf-dist/tex/latex/xltxtra/xltxtra.sty index ad8f6ce110d..7c4ee541468 100644 --- a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty +++ b/Master/texmf-dist/tex/latex/xltxtra/xltxtra.sty @@ -11,7 +11,7 @@ %% License information appended %% \ProvidesPackage{xltxtra} - [2010/06/03 v0.5d Improvements for the "XeLaTeX" format] + [2010/09/20 v0.5e Improvements for the "XeLaTeX" format] \RequirePackage{ifluatex} \ifluatex \PackageWarningNoLine {xltxtra} {^^J @@ -25,7 +25,7 @@ \RequirePackage{ifxetex} \RequireXeTeX \RequirePackage{fontspec}[2010/05/14 v2.0] -\RequirePackage{xunicode} +\RequirePackage{realscripts} \newif\if@xxt@nosscript@ \newif\if@xxt@nologos@ \DeclareOption{no-sscript}{\@xxt@nosscript@true} @@ -49,83 +49,13 @@ \setlogokern{La}{#4}% \setlogokern{aT}{#5}% \setlogokern{eL}{#6}} -\DeclareRobustCommand*\fakesubscript[1]{% - \@textsubscript{\selectfont#1}} -\DeclareRobustCommand*\fakesuperscript[1]{% - \@textsuperscript{\selectfont#1}} \if@xxt@nosscript@ \DeclareRobustCommand*\textsubscript{% \@ifstar{\realsubscript}{\fakesubscript}} \DeclareRobustCommand*\textsuperscript{% \@ifstar{\realsuperscript}{\fakesuperscript}} -\else - \DeclareRobustCommand*\textsubscript{% - \@ifstar{\fakesubscript}{\realsubscript}} - \DeclareRobustCommand*\textsuperscript{% - \@ifstar{\fakesuperscript}{\realsuperscript}} \fi \ExplSyntaxOn -\DeclareRobustCommand*\realsubscript[1]{ - \fontspec_if_fontspec_font:TF - { - \fontspec_if_opentype:TF - { - \fontspec_if_feature:nTF {+subs} - { - {\addfontfeature{VerticalPosition=Inferior}#1} - } - { - \fontspec_if_feature:nTF {+sinf} - { - {\addfontfeature{VerticalPosition=ScientificInferior}#1} - } - { - \fakesubscript{#1} - } - } - } - { - \fontspec_if_aat_feature:nnTF {10} {2} - { - {\addfontfeature{VerticalPosition=Inferior}#1} - } - { - \fakesubscript{#1} - } - } - } - { - \fakesubscript{#1} - } -} -\DeclareRobustCommand*\realsuperscript[1]{ - \fontspec_if_fontspec_font:TF - { - \fontspec_if_opentype:TF - { - \fontspec_if_feature:nTF {+sups} - { - {\addfontfeature{VerticalPosition=Superior}#1} - } - { - \fakesuperscript{#1} - } - } - { - \fontspec_if_aat_feature:nnTF {10} {1} - { - {\addfontfeature{VerticalPosition=Superior}#1} - } - { - \fakesuperscript{#1} - } - } - } - { - \fakesuperscript{#1} - } -} -\def\@makefnmark{\mbox{\normalfont\textsuperscript{\@thefnmark}}} \newcommand*\vfrac[2]{ \fontspec_if_fontspec_font:TF { |