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


相关推荐
Xy-unu2 天前
[VL|RIS] RSRefSeg 2
论文阅读·人工智能·transformer·论文笔记·分割
迪娜学姐13 天前
顶级科学家的AI使用指南:从工具到合作伙伴
论文阅读·人工智能·chatgpt·prompt·论文笔记
迪娜学姐13 天前
GPT-5论文选题实测:如何从2000篇文献中提炼出3个可快速落地的高命中选题?
人工智能·gpt·chatgpt·prompt·论文笔记
想看雪的瓜13 天前
基因表达数据的K-M生存曲线的数据处理及绘制
论文阅读·论文笔记
TuringAcademy1 个月前
AAAI爆款:目标检测新范式,模块化设计封神之作
论文阅读·人工智能·目标检测·论文笔记
TuringAcademy1 个月前
CVPR优秀论文 | DashGaussian:在200秒内优化三维高斯点绘制
论文阅读·3d·论文笔记·cvpr
Johan song1 个月前
AR-Align-NN-2024
论文阅读·论文笔记
c7692 个月前
【文献笔记】ARS: Automatic Routing Solver with Large Language Models
人工智能·笔记·语言模型·自然语言处理·llm·论文笔记·cvrp
c7692 个月前
【文献笔记】From words to routes: Applying large language models to vehicle routing
人工智能·笔记·数学建模·语言模型·自然语言处理·llm·论文笔记
Jamence2 个月前
多模态大语言模型arxiv论文略读(157)
论文阅读·人工智能·语言模型·自然语言处理·论文笔记