如题,下面举个例子。 src: \labeltext{In general, xxxxxx xx xxx ff gh hh \cite{XXX} to cope with the djfh fvhkjgh hjfkjgh kjk kdfs;a dij costs of efhdkg hfldkjghg gh fkj hgfkjdh ems: white box side and df kdjf side.}\label{lbl:test} This is a example of quot: \ref{lbl:test} effect: In general, xxxxxx xx xxx ff gh hh [1] to cope with the djfh fvhkjgh hjfkjgh kjk kdfs;a dij costs of efhdkg hfldkjghg gh fkj hgfkjdh ems: white box side and df kdjf side. This is a example of quot: In general, xxxxxx xx xxx ff gh hh [1] to cope with the djfh fvhkjgh hjfkjgh kjk kdfs;a dij costs of efhdkg hfldkjghg gh fkj hgfkjdh ems: white box side and df kdjf side. 要求连编号一起引用,包括文献号,公式号,图片号等,而且是编译过的,要和原文完全一致。

2 回答2

1
也许这个贴子有帮助:Labeling a text and referencing it later,[https://tex.stackexchange.com/questions/271062/labeling-a-text-and-referencing-it-later](https://tex.stackexchange.com/questions/271062/labeling-a-text-and-referencing-it-later "https://tex.stackexchange.com/questions/271062/labeling-a-text-and-referencing-it-later")
0
群里大神 北京-欢迎到论坛 github.com/CTeX-org/forum 提问(690821573) 已经提供了一个答案,初步检测没有问题。 ```tex \makeatletter \newcommand{\labeltext}[1]{% #1% \protected@edef\@currentlabel{#1}% } \makeatother ``` 但是对 #1 的内容有要求,总的来说就是,不能改变全局状态。不能有 io 的副作用 如果只是文本、包含 ref 或 cite,不触发全局的字体、对齐、颜色、计数器变化,不包含章节标题,那么可以用.

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。