
私はついに諦めて、少なくとも論文に関しては、biblatex を使うことにしました。私は上付き数字参照スタイルを使っていますが、うまく機能しています。しかし、「データは参考文献 1 から取得」のようなことを言えると便利なこともあります。cite{some_ref}
、「...参考文献 [1] から」と表示されます。マニュアルによると、これは設計上の仕様ですが、これをBibTexで行う良い方法-- では、これを再現するにはどうすればいいのでしょうか?
また、(回答は関連していると思いますが)私の参考文献には、引用番号が角括弧で囲まれて記載されています。
私は、bibtex を使い続けていればよかったと後悔し始めています。文書の途中で切り替える手間に比べれば、biblatex を使用する利点は小さいように思えます。
答え1
試してみるといいかもしれません
\DeclareFieldFormat{labelnumberwidth}{#1}
\DeclareFieldFormat{shorthandwidth}{#1}
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareMultiCiteCommand{\cites}{\cite}{\multicitedelim}
あなたの序文の中で。
最初の 2 つのコマンドは、参考文献の数字の周囲に括弧がないことを確認します。2 番目のブロックは、\cite{}
(およびそのマルチサイト バージョン\cites{}
。\parencite{}
ただし、括弧はまだ残っています)から括弧を削除します。
\documentclass[english]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=numeric, backend=biber]{biblatex}
\usepackage{hyperref}
\addbibresource{biblatex-examples.bib}
\DeclareFieldFormat{labelnumberwidth}{#1}
\DeclareFieldFormat{shorthandwidth}{#1}
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareMultiCiteCommand{\cites}{\cite}{\multicitedelim}
\begin{document}
See \cite{wilde} as noted before\supercite{wilde}.
\printbibliography
\end{document}
生産する
OPは を使用しているようですのでnumeric-comp
、その修正方法は
\DeclareCiteCommand{\cite}
{\usebibmacro{cite:init}%
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}%
\usebibmacro{postnote}}
上記の再定義の代わりに\cite
。
それnumeric-verb
は
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}