From 2905ee4c8de47cfdeea4787e465eb827f9b99e8b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 5 Dec 2019 03:00:50 +0000 Subject: CTAN sync 201912050300 --- macros/latex/contrib/oberdiek/fibnum.dtx | 263 +------------------------------ 1 file changed, 1 insertion(+), 262 deletions(-) (limited to 'macros/latex/contrib/oberdiek/fibnum.dtx') diff --git a/macros/latex/contrib/oberdiek/fibnum.dtx b/macros/latex/contrib/oberdiek/fibnum.dtx index 97c5591106..9c3f8f7986 100644 --- a/macros/latex/contrib/oberdiek/fibnum.dtx +++ b/macros/latex/contrib/oberdiek/fibnum.dtx @@ -67,8 +67,6 @@ % Installation: % TDS:tex/generic/oberdiek/fibnum.sty % TDS:doc/latex/oberdiek/fibnum.pdf -% TDS:doc/latex/oberdiek/test/fibnum-test1.tex -% TDS:doc/latex/oberdiek/test/fibnum-test-calc.tex % TDS:source/latex/oberdiek/fibnum.dtx % %<*ignore> @@ -219,21 +217,6 @@ and the derived files % \fi % % -% \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 \~} % % \GetFileInfo{fibnum.drv} % @@ -738,249 +721,7 @@ and the derived files \FibNum@AtEnd% % % \end{macrocode} -% -% \section{Test} -% -% \subsection{Catcode checks for loading} -% -% \begin{macrocode} -%<*test1> -% \end{macrocode} -% \begin{macrocode} -\catcode`\{=1 % -\catcode`\}=2 % -\catcode`\#=6 % -\catcode`\@=11 % -\expandafter\ifx\csname count@\endcsname\relax - \countdef\count@=255 % -\fi -\expandafter\ifx\csname @gobble\endcsname\relax - \long\def\@gobble#1{}% -\fi -\expandafter\ifx\csname @firstofone\endcsname\relax - \long\def\@firstofone#1{#1}% -\fi -\expandafter\ifx\csname loop\endcsname\relax - \expandafter\@firstofone -\else - \expandafter\@gobble -\fi -{% - \def\loop#1\repeat{% - \def\body{#1}% - \iterate - }% - \def\iterate{% - \body - \let\next\iterate - \else - \let\next\relax - \fi - \next - }% - \let\repeat=\fi -}% -\def\RestoreCatcodes{} -\count@=0 % -\loop - \edef\RestoreCatcodes{% - \RestoreCatcodes - \catcode\the\count@=\the\catcode\count@\relax - }% -\ifnum\count@<255 % - \advance\count@ 1 % -\repeat - -\def\RangeCatcodeInvalid#1#2{% - \count@=#1\relax - \loop - \catcode\count@=15 % - \ifnum\count@<#2\relax - \advance\count@ 1 % - \repeat -} -\def\RangeCatcodeCheck#1#2#3{% - \count@=#1\relax - \loop - \ifnum#3=\catcode\count@ - \else - \errmessage{% - Character \the\count@\space - with wrong catcode \the\catcode\count@\space - instead of \number#3% - }% - \fi - \ifnum\count@<#2\relax - \advance\count@ 1 % - \repeat -} -\def\space{ } -\expandafter\ifx\csname LoadCommand\endcsname\relax - \def\LoadCommand{\input fibnum.sty\relax}% -\fi -\def\Test{% - \RangeCatcodeInvalid{0}{47}% - \RangeCatcodeInvalid{58}{64}% - \RangeCatcodeInvalid{91}{96}% - \RangeCatcodeInvalid{123}{255}% - \catcode`\@=12 % - \catcode`\\=0 % - \catcode`\%=14 % - \LoadCommand - \RangeCatcodeCheck{0}{36}{15}% - \RangeCatcodeCheck{37}{37}{14}% - \RangeCatcodeCheck{38}{47}{15}% - \RangeCatcodeCheck{48}{57}{12}% - \RangeCatcodeCheck{58}{63}{15}% - \RangeCatcodeCheck{64}{64}{12}% - \RangeCatcodeCheck{65}{90}{11}% - \RangeCatcodeCheck{91}{91}{15}% - \RangeCatcodeCheck{92}{92}{0}% - \RangeCatcodeCheck{93}{96}{15}% - \RangeCatcodeCheck{97}{122}{11}% - \RangeCatcodeCheck{123}{255}{15}% - \RestoreCatcodes -} -\Test -\csname @@end\endcsname -\end -% \end{macrocode} -% \begin{macrocode} -% -% \end{macrocode} -% -% \subsection{Test calculations} -% -% \begin{macrocode} -%<*test-calc> -\catcode`\{=1 % -\catcode`\}=2 % -\catcode`\#=6 % -\catcode`\@=11 % -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname RequirePackage\endcsname\relax - \input fibnum.sty\relax -\else - \RequirePackage{fibnum}[2016/05/16]% -\fi -\def\TestSet{% - \test{0}{0}% - \test{1}{1}% - \test{2}{1}% - \test{3}{2}% - \test{4}{3}% - \test{5}{5}% - \test{6}{8}% - \test{7}{13}% - \test{8}{21}% - \test{9}{34}% - \test{10}{55}% - \test{11}{89}% - \test{12}{144}% - \test{13}{233}% - \test{14}{377}% - \test{15}{610}% - \test{16}{987}% - \test{17}{1597}% - \test{18}{2584}% - \test{19}{4181}% - \test{20}{6765}% - \test{21}{10946}% - \test{22}{17711}% - \test{23}{28657}% - \test{24}{46368}% - \test{25}{75025}% - \test{26}{121393}% - \test{27}{196418}% - \test{28}{317811}% - \test{29}{514229}% - \test{30}{832040}% - \test{31}{1346269}% - \test{32}{2178309}% - \test{33}{3524578}% - \test{34}{5702887}% - \test{35}{9227465}% - \test{36}{14930352}% - \test{37}{24157817}% - \test{38}{39088169}% - \test{39}{63245986}% - \test{40}{102334155}% - \test{41}{165580141}% - \test{42}{267914296}% - \test{43}{433494437}% - \test{44}{701408733}% - \test{45}{1134903170}% - \test{46}{1836311903}% - \test{47}{2971215073}% - \test{48}{4807526976}% - \test{49}{7778742049}% - \test{50}{12586269025}% - \test{51}{20365011074}% - \test{52}{32951280099}% - \test{53}{53316291173}% - \test{54}{86267571272}% - \test{55}{139583862445}% - \test{56}{225851433717}% - \test{57}{365435296162}% - \test{58}{591286729879}% - \test{59}{956722026041}% - \test{60}{1548008755920}% - \test{61}{2504730781961}% - \test{62}{4052739537881}% - \test{63}{6557470319842}% - \test{64}{10610209857723}% - \test{65}{17167680177565}% - \test{66}{27777890035288}% - \test{67}{44945570212853}% - \test{68}{72723460248141}% - \test{69}{117669030460994}% - \test{70}{190392490709135}% - \test{71}{308061521170129}% - \test{72}{498454011879264}% - \test{73}{806515533049393}% -} -\def\msg#{\immediate\write16} -\def\test#1#2{% - \TestAux{#1}{#2}% - \ifnum#1=0 % - \else - \ifodd#1 % - \TestAux{-#1}{#2}% - \else - \TestAux{-#1}{-#2}% - \fi - \fi -} -\def\TestAux#1#2{% - \def\Expected{#2}% - \expandafter\expandafter\expandafter\def - \expandafter\expandafter\expandafter\Result - \expandafter\expandafter\expandafter{% - \fibnum{#1}% - }% - \ltx@onelevel@sanitize\Result - \ifx\Result\Expected - \msg{* #1: ok.}% - \else - \msg{! fib(#1) = #2}% - \errmessage{fib(#1) <> \Result}% - \fi -} -\TestSet -\setbox0=\hbox{% - \msg{* PreCalc{73}}% - \fibnumPreCalc{73}% -} -\ifdim\wd0=0pt -\else - \errmessage{Unwanted stuff in PreCalc}% -\fi -\TestSet -\csname @@end\endcsname\end -% -% \end{macrocode} -% -% \section{Installation} +%% \section{Installation} % % \subsection{Download} % @@ -1029,8 +770,6 @@ and the derived files % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}} % fibnum.sty & tex/generic/oberdiek/fibnum.sty\\ % fibnum.pdf & doc/latex/oberdiek/fibnum.pdf\\ -% test/fibnum-test1.tex & doc/latex/oberdiek/test/fibnum-test1.tex\\ -% test/fibnum-test-calc.tex & doc/latex/oberdiek/test/fibnum-test-calc.tex\\ % fibnum.dtx & source/latex/oberdiek/fibnum.dtx\\ % \end{tabular}^^A % }^^A -- cgit v1.2.3