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 编译结果


相关推荐
大模型任我行1 天前
微软:小模型微调优化企业搜索
人工智能·语言模型·自然语言处理·论文笔记
c7694 天前
【文献笔记】Mixture-of-Agents Enhances Large Language Model Capabilities
人工智能·笔记·语言模型·自然语言处理·论文笔记·提示工程
檐下翻书1735 天前
产品开发跨职能流程图在线生成工具
大数据·人工智能·架构·流程图·论文笔记
檐下翻书17310 天前
客诉处理跨职能泳道图绘制教程 中文
架构·流程图·论文笔记
大模型任我行10 天前
美团:统一生成理解多模态大模型
人工智能·计算机视觉·语言模型·论文笔记
大模型任我行10 天前
人大:熵引导的LLM有限数据训练
人工智能·语言模型·自然语言处理·论文笔记
大模型任我行10 天前
Meta:LLM无监督提升科研能力
人工智能·语言模型·自然语言处理·论文笔记
甄心爱学习10 天前
EventTSF的训练与预测逻辑
论文笔记·时间序列
迪娜学姐11 天前
Nano Banana Pro科研绘图能力实测
论文阅读·人工智能·chatgpt·prompt·论文笔记
想看雪的瓜11 天前
Origin将普通点线面积图升级为3D点线瀑布图
论文阅读·论文笔记