Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引用环境中添加定义/定理等 #303

Open
Ericcc0921 opened this issue May 14, 2023 · 1 comment
Open

引用环境中添加定义/定理等 #303

Ericcc0921 opened this issue May 14, 2023 · 1 comment

Comments

@Ericcc0921
Copy link

目前\cite命令 \cite[Definition 1]{label 1}的编译结果是 上标{[label 1],Definiton 1}的格式,请问该如何修改可以使定义 Definition 1和label 1一起括进方括号,[label 1, Definition 1 ].

@atxy-blip
Copy link
Contributor

一种 biblatex 方案:

\documentclass{fduthesis}
\fdusetup{style={auto-make-cover=false, bib-backend=biblatex}}
\begin{filecontents}{test.bib}
@article{a,title={A}}
\end{filecontents}
\addbibresource{test.bib}

% 定义自行使用的引用命令
\usepackage{etoolbox}
\AtEndPreamble{
  \DeclareCiteCommand{\mycite}[\mkbibsuperscript]
    {\mkbibleftborder\usebibmacro{cite:init}\usebibmacro{prenote}}
    {\usebibmacro{citeindex}\usebibmacro{cite:comp}}
    {}
    {\multicitedelim\usebibmacro{cite:dump}%
    ~\usebibmacro{postpages}\mkbibrightborder}
}

\begin{document}
特别的引用命令\mycite[definition 1]{a}
\printbibliography
\end{document}
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants