Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove ltxcmds dependency #312

Merged
merged 6 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2023-11-14 Ulrike Fischer
* remove ltxcmds dependency in hluatex.dtx
* remove ltxcmds dependency in nameref.dtx (v2.55)
* remove ltxcmds dependency in backref.dtx (v1.44)

2023-11-11 David Carlisle
* remove ltxcmds dependency

2023-11-07 Ulrike Fischer
* improve thm code, issue 304
* insert socket for varwidth, issue 204 and 293
Expand Down
5 changes: 2 additions & 3 deletions backref.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
%<driver>\ProvidesFile{backref.drv}
% \fi
% \ProvidesFile{backref.dtx}
[2023-08-01 v1.43 Bibliographical back referencing]%
[2023-14-11 v1.44 Bibliographical back referencing]%
%
%
% \iffalse
Expand Down Expand Up @@ -304,7 +304,6 @@
% \begin{macrocode}
\RequirePackage{kvoptions}[2011/06/30]
\RequirePackage{kvsetkeys}[2009/07/30]
\RequirePackage{ltxcmds}[2009/12/12]
\SetupKeyvalOptions{%
family=backref,%
prefix=BR@,%
Expand All @@ -321,7 +320,7 @@
% default for the verbose switch.
% \begin{macrocode}
\DeclareBoolOption[%
\ltx@ifundefined{ifHy@verbose}{%
\@ifundefined{ifHy@verbose}{%
false%
}{%
\ifx\ifHy@verbose\iftrue true\else false\fi
Expand Down
100 changes: 50 additions & 50 deletions hluatex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\pdf@ifdraftmode{%
\let\Hy@PutCatalog\ltx@gobble
\let\Hy@PutCatalog\@gobble
}{%
\let\Hy@PutCatalog\pdfcatalog
}
Expand Down Expand Up @@ -105,7 +105,7 @@
|ifx|\#2|\%%
|else
\\%
|ltx@ReturnAfterFi{%
|Hy@ReturnAfterFi{%
|Hy@ExchangeBackslash#2|@nil
}%
|fi
Expand All @@ -116,7 +116,7 @@
\ifx\\#2\\%
\else
\@backslashchar(%
\ltx@ReturnAfterFi{%
\Hy@ReturnAfterFi{%
\Hy@ExchangeLeftParenthesis#2\@nil
}%
\fi
Expand All @@ -126,7 +126,7 @@
\ifx\\#2\\%
\else
\@backslashchar)%
\ltx@ReturnAfterFi{%
\Hy@ReturnAfterFi{%
\Hy@ExchangeRightParenthesis#2\@nil
}%
\fi
Expand Down Expand Up @@ -156,7 +156,7 @@
\fi
\ifHy@setpdfversion
\ifnum\Hy@pdf@majorminor@version<105 %
\ltx@IfUndefined{pdfobjcompresslevel}{%
\@ifundefined{pdfobjcompresslevel}{%
}{%
\ifHy@verbose
\Hy@InfoNoLine{%
Expand All @@ -166,19 +166,19 @@
\Hy@pdf@majorversion.\Hy@pdf@minorversion
}%
\fi
\pdfobjcompresslevel=\ltx@zero
\pdfobjcompresslevel=\z@
}%
\fi
\ifnum\Hy@pdfmajorminor@version=\Hy@pdf@majorminor@version\relax
\else
\let\Hy@temp\ltx@empty
\let\Hy@temp\@empty
\def\Hy@temp@A#1#2{%
\ifnum#1>\ltx@zero
\ifnum#1>\z@
\edef\Hy@temp{%
\Hy@temp
\space\space
\the#1\space #2%
\ifnum#1=\ltx@one\else s\fi
\ifnum#1=\@ne\else s\fi
\MessageBreak
}%
\fi
Expand All @@ -187,15 +187,15 @@
\Hy@temp@A\lastsavedboxresourceindex{form XObject}%
\Hy@temp@A\lastsavedimageresourceindex{image XObject}%
\Hy@temp@A\pdflastannot{annotation}%
\ltx@IfUndefined{pdflastlink}{%
\@ifundefined{pdflastlink}{%
}{%
\Hy@temp@A\pdflastlink{link}%
}%
\ifx\Hy@temp\ltx@empty
\ifx\Hy@temp\@empty
\Hy@pdfmajorversion=\Hy@pdf@majorversion\relax
\Hy@pdfminorversion=\Hy@pdf@minorversion\relax
\else
\let\Hy@temp@A\ltx@empty
\let\Hy@temp@A\@empty
\ifnum\Hy@pdf@majorminor@version=104 %
\IfFileExists{pdf14.sty}{%
\def\Hy@temp@A{%
Expand All @@ -218,7 +218,7 @@
\expandafter\string\Hy@pdfminorversion=\Hy@pdf@minorversion
\string\relax
\ifnum\Hy@pdf@majorminor@version<105 %
\ltx@ifundefined{pdfobjcompresslevel}{%
\@ifundefined{pdfobjcompresslevel}{%
}{%
\MessageBreak
\space\space
Expand Down Expand Up @@ -426,7 +426,7 @@
}
\def\hyper@linkstart#1#2{%
\Hy@VerboseLinkStart{#1}{#2}%
\ltx@IfUndefined{@#1bordercolor}{%
\@ifundefined{@#1bordercolor}{%
\let\CurrentBorderColor\relax
}{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
Expand All @@ -436,7 +436,7 @@
\def\hyper@linkend{\close@pdflink}
\def\hyper@link#1#2#3{%
\Hy@VerboseLinkStart{#1}{#2}%
\ltx@IfUndefined{@#1bordercolor}{%
\@ifundefined{@#1bordercolor}{%
\let\CurrentBorderColor\relax
}{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
Expand Down Expand Up @@ -742,7 +742,7 @@
\fi
\fi
}{%
\ltx@IfUndefined{stockwidth}{%
\@ifundefined{stockwidth}{%
\ifdim\paperwidth>\z@
\setlength{\pagewidth}{\paperwidth}%
\fi
Expand Down Expand Up @@ -813,8 +813,8 @@
\the\lastsavedboxresourceindex\space 0 R%
}%
}%
\let\HyField@afields\ltx@empty
\let\HyField@cofields\ltx@empty
\let\HyField@afields\@empty
\let\HyField@cofields\@empty
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdflastlink\endcsname\relax
\let\HyField@AddToFields\relax
Expand All @@ -826,37 +826,37 @@
but other PDF viewers might complain%
}%
\else
\let\HyField@AuxAddToFields\ltx@gobble
\let\HyField@AuxAddToCoFields\ltx@gobbletwo
\let\HyField@AuxAddToFields\@gobble
\let\HyField@AuxAddToCoFields\@gobbletwo
\def\HyField@AfterAuxOpen{\Hy@AtBeginDocument}%
\def\HyField@ABD@AuxAddToCoFields#1#2{%
\begingroup
\Hy@safe@activestrue
\let\ltx@secondoftwo\relax
\ifx\HyField@cofields\ltx@empty
\let\@secondoftwo\relax
\ifx\HyField@cofields\@empty
\xdef\HyField@cofields{%
\ltx@secondoftwo{#1}{ #2 0 R}%
\@secondoftwo{#1}{ #2 0 R}%
}%
\else
\let\ltx@secondoftwo\relax
\let\@secondoftwo\relax
\def\HyField@AddCoField##1##2##3{%
\ifx##1\ltx@empty
\ltx@secondoftwo{#1}{ #2 0 R}%
\expandafter\ltx@gobble
\ifx##1\@empty
\@secondoftwo{#1}{ #2 0 R}%
\expandafter\@gobble
\else
\ifnum\pdf@strcmp{##2}{#1}>\ltx@zero
\ltx@secondoftwo{#1}{ #2 0 R}%
\ltx@secondoftwo{##2}{##3}%
\expandafter\expandafter\expandafter\ltx@gobble
\ifnum\pdf@strcmp{##2}{#1}>\z@
\@secondoftwo{#1}{ #2 0 R}%
\@secondoftwo{##2}{##3}%
\expandafter\expandafter\expandafter\@gobble
\else
\ltx@secondoftwo{##2}{##3}%
\@secondoftwo{##2}{##3}%
\fi
\fi
\HyField@AddCoField
}%
\xdef\HyField@cofields{%
\expandafter\HyField@AddCoField
\HyField@cofields\ltx@empty\ltx@empty\ltx@empty
\HyField@cofields\@empty\@empty\@empty
}%
\fi
\endgroup
Expand Down Expand Up @@ -887,7 +887,7 @@
\expandafter\HyField@@AddToFields\expandafter{%
\the\pdflastlink
}%
\ifx\Fld@calculate@code\ltx@empty
\ifx\Fld@calculate@code\@empty
\else
\begingroup
\Hy@safe@activestrue
Expand Down Expand Up @@ -928,7 +928,7 @@
\immediate\pdfobj{%
<<%
/Fields[\HyField@afields]%
\ifx\HyField@cofields\ltx@empty
\ifx\HyField@cofields\@empty
\else
/CO[\romannumeral-`\Q\HyField@cofields]%
\fi
Expand Down Expand Up @@ -968,16 +968,16 @@
\fbox{\textcolor{yellow}{\textsf{SubmitP}}}%
}{SubmitP}%
}
\let\@endForm\ltx@empty
\let\HyAnn@AbsPageLabel\ltx@empty
\let\Fld@pageobjref\ltx@empty
\ltx@IfUndefined{pdfpageref}{%
\let\@endForm\@empty
\let\HyAnn@AbsPageLabel\@empty
\let\Fld@pageobjref\@empty
\@ifundefined{pdfpageref}{%
}{%
\ltx@ifpackageloaded{zref-abspage}{%
\@ifpackageloaded{zref-abspage}{%
\newcount\HyAnn@Count
\HyAnn@Count=\ltx@zero
\HyAnn@Count=\z@
\def\HyAnn@AbsPageLabel{%
\global\advance\HyAnn@Count by\ltx@one
\global\advance\HyAnn@Count by\@ne
\zref@labelbyprops{HyAnn@\the\HyAnn@Count}{abspage}%
\zref@refused{HyAnn@\the\HyAnn@Count}%
}%
Expand All @@ -997,7 +997,7 @@
}
\def\@TextField[#1]#2{% parameters, label
\def\Fld@name{#2}%
\let\Fld@default\ltx@empty
\let\Fld@default\@empty
\let\Fld@value\@empty
\def\Fld@width{\DefaultWidthofText}%
\def\Fld@height{%
Expand Down Expand Up @@ -1317,7 +1317,7 @@
\else
\expandafter
\Hy@pstringdef\csname Hy@esc@\string#2\endcsname{#2}%
\ltx@ReturnAfterFi{%
\Hy@ReturnAfterFi{%
\Hy@@escapeform#3\@nil
}%
\fi
Expand Down Expand Up @@ -1750,9 +1750,9 @@
\def\HyPsd@SanitizeOut@BraceLeft#1(#2\@nil{%
#1%
\ifx\\#2\\%
\expandafter\ltx@gobble
\expandafter\@gobble
\else
\expandafter\ltx@firstofone
\expandafter\@firstofone
\fi
{%
\string\173%
Expand All @@ -1762,9 +1762,9 @@
\def\HyPsd@SanitizeOut@BraceRight#1)#2\@nil{%
#1%
\ifx\\#2\\%
\expandafter\ltx@gobble
\expandafter\@gobble
\else
\expandafter\ltx@firstofone
\expandafter\@firstofone
\fi
{%
\string\175%
Expand Down Expand Up @@ -1913,7 +1913,7 @@
\endgroup
\H@old@schapter{#1}%
}
\ltx@IfUndefined{@chapter}{}{%
\@ifundefined{@chapter}{}{%
\let\Hy@org@chapter\@chapter
\def\@chapter{%
\def\Hy@next{%
Expand All @@ -1923,7 +1923,7 @@
}%
}%
\ifnum\c@secnumdepth>\m@ne
\ltx@IfUndefined{if@mainmatter}%
\@ifundefined{if@mainmatter}%
\iftrue{\csname if@mainmatter\endcsname}%
\let\Hy@next\relax
\fi
Expand Down
Loading