我得到了一个LaTeX文档,使用下面的代码编辑图形和表格。在LaTeX中使用单一计数的图形和表格
\makeatletter
\newcounter{unisequence}
\def\ucaption{
\ifx\@captype\@undefined
\@[email protected]{\noexpand\ucaption outside float}\@ehd
\expandafter\@gobble
\else
\refstepcounter{unisequence}
\expandafter\@firstofone
\fi
{\@dblarg{\@caption\@captype}}
}
\def\thetable{\@arabic\[email protected]}
\def\thefigure{\@arabic\[email protected]}
\makeatother
这种运作良好,给一个计数器表格和数字,但字幕的,我发现,如果我在这个代码生成.PDF点击任何标题数字,我总是回到第一图表或文件中的表格而不是我想要的,例如点击表格[3]将带我到表1。
有谁知道如何解决这个问题?或者任何人都可以建议替代方案?
我是LaTeX的新手。
谢谢
摩根先生。
该解决方案忽略[每章/章节编号](http://tex.stackexchange.com/questions/28333/continuous-v-per-chapter-section-numbering-of-figures-tables-and-other -docume)。 – 2016-10-04 22:32:36
为什么不只是'\ makeatletter \ let \ c @ table \ c @图 \ makeatother'?它似乎完全适合我,并且不会破坏我在这份160页的论文草案中设置的其他内容:每章编号,带subcaption包的子图,超链接... – Blaisorblade 2017-04-06 16:01:02
编辑:也是'\让\ ftype @ table \ ftype @ figure'来自http://stackoverflow.com/questions/3865036/using-a-single-count-for-figures-and-tables-in-latex/7771554?noredirect=1#comment73589319_7771554使事情变得更好。 – Blaisorblade 2017-04-06 21:21:50