mohuangrui / ucasthesis

LaTeX Thesis Template for the University of Chinese Academy of Sciences
3.47k stars 935 forks source link

能不能提供一份IEEE引用格式的版本,老师非让用IEEE的参考文献格式且我的论文有大量公式,移植到word的难度太大了。 #253

Closed MelO-BeE closed 4 years ago

MelO-BeE commented 4 years ago

检查 / Check

编译环境 / Compilation Environment

描述问题 / Problem Description

问题描述:

日志文件 / .log file

将编译生成的 .log 文件拖入下行空白处:

问题截图 / Screenshots

将出现的问题或需要实现的效果的 截图照片 拖入下行空白处:

最小工作示例(MWE) / Minimal Working Example

MelO-BeE commented 4 years ago

谢谢了!

happyTonakai commented 4 years ago

texlive 里自带,善用百度

MelO-BeE commented 4 years ago

texlive 里自带,善用百度

查了好久,也没整太明白,还毁了好几个文档,幸好有备份(T——T)

happyTonakai commented 4 years ago
  1. 复制 texlive\2019\texmf-dist\bibtex\bst\IEEEtran\IEEEtran.bstucasthesis\Biblio
  2. ucasthesis\Style\artatex.sty\bibliographystyle{Biblio/gbt7714-unsrt}\bibliographystyle{Biblio/gbt7714-plain} 修改为 \bibliographystyle{Biblio/IEEEtran}
MelO-BeE commented 4 years ago
  1. 复制 texlive\2019\texmf-dist\bibtex\bst\IEEEtran\IEEEtran.bstucasthesis\Biblio
  2. ucasthesis\Style\artatex.sty\bibliographystyle{Biblio/gbt7714-unsrt}\bibliographystyle{Biblio/gbt7714-plain} 修改为 \bibliographystyle{Biblio/IEEEtran}

大佬,并不管用。。。

happyTonakai commented 4 years ago

我这里是有效的,你有按照 xelatex -> bibtex -> xelatex -> xelatex 的顺序编译吗

hushidong commented 4 years ago
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

把         \bibliographystyle{Biblio/IEEEtran}改为 \bibliographystyle{IEEEtran}
MelO-BeE commented 4 years ago

我这里是有效的,你有按照 xelatex -> bibtex -> xelatex -> xelatex 的顺序编译吗

Package natbib Error: Bibliography not compatible with author-year citations. ...and\NAT@force@numbers{}\NAT@force@numbers

MelO-BeE commented 4 years ago

font{ line-height: 1.6; } ul,ol{ padding-left: 20px; list-style-position: inside; } 把         \bibliographystyle{Biblio/IEEEtran}改为 \bibliographystyle{IEEEtran}

大佬,上面的代码插哪里?

hushidong commented 4 years ago

Thesis.tex 中设置\usepackage[bibtex,numbers,list]{Style/artratex}

artratex.sty中设置

%- %-> Bibliography processor and package %- %- Bibtex processor + natbib package \ifartx@bibtex% % Set punctuation and mode of citation style \newcommand{\bibstyle@super}{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}}% \newcommand{\bibstyle@numbers}{\bibpunct{[}{]}{,}{n}{,}{,}}% \newcommand{\bibstyle@authoryear}{\bibpunct{(}{)}{;}{a}{,}{,}}% \newcommand{\bibstyle@alpha}{\bibpunct{[}{]}{,}{n}{,}{,}}% \ifartx@numbers% enable numbered citation style \RequirePackage[sort&compress]{natbib}% numbered citation mode \ifartx@super% enable superscripted citation style \citestyle{super}% \else \citestyle{numbers}% \fi \bibliographystyle{IEEEtran}% numbered scheme \fi \ifartx@authoryear% enable author year citation style \RequirePackage{natbib}% author year citation mode \citestyle{authoryear}% \bibliographystyle{Biblio/gbt7714-plain}% author year scheme \fi \ifartx@alpha% enable alpha citation style \RequirePackage[square,comma,numbers]{natbib}% alpha citation mode \bibliographystyle{alpha}% alpha scheme \fi \providecommand{\citetns}[2][]{% text embedded \citet in superscripted mode \begingroup\citestyle{numbers}\citet[#1]{#2}\endgroup% } \providecommand{\citepns}[2][]{% text embedded \citep in superscripted mode \begingroup\citestyle{numbers}\citep[#1]{#2}\endgroup% } \fi

MelO-BeE commented 4 years ago

Thesis.tex 中设置\usepackage[bibtex,numbers,list]{Style/artratex}

artratex.sty中设置

%- %-> Bibliography processor and package %- %- Bibtex processor + natbib package \ifartx@bibtex% % Set punctuation and mode of citation style \newcommand{\bibstyle@super}{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}}% \newcommand{\bibstyle@numbers}{\bibpunct{[}{]}{,}{n}{,}{,}}% \newcommand{\bibstyle@authoryear}{\bibpunct{(}{)}{;}{a}{,}{,}}% \newcommand{\bibstyle@alpha}{\bibpunct{[}{]}{,}{n}{,}{,}}% \ifartx@numbers% enable numbered citation style \RequirePackage[sort&compress]{natbib}% numbered citation mode \ifartx@super% enable superscripted citation style \citestyle{super}% \else \citestyle{numbers}% \fi \bibliographystyle{IEEEtran}% numbered scheme \fi \ifartx@authoryear% enable author year citation style \RequirePackage{natbib}% author year citation mode \citestyle{authoryear}% \bibliographystyle{Biblio/gbt7714-plain}% author year scheme \fi \ifartx@alpha% enable alpha citation style \RequirePackage[square,comma,numbers]{natbib}% alpha citation mode \bibliographystyle{alpha}% alpha scheme \fi \providecommand{\citetns}[2][]{% text embedded \citet in superscripted mode \begingroup\citestyle{numbers}\citet[#1]{#2}\endgroup% } \providecommand{\citepns}[2][]{% text embedded \citep in superscripted mode \begingroup\citestyle{numbers}\citep[#1]{#2}\endgroup% } \fi

大佬稳!!!

hushidong commented 4 years ago

ok了?

MelO-BeE commented 4 years ago

ok了?

对的!谢谢大佬!

我这里是有效的,你有按照 xelatex -> bibtex -> xelatex -> xelatex 的顺序编译吗

大佬,你的方法也可以!谢谢大佬!