“故事结束标记”

“故事结束标记”

我尝试在所有文档的最后一行添加一个黑色方块来标记文章的结束。

以下是我的 MWE:

\documentclass{article}
%\usepackage[french]{babel}
%\useppackage{lipsum}
\usepackage{MnSymbol}%
\newcommand\finisarticulus{\,$\blacksquare$}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.\finisarticulus{}
\end{document}

因此,我得到了一个很好的渲染:

在此处输入图片描述

但这种简单而理想化的情况并不总是出现。

如果我在最后使用目录、参考书目或词汇表,我无法控制关节尾会出现。

例如,对于参考书目,我有以下内容main.tex作为 MWE:

\documentclass{article}
\usepackage[backend=bibtex]{biblatex}
\usepackage{filecontents}
\usepackage{MnSymbol}%

\newcommand\finisarticulus{\,$\blacksquare$}

\bibliography{bibli.bib}

\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

\nocite{*}

\printbibliography\finisarticulus{}
\end{document}

这是他的bibli.bib

@article{einstein,
    author =       "Albert Einstein",
    title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
        [{On} the electrodynamics of moving bodies]",
    journal =      "Annalen der Physik",
    volume =       "322",
    number =       "10",
    pages =        "891--921",
    year =         "1905",
    DOI =          "http://dx.doi.org/10.1002/andp.19053221004"
}

@book{latexcompanion,
    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The \LaTeX\ Companion",
    year      = "1993",
    publisher = "Addison-Wesley",
    address   = "Reading, Massachusetts"
}

@misc{knuthwebsite,
    author    = "Donald Knuth",
    title     = "Knuth: Computers and Typesetting",
    url       = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html"
}

我使用 编译该项目xelatex main.tex; bibtex main ; xelatex main.tex,然后得到这个丑陋的渲染:

在此处输入图片描述

当我在想类似的事情时:

在此处输入图片描述

那么,是否可以强制 LaTeX 在文档的最后一个单词后添加一些内容,就好像这个单词是由目录、参考书目、词汇表或其他类型的宏生成的一样?然后如何做?

相关内容