beamer+biblatex:更改 \footcite 的 \footnotemark 样式

beamer+biblatex:更改 \footcite 的 \footnotemark 样式

是否可以更改(来自 biblatex)\footnotemark创建的样式\footcite,使其看起来更像引用符号?

更改引文标记

我想将我的参考文献保留为脚注,但我希望它们看起来更像实际的引用。

梅威瑟:

% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
% arara: clean: {files:[temp.aux, temp.bbl, temp.bib, temp.blg, temp.log, temp.nav, temp.out, temp.run.xml, temp.snm, temp.toc, temp-blx.bib]}

\documentclass{beamer}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{greenwade93,
    author  = "George D. Greenwade",
    title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
    year    = "1993",
    journal = "TUGBoat",
    volume  = "14",
    number  = "3",
    pages   = "342--351"
}
@book{goossens93,
    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The LaTeX Companion",
    year      = "1993",
    publisher = "Addison-Wesley",
    address   = "Reading, Massachusetts"
}
\end{filecontents}

\usepackage[english]{babel}
\usepackage[backend=bibtex, style=verbose]{biblatex}
\addbibresource{\jobname}

\begin{document}

\begin{frame}
Bla bla bla \footcite{greenwade93} Ble ble ble \footcite{goossens93}
\end{frame}

\end{document}

注 1:tex.stackexchange.com 上有很多关于更改脚注样式的问题。这是关于脚注标记本身的问题。

笔记2:我不会将脚注用于其他任何用途,因此我不介意直接更改脚注标记,而不管它是否由 footcite 创建。我只是找不到如何以这种方式自定义脚注标记...

答案1

由于您不使用脚注进行其他任何操作,因此您可以修改\@makefnmark(这就是所谓的\insertfootnotemark

% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
% arara: clean: {files:[temp.aux, temp.bbl, temp.bib, temp.blg, temp.log, temp.nav, temp.out, temp.run.xml, temp.snm, temp.toc, temp-blx.bib]}

\documentclass{beamer}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
    @article{greenwade93,
        author  = "George D. Greenwade",
        title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
        year    = "1993",
        journal = "TUGBoat",
        volume  = "14",
        number  = "3",
        pages   = "342--351"
    }
    @book{goossens93,
        author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
        title     = "The LaTeX Companion",
        year      = "1993",
        publisher = "Addison-Wesley",
        address   = "Reading, Massachusetts"
    }
\end{filecontents}

\usepackage[english]{babel}
\usepackage[backend=bibtex, style=verbose]{biblatex}
\addbibresource{\jobname}

\makeatletter
    \def\@makefnmark{\hbox{{{\usebeamercolor[fg]{footnote mark}\usebeamerfont*{footnote mark} [\@thefnmark]}}}}

    \def\@makefntext#1{%
        \def\insertfootnotetext{ #1}%
        \def\insertfootnotemark{\@makefnmark}%
        \usebeamertemplate***{footnote}}    
\makeatother

\begin{document}

    \begin{frame}
        Bla bla bla \footcite{greenwade93} Ble ble ble \footcite{goossens93}
    \end{frame}

\end{document}

在此处输入图片描述

相关内容