diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/xgreek/README (renamed from Master/texmf-dist/doc/xelatex/xgreek/README) | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/xgreek/xgreek.pdf | bin | 0 -> 76282 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/xgreek/xgreek.pdf | bin | 72111 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/xgreek/xgreek.dtx (renamed from Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx) | 94 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/xgreek/xgreek.ins (renamed from Master/texmf-dist/source/xelatex/xgreek/xgreek.ins) | 7 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/xgreek/xelistings.sty | 70 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/xgreek/xgreek.sty (renamed from Master/texmf-dist/tex/xelatex/xgreek/xgreek.sty) | 36 |
7 files changed, 136 insertions, 76 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xgreek/README b/Master/texmf-dist/doc/latex/xgreek/README index d715f36f299..b0e087b4f98 100644 --- a/Master/texmf-dist/doc/xelatex/xgreek/README +++ b/Master/texmf-dist/doc/latex/xgreek/README @@ -1,3 +1,8 @@ +Version 3.2.0 + +The previous version did not work properly when the user did not +opted to use the option listings. Now this has been fixed. + Version 3.1.0 Introduces the option "listings" that loads the listings package, diff --git a/Master/texmf-dist/doc/latex/xgreek/xgreek.pdf b/Master/texmf-dist/doc/latex/xgreek/xgreek.pdf Binary files differnew file mode 100644 index 00000000000..e8fb1f254d1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xgreek/xgreek.pdf diff --git a/Master/texmf-dist/doc/xelatex/xgreek/xgreek.pdf b/Master/texmf-dist/doc/xelatex/xgreek/xgreek.pdf Binary files differdeleted file mode 100644 index 734a291e468..00000000000 --- a/Master/texmf-dist/doc/xelatex/xgreek/xgreek.pdf +++ /dev/null diff --git a/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx b/Master/texmf-dist/source/latex/xgreek/xgreek.dtx index 864345aa821..6ab153c623d 100644 --- a/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx +++ b/Master/texmf-dist/source/latex/xgreek/xgreek.dtx @@ -29,12 +29,14 @@ % Apostolos Syropoulos (asyropoulos@yahoo.com) % %\fi -% \CheckSum{1929} +% \CheckSum{1930} % \iffalse This is a Metacommentxel % %<xgreek, >\ProvidesFile{xgreek.sty} +%<xelistings, >\ProvidesFile{xelistings} % -%<xgreek, > [2022/08/28 v3.1.0 Package `xgreek.sty'] +%<xgreek, > [2022/09/04 v3.2.0 Package `xgreek.sty'] +%<xelistings, > [2022/09/04 v1.0 Package `xelistings.sty'] % % \begin{macrocode} %<*driver> @@ -57,7 +59,7 @@ %\author{Apostolos Syropoulos\\ % Xanthi, Greece\\ % \texttt{asyropoulos@yahoo.com}} -% \date{2009/11/23\\ Last Updated 2022/08/22} +% \date{2009/11/23\\ Last Updated 2022/09/04} %\maketitle % \begin{abstract} % The \textsf{xgreek} package provides rudimentary support for Greek language @@ -74,7 +76,7 @@ % % Support for Lua\LaTeX\ was provided by Javier Bezos. % -% \section{The Source Code} +% \section{The Source Code of \textsf{xgreek}} % According to the Unicode standard %\begin{center} %|http://www.unicode.org/Public/UNIDATA/UnicodeData.txt| @@ -578,53 +580,27 @@ % \end{macrocode} % Package \textsf{listings} does not work properly with UTF-8 encoded files. So this % option should be used whenever one wants to use this package and see Greek text come out -% correctly. +% correctly. In versaion 3.1.0 of this package, I had included the code that modifies +% package \textsf{listings} in the source code of this package. However, this decision +% was wrong since when one does not use the \texttt{listings} option, processing of the +% input file stops with an error message about a text line that contains an invalid character. +% So the best way to solve this problem is to move the code in a different file and load it +% when the user has specified \texttt{listings} option. To enable this option, I use a boolean +% variable. % \begin{macrocode} \newif\if@mylistings \@mylistingsfalse -\DeclareOption{listings}{% - \@mylistingstrue -} +\DeclareOption{listings}{\@mylistingstrue} % \end{macrocode} % By default the |monogreek| option is activated. % \begin{macrocode} \ExecuteOptions{monogreek} \ProcessOptions % \end{macrocode} -% If the user has enabled the |listings| option, then it loads the package \textsf{listings} -% and makes a few changes to it. In particular, it redefines the command |\lst@DefEC| and the new -% comamnd makes all characters in the range 128--255 plus the Greek letters to be treated as letters. +% If the user has enabled the |listings| option, then it loads the package \textsf{xelistings} % \begin{macrocode} \if@mylistings -\RequirePackage{listings} -\lstset{inputencoding=utf8} -\lst@InputCatcodes -\gdef\lst@DefEC{% - \lst@CCECUse \lst@ProcessLetter - ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f% - ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f% - ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af% - ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf% - ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf% - ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df% - ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef% - ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff% - ^^^^0396^^^^0388^^^^0389^^^^038a^^^^038c% <--- Begin of Greek Letters - ^^^^038e^^^^038f^^^^0390^^^^0391^^^^0392% - ^^^^0393^^^^0394^^^^0395^^^^0396^^^^0397% - ^^^^0398^^^^0399^^^^039a^^^^039b^^^^039c% - ^^^^039d^^^^039e^^^^039f^^^^03a0^^^^03a1% - ^^^^03a3^^^^03a4^^^^03a5^^^^03a6^^^^03a7% - ^^^^03a8^^^^03a9^^^^03aa^^^^03ab^^^^03ac% - ^^^^03ad^^^^03ae^^^^03af^^^^03b0^^^^03b1% - ^^^^03b2^^^^03b3^^^^03b4^^^^03b5^^^^03b6% - ^^^^03b7^^^^03b8^^^^03b9^^^^03ba^^^^03bb% - ^^^^03bc^^^^03bd^^^^03be^^^^03bf^^^^03c0% - ^^^^03c1^^^^03c2^^^^03c3^^^^03c4^^^^03c5% - ^^^^03c6^^^^03c7^^^^03c8^^^^03c9^^^^03ca% - ^^^^03cb^^^^03cc^^^^03cd^^^^03ce% <--- End of Greek Letters - ^^00}% -\lst@RestoreCatcodes +\RequirePackage{xelistings} \fi % \end{macrocode} % Now I am going to define the macros that typeset alphabetic Greek numerals. The code @@ -1011,5 +987,43 @@ \expandafter\Greeknumeral\expandafter{\the\year}} %</xgreek> % \end{macrocode} +% \section{The Source Code of \textsf{xelistings}} % +% If the user has enabled the |listings| option, then the package loads the rudimentary package +% \textsf{xelistings}. This package loads the \textsf{listings} package and makes accessible to +% it all characters in the range 128--255 plus all Greek letters that belong to the +% Greek and Coptic Unicode block. This is achieved by redefining the command |\lst@DefEC|. +% \begin{macrocode} +%<*xelistings> +\RequirePackage{listings} +\lstset{inputencoding=utf8} +\lst@InputCatcodes +\gdef\lst@DefEC{% + \lst@CCECUse \lst@ProcessLetter + ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f% + ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f% + ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af% + ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf% + ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf% + ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df% + ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef% + ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff% + ^^^^0396^^^^0388^^^^0389^^^^038a^^^^038c% <--- Begin of Greek Letters + ^^^^038e^^^^038f^^^^0390^^^^0391^^^^0392% + ^^^^0393^^^^0394^^^^0395^^^^0396^^^^0397% + ^^^^0398^^^^0399^^^^039a^^^^039b^^^^039c% + ^^^^039d^^^^039e^^^^039f^^^^03a0^^^^03a1% + ^^^^03a3^^^^03a4^^^^03a5^^^^03a6^^^^03a7% + ^^^^03a8^^^^03a9^^^^03aa^^^^03ab^^^^03ac% + ^^^^03ad^^^^03ae^^^^03af^^^^03b0^^^^03b1% + ^^^^03b2^^^^03b3^^^^03b4^^^^03b5^^^^03b6% + ^^^^03b7^^^^03b8^^^^03b9^^^^03ba^^^^03bb% + ^^^^03bc^^^^03bd^^^^03be^^^^03bf^^^^03c0% + ^^^^03c1^^^^03c2^^^^03c3^^^^03c4^^^^03c5% + ^^^^03c6^^^^03c7^^^^03c8^^^^03c9^^^^03ca% + ^^^^03cb^^^^03cc^^^^03cd^^^^03ce% <--- End of Greek Letters + ^^00}% +\lst@RestoreCatcodes +%</xelistings> +% \end{macrocode} % \Finale diff --git a/Master/texmf-dist/source/xelatex/xgreek/xgreek.ins b/Master/texmf-dist/source/latex/xgreek/xgreek.ins index b744ebff6c7..b54cbd524ec 100644 --- a/Master/texmf-dist/source/xelatex/xgreek/xgreek.ins +++ b/Master/texmf-dist/source/latex/xgreek/xgreek.ins @@ -3,7 +3,7 @@ %% This file is part of the `xgreek' package. %% You are not allowed to modify its contents. %% -\def\filedate{2022/08/28} +\def\filedate{2022/09/04} \def\batchfile{xgreek.ins} \input docstrip.tex @@ -41,12 +41,13 @@ \keepsilent -\generate{\generateFile{xgreek.sty}{f}{\from{xgreek.dtx}{xgreek}}} +\generate{\generateFile{xgreek.sty}{f}{\from{xgreek.dtx}{xgreek}} +\generateFile{xelistings.sty}{f}{\from{xgreek.dtx}{xelistings}}} \postamble \endpostamble \Msg{**********************************************************} \Msg{* To finish installation you have to copy} -\Msg{* the generated .sty file in the appropriate} +\Msg{* the generated .sty files in the appropriate} \Msg{* directory and then to rehash your TeX system} \Msg{* Happy Greek Xe/LuaTeXing!} \Msg{**********************************************************} diff --git a/Master/texmf-dist/tex/latex/xgreek/xelistings.sty b/Master/texmf-dist/tex/latex/xgreek/xelistings.sty new file mode 100644 index 00000000000..dcace653886 --- /dev/null +++ b/Master/texmf-dist/tex/latex/xgreek/xelistings.sty @@ -0,0 +1,70 @@ +%% +%% This is file `xelistings.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xgreek.dtx (with options: `xelistings') +%% +%% (c) Copyright 2007—2022 Apostolos Syropoulos +%% This program can be redistributed and/or modified under the +%% terms of the LaTeX Project Public License Distributed from +%% http://www.latex-project.org/lppl.txt; either +%% version 1.3c of the License, or any later version. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% Please report errors or suggestions for improvement to +%% +%% Apostolos Syropoulos (asyropoulos@yahoo.com) +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\ProvidesFile{xelistings} + [2022/09/04 v1.0 Package `xelistings.sty'] +\RequirePackage{listings} +\lstset{inputencoding=utf8} +\lst@InputCatcodes +\gdef\lst@DefEC{% + \lst@CCECUse \lst@ProcessLetter + ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f% + ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f% + ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af% + ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf% + ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf% + ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df% + ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef% + ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff% + ^^^^0396^^^^0388^^^^0389^^^^038a^^^^038c% <--- Begin of Greek Letters + ^^^^038e^^^^038f^^^^0390^^^^0391^^^^0392% + ^^^^0393^^^^0394^^^^0395^^^^0396^^^^0397% + ^^^^0398^^^^0399^^^^039a^^^^039b^^^^039c% + ^^^^039d^^^^039e^^^^039f^^^^03a0^^^^03a1% + ^^^^03a3^^^^03a4^^^^03a5^^^^03a6^^^^03a7% + ^^^^03a8^^^^03a9^^^^03aa^^^^03ab^^^^03ac% + ^^^^03ad^^^^03ae^^^^03af^^^^03b0^^^^03b1% + ^^^^03b2^^^^03b3^^^^03b4^^^^03b5^^^^03b6% + ^^^^03b7^^^^03b8^^^^03b9^^^^03ba^^^^03bb% + ^^^^03bc^^^^03bd^^^^03be^^^^03bf^^^^03c0% + ^^^^03c1^^^^03c2^^^^03c3^^^^03c4^^^^03c5% + ^^^^03c6^^^^03c7^^^^03c8^^^^03c9^^^^03ca% + ^^^^03cb^^^^03cc^^^^03cd^^^^03ce% <--- End of Greek Letters + ^^00}% +\lst@RestoreCatcodes +\endinput +%% +%% End of file `xelistings.sty'. diff --git a/Master/texmf-dist/tex/xelatex/xgreek/xgreek.sty b/Master/texmf-dist/tex/latex/xgreek/xgreek.sty index 5b4a0b471a1..8a9ba463574 100644 --- a/Master/texmf-dist/tex/xelatex/xgreek/xgreek.sty +++ b/Master/texmf-dist/tex/latex/xgreek/xgreek.sty @@ -35,7 +35,7 @@ %% Right brace \} Tilde \~} %% \ProvidesFile{xgreek.sty} - [2022/08/28 v3.1.0 Package `xgreek.sty'] + [2022/09/04 v3.2.0 Package `xgreek.sty'] \message{Package 'xgreek' version 3.1.0 by Apostolos Syropoulos} \global\lccode"0370="0371 \global\uccode"0370="0370 \global\lccode"0371="0371 \global\uccode"0371="0370 @@ -460,41 +460,11 @@ } \newif\if@mylistings \@mylistingsfalse -\DeclareOption{listings}{% - \@mylistingstrue -} +\DeclareOption{listings}{\@mylistingstrue} \ExecuteOptions{monogreek} \ProcessOptions \if@mylistings -\RequirePackage{listings} -\lstset{inputencoding=utf8} -\lst@InputCatcodes -\gdef\lst@DefEC{% - \lst@CCECUse \lst@ProcessLetter - ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f% - ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f% - ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af% - ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf% - ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf% - ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df% - ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef% - ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff% - ^^^^0396^^^^0388^^^^0389^^^^038a^^^^038c% <--- Begin of Greek Letters - ^^^^038e^^^^038f^^^^0390^^^^0391^^^^0392% - ^^^^0393^^^^0394^^^^0395^^^^0396^^^^0397% - ^^^^0398^^^^0399^^^^039a^^^^039b^^^^039c% - ^^^^039d^^^^039e^^^^039f^^^^03a0^^^^03a1% - ^^^^03a3^^^^03a4^^^^03a5^^^^03a6^^^^03a7% - ^^^^03a8^^^^03a9^^^^03aa^^^^03ab^^^^03ac% - ^^^^03ad^^^^03ae^^^^03af^^^^03b0^^^^03b1% - ^^^^03b2^^^^03b3^^^^03b4^^^^03b5^^^^03b6% - ^^^^03b7^^^^03b8^^^^03b9^^^^03ba^^^^03bb% - ^^^^03bc^^^^03bd^^^^03be^^^^03bf^^^^03c0% - ^^^^03c1^^^^03c2^^^^03c3^^^^03c4^^^^03c5% - ^^^^03c6^^^^03c7^^^^03c8^^^^03c9^^^^03ca% - ^^^^03cb^^^^03cc^^^^03cd^^^^03ce% <--- End of Greek Letters - ^^00}% -\lst@RestoreCatcodes +\RequirePackage{xelistings} \fi \def\gr@ill@value#1{% \PackageWarning{xgreek}{Illegal value (#1) for greeknumeral}} |