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


相关推荐
小殊小殊6 天前
【论文笔记】Video-RAG:开源视频理解模型也能媲美GPT-4o
人工智能·语音识别·论文笔记
檐下翻书1738 天前
从入门到精通:流程图制作学习路径规划
论文阅读·人工智能·学习·算法·流程图·论文笔记
檐下翻书17310 天前
流程图配色与美化:让你的图表会“说话”
论文阅读·人工智能·信息可视化·流程图·论文笔记
想看雪的瓜13 天前
Origin将2D普通的XPS曲线图升级为三维XPS瀑布图
论文阅读·论文笔记
程途拾光15814 天前
用流程图优化工作流:快速识别冗余环节,提升效率
大数据·论文阅读·人工智能·流程图·论文笔记
依夏c1 个月前
[论文笔记•(多智能体)]LLMs Can Simulate Standardized Patients via Agent Coevolution
论文阅读·论文笔记
森诺Alyson1 个月前
前沿技术借鉴研讨-2025.10.28(超声数据)
论文阅读·经验分享·深度学习·论文笔记·论文讨论
Dream_言十1 个月前
光通信|高效动态的自由空间-光纤CVB通信
学习·论文笔记·1024程序员节
hans汉斯1 个月前
【计算机科学与应用】基于多光谱成像与边缘计算的物流安全风险预警模式及系统实现
大数据·数据库·人工智能·设计模式·机器人·边缘计算·论文笔记
依夏c1 个月前
FACT-AUDIT
论文阅读·论文笔记