summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-01-30 23:00:25 +0000
committerKarl Berry <karl@freefriends.org>2016-01-30 23:00:25 +0000
commit0911ade404142a305ac949e3c53934a536168c3b (patch)
treea701776f43e3bddd09795208a8c3ed63ab5041cc /Master/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
parentb9447fda2f7279a83d10a110619ece7d753633b0 (diff)
fontspec (30jan16)
git-svn-id: svn://tug.org/texlive/trunk@39512 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fontspec/fontspec-patches.sty')
-rw-r--r--Master/texmf-dist/tex/latex/fontspec/fontspec-patches.sty181
1 files changed, 0 insertions, 181 deletions
diff --git a/Master/texmf-dist/tex/latex/fontspec/fontspec-patches.sty b/Master/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
deleted file mode 100644
index dc8ff1fe51d..00000000000
--- a/Master/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
+++ /dev/null
@@ -1,181 +0,0 @@
-%%
-%% This is file `fontspec-patches.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% fontspec.dtx (with options: `patches')
-%%
-%% _________________________________________
-%% The fontspec package for XeLaTeX/LuaLaTeX
-%% (C) 2004--2015 Will Robertson and Khaled Hosny
-%%
-%% License information appended.
-%%
-%%
-\ProvidesPackage{fontspec-patches}
- [2015/09/24 v2.4e Font selection for XeLaTeX and LuaLaTeX]
-
-
-\ExplSyntaxOn
-\cs_if_exist:NF \TextOrMath
- {
- % copy official definition:
- \protected\expandafter\def\csname TextOrMath\space\endcsname{%
- \ifmmode \expandafter\@secondoftwo
- \else \expandafter\@firstoftwo \fi}
- \edef\TextOrMath#1#2{%
- \expandafter\noexpand\csname TextOrMath\space\endcsname
- {#1}{#2}}
- % translation of official definition:
- \cs_set:Npn \@fnsymbol #1
- {
- \int_case:nnF {#1}
- {
- {0} {}
- {1} { \TextOrMath \textasteriskcentered* }
- {2} { \TextOrMath \textdagger\dagger }
- {3} { \TextOrMath \textdaggerdbl\ddagger }
- {4} { \TextOrMath \textsection\mathsection }
- {5} { \TextOrMath \textparagraph\mathparagraph }
- {6} { \TextOrMath \textbardbl\| }
- {7} { \TextOrMath {\textasteriskcentered\textasteriskcentered}{**} }
- {8} { \TextOrMath {\textdagger\textdagger}{\dagger\dagger} }
- {9} { \TextOrMath {\textdaggerdbl\textdaggerdbl}{\ddagger\ddagger} }
- }
- { \@ctrerr }
- }
- }
-\DeclareRobustCommand \em
- {
- \@nomath\em
- \str_if_eq_x:nnTF \f@shape \itdefault \eminnershape
- {
- \str_if_eq_x:nnTF \f@shape \sldefault \eminnershape \emshape
- }
- }
-\DeclareTextFontCommand{\emph}{\em}
-\cs_set_eq:NN \emshape \itshape
-\cs_set_eq:NN \eminnershape \upshape
-\DeclareRobustCommand{\-}
- {
- \discretionary
- {
- \char\ifnum\hyphenchar\font<\z@
- \xlx@defaulthyphenchar
- \else
- \hyphenchar\font
- \fi
- }{}{}
- }
-\def\xlx@defaulthyphenchar{`\-}
-\cs_new:Nn \fontspec_visible_space:
- {
- \font_glyph_if_exist:NnTF \font {"2423}
- { \char"2423\scan_stop: }
- { \fontspec_visible_space_fallback: }
- }
-\cs_new:Nn \fontspec_visible_space_fallback:
- {
- {
- \usefont{\g_fontspec_encoding_tl}{lmtt}{\f@series}{\f@shape}
- \textvisiblespace
- }
- }
-\group_begin:
-\char_set_catcode_active:n{"20}%
-\cs_gset:Npn\fontspec_print_visible_spaces:{%
-\char_set_catcode_active:n{"20}%
-\cs_set_eq:NN^^20\fontspec_visible_space:%
-}%
-\group_end:
-\def\verb
- {
- \relax\ifmmode\hbox\else\leavevmode\null\fi
- \bgroup
- \verb@eol@error \let\do\@makeother \dospecials
- \verbatim@font\@noligs
- \@ifstar\__fontspecsverb\@verb
- }
-\def\__fontspecsverb{\fontspec_print_visible_spaces:\@sverb}
-\AtBeginDocument
- {
- \fontspec_patch_verbatim:
- \fontspec_patch_moreverb:
- \fontspec_patch_fancyvrb:
- \fontspec_patch_listings:
- }
-\cs_set:Npn \fontspec_patch_verbatim:
- {
- \@ifpackageloaded{verbatim}
- {
- \cs_set:cpn {verbatim*}
- {
- \group_begin: \@verbatim \fontspec_print_visible_spaces: \verbatim@start
- }
- }
- {
- \cs_set:cpn {verbatim*}
- {
- \@verbatim \fontspec_print_visible_spaces: \@sxverbatim
- }
- }
- }
-\cs_set:Npn \fontspec_patch_moreverb:
- {
- \@ifpackageloaded{moreverb}{
- \cs_set:cpn {listingcont*}
- {
- \cs_set:Npn \verbatim@processline
- {
- \thelisting@line \global\advance\listing@line\c_one
- \the\verbatim@line\par
- }
- \@verbatim \fontspec_print_visible_spaces: \verbatim@start
- }
- }{}
- }
-\cs_set:Npn \fontspec_patch_fancyvrb:
- {
- \@ifpackageloaded{fancyvrb}
- {
- \cs_set_eq:NN \FancyVerbSpace \fontspec_visible_space:
- }{}
- }
-\cs_set:Npn \fontspec_patch_listings:
- {
- \@ifpackageloaded{listings}
- {
- \cs_set_eq:NN \lst@visiblespace \fontspec_visible_space:
- }{}
- }
-\RenewDocumentCommand \oldstylenums {m}
- {
- { \addfontfeature{Numbers=OldStyle} #1 }
- }
-\NewDocumentCommand \liningnums {m}
- {
- { \addfontfeature{Numbers=Lining} #1 }
- }
-%%
-%% Copyright 2004--2015 Will Robertson <wspr81@gmail.com>
-%% Copyright 2009--2013 Khaled Hosny <khaledhosny@eglug.org>
-%%
-%% 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" by Will Robertson.
-%%
-%% This work consists of this file fontspec.dtx
-%% and the derived files fontspec.sty,
-%% fontspec.lua,
-%% fontspec.cfg,
-%% fontspec-xetex.sty,
-%% fontspec-luatex.sty,
-%% fontspec-patches.sty,
-%% fontspec-example.tex,
-%% and fontspec.pdf.
-%%
-%%
-%% End of file `fontspec-patches.sty'.