diff options
author | Norbert Preining <norbert@preining.info> | 2022-11-30 03:01:25 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-11-30 03:01:25 +0000 |
commit | cb9bbbf5f4fdb303e5da460ebf17b50811d06a6a (patch) | |
tree | 56df1557b5fe16b5c9850a957e81ac160ddcb91b /macros/latex | |
parent | d3420ed49446361fef055ad7f989ff41ce7362b6 (diff) |
CTAN sync 202211300301
Diffstat (limited to 'macros/latex')
20 files changed, 243 insertions, 126 deletions
diff --git a/macros/latex/contrib/bangorexam/README.txt b/macros/latex/contrib/bangorexam/README.txt index a3fa385c48..59ad31160b 100644 --- a/macros/latex/contrib/bangorexam/README.txt +++ b/macros/latex/contrib/bangorexam/README.txt @@ -1,7 +1,7 @@ Bangor University Computer Science Department Exam Document Class Cameron Gray <c.gray@bangor.ac.uk> -November 21, 2017 +November 28, 2022 Abstract Starting with the 2016/17 academic year, the Computer Science department at diff --git a/macros/latex/contrib/bangorexam/bangorexam.dtx b/macros/latex/contrib/bangorexam/bangorexam.dtx index 61a4a4f0b5..71f43141bf 100644 --- a/macros/latex/contrib/bangorexam/bangorexam.dtx +++ b/macros/latex/contrib/bangorexam/bangorexam.dtx @@ -19,7 +19,7 @@ %\fi % \iffalse % Doc-Source file to use with LaTeX2e -% Copyright (C) 2016-17 Cameron Gray <c.gray@bangor.ac.uk>, all rights reserved. +% Copyright (C) 2016-22 Cameron Gray <c.gray@bangor.ac.uk>, all rights reserved. % \fi % \iffalse %<*driver> @@ -40,7 +40,7 @@ \end{document} %</driver> %\fi -%\CheckSum{668} +%\CheckSum{696} %\RecordChanges %\changes{v1.0}{2016/09/26}{Initial version.} %\changes{v1.1}{2016/10/17}{Added two from four exam mode.} @@ -54,10 +54,11 @@ %\changes{v1.2.2}{2017/06/26}{Changed resit description to 'Summer' due to change in regulations.} %\changes{v1.3.0}{2017/10/06}{Replaced exam types with generalised n-from forms, with or without a compulsory Section A.} %\changes{v1.4.0}{2017/11/21}{Updated coversheet to adhere to changed regulations.} +%\changes{v1.5.0}{2022/11/28}{Updated coversheet to adhere to changed regulations.} %\pagestyle{fancy} %\title{Bangor University Computer Science Department\\ Exam Document Class} %\author{Cameron Gray \texttt{<c.gray@bangor.ac.uk>}} -%\date{November 21, 2017} +%\date{November 28, 2022} %\maketitle % %\begin{abstract} @@ -297,11 +298,11 @@ %\end{macrocode} %\fi %\begin{macrocode} -\def\version{1.4.0 } +\def\version{1.5.0 } \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{bangorexam}[2017/11/21 \version C. Gray] +\ProvidesClass{bangorexam}[2022/11/28 \version C. Gray] % Based on the Exam document class by Philip S. Hirschhorn % Developed/Adapted for Bangor University by C. Gray @@ -330,7 +331,9 @@ % ******************************************************************* \newcommand{\engATypeText}{Answer {\bf Section A} (compulsory) and {\bf any \arabic{qN}} questions from {\bf Section B}.}% +\newcommand{\engATypeTextSingle}{Answer {\bf Section A} (compulsory) and {\bf one} question from {\bf Section B} only.}% \newcommand{\welATypeText}{Atebwch {\bf Adran A} (gorfodol) ac {\bf unrhyw \arabic{qN}} gwestiwn o {\bf Adran B}.}% +\newcommand{\welATypeTextSingle}{Atebwch {\bf Adran A} (gorfodol) ac {\bf un} cwestiwn yn unig o {\bf Adran B}.}% \newcommand{\engBTypeText}{Answer any \textbf{\arabic{qN}} questions.}% \newcommand{\welBTypeText}{Atebwch unrhyw \textbf{\arabic{qN}} o'r pedwar cwestiwn.}% \newcommand{\engCTypeText}{Answer all questions.}% @@ -338,6 +341,7 @@ \newcommand{\sectionAHeader}{\textbf{SECTION A} --- Answer \textbf{ALL} questions (Total marks \total{sectiona})}% \newcommand{\sectionBHeader}{\textbf{SECTION B} --- Answer any \textbf{\arabic{qN}} questions (\total{sectionb} marks each)}% \newcommand{\sectionAOnlyHeader}{Answer \textbf{ALL} questions (Total marks \total{sectiona})}% +\newcommand{\sectionBHeaderSingle}{{\textbf{SECTION B} --- Answer one question only (\total{sectionb} marks each)}}% % ******************************************************************* % Class Level Options @@ -348,19 +352,28 @@ \DeclareOption{welsh}{% \newcommand{\welsh}{true}% \renewcommand{\sectionAHeader}{\textbf{ADRAN A} --- Atebwch BOB cwestiwn (Cyfanswm marciau \total{sectiona})}% - \renewcommand{\sectionBHeader}{\textbf{ADRAN B} --- Atebwch unrhyw \textbf{\arabic{qN}} chwestiwn (\total{sectionb} marc yr un)}% + v% \renewcommand{\sectionAOnlyHeader}{Atebwch \textbf{BOB} cwestiwn (Cyfanswm marciau \total{sectiona})}% }% % Exam Type % ------------------------------------------------------------------- \newcounter{qN} -\newcommand{\nfrom}[1]{\setcounter{qN}{#1}} +\newcommand{\nfrom}[1]{% + \setcounter{qN}{#1}% + \ifnum \value{qN}=1% + \renewcommand{\engTypeText}{\engATypeTextSingle}% + \renewcommand{\welTypeText}{\welATypeTextSingle}% + \ifthenelse{\isundefined{\welsh}}{\renewcommand{\sectionBHeader}{{\textbf{SECTION B} --- Answer one question only (\total{sectionb} marks each)}}}% + {\renewcommand{\sectionBHeader}{\textbf{ADRAN B} --- Atebwch un cwestiwn yn unig (\total{sectionb} marc yr un)}}% + \else% + \renewcommand{\engTypeText}{\engATypeText}% + \renewcommand{\welTypeText}{\welATypeText}% + \fi% +} \newcommand{\engTypeText}{} \newcommand{\welTypeText}{} \DeclareOption{ab}{% \newcommand{\examtype}{ab}% - \renewcommand{\engTypeText}{\engATypeText}% - \renewcommand{\welTypeText}{\welATypeText}% \nfrom{2}% }% \DeclareOption{aonly}{% diff --git a/macros/latex/contrib/bangorexam/bangorexam.pdf b/macros/latex/contrib/bangorexam/bangorexam.pdf Binary files differindex c7e7d8abaf..b067692599 100644 --- a/macros/latex/contrib/bangorexam/bangorexam.pdf +++ b/macros/latex/contrib/bangorexam/bangorexam.pdf diff --git a/macros/latex/contrib/csbulletin/README b/macros/latex/contrib/csbulletin/README index e54672784c..cc91b62aee 100644 --- a/macros/latex/contrib/csbulletin/README +++ b/macros/latex/contrib/csbulletin/README @@ -1,9 +1,9 @@ ============================================================================= -Package: csbulletin 10 January 2020 +Package: csbulletin 29 November 2022 ============================================================================= -The package provides the class for articles for the CSTUG Bulletin -(Zpravodaj Ceskoslovenskeho sdruzeni uzivatelu TeXu). You can see the -structure of a document by looking to the source file of this manual. The +The package provides the class for articles for the CSTUG Bulletin +(Zpravodaj Ceskoslovenskeho sdruzeni uzivatelu TeXu). You can see the +structure of a document by looking to the source file of this manual. The package can be used and distributed according to the LaTeX Project Public License. diff --git a/macros/latex/contrib/csbulletin/csbulacronym.sty b/macros/latex/contrib/csbulletin/csbulacronym.sty deleted file mode 100644 index 374627b45b..0000000000 --- a/macros/latex/contrib/csbulletin/csbulacronym.sty +++ /dev/null @@ -1,76 +0,0 @@ -\ProvidesPackage{csbulacronym}[2020/01/10 Acronyms for CSTUG bulletin] -\PackageInfo{csbulacronym}{$Id$} - -%==================================================== TeX logos -\DeclareRobustCommand\CS[1]{\def\next{#1}\leavevmode{$\cal C$}\kern-.3em - \lower .67ex\hbox{$\cal S$}\if E\next\kern-.045em\else - \kern-.145em\fi#1} -\DeclareRobustCommand\CSTeX{\leavevmode{$\cal C$}\kern-.3em - \lower .67ex\hbox{$\cal S$}\kern-.145em\TeX} -\let\cstex\CSTeX -\DeclareRobustCommand\csplain{\leavevmode{$\cal C$}\kern-.3em - \lower .67ex\hbox{$\cal S$}\kern-.145emplain} -\DeclareRobustCommand\CSLaTeX{\leavevmode{$\cal C$}\kern-.3em - \lower .67ex\hbox{$\cal S$}\LaTeX} -\let\cslatex\CSLaTeX -\DeclareRobustCommand\CSTUG{\leavevmode{$\cal C$}\kern-.3em - \lower .67ex\hbox{$\cal S$}\kern-.145em TUG} -\let\cstug\CSTUG -\DeclareRobustCommand\CSED{{$\cal C$}\kern-.3em - \lower .67ex\hbox{$\cal S$}\kern-.045emED} -\let\csed\CSED -\DeclareRobustCommand\lm{L\kern-.4em\raise.4ex\hbox{$\scriptstyle\cal A$}\kern-.2em - \lower.4ex\hbox{$\scriptstyle{\cal M}$}\kern-.1em{$\cal S$}-\TeX} -\DeclareRobustCommand\lmb{L\kern-.35em\raise.35ex\hbox{$\scriptstyle\cal A$}\kern-.15em - \lower.4ex\hbox{$\cal M$}\kern-.05em{$\cal S$}-\TeX} -\let\LAmSTeX\lm -\DeclareRobustCommand\AmSTeX{\protect\AmS-\protect\TeX} -\let\AMSTeX\AmSTeX -\let\amstex\AmSTeX -\DeclareRobustCommand\AmS{{$\cal\protect A\kern-.1667em\lower.5ex - \hbox{$\cal M$}\kern-.125emS$}} -\let\AMS\AmS -\def\manual{\fontencoding{U}\fontfamily{logo}\selectfont} -\DeclareRobustCommand\font@mp{\fontencoding{U}\fontfamily{mplogo}\selectfont} -\DeclareRobustCommand\MF{{\manual META}\-{\manual FONT}} \let\mf\MF -\DeclareRobustCommand\MP{{\manual META}\-{\manual POST}} \let\mp\MP -\DeclareRobustCommand\BibTeX{{\sc Bib}\TeX} \let\BIBTeX\BibTeX -\DeclareRobustCommand\PiC{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC} -\DeclareRobustCommand\PiCTeX{\PiC\kern-.11em\TeX} -\DeclareRobustCommand\SliTeX{{\rm S\kern-.06em{\sc l\kern-.035emi}\kern-.06em\TeX}} -\let\SLiTeX\SliTeX -\DeclareRobustCommand\WPtoLaTeX{% -W\kern-.06em\hbox{P}\kern-.2em\lower.7ex\hbox{2}\kern-.07em\LaTeX} -\let\Protected@LaTeX\LaTeX -\let\Protected@LaTeXe\LaTeXe -%\DeclareRobustCommand\LaTeX{\Protected@LaTeX} -%\DeclareRobustCommand\LaTeXe{\Protected@LaTeXe} -\DeclareRobustCommand\miktex{MiK\TeX}\let\MikTeX\miktex \let\MiKTeX\miktex \let\Miktex\miktex - -\DeclareRobustCommand\ForTeX{\leavevmode\lower.5ex\hbox{4}\kern-.1667em\TeX} -\DeclareRobustCommand\ForAllTeX{\leavevmode\lower.3ex\hbox{4}all\TeX} -\DeclareRobustCommand\LyX{L\kern\minus.1667em\lower.25em\hbox{Y}\kern\minus.125emX\spacefactor1000} -\DeclareRobustCommand\OzTeX{Oz\kern\minus.1em\TeX} -\DeclareRobustCommand\eTeX{$\varepsilon$\minus\TeX} -\DeclareRobustCommand\NTS{$\cal N$\kern\minus.1667em\lower.5ex\hbox{$\cal T$}% - \kern\minus.125em$\cal S$} - -\DeclareRobustCommand\XeTeX{X\kern-.125em\lower.5ex\hbox{\csname - reflectbox\endcsname{E}}\kern-.1667em\TeX} -\DeclareRobustCommand\XeLaTeX{X\kern-.125em\lower.5ex\hbox{\csname - reflectbox\endcsname{E}}\LaTeX} - -\DeclareRobustCommand\THANH{H\`an Th\^e\llap{\raise 0.5ex\hbox{\'{}}} Th\`anh} -\DeclareRobustCommand\Thanh{Th\`anh} -\DeclareRobustCommand\ConTeXt{\textsc{Con\kern-.15em\TeX t}} - -\DeclareRobustCommand\ps{PostScript}\let\PS\ps - -\chardef\bs`\\ -\let\bslash\bs -\DeclareRobustCommand\cmd[1]{\texttt{\bs#1}} -{\catcode`\#=12 -\gdef\hash{#}} - -\def\bul#1(#2)#3(#4){Zpravodaj \v Ceskoslovensk\'eho sdru\v zen\'i u\v zivatel\r{u} \TeX u, -\textbf{#1}\,(#2), \hbox{#3}~(#4)} diff --git a/macros/latex/contrib/csbulletin/LICENSE.txt b/macros/latex/contrib/csbulletin/doc/LICENSE.txt index 90e5e3ab79..90e5e3ab79 100644 --- a/macros/latex/contrib/csbulletin/LICENSE.txt +++ b/macros/latex/contrib/csbulletin/doc/LICENSE.txt diff --git a/macros/latex/contrib/csbulletin/csbulletin.pdf b/macros/latex/contrib/csbulletin/doc/csbulletin.pdf Binary files differindex 00edd67d5b..25b26cf7df 100644 --- a/macros/latex/contrib/csbulletin/csbulletin.pdf +++ b/macros/latex/contrib/csbulletin/doc/csbulletin.pdf diff --git a/macros/latex/contrib/csbulletin/csbulletin.tex b/macros/latex/contrib/csbulletin/doc/csbulletin.tex index faae0e23a4..a9d644de60 100644 --- a/macros/latex/contrib/csbulletin/csbulletin.tex +++ b/macros/latex/contrib/csbulletin/doc/csbulletin.tex @@ -1,6 +1,6 @@ %% $Id$ \documentclass{csbulletin} -\DeclareRobustCommand\version{\unskip~2020/01/10} +\DeclareRobustCommand\version{\unskip~2022/11/29} \let\pkg\textsc \usepackage[pdftitle=LaTeX\ Class\ for\ CSTUG\ Bulletin, pdfauthor={Zdenek\ Wagner, Vit\ Novotny}, diff --git a/macros/latex/contrib/csbulletin/doc/example-czech.tex b/macros/latex/contrib/csbulletin/doc/example-czech.tex new file mode 100644 index 0000000000..3512eb2b4f --- /dev/null +++ b/macros/latex/contrib/csbulletin/doc/example-czech.tex @@ -0,0 +1,42 @@ +\documentclass{csbulletin} +\selectlanguage{czech} +\usepackage[utf8]{inputenc} +\usepackage[all]{nowidow} +\usepackage{csquotes} +\usepackage[ + backend=biber, + style=iso-numeric, + sortlocale=cs, + autolang=other, + bibencoding=UTF8, + mincitenames=2, + maxcitenames=2, +]{biblatex} +\addbibresource{example.bib} +\usepackage[ + implicit=false, + hidelinks, +]{hyperref} +\begin{document} + +\title{Český název článku} +\EnglishTitle{Anglický název článku} +\author{Jméno autora} +\podpis{Jméno autora, e-mailová adresa autora} +\maketitle + +\begin{abstract} +Český abstrakt článku. +\end{abstract} +\klicovaslova: první klíčové slovo, druhé klíčové slovo, třetí klíčové slovo, … + +\section{Název sekce} +\TeX{} je program pro digitální sazbu. Kniha \citetitle{knuth-ttp}~\cite{knuth-ttp} obsahuje komentovaný zdrojový kód \TeX u. \textcite{knuth-tb} popisuje \TeX{} z pohledu uživatele. + +\printbibliography + +\begin{summary} +Anglický abstrakt článku. +\keywords: první anglické klíčové slovo, druhé anglické klíčové slovo, … +\end{summary} +\end{document} diff --git a/macros/latex/contrib/csbulletin/doc/example-english.tex b/macros/latex/contrib/csbulletin/doc/example-english.tex new file mode 100644 index 0000000000..ae137ac0da --- /dev/null +++ b/macros/latex/contrib/csbulletin/doc/example-english.tex @@ -0,0 +1,43 @@ +\documentclass{csbulletin} +\selectlanguage{english} +\usepackage[utf8]{inputenc} +\usepackage[all]{nowidow} +\usepackage{csquotes} +\usepackage[ + backend=biber, + style=iso-numeric, + sortlocale=en, + autolang=other, + bibencoding=UTF8, + mincitenames=2, + maxcitenames=2, +]{biblatex} +\addbibresource{example.bib} +\usepackage[ + implicit=false, + hidelinks, +]{hyperref} +\begin{document} + +\title{English Title} +\EnglishTitle{English Title} +\author{Name Surname} +\podpis{Name Surname, e-mail address} +\maketitle + +\begin{abstract} +English abstract. +\keywords: first English keyword, second English keyword, third English … +\end{abstract} + +\section{Section Title} +\TeX{} is a digital typesetting system. The book \citetitle{knuth-ttp}~\cite{knuth-ttp} is a detailed account of \TeX's source code, whereas \textcite{knuth-tb} focuses more on the end user. + +\printbibliography + +\section*{Czech Title} +\begin{otherlanguage}{czech} +Czech abstract. +\end{otherlanguage} +\klicovaslova: first Czech keyword, second Czech keyword, third Czech … +\end{document} diff --git a/macros/latex/contrib/csbulletin/doc/example-slovak.tex b/macros/latex/contrib/csbulletin/doc/example-slovak.tex new file mode 100644 index 0000000000..20f50f84e0 --- /dev/null +++ b/macros/latex/contrib/csbulletin/doc/example-slovak.tex @@ -0,0 +1,42 @@ +\documentclass{csbulletin} +\selectlanguage{slovak} +\usepackage[utf8]{inputenc} +\usepackage[all]{nowidow} +\usepackage{csquotes} +\usepackage[ + backend=biber, + style=iso-numeric, + sortlocale=sk, + autolang=other, + bibencoding=UTF8, + mincitenames=2, + maxcitenames=2, +]{biblatex} +\addbibresource{example.bib} +\usepackage[ + implicit=false, + hidelinks, +]{hyperref} +\begin{document} + +\title{Slovenský názov článku} +\EnglishTitle{Anglický názov článku} +\author{Meno autora} +\podpis{Meno autora, e-mailová adresa autora} +\maketitle + +\begin{abstract} +Slovenský abstrakt článku. +\end{abstract} +\klucoveslova: prvé kľúčové slovo, druhé kľúčové slovo, tretí kľúčové slovo, … + +\section{Názov sekcie} +\TeX{} je program pre digitálnu sadzbu. Kniha \citetitle{knuth-ttp}~\cite{knuth-ttp} obsahuje komentovaný zdrojový kód \TeX u. \textcite{knuth-tb} popisuje \TeX{} z pohľadu užívateľa. + +\printbibliography + +\begin{summary} +Anglický abstrakt článku. +\keywords: prvé anglické kľúčové slovo, druhé anglické kľúčové slovo, … +\end{summary} +\end{document} diff --git a/macros/latex/contrib/csbulletin/doc/example.bib b/macros/latex/contrib/csbulletin/doc/example.bib new file mode 100644 index 0000000000..d882b6520b --- /dev/null +++ b/macros/latex/contrib/csbulletin/doc/example.bib @@ -0,0 +1,19 @@ +@book{knuth-tb, + author = {Donald Ervin Knuth}, + title = {The \TeX book}, + location = {Reading (MA, USA)}, + publisher = {Addison-Wesley}, + year = {1986}, + pagetotal = {x+483}, + isbn = {0-201-13448-9}, +} + +@book{knuth-ttp, + author = {Donald Ervin Knuth}, + title = {\TeX: The Program}, + location = {Reading (MA, USA)}, + publisher = {Addison-Wesley}, + year = {1986}, + pagetotal = {624}, + isbn = {0-201-13437-3}, +} diff --git a/macros/latex/contrib/csbulletin/csbulletin.cls b/macros/latex/contrib/csbulletin/tex/csbulletin.cls index 0b0a63df69..7a4ec6c207 100644 --- a/macros/latex/contrib/csbulletin/csbulletin.cls +++ b/macros/latex/contrib/csbulletin/tex/csbulletin.cls @@ -1,4 +1,4 @@ -\ProvidesClass{csbulletin}[2020/01/10 CSTUG Bulletin class] +\ProvidesClass{csbulletin}[2022/11/29 CSTUG Bulletin class] \ClassInfo{csbulletin}{$Id$} % Switch @@ -79,7 +79,7 @@ \ifpdf \IfFileExists{microtype.sty}{\RequirePackage - [protrusion=true,expansion=true,stretch=8,shrink=24,step=4]{microtype}}{} + [protrusion=true,expansion=true,stretch=8,shrink=24,step=4,nopatch=item]{microtype}}{} \fi \IfFileExists{array.sty}{\RequirePackage{array}}{} diff --git a/macros/latex/contrib/csbulletin/csbulobalka.cls b/macros/latex/contrib/csbulletin/tex/csbulobalka.cls index dd74aedf04..dd74aedf04 100644 --- a/macros/latex/contrib/csbulletin/csbulobalka.cls +++ b/macros/latex/contrib/csbulletin/tex/csbulobalka.cls diff --git a/macros/latex/contrib/csbulletin/csbulobalka.sty b/macros/latex/contrib/csbulletin/tex/csbulobalka.sty index 2926f1babd..226ddbe802 100644 --- a/macros/latex/contrib/csbulletin/csbulobalka.sty +++ b/macros/latex/contrib/csbulletin/tex/csbulobalka.sty @@ -1,4 +1,4 @@ -\ProvidesPackage{csbulobalka}[2020/01/10 Obalka + tiraz] +\ProvidesPackage{csbulobalka}[2021/03/19 Obalka + tiraz] \PackageInfo{csbulobalka}{$Id$} % % 3/4/2003 pridal jsem vetveni pro novou adresu sdruzeni (PS) @@ -296,7 +296,7 @@ Z\v r\'izen\'e po\v stovn\'i aliasy sdru\v zen\'i \CSTUG: \ifnum\the\rok>2001 \small\fi -\tir@ni\path|bulletin@cstug.cz|, \path|zpravodaj@cstug.cz|\\ +\tir@ni\path|bulletin@cstug.cz|\\ korespondence ohledn\v e Zpravodaje sdru\v zen\'i \tir@ni\path|board@cstug.cz|\\ korespondence \v clen\r um v\'yboru \tir@ni\path|cstug@cstug.cz|, \path|president@cstug.cz| \\ @@ -508,7 +508,7 @@ p\v{r}\'{i}stup na Internet, m\r{u}\v{z}ete zaslat p\v{r}\'{i}sp\v{e}vek na disk Zden\v{e}k Wagner\\ Vinohradsk\'{a} 114\\ 130 00 Praha 3\par \smallskip -\texttt{zpravodaj@cstug.cz}\par +\texttt{bulletin@cstug.cz}\par } \medskip diff --git a/macros/latex/contrib/csbulletin/csbulv1.cls b/macros/latex/contrib/csbulletin/tex/csbulv1.cls index 6c4ebf5414..6c4ebf5414 100644 --- a/macros/latex/contrib/csbulletin/csbulv1.cls +++ b/macros/latex/contrib/csbulletin/tex/csbulv1.cls diff --git a/macros/latex/contrib/docshots/docshots.dtx b/macros/latex/contrib/docshots/docshots.dtx index 9163bc10a1..438938f870 100644 --- a/macros/latex/contrib/docshots/docshots.dtx +++ b/macros/latex/contrib/docshots/docshots.dtx @@ -50,7 +50,7 @@ %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{docshots} %<*package> -[2022-11-20 0.3.1 TeX Samples Next to Their PDF Snapshots in DTX] +[2022-11-29 0.4.0 TeX Samples Next to Their PDF Snapshots in DTX] %</package> %<*driver> \documentclass{ltxdoc} @@ -570,12 +570,14 @@ Hello, world! % If the PDF with the required name already exists, we ignore this step. % Otherwise, we copy |verbatim.tex| into new file and run |pdflatex|: % \changes{0.1.0}{2022/10/26}{The output is saved to a hash-named file, for better uniqueness of temporary files.} +% \changes{0.4.0}{2022/11/29}{Now, \TeX output has a log message with the number of the line in the source file, which we render.} % \begin{macrocode} \IfFileExists{\docshots@tmpdir/\jobname/\hash.pdf} {\message{docshots: Won't render, the PDF '\docshots@tmpdir/\jobname/\hash.pdf' already exists^^J}} {\iexec[\docshots@log,quiet]{cp "\docshots@tmpdir/\jobname/verbatim.tex" "\docshots@tmpdir/\jobname/\hash.tex"}% + \message{docshots: rendering at line no. \the\inputlineno^^J}% \foreach \n in {1,...,\docshots@runs}{% \iexec[\docshots@log, stdout=\docshots@tmpdir/\jobname/\hash.stdout, diff --git a/macros/latex/contrib/docshots/docshots.pdf b/macros/latex/contrib/docshots/docshots.pdf Binary files differindex ab77d8bf30..a9b34346b3 100644 --- a/macros/latex/contrib/docshots/docshots.pdf +++ b/macros/latex/contrib/docshots/docshots.pdf diff --git a/macros/latex/contrib/eolang/eolang.dtx b/macros/latex/contrib/eolang/eolang.dtx index 8a9469e0d7..402bcd4b8f 100644 --- a/macros/latex/contrib/eolang/eolang.dtx +++ b/macros/latex/contrib/eolang/eolang.dtx @@ -50,7 +50,7 @@ %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{eolang} %<*package> -[2022-11-28 0.7.1 Formulas and Graphs for EO Programming Language] +[2022-11-29 0.8.0 Formulas and Graphs for EO Programming Language] %</package> %<*driver> \documentclass{ltxdoc} @@ -251,10 +251,24 @@ % \DescribeMacro{\phic} % \DescribeMacro{\xmir} % There is also a no-argument command |\eolang| to help you print the name of -% \eolang{} language. It understands the |anonymous| mode of \href{https://ctan.org/pkg/acmart}{acmart} and prints itself +% \eolang{} language. It understands the |anonymous| package option and prints itself % differently, to double-blind your paper. There is also |\phic| command to print % the name of \phic{}, also sensitive to |anonymous| mode. The macro |\xmir| prints "XMIR". -% \docshotOptions{firstline=4,lastline=10} +% \docshotOptions{firstline=3,lastline=10} +% \begin{docshot} +% \documentclass{acmart} +% \thispagestyle{empty} +% \usepackage[anonymous]{eolang} +% \begin{document} +% In our research we use \eolang{}, \\ +% an experimental object-oriented \\ +% dataflow language, \phic{}, as its \\ +% formal foundation, and \xmir{} --- \\ +% its XML-based presentation. +% \end{document} +% \end{docshot} +% Without the |anonymous| option there will be no orange color: +% \docshotOptions{firstline=3,lastline=10} % \begin{docshot} % \documentclass[anonymous]{acmart} % \thispagestyle{empty} @@ -377,6 +391,18 @@ %</verb> %\fi +% \DescribeMacro{anonymous} +% You may anonymize |\eolang|, |\XMIR|, and |\phic| commands by using |anonymous| package option: +%\iffalse +%<*verb> +%\fi +\begin{verbatim} +\usepackage[anonymous]{eolang} +\end{verbatim} +%\iffalse +%</verb> +%\fi + % \section{More Examples} % The |phiquation| environment treats ends of line as signals to start @@ -633,6 +659,7 @@ % Then, we process package options: % \changes{0.1.0}{2022/10/26}{Parsing of package options introduced.} % \changes{0.6.0}{2022/11/14}{Package option \texttt{nocomments} added in order to enable comments suppression in temporary \texttt{.tex} files (may be pretty important for \texttt{.dtx} documents).} +% \changes{0.8.0}{2022/11/29}{The \texttt{anonymous} package option added.} % \begin{macrocode} \RequirePackage{pgfopts} \RequirePackage{ifluatex} @@ -642,9 +669,10 @@ tmpdir/.store in=\eolang@tmpdir, tmpdir/.default=_eolang\ifxetex-xe\else\ifluatex-lua\fi\fi, nocomments/.store in=\eolang@nocomments, + anonymous/.store in=\eolang@anonymous, tmpdir } -\ProcessPgfOptions{/eolang} +\ProcessPgfPackageOptions{/eolang} % \end{macrocode} % Then, we make a directory where all temporary files will be kept: @@ -766,11 +794,11 @@ if ($macro ne 'phiq') { $tex =~ s/([^&\s])\s{2}([^\s])/\1 \2/g; $tex =~ s/\s{2}/ \\quad{}/g; $tex = '&' . $tex; - my $lead = '[^\s]+\s(->|:=|=)'; + my $lead = '[^\s]+\s(?:->|:=|=)'; my @leads = $tex =~ /&${lead}/g; my @eols = $tex =~ /&/g; - if (0+@leads == 0+@eols && 0+@eols > 0) { - $tex =~ s/&${lead}/\1&/g; + if (0+@leads == 0+@eols && 0+@eols > 1) { + $tex =~ s/&(${lead})/\1&/g; $gathered = 0; print '% The "gathered" is NOT used because all ' . (0+@eols) . ' lines are ' . (0+@leads) . " leads\n"; @@ -853,6 +881,7 @@ print '\endinput'; {\eolang@tmpdir/\jobname/phiquation.tex}}% \iexec[null]{cp "\eolang@tmpdir/\jobname/phiquation.tex" "\eolang@tmpdir/\jobname/\hash.tex"}% + \message{Start parsing 'phi' at line no. \the\inputlineno^^J} \iexec[trace,stdout=\eolang@tmpdir/\jobname/\hash-post.tex]{ perl "\eolang@tmpdir/eolang-phi.pl" '#1' @@ -1337,6 +1366,7 @@ print '\endinput'; \iexec[null]{cp "\eolang@tmpdir/\jobname/sodg.tex" "\eolang@tmpdir/\jobname/\hash.tex"}% \catcode`\$=3 % + \message{Start parsing `sodg' at line no. \the\inputlineno^^J} \iexec[trace,stdout=\eolang@tmpdir/\jobname/\hash-post.tex]{ perl "\eolang@tmpdir/eolang-sodg.pl" "\eolang@tmpdir/\jobname/\hash.tex" @@ -1349,18 +1379,29 @@ print '\endinput'; % \end{macrocode} % \end{macro} +% \begin{macro}{\eolang@anon} +% Then, we define a supplementary command to help us anonymize some content. +% \changes{0.9.0}{2022/11/29}{New command \texttt{\char`\\eolang@anon} added.} +% \begin{macrocode} +\makeatletter +\NewExpandableDocumentCommand{\eolang@anon}{O{ANONYMIZED}m}{% + \ifdefined\eolang@anonymous% + \textcolor{orange}{#1}% + \else% + #2% + \fi% +}\makeatother +% \end{macrocode} +% \end{macro} + % \begin{macro}{\eolang} % Then, we define a simple supplementary command to help you print \eolang{}, the name of our language. % \changes{0.1.0}{2022/10/25}{New command \texttt{\char`\\eolang} added to print the name of the language in both % normal and the anonymous mode of \texttt{acmart}.} % \begin{macrocode} -\newcommand\eolang{% - \ifdefined\anon% - \anon[XYZ]{{\sffamily EO}}% - \else% - {\sffamily EO}% - \fi% -} +\makeatletter\newcommand\eolang{% + \eolang@anon[XYZ]{{\sffamily EO}}} +\makeatother % \end{macrocode} % \end{macro} @@ -1370,14 +1411,9 @@ print '\endinput'; % normal and the anonymous mode of \texttt{acmart}.} % \begin{macrocode} \RequirePackage{hyperref} -\newcommand\phic{% - \ifdefined\anon% - \anon[\texorpdfstring{$\alpha$}{a}-cal\-cu\-lus] - {\texorpdfstring{$\varphi$}{phi}-cal\-cu\-lus}% - \else% - \texorpdfstring{$\varphi$}{phi}-cal\-cu\-lus% - \fi% -} +\makeatletter\newcommand\phic{% + \eolang@anon[$\alpha$-cal\-cu\-lus]{$\varphi$-cal\-cu\-lus}} +\makeatother % \end{macrocode} % \end{macro} @@ -1385,13 +1421,9 @@ print '\endinput'; % Then, we define a simple supplementary command to help you print \xmir{}, the name of our XML-based format of program representation. % \changes{0.2.0}{2022/10/28}{New command \texttt{\char`\\xmir} prints XMIR in both normal and the anonymous mode of \texttt{acmart}.} % \begin{macrocode} -\newcommand\xmir{% - \ifdefined\anon% - \anon[XML$^+$]{XMIR}% - \else% - XMIR% - \fi% -} +\makeatletter\newcommand\xmir{% + \eolang@anon[XML$^+$]{XMIR}} +\makeatother % \end{macrocode} % \end{macro} diff --git a/macros/latex/contrib/eolang/eolang.pdf b/macros/latex/contrib/eolang/eolang.pdf Binary files differindex f22ea00e44..87a430837e 100644 --- a/macros/latex/contrib/eolang/eolang.pdf +++ b/macros/latex/contrib/eolang/eolang.pdf |