latex编译后不生成*.aux文件

本文解决在使用LaTeX模板引用其他bib格式参考文献时遇到的问题,包括生成*.aux文件的方法、调整参考文献标题的代码,以及解决参考文献左对齐的技巧。

参考:*.aux file not generated

问题:在使用新的latex模版引用其它bib格式的参考文献时,不出现*.aux文件,并提示如下错误:

I can't open file name *.aux

解决方法:
1. 首先在document的最后加入:

\bibliographystyle{IEEEtran}
\bibliography{IEEEabrv,refalias,reference}

同时在文中使用\cite{}应该一篇文献。

2.这时无法生成*.aux文件,那么只需要在文档的头部加入:

\let\nofiles\relax % 加入这一行即可,关键的一行
\documentclass[margin]{res}% Resume documentclass (http://ctan.org/pkg/res)
...

3.通过上面的步骤,再编译后,reference已经出来了,但是reference标题却是左对齐,其它section都是居中对齐的,故需要调整下,参考Format Bibliography Title,即加入下面的代码即可:

\renewcommand{\refname}{\centering References}

真是太神奇了,世界又美好了点!

{ "workbench.colorTheme": "Visual Studio Dark", "editor.formatOnPaste": true, "editor.formatOnSave": true, "latex-workshop.latex.tools": [ { "name": "pdflatex", "command": "pdflatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOCFILE%" ] }, { "name": "xelatex", "command": "xelatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOCFILE%" ] }, { "name": "bibtex", "command": "bibtex", "args": [ "%DOCFILE%" ] } ], "latex-workshop.latex.recipes": [ { "name": "xelatex", "tools": [ "xelatex" ], }, { "name": "pdflatex", "tools": [ "pdflatex" ] }, { "name": "xe->bib->xe->xe", "tools": [ "xelatex", "bibtex", "xelatex", "xelatex" ] }, { "name": "pdf->bib->pdf->pdf", "tools": [ "pdflatex", "bibtex", "pdflatex", "pdflatex" ] } ], "latex-workshop.latex.clean.fileTypes": [ "*.aux", "*.bbl", "*.blg", "*.idx", "*.ind", "*.lof", "*.lot", "*.out", "*.toc", "*.acn", "*.acr", "*.alg", "*.glg", "*.glo", "*.gls", "*.ist", "*.fls", "*.log", "*.fdb_latexmk" ], //tex文件浏览器,可选项为"none" "browser" "tab" "external" "latex-workshop.view.pdf.viewer": "tab", //自动编译tex文件 "latex-workshop.latex.autoBuild.run": "onFileChange", //显示内容菜单:(1)编译文件;(2)定位游标 "latex-workshop.showContextMenu": true, //显示错误 "latex-workshop.message.error.show": false, //显示警告 "latex-workshop.message.warning.show": false, //从使用的包中自动补全命令和环境 "latex-workshop.intellisense.package.enabled": true, //设置为never,为清除辅助文件 "latex-workshop.latex.autoClean.run": "never", //设置vscode编译tex文档时的默认编译链 "latex-workshop.latex.recipe.default": "lastUsed", // 用于反向同步的内部查看器的键绑定。ctrl/cmd +点击(默认)或双击 "latex-workshop.view.pdf.internal.synctex.keybinding": "double-click", }
最新发布
08-01
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值