summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-19 22:32:22 +0000
committerKarl Berry <karl@freefriends.org>2010-09-19 22:32:22 +0000
commit3127e51522e361c647124aed8a4883caff20a9ed (patch)
treec9ebda6005ffb3c8dc5b64e88804afed91bf11c8 /Master/texmf-dist/tex/xelatex
parentec055a5e4d5d2e54cbce278de7bc9d9640edafcd (diff)
xltxtra update (19sep10)
git-svn-id: svn://tug.org/texlive/trunk@19809 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
-rw-r--r--Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty200
1 files changed, 0 insertions, 200 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty b/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty
deleted file mode 100644
index ad8f6ce110d..00000000000
--- a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty
+++ /dev/null
@@ -1,200 +0,0 @@
-%%
-%% This is file `xltxtra.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xltxtra.dtx (with options: `package')
-%% ____________________________
-%% The XLTXTRA package
-%% (C) 2006-2010 Will Robertson
-%% License information appended
-%%
-\ProvidesPackage{xltxtra}
- [2010/06/03 v0.5d Improvements for the "XeLaTeX" format]
-\RequirePackage{ifluatex}
-\ifluatex
- \PackageWarningNoLine {xltxtra} {^^J
- XLTXTRA IS TO BE USED ONLY UNDER XETEX.
- LOAD FONTSPEC DIRECTLY, INSTEAD.^^J
- ABORTING LOADING%
- }
- \RequirePackage{fontspec}[2010/05/14 v2.0]
- \expandafter \endinput
-\fi
-\RequirePackage{ifxetex}
-\RequireXeTeX
-\RequirePackage{fontspec}[2010/05/14 v2.0]
-\RequirePackage{xunicode}
-\newif\if@xxt@nosscript@
-\newif\if@xxt@nologos@
-\DeclareOption{no-sscript}{\@xxt@nosscript@true}
-\DeclareOption{no-logos}{\@xxt@nologos@true}
-\ProcessOptions*
-\RequirePackage{metalogo}
-\if@xxt@nologos@
- \let\TeX\original@TeX
- \let\LaTeX\original@LaTeX
- \let\LaTeXe\original@LaTeXe
-\fi
-\newcommand*\TeX@logo@spacing[6]{%
- \PackageWarning{xltxtra}{%
- Use of \protect\TeX@logo@spacing\space is deprecated,\MessageBreak
- recommend to use commands from package `metalogo' instead}
- \setlogokern{Te}{#1}%
- \setlogokern{eT}{#1}%
- \setlogokern{eX}{#2}%
- \setlogokern{Xe}{#2}%
- \setlogodrop{#3}%
- \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
- {
- \fontspec_if_opentype:TF
- {
- {\addfontfeature{VerticalPosition=Numerator}#1}
- \textfractionsolidus
- {\addfontfeature{VerticalPosition=Denominator}#2}
- }
- {
- {\addfontfeature{VerticalPosition=Superior}#1}
- \textfractionsolidus
- {\addfontfeature{VerticalPosition=Inferior}#2}
- }
- }
- {
- \PackageError {xltxtra}
- { \string\vfrac\space~can~only~be~used~with~fontspec~fonts }
- { Nothing~more~to~tell. }
- }
-}
-\ExplSyntaxOff
-\newcommand\namedglyph[1]{%
- \@tempcnta=\XeTeXglyphindex "#1"\relax
- \ifnum\@tempcnta>0
- \XeTeXglyph\@tempcnta
- \else
- \xxt@namedglyph@fallback{#1}%
- \fi}
-\newcommand\xxt@namedglyph@fallback[1]{[#1]}
-\newbox\xxt@tempbox
-\def\showhyphens#1{%
- \typeout{^^J***********************
- \string\showhyphens:
- ***********************}%
- \@for\@ii:=#1\do{\xxt@showhyphens{\@ii}}%
- \typeout{^^J***********************%
- ***************%
- ***********************^^J}}
-\def\xxt@showhyphens#1{%
- \setbox\@tempboxa=\vbox{%
- \hsize1sp \hbadness10000 \hfuzz\maxdimen
- \everypar={} \leftskip\z@ \rightskip\leftskip
- \pretolerance\m@ne \noindent \hskip\z@ #1\par
- \global\setbox\xxt@tempbox=\hbox{}\xxt@sh@cat}%
- \setbox\@tempboxa=\hbox to \maxdimen{\unhbox\xxt@tempbox}}
-\def\xxt@sh@cat{\unskip\unpenalty
- \setbox\@tempboxa=\lastbox
- \unless\ifvoid\@tempboxa
- \global\setbox\xxt@tempbox=\hbox{%
- \unhbox\@tempboxa
- \unskip\unskip
- \unhbox\xxt@tempbox}%
- \expandafter\xxt@sh@cat
- \fi}
-%%
-%% Copyright (C) 2006-2010 by Will Robertson <wspr81@gmail.com>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Will Robertson.
-%%
-%% This work consists of the file xltxtra.dtx
-%% and the derived files xltxtra.sty,
-%% xltxtra.ins, and
-%% xltxtra.pdf.
-%%
-%%
-%% End of file `xltxtra.sty'.