summaryrefslogtreecommitdiff
path: root/macros/generic
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-04-20 03:01:20 +0000
committerNorbert Preining <norbert@preining.info>2023-04-20 03:01:20 +0000
commit4753a39245d0925a73cb20409999377eb9d2fd66 (patch)
tree2e19e9f381b805bc9ab96da2f6c3e733d7689e09 /macros/generic
parent10bb4d468226c290e5e87e3fa367dc6fd2dcb84b (diff)
CTAN sync 202304200301
Diffstat (limited to 'macros/generic')
-rw-r--r--macros/generic/hitex-def/hhitex.def343
-rw-r--r--macros/generic/hitex-def/hilatex.ini9
-rw-r--r--macros/generic/hitex-def/hiltxpage.tex76
-rw-r--r--macros/generic/hitex-def/hiplainpage.tex66
-rw-r--r--macros/generic/hitex-def/hitex.ini7
-rw-r--r--macros/generic/hitex-def/ifhint.tex9
6 files changed, 510 insertions, 0 deletions
diff --git a/macros/generic/hitex-def/hhitex.def b/macros/generic/hitex-def/hhitex.def
new file mode 100644
index 0000000000..671d796a07
--- /dev/null
+++ b/macros/generic/hitex-def/hhitex.def
@@ -0,0 +1,343 @@
+%%% Preliminary Draft for testing
+%%
+%% This is file `hhitex.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hyperref.dtx (with options: `pdftex,pdfform,outlines')
+%%
+%% Copyright
+%% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek,
+%% 2001-2015 Heiko Oberdiek.
+%% 2016-2019 Oberdiek Package Support Group
+%% 2019-2022 LaTeX Project
+%% https://github.com/latex3/hyperref/issues
+%%
+%% This file is part of the `Hyperref Bundle'.
+%% -------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is the LaTeX Project.
+%%
+%% The list of all files belonging to the `Hyperref Bundle' is
+%% given in the file `manifest.txt'.
+%%
+%% File: hyperref.dtx
+\ProvidesFile{hhitex.def}
+ [2022-09-22 v7.00t %
+ Hyperref driver for hiTeX]
+
+\chardef\Hy@VersionChecked=1 % prevent hyperref from checking the version.
+
+\ifHy@pdfpagelabels
+ \def\HyPL@StorePageLabel#1{%
+ \toks@\expandafter{\HyPL@Labels}%
+ \xdef\HyPL@Labels{%
+ \the\toks@
+ \the\Hy@abspage<<#1>>%
+ }%
+ }%
+% \RequirePackage{atveryend}[2009/12/07]%
+% \AtVeryEndDocument{%
+% \HyPL@SetPageLabels
+% }%
+\fi
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname pdf@escapestring\endcsname\relax
+ \begingroup
+ \catcode`\|=0 %
+ \@makeother\\%
+ |@firstofone{|endgroup
+ |def|Hy@pstringdef#1#2{%
+ |begingroup
+ |edef~{|string~}%
+ |xdef|Hy@gtemp{#2}%
+ |endgroup
+ |let#1|Hy@gtemp
+ |@onelevel@sanitize#1%
+ |edef#1{|expandafter|Hy@ExchangeBackslash#1\|@nil}%
+ |edef#1{|expandafter|Hy@ExchangeLeftParenthesis#1(|@nil}%
+ |edef#1{|expandafter|Hy@ExchangeRightParenthesis#1)|@nil}%
+ }%
+ |def|Hy@ExchangeBackslash#1\#2|@nil{%
+ #1%
+ |ifx|\#2|\%%
+ |else
+ \\%
+ |ltx@ReturnAfterFi{%
+ |Hy@ExchangeBackslash#2|@nil
+ }%
+ |fi
+ }%
+ }%
+ \def\Hy@ExchangeLeftParenthesis#1(#2\@nil{%
+ #1%
+ \ifx\\#2\\%
+ \else
+ \@backslashchar(%
+ \ltx@ReturnAfterFi{%
+ \Hy@ExchangeLeftParenthesis#2\@nil
+ }%
+ \fi
+ }%
+ \def\Hy@ExchangeRightParenthesis#1)#2\@nil{%
+ #1%
+ \ifx\\#2\\%
+ \else
+ \@backslashchar)%
+ \ltx@ReturnAfterFi{%
+ \Hy@ExchangeRightParenthesis#2\@nil
+ }%
+ \fi
+ }%
+\else
+ \def\Hy@pstringdef#1#2{%
+ \begingroup
+ \edef~{\string~}%
+ \xdef\Hy@gtemp{\pdf@escapestring{#2}}%
+ \endgroup
+ \let#1\Hy@gtemp
+ }%
+\fi
+\providecommand*{\XR@ext}{pdf}
+\Hy@setbreaklinks{true}
+\def\HyPat@ObjRef{%
+ [0-9]*[1-9][0-9]* 0 R%
+}
+
+\def\setpdflinkmargin#1{}%????
+\def\Hy@PutCatalog{}
+\Hy@WrapperDef\new@pdflink#1{%
+ \ifhmode
+ \@savsf\spacefactor
+ \fi
+ \Hy@SaveLastskip
+ \Hy@VerboseAnchor{#1}%
+ \Hy@pstringdef\Hy@pstringDest{\HyperDestNameFilter{#1}}%
+ \Hy@DestName\Hy@pstringDest\@pdfview
+ \Hy@RestoreLastskip
+ \ifhmode
+ \spacefactor\@savsf
+ \fi
+}
+\let\pdf@endanchor\@empty
+\def\Hy@DestName#1#2{%
+ \HINTdest name {#1}\relax
+}
+\providecommand*\@pdfborder{0 0 1}
+\providecommand*\@pdfborderstyle{}
+\def\Hy@undefinedname{UNDEFINED}
+\def\find@pdflink#1#2{%
+ \leavevmode
+ \protected@edef\Hy@testname{#2}%
+ \ifx\Hy@testname\@empty
+ \Hy@Warning{%
+ Empty destination name,\MessageBreak
+ using `\Hy@undefinedname'%
+ }%
+ \let\Hy@testname\Hy@undefinedname
+ \else
+ \Hy@pstringdef\Hy@testname{%
+ \expandafter\HyperDestNameFilter\expandafter{\Hy@testname}%
+ }%
+ \fi
+ \Hy@StartlinkName{%
+ %\ifHy@pdfa /F 4\fi
+% \Hy@setpdfborder
+% \Hy@setpdfhighlight
+% \ifx\CurrentBorderColor\relax
+% \else
+% /C[\CurrentBorderColor]%
+% \fi
+ }\Hy@testname
+ \expandafter\Hy@colorlink\csname @#1color\endcsname
+}
+\def\Hy@StartlinkName#1#2{%
+ \HINTstartlink goto name{#2}\relax
+}
+\def\close@pdflink{%
+ \Hy@endcolorlink
+ \Hy@VerboseLinkStop
+ \HINTendlink
+}
+\def\hyper@anchor#1{%
+ \new@pdflink{#1}\anchor@spot\pdf@endanchor
+}
+\def\hyper@anchorstart#1{%
+ \new@pdflink{#1}%
+ \Hy@activeanchortrue
+}
+\def\hyper@anchorend{%
+ \pdf@endanchor
+ \Hy@activeanchorfalse
+}
+\def\hyper@linkstart#1#2{%
+ \Hy@VerboseLinkStart{#1}{#2}%
+ \ltx@IfUndefined{@#1bordercolor}{%
+ \let\CurrentBorderColor\relax
+ }{%
+ \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
+ }%
+ \find@pdflink{#1}{#2}%
+}
+\def\hyper@linkend{\close@pdflink}
+\def\hyper@link#1#2#3{%
+ \Hy@VerboseLinkStart{#1}{#2}%
+ \ltx@IfUndefined{@#1bordercolor}{%
+ \let\CurrentBorderColor\relax
+ }{%
+ \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
+ }%
+ \find@pdflink{#1}{#2}#3\Hy@xspace@end
+ \close@pdflink
+}
+\let\CurrentBorderColor\@linkbordercolor
+\def\hyper@linkurl#1#2{}%
+\def\hyper@linkfile#1#2#3{}% anchor text, filename, linkname
+\def\@hyper@launch run:#1\\#2#3{}% filename, anchor text linkname
+\def\PDF@SetupDoc{}
+\def\PDF@FinishDoc{}%
+
+
+\def\Hy@writebookmark#1#2#3#4#5{%
+ % section number, text, label, level, file
+ \ifx\WriteBookmarks\relax%
+ \else
+ \HINToutline goto name{#3} depth #4 {#2}%
+ \fi
+}
+\def\Hy@currentbookmarklevel{0}
+\def\Hy@numberline#1{#1 }
+\def\Hy@OutlineRerunCheck{}
+\def\ReadBookmarks{}
+\def\Hy@OutlineName#1#2#3#4{}
+\ifHy@implicit
+\else
+ \expandafter\endinput
+\fi
+\newlength\Hy@SectionHShift
+\def\Hy@SectionAnchorHref#1{%
+ \ifx\protect\@typeset@protect
+ \Hy@@SectionAnchor{#1}%
+ \fi
+}
+\DeclareRobustCommand*{\Hy@@SectionAnchor}[1]{%
+ \leavevmode
+ \hbox to 0pt{%
+ \kern-\Hy@SectionHShift
+ \Hy@raisedlink{%
+ \hyper@anchorstart{#1}\hyper@anchorend
+ }%
+ \hss
+ }%
+}
+\@ifundefined{hyper@nopatch@sectioning}
+{
+\let\H@old@ssect\@ssect
+\def\@ssect#1#2#3#4#5{%
+ \Hy@MakeCurrentHrefAuto{section*}%
+ \setlength{\Hy@SectionHShift}{#1}%
+ \begingroup
+ \toks@{\H@old@ssect{#1}{#2}{#3}{#4}}%
+ \toks\tw@\expandafter{%
+ \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}%
+ #5%
+ }%
+ \edef\x{\endgroup
+ \the\toks@{\the\toks\tw@}%
+ }\x
+}
+\let\H@old@schapter\@schapter
+\def\@schapter#1{%
+ \begingroup
+ \let\@mkboth\@gobbletwo
+ \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
+ \Hy@raisedlink{%
+ \hyper@anchorstart{\@currentHref}\hyper@anchorend
+ }%
+ \endgroup
+ \H@old@schapter{#1}%
+}
+\ltx@IfUndefined{@chapter}{}{%
+ \let\Hy@org@chapter\@chapter
+ \def\@chapter{%
+ \def\Hy@next{%
+ \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
+ \Hy@raisedlink{%
+ \hyper@anchorstart{\@currentHref}\hyper@anchorend
+ }%
+ }%
+ \ifnum\c@secnumdepth>\m@ne
+ \ltx@IfUndefined{if@mainmatter}%
+ \iftrue{\csname if@mainmatter\endcsname}%
+ \let\Hy@next\relax
+ \fi
+ \fi
+ \Hy@next
+ \Hy@org@chapter
+ }%
+}
+\let\H@old@part\@part
+\@ifundefined{chapter}
+ {\let\Hy@secnum@part\z@}
+ {\let\Hy@secnum@part\m@ne}
+\def\@part{%
+ \ifnum\Hy@secnum@part>\c@secnumdepth
+ \phantomsection
+ \fi
+ \H@old@part
+}
+\let\H@old@spart\@spart
+\def\@spart#1{%
+ \Hy@MakeCurrentHrefAuto{part*}%
+ \Hy@raisedlink{%
+ \hyper@anchorstart{\@currentHref}\hyper@anchorend
+ }%
+ \H@old@spart{#1}%
+}
+\let\H@old@sect\@sect
+\def\@sect#1#2#3#4#5#6[#7]#8{%
+ \ifnum #2>\c@secnumdepth
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
+ {%
+ \Hy@MakeCurrentHrefAuto{section*}%
+ \setlength{\Hy@SectionHShift}{#3}%
+ \begingroup
+ \toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}%
+ \toks\tw@\expandafter{%
+ \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}%
+ #8%
+ }%
+ \edef\x{\endgroup
+ \the\toks@{\the\toks\tw@}%
+ }\x
+ }{%
+ \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
+ }%
+}
+}{}
+\expandafter\def\csname Parent-4\endcsname{}
+\expandafter\def\csname Parent-3\endcsname{}
+\expandafter\def\csname Parent-2\endcsname{}
+\expandafter\def\csname Parent-1\endcsname{}
+\expandafter\def\csname Parent0\endcsname{}
+\expandafter\def\csname Parent1\endcsname{}
+\expandafter\def\csname Parent2\endcsname{}
+\expandafter\def\csname Parent3\endcsname{}
+\expandafter\def\csname Parent4\endcsname{}
+\endinput
+%%
+%% End of file `hpdftex.def'.
diff --git a/macros/generic/hitex-def/hilatex.ini b/macros/generic/hitex-def/hilatex.ini
new file mode 100644
index 0000000000..af79c0ea02
--- /dev/null
+++ b/macros/generic/hitex-def/hilatex.ini
@@ -0,0 +1,9 @@
+% Karl Berry, 2022. Public domain.
+\scrollmode
+\let\dumpprimitiveforhilatex\dump % regain control after latex.ltx
+\let\dump\relax
+\input latex.ltx
+\input ifhint.tex
+\input hiltxpage.tex
+\dumpprimitiveforhilatex
+\endinput
diff --git a/macros/generic/hitex-def/hiltxpage.tex b/macros/generic/hitex-def/hiltxpage.tex
new file mode 100644
index 0000000000..c499b9d94b
--- /dev/null
+++ b/macros/generic/hitex-def/hiltxpage.tex
@@ -0,0 +1,76 @@
+% Copyright 2017-2022 Martin Ruckert, Hochschule Muenchen, Lothstrasse 64, 80336 Muenchen
+%
+% Permission is hereby granted, free of charge, to any person obtaining a copy
+% of this software and associated documentation files (the "Software"), to deal
+% in the Software without restriction, including without limitation the rights
+% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+% copies of the Software, and to permit persons to whom the Software is
+% furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be
+% included in all copies or substantial portions of the Software.
+%
+% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+% COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+% WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
+% OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+% THE SOFTWARE.
+%
+% Except as contained in this notice, the name of the copyright holders shall
+% not be used in advertising or otherwise to promote the sale, use or other
+% dealings in this Software without prior written authorization from the
+% copyright holders.
+
+\ifhint
+% Usefull settings for HINT files
+\pretolerance=1000
+\tolerance=2000
+\emergencystretch=16pt
+\overfullrule=0pt
+\textwidth=\hsize
+\textheight=\vsize
+% HINT page template for footnotes and topinserts
+\newinsert\topins
+\skip\topins=0pt % no space added when a topinsert is present
+\count\topins=1000 % magnification factor (1 to 1)
+\dimen\topins=\maxdimen % no limit per page
+\def\topinsert{\bgroup\setbox0\vbox\bgroup}
+\def\endinsert{\egroup
+ \insert\topins{%
+ \penalty100\splittopskip0pt\floatingpenalty0\box0\nobreak\bigskip\egroup}}
+\dimen0=1.25\hsize
+\advance\dimen0 by -9pt
+\dimen1=1.25\vsize
+\advance\dimen1 by -9pt
+\HINTsetpage1 = basic
+ priority 10
+ width \dimen0
+ height \dimen1
+{%
+ \maxdepth=4pt
+ \topskip=10pt
+ \HINTstream\topins %topinsert
+ \HINTstream0 %main text
+ \HINTstream\footins
+ \HINTsetstream\topins = %topinsert
+ preferred 0
+ {%
+ \HINTafter = {}
+ }
+ \HINTsetstream\footins =%footnotes
+ preferred 255
+ ratio 0
+ {%
+ \hsize=300pt
+ \count\footins=1000 % the magnification factor
+ \skip\footins=\bigskipamount % the extra space needed
+ \dimen\footins=\vsize % maximum height on the page
+ \HINTbefore =
+ {\vskip\skip\footins
+ \footnoterule}
+ \HINTafter = {}
+ }
+}% end page template
+\fi
diff --git a/macros/generic/hitex-def/hiplainpage.tex b/macros/generic/hitex-def/hiplainpage.tex
new file mode 100644
index 0000000000..4570af23dd
--- /dev/null
+++ b/macros/generic/hitex-def/hiplainpage.tex
@@ -0,0 +1,66 @@
+% Copyright 2017-2022 Martin Ruckert, Hochschule Muenchen, Lothstrasse 64, 80336 Muenchen
+%
+% Permission is hereby granted, free of charge, to any person obtaining a copy
+% of this software and associated documentation files (the "Software"), to deal
+% in the Software without restriction, including without limitation the rights
+% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+% copies of the Software, and to permit persons to whom the Software is
+% furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be
+% included in all copies or substantial portions of the Software.
+%
+% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+% COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+% WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
+% OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+% THE SOFTWARE.
+%
+% Except as contained in this notice, the name of the copyright holders shall
+% not be used in advertising or otherwise to promote the sale, use or other
+% dealings in this Software without prior written authorization from the
+% copyright holders.
+
+\ifhint
+% Usefull settings for HINT files
+ \pretolerance=1000
+ \tolerance=2000
+ \emergencystretch=16pt
+ \overfullrule=0pt
+% HINT page template for footnotes and topinserts
+ \dimen0=1.25\hsize
+ \advance\dimen0 by -9pt
+ \dimen1=1.25\vsize
+ \advance\dimen1 by -9pt
+\HINTsetpage1 = basic
+ priority 10
+ width \dimen0
+ height \dimen1
+{%
+ \maxdepth=4pt
+ \topskip=10pt
+ \HINTstream\topins %topinsert
+ \HINTstream0 %main text
+ \HINTstream\footins
+ \HINTsetstream\topins = %topinsert
+ preferred 0
+ {%
+ \HINTafter = {}
+ }
+ \HINTsetstream\footins =%footnotes
+ preferred 255
+ ratio 0
+ {%
+ \hsize=300pt
+ \count\footins=1000 % the magnification factor
+ \skip\footins=\bigskipamount % the extra space needed
+ \dimen\footins=\vsize % maximum height on the page
+ \HINTbefore =
+ {\vskip\skip\footins
+ \footnoterule}
+ \HINTafter = {}
+ }
+}% end page template
+\fi
diff --git a/macros/generic/hitex-def/hitex.ini b/macros/generic/hitex-def/hitex.ini
new file mode 100644
index 0000000000..206e378007
--- /dev/null
+++ b/macros/generic/hitex-def/hitex.ini
@@ -0,0 +1,7 @@
+% Karl Berry, 2022. Public domain.
+%\input plain.tex
+\input etex.src
+\input ifhint.tex
+\input hiplainpage.tex
+\dump
+\endinput
diff --git a/macros/generic/hitex-def/ifhint.tex b/macros/generic/hitex-def/ifhint.tex
new file mode 100644
index 0000000000..b27ed85919
--- /dev/null
+++ b/macros/generic/hitex-def/ifhint.tex
@@ -0,0 +1,9 @@
+% Public domain. Originally written by Martin Ruckert.
+
+\newif\ifhint
+% How to test for the HiTeX engine
+\expandafter\ifx\csname HINTversion\endcsname\relax
+ \hintfalse
+\else
+ \hinttrue
+\fi