计算化学公社

标题: TexStudio怎么创建supplementary file并在正文引用supplementary file中的表和图? [打印本页]

作者
Author:
yihanxu    时间: 2019-8-10 10:11
标题: TexStudio怎么创建supplementary file并在正文引用supplementary file中的表和图?
各位老师好,
请问TexStudio怎么创建supplementary file并在正文引用supplementary file中的表格Table Sxxx和图Figure Sxxx?
谢谢。

作者
Author:
drkiwi    时间: 2019-8-11 04:01
You can use cross-reference in you main.tex file. load "xr" package into your main.tex and \label AFTER \caption in your supplemnetary.tex. Finally, write \cref{supp-fig:"label"} into appropriate section of main.tex.

see How to reference figures that are in the supplementary content in main text?

Sorry if I answer you in English.

Best
作者
Author:
yihanxu    时间: 2019-8-12 05:43
drkiwi 发表于 2019-8-10 14:01
You can use cross-reference in you main.tex file. load "xr" package into your main.tex and \label AF ...

谢谢您!
作者
Author:
yihanxu    时间: 2019-8-14 14:24
drkiwi 发表于 2019-8-10 14:01
You can use cross-reference in you main.tex file. load "xr" package into your main.tex and \label AF ...

您好,现在supplementary information中,图的序号是Figure 1, Figure 2 ... 请问怎样让图的序号为Figure S1, Figure S2, ...呢?

谢谢您。
作者
Author:
abin    时间: 2019-8-14 15:54
yihanxu 发表于 2019-8-14 14:24
您好,现在supplementary information中,图的序号是Figure 1, Figure 2 ... 请问怎样让图的序号为Figure ...

Try renewcommand.
For example.
\renewcommand{\thetable}{ESI-\arabic{table}}
\renewcommand{\thepage}{ESI-\arabic{page}}
\renewcommand{\thefigure}{ESI-\arabic{figure}}
作者
Author:
yihanxu    时间: 2019-8-15 01:43
本帖最后由 yihanxu 于 2019-8-14 11:45 编辑
abin 发表于 2019-8-14 01:54
Try renewcommand.
For example.
\renewcommand{\thetable}{ESI-\arabic{table}}

It works. Thank you!非常感谢您把表格和页码的command也post上来了!





欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3