Modifying an example of a model in TEX

xiaoxiao2021-03-06  66

Q: Now you need the sequence number of the directory of the map by "1", "2", ... how to solve it? A: Define a new command / framecaption that is specifically designed to use CAPTION for the Figure. / Makeatletter / def / figcaption {% / ifx / @ captype / @ undefined / @ latex @ error {/ noexpand / caption outside float} / @ ehd / expandafter / @ gobble / else / refstepcounter / @ captype / expandafter / @ firstofone / Fi {/ @ dblarg {/ @ figcaption / @ Captype}}} / long / def / @ figcaption # 1 [# 2] # 3 {% / par / addcontentsline {/ csname ext @ # 1 / endcsname} {# 1 }% {Fig. ~ / protect / numberline {/ csname the # 1 / endcsname} {/ ignorespaces # 2}}% / begingroup / @ parboxrestore / if @ minipage / @ setminipage / fi / normalsize / @ makecaption {/ csname fnum @ # 1 / endcsname} {/ ignorespaces # 3} / par / endgroup} / maketother If you still want to use / caption, you can also add judgment in the definition of / @ caption. / Maketletter / Def / AAA {figure} / long / def / @ CAPTION # 1 [# 2] # 3 {% / par / addcontentsline {/ csname ext @ # 1 / endcsname} {# 1}% {/ IFX / @ captype / aaa Fig. ~ / fi% / protect / numberline {/ csname the # 1 / endcsname} {/ ignorespaces # 2}}% / begingroup / @ parboxrestore / if @ minipage / @ setminipage / fi / normalsize / @ makecaption { / csname fnum @ # 1 / endcsname} {/ ignorespaces # 3} / par / endgroup} / maketother

转载请注明原文地址:https://www.9cbs.com/read-88117.html

New Post(0)