將引用樣式從方括號改為正斜杠

將引用樣式從方括號改為正斜杠

在乳膠中,如何將引用樣式從方括號(例如“如[1]中的作者顯示...”)更改為正斜杠(“如/1/中的作者顯示...”)?

編輯回答下面的評論...我不知道引用樣式的名稱。這只是碩士學位論文格式的要求。

主文檔(dissertation.tex)看起來像這樣

\documentclass[a4paper,14pt]{extreport}
\input{packages}        
\input{styles}          
\input{data}            
\begin{document}
\input{introduction}   
\input{part1}          
\input{references}     
\end{document}

用於產生pdf的命令

latexmk -pdf -pdflatex="xelatex %O %S" dissertation

編輯2參考書目風格,風格在這裡定義(https://github.com/AndreyAkinshin/Russian-Phd-LaTeX-Dissertation-Template/blob/master/Synopsis/utf8gost71u.bst

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

答案1

您可以使用引用包:

\usepackage{cite}
\def\citeleft{/}
\def\citeright{/}

我認為這是不言自明的:)

答案2

為了完整起見,以下是基於natbib引文管理套件的解決方案:

\usepackage{natbib}
\bibpunct{/}{/}{;}{n}{}{,}

完整的結果微量元素:

在此輸入影像描述

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{myxyz.bib}
@article{xyz,
  author = "Anne Author",
  title  = "Thoughts",
  journal= "Circularity Today",
  volume = 1,
  number = 2,
  pages  = "3-4",
  year   = 5001,
}
\end{filecontents}

\bibliographystyle{plainnat} % no access to "utf8gost71u.bst"
\makeatletter
\renewcommand{\@biblabel}[1]{#1.}
\makeatother

\usepackage{natbib}
\bibpunct{/}{/}{;}{n}{}{,}

\begin{document}
\noindent
\cite{xyz}

\bibliography{myxyz}
\end{document}

相關內容