overleaf杂谈-Springer文献格式问题

目录

  • overleaf写作问题记录
  • 1.Latex中的%问题(文本变成灰色)
  • 2.Springer文献格式问题
    • [2.1 新建reference.bib](#2.1 新建reference.bib)
    • [2.2 谷歌学术搜索文章并引用](#2.2 谷歌学术搜索文章并引用)
    • [2.3 复制BibTex](#2.3 复制BibTex)
    • [2.4 复制进reference.bib](#2.4 复制进reference.bib)
    • [2.5 在sn-article.tex的\end{document}前添加语句](#2.5 在sn-article.tex的\end{document}前添加语句)
    • [2.6 引用文献](#2.6 引用文献)
    • [2.7 Springer模板参考文献注意事项](#2.7 Springer模板参考文献注意事项)
      • [2.7.1 引入包](#2.7.1 引入包)
      • [2.7.2 找到sn-jnl.cls文件,找到如下语句并修改](#2.7.2 找到sn-jnl.cls文件,找到如下语句并修改)
      • [2.7.3 找到sn-basic.bst文件1708-1761行(两个大写的SORT之间)进行修改:](#2.7.3 找到sn-basic.bst文件1708-1761行(两个大写的SORT之间)进行修改:)
      • [2.7.4 更改[1]为1.](#2.7.4 更改[1]为1.)
      • [2.7.5 编译结果](#2.7.5 编译结果)

overleaf写作问题记录

1.Latex中的%问题(文本变成灰色)

使用 : $\%$  转义%
比如: 2.5$\%$  1.1$\%$

2.Springer文献格式问题

2.1 新建reference.bib

2.2 谷歌学术搜索文章并引用

2.3 复制BibTex

2.4 复制进reference.bib

2.5 在sn-article.tex的\end{document}前添加语句

\bibliographystyle{sn-mathphys.bst}
\small\bibliography{reference}

2.6 引用文献

使用\cite{文献名字}

2.7 Springer模板参考文献注意事项

2.7.1 引入包

\usepackage{natbib}

2.7.2 找到sn-jnl.cls文件,找到如下语句并修改

\if@Spr@basic@refstyle%
%\if@Numbered@refstyle%
  \usepackage[numbers,sort&compress]{natbib}%
  \gdef\NumBib{YES}%
\else%
%\usepackage[authoryear]{natbib}%
%\gdef\NumBib{NO}%
  \usepackage[numbers,sort&compress]{natbib}%
  \gdef\NumBib{YES}%
\fi%
  \bibliographystyle{sn-basic}%
  \setlength{\bibsep}{1em}%
  \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}%
\fi%

2.7.3 找到sn-basic.bst文件1708-1761行(两个大写的SORT之间)进行修改:

% SORT   注释掉
STRINGS { last.label next.extra }
INTEGERS { last.extra.num number.label }
FUNCTION {initialize.extra.label.stuff}
{ #0 int.to.chr$ 'last.label :=
  "" 'next.extra :=
  #0 'last.extra.num :=
  #0 'number.label :=
}
FUNCTION {forward.pass}
{ last.label label =
    { last.extra.num #1 + 'last.extra.num :=
      last.extra.num int.to.chr$ 'extra.label :=
    }
    { "a" chr.to.int$ 'last.extra.num :=
      "" 'extra.label :=
      label 'last.label :=
    }
  if$
  number.label #1 + 'number.label :=
}
FUNCTION {reverse.pass}
{ next.extra "b" =
    { "a" 'extra.label := }
    'skip$
  if$
  extra.label 'next.extra :=
  extra.label
  duplicate$ empty$
    'skip$
    { "{\natexlab{" swap$ * "}}" * }
  if$
  'extra.label :=
  label extra.label * 'label :=
}
EXECUTE {initialize.extra.label.stuff}
ITERATE {forward.pass}
REVERSE {reverse.pass}
FUNCTION {bib.sort.order}
{ sort.label
  "    "
  *
  year field.or.null sortify
  *
  "    "
  *
  title field.or.null
  sort.format.title
  *
  #1 entry.max$ substring$
  'sort.key$ :=
}
ITERATE {bib.sort.order}
% SORT  注释掉

2.7.4 更改[1]为1.

在sn-article.tex末尾添加语句

\makeatletter
\renewcommand\@biblabel[1]{#1.}
\makeatother

2.7.5 编译结果


相关推荐
爱思德学术-IAAST5 天前
本省第一所!新大学,揭牌!
论文阅读·学习·学习方法·论文笔记·学术
迪娜学姐5 天前
Science:从小白到专家,高效读论文的必学技巧!
论文阅读·深度学习·论文笔记
英国翰思教育6 天前
谈谈英国论文写作复合句式的运用
论文阅读·深度学习·学习·学习方法·业界资讯·论文笔记
Milkha8 天前
论文速读记录 - 202409
nlp·论文笔记·排序
迪娜学姐10 天前
Nature:科研论文中正确使用ChatGPT的三个原则
论文阅读·人工智能·chatgpt·论文笔记
CHECKCMS10 天前
硕博论文写作如何完成一篇符合学术诚信的优秀论文
论文阅读·人工智能·深度学习·论文笔记
芙蓉姐姐陪你写论文10 天前
让你的论文脱颖而出!利用ChatGPT强化期刊论文讨论部分的深度分析
论文阅读·人工智能·深度学习·chatgpt·ai写作·论文笔记
资源分享活雷锋17 天前
AIGC论文查重是什么?
论文阅读·aigc·论文笔记
逐梦苍穹19 天前
速通LLaMA2:《Llama 2: Open Foundation and Fine-Tuned Chat Models》全文解读
论文阅读·人工智能·语言模型·llama·论文笔记·llama2
逐梦苍穹23 天前
速通GPT:Improving Language Understanding by Generative Pre-Training全文解读
论文阅读·人工智能·gpt·语言模型·论文笔记