Question1:关于目录具体内容无法显示的问题。
answer:
参考自链接:https://blog.csdn.net/qq_41954105/article/details/106453008
具体操作步骤为:
- 1、
- 2、
找到:
"latex-workshop.latex.autoClean.run": "onBuild"
改为:
"latex-workshop.latex.autoClean.run": "onFailed",
保存即可,多运行几遍tex文件就可以出现目录了。
Question2 关于编译.bib文件的方式
- 1 参考步骤三创建.bib文件,先在VScode中编译.tex文件,然后打开终端,输入如下代码:
bibtex gougu #此处应为你的文件名.tex后缀省去,gougu为我的文件名
- 2 再运行两次.tex文件即可编译成功。
Question3 如何设置引用参考文献
answer:
- 1、在VSCode中装入编译.bib文件的插件:bibtexLangusge
- 2、创建一个.bib文件 例如math.bib 在文中写入如下格式代码
% This file was created with JabRef 2.6.
% Encoding: UTF8
@book{1,
author = {克莱因},
editor = {},
title = {古今数学思想},
publisher = {上海科学技术出版社},
year = {2002}
}
@article{2,
author = {曲安京},
title = {商高、赵爽与刘徽关于勾股定理的证明},
journal = {数学传播},
volume = {20},
number = {3},
year = {1998}
}
@book{3,
author = {矢野健太郎},
editor = {},
title = {几何的有名定理},
publisher = {上海科学技术出版社},
year = {1986}
}
- 3、在tex文件中添加如下代码:
正文中引用格式如下:
\usepackage{cite}
我国《周髀算经》载商高(约公元前 12 世纪)答周公问:\cite{1,2,3}
\bibliographystyle{plain}
\bibliography{math}