diff options
author | Karl Berry <karl@freefriends.org> | 2019-07-23 20:58:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-07-23 20:58:40 +0000 |
commit | f38d069a1415c5d89cccec59a1e48270718dbcf6 (patch) | |
tree | 67fda707e3e51dd62aaeea638ba6b6c1a7c0bbfd /Master/texmf-dist/doc/latex/unicode-alphabets/specimen.tex | |
parent | 1e117ae6b120f68ddf2359444b8a322ae1a9f724 (diff) |
unicode-alphabets (23jul19)
git-svn-id: svn://tug.org/texlive/trunk@51712 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/unicode-alphabets/specimen.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/unicode-alphabets/specimen.tex | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/unicode-alphabets/specimen.tex b/Master/texmf-dist/doc/latex/unicode-alphabets/specimen.tex index 4912283f5c9..9962b8a81b1 100644 --- a/Master/texmf-dist/doc/latex/unicode-alphabets/specimen.tex +++ b/Master/texmf-dist/doc/latex/unicode-alphabets/specimen.tex @@ -52,37 +52,34 @@ }% } -\newif\ifspec@has@entity \specset{ character set/.code={ \csedef{spec@charset}{#1}% \caselower[q]{\spec@charset}% \csedef{spec@code}{\thestring}% \csedef{spec@csvfile}{unicode-alphabets.\spec@code.csv}% - \csedef{spec@font}{\csname\spec@code font\endcsname}% }, font url/.store in=\spec@font@url, - has entity/.is if=spec@has@entity, } \newcommand\specimen[1]{% - \specset{has entity=false,#1}% + \specset{#1}% \chapter*{\spec@charset} \addcontentsline{toc}{chapter}{\spec@charset} - Using the font \spec@showfont{\spec@font} from \url{\spec@font@url}. + Using the font \spec@showfont{\csuse{alph@font@\spec@code}} from \url{\spec@font@url}. \begingroup - \def\mytablerow{\texttt{\csvcoli} & \csuse{\csuse{spec@code}}{\csvcoli} & \ifspec@has@entity\csvcolii &\fi \csvcoliii} - \ifspec@has@entity - \def\spec@columns{r @{ } c @{ } l @{ } X} - \else - \def\spec@columns{r @{ } c @{ } X} - \fi + \def\mytablerow{\texttt{\csvcoli} & \csuse{\csuse{spec@code}}{\csvcoli} & \ifbool{alph@\spec@code @has@entities}{\csvcolii & \csvcoliii}{\csvcolii}} + \ifbool{alph@\spec@code @has@entities}{% + \def\spec@columns{r @{ } c @{ } l @{ } X}% + }{% + \def\spec@columns{r @{ } c @{ } X}% + }% \expanded{\unexpanded{\begin{xltabular}{\linewidth}}{\spec@columns}} \toprule - & Code & \ifspec@has@entity&\fi \hfill \spec@charset\\ - Glyph & Point & \ifspec@has@entity Entity Name &\fi Unicode Name\\ + Code & & \ifbool{alph@\spec@code @has@entities}{&}{} \hfill \spec@charset\\ + Point & Glyph & \ifbool{alph@\spec@code @has@entities}{ Entity Name &}{} Unicode Name\\ \midrule \endhead \bottomrule @@ -107,7 +104,6 @@ \specimen{ character set=MUFI, font url=http://mufi.info/, - has entity=true, } \specimen{ @@ -125,7 +121,6 @@ \specimen{ character set=UNZ, font url=http://www.ligafaktur.de/, - has entity=true, } \catcode`\_=8 \endgroup |