guess \writetocentry should not write empty third arg; all this stale wrt real eplain anyway, so just duplicate code - teximpatient.git -

summary refs log tree commit diff
diff options
context:
space:
mode:
authorkarl <>2014年10月21日 22:53:54 +0000
committerkarl <>2014年10月21日 22:53:54 +0000
commita817b3c824d9dcc60bc0e70e204f79ed3b95abce (patch)
tree545876ec0429ef209c23a7637c20f7bc9fe9871c
parentf2de11e2f1054a220ee76e1cedb00cf8d2a09484 (diff)
downloadteximpatient-a817b3c824d9dcc60bc0e70e204f79ed3b95abce.tar.gz
guess \writetocentry should not write empty third arg; all this stale wrt real eplain anyway, so just duplicate code
Diffstat
-rw-r--r--teximpatient/usermacs.tex 9
1 files changed, 7 insertions, 2 deletions
diff --git a/teximpatient/usermacs.tex b/teximpatient/usermacs.tex
index e19d7b5..dbf78dd 100644
--- a/teximpatient/usermacs.tex
+++ b/teximpatient/usermacs.tex
@@ -629,8 +629,13 @@ You can also |\write| to |\tocfile| yourself.
\tocfileopenedtrue
\immediate\openout\tocfile = \jobname.toc
\fi}%
-\def\writetocentry#1#2{%
- \writenumberedtocentry{#1}{#2}\empty}%
+\def\writetocentry#1#2{\ifrewritetocfile
+ \opentocfile
+ \write\tocfile{%
+ \expandafter\noexpand \csname toc#1entry\endcsname
+ {#2}{\folio}}%
+\fi\ignorespaces}%
+%
\def\writenumberedtocentry#1#2#3{\ifrewritetocfile
\opentocfile
\write\tocfile{%
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月01日 11:08:52 +0000

AltStyle によって変換されたページ (->オリジナル) /