脚注中的参考缩进和大小

脚注中的参考缩进和大小

以下 MWE 说明了我如何使参考文献出现在脚注中以及文档末尾的参考部分中,并使用相同的编号。我在上一个问题,所有功劳都归于约瑟夫·赖特最初编写它。但是,我真的很想删除脚注中的缩进并减小字体大小,而无需\scriptsize重新定义,\footnotesize因为我在其他地方使用它。有人能帮我吗?提前谢谢!

\documentclass[12pt,twoside]{report}
\usepackage[a4paper,width=165mm,top=25mm,bottom=25mm]{geometry}
\usepackage[style=chem-acs,backend=bibtex,sorting=none,maxnames=99]{biblatex}
\addbibresource{test.bib}
\usepackage{filecontents}

\begin{filecontents}{test.bib}

@article{ref1,
 author     ={Mulder, J. A. and Kurtz, K. C. M. and Hsung, R. P. and Coverdale, H. and Frederick, M. O. and Shen, L. and Zificsak, C. A.},
 journal    ={Org. Lett.},
 year       ={2003},
 volume     ={5},
 pages      ={1547}
}

@article{ref2,
 author     ={Zhang, L. and Wang, W. and Wang, A. and Cui, Y. and Yang, X. and Huang, Y. and Liu, Y. and Liu, W. and Son, J.-Y. and Oji, H. and Zhang, T.},
 journal    ={Green Chem.},
 year       ={2013},
 volume     ={15},
 pages      ={2680}
}

\end{filecontents}

\makeatletter

\DeclareCiteCommand{\sfcite}[\cbx@superscript]%
  {\usebibmacro{cite:init}%
   \let\multicitedelim=\supercitedelim
   \iffieldundef{prenote}
     {}
     {\BibliographyWarning{Ignoring prenote argument}}%
      \iffieldundef{postnote}
        {}
        {\BibliographyWarning{Ignoring postnote argument}}}
  {\usebibmacro{citeindex}%
   \usebibmacro{sfcite}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}}

\newbibmacro*{sfcite}{%
  \ifciteseen
  {}
  {\xappto\cbx@citehook{%
   \noexpand\footnotetext[\thefield{labelnumber}]{%
     \fullcite{\thefield{entrykey}}\addperiod}}}}

\newrobustcmd{\cbx@superscript}[1]{%
  \mkbibsuperscript{#1}%
  \cbx@citehook%
  \global\let\cbx@citehook=\empty}
\let\cbx@citehook=\empty

\makeatother

\begin{document}

First reference. \sfcite{ref1} \\
Second reference. \sfcite{ref2} \\
First reference cited twice. \sfcite{ref1}

\printbibliography

\end{document}

答案1

重新定义\@makefntext以做你想做的事:

\begin{filecontents}{\jobname.bib}

@article{ref1,
 author     ={Mulder, J. A. and Kurtz, K. C. M. and Hsung, R. P. and Coverdale, H. and Frederick, M. O. and Shen, L. and Zificsak, C. A.},
 journal    ={Org. Lett.},
 year       ={2003},
 volume     ={5},
 pages      ={1547}
}

@article{ref2,
 author     ={Zhang, L. and Wang, W. and Wang, A. and Cui, Y. and Yang, X. and Huang, Y. and Liu, Y. and Liu, W. and Son, J.-Y. and Oji, H. and Zhang, T.},
 journal    ={Green Chem.},
 year       ={2013},
 volume     ={15},
 pages      ={2680}
}

\end{filecontents}

\documentclass[12pt,twoside]{report}
\usepackage[a4paper,width=165mm,top=25mm,bottom=25mm]{geometry}
\usepackage[
  style=chem-acs,
%  backend=bibtex,
  sorting=none,
  maxnames=99,
]{biblatex}
\addbibresource{\jobname.bib}



\makeatletter

\renewcommand\@makefntext[1]{%
  \scriptsize
  \parindent1em
  \noindent\@makefnmark#1%
}

\DeclareCiteCommand{\sfcite}[\cbx@superscript]%
  {\usebibmacro{cite:init}%
   \let\multicitedelim=\supercitedelim
   \iffieldundef{prenote}
     {}
     {\BibliographyWarning{Ignoring prenote argument}}%
      \iffieldundef{postnote}
        {}
        {\BibliographyWarning{Ignoring postnote argument}}}
  {\usebibmacro{citeindex}%
   \usebibmacro{sfcite}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}}

\newbibmacro*{sfcite}{%
  \ifciteseen
  {}
  {\xappto\cbx@citehook{%
   \noexpand\footnotetext[\thefield{labelnumber}]{%
     \fullcite{\thefield{entrykey}}\addperiod}}}}

\newrobustcmd{\cbx@superscript}[1]{%
  \mkbibsuperscript{#1}%
  \cbx@citehook%
  \global\let\cbx@citehook=\empty}
\let\cbx@citehook=\empty

\makeatother

\begin{document}

First reference. \sfcite{ref1} \\
Second reference. \sfcite{ref2} \\
First reference cited twice. \sfcite{ref1}

\vfill

\noindent{\footnotesize Text in footnote size}\\       
{\scriptsize Text in script size}
\clearpage

\printbibliography

\end{document}

在此处输入图片描述

对于法语,babel您需要重新定义不同的命令,即\insertfootnotemarkFB

\begin{filecontents}{\jobname.bib}

@article{ref1,
 author     ={Mulder, J. A. and Kurtz, K. C. M. and Hsung, R. P. and Coverdale, H. and Frederick, M. O. and Shen, L. and Zificsak, C. A.},
 journal    ={Org. Lett.},
 year       ={2003},
 volume     ={5},
 pages      ={1547}
}

@article{ref2,
 author     ={Zhang, L. and Wang, W. and Wang, A. and Cui, Y. and Yang, X. and Huang, Y. and Liu, Y. and Liu, W. and Son, J.-Y. and Oji, H. and Zhang, T.},
 journal    ={Green Chem.},
 year       ={2013},
 volume     ={15},
 pages      ={2680}
}

\end{filecontents}

\documentclass[12pt,twoside]{report}
\usepackage[a4paper,width=165mm,top=25mm,bottom=25mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[
  style=chem-acs,
%  backend=bibtex,
  sorting=none,
  maxnames=99,
]{biblatex}
\addbibresource{\jobname.bib}

\makeatletter
\renewcommand\insertfootnotemarkFB{%
  \scriptsize
  \parindent=\parindentFFN
  \noindent
  \rule\z@\footnotesep
  \@thefnmark
  \dotFFN\kernFFN
}

\DeclareCiteCommand{\sfcite}[\cbx@superscript]%
  {\usebibmacro{cite:init}%
   \let\multicitedelim=\supercitedelim
   \iffieldundef{prenote}
     {}
     {\BibliographyWarning{Ignoring prenote argument}}%
      \iffieldundef{postnote}
        {}
        {\BibliographyWarning{Ignoring postnote argument}}}
  {\usebibmacro{citeindex}%
   \usebibmacro{sfcite}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}}

\newbibmacro*{sfcite}{%
  \ifciteseen
  {}
  {\xappto\cbx@citehook{%
   \noexpand\footnotetext[\thefield{labelnumber}]{%
     \fullcite{\thefield{entrykey}}\addperiod}}}}

\newrobustcmd{\cbx@superscript}[1]{%
  \mkbibsuperscript{#1}%
  \cbx@citehook%
  \global\let\cbx@citehook=\empty}
\let\cbx@citehook=\empty

\makeatother

\begin{document}

First reference. \sfcite{ref1} \\
Second reference. \sfcite{ref2} \\
First reference cited twice. \sfcite{ref1}

\vfill

\noindent{\footnotesize Text in footnote size}\\
{\scriptsize Text in script size}
\clearpage

\printbibliography

\end{document}

在此处输入图片描述

答案2

你能用memoirclass 代替 classreport吗?这样可以轻松更改脚注的字体。

将您的班级路线更改为:

\documentclass[12pt,twoside,openany]{memoir}

并添加以下几行:

\pagestyle{plain}
\renewcommand*{\foottextfont}{\normalfont\scriptsize}
\setlength{\footmarkwidth}{0in}
\setlength{\footmarksep}{0in}
\setlength{\footparindent}{0in}

你应该得到如下结果:

在此处输入图片描述

相关内容