我想知道是否可以更改 thebibliography 环境生成的标题的大小。可以通过将 thebibliography 环境置于 \begin{small} \end{small}(或所需的任何文本大小)之间来更改实际文本大小,但这似乎不会影响标题。
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[german,german]{babel}
\addto\captionsgerman{\renewcommand{\refname}{Referenzen}}
\renewcommand{\refname}{Referenzen}
\usepackage[justification=justified,singlelinecheck=false]{caption}
\renewcommand{\arraystretch}{1.5}
\usepackage{ulem}
\usepackage[labelfont=bf,textfont=footnotesize]{caption}
\begin{document}
\begin{footnotesize}
\begin{thebibliography}{5}
\bibitem{Hon89} Honig, M. G. and Hume, R. I. {\em Dil and diO: versatile fluorescent dyes for neuronal labelling and pathway tracing} Trends in Neuroscience 12, Nr.9 (1989):333-5,340-1.
\bibitem{WoAmPh} {\em Nervous system, neuronal support cells}. \url{http://wormatlas.org/hermaphrodite/neuronalsupport/jump.html?newLink=mainframe.htm&newAnchor=Phasmidsensilla36}. Access: 31.12.17, 11:59.
\end{thebibliography}
\end{footnotesize}
\end{document}
使用\addto\captionsgerman{\renewcommand{\refname}{Referenzen}}
和\renewcommand{\refname}{Referenzen}
,我可以更改标题文本,但我不知道如何更改字体大小。提前致谢!
答案1
我猜你的目的是让参考书目部分字体变小。footnotesize
手动添加和更改标题的大小并不是解决方案。
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{caption}
\usepackage{url}
\usepackage{etoolbox}
\captionsetup{
justification=justified,
singlelinecheck=false,
labelfont=bf,
textfont=footnotesize,
}
\addto\captionsngerman{\renewcommand{\refname}{Referenzen}}
\apptocmd{\thebibliography}{\footnotesize}{}{} % bibliography in footnote size
\patchcmd{\thebibliography}{\refname}{\normalsize\refname}{}{}
%\renewcommand{\arraystretch}{1.5}% <--- ???
\begin{document}
\section*{A section}
Some text to see what happens with the bibliography.
\begin{thebibliography}{5}
\bibitem{Hon89}
Honig, M. G. and Hume, R. I. \emph{Dil and diO: versatile fluorescent
dyes for neuronal labelling and pathway tracing}.
Trends in Neuroscience 12, Nr.9 (1989):333-5,340-1.
\bibitem{WoAmPh}
\emph{Nervous system, neuronal support cells}.
\url{http://wormatlas.org/hermaphrodite/neuronalsupport/jump.html?newLink=mainframe.htm&newAnchor=Phasmidsensilla36}. Access: 31.12.17, 11:59.
\end{thebibliography}
\end{document}
一些注释。
- 我去掉了下划线:这是不要做良好的排版
- 参考书目条目后面应有一个空白行
- 加载
caption
两次并不是指定多个选项的最佳方式 - 我使用
ngerman
(Neue Rechtschreibung)代替german
- 我注释掉了设置
\arraystretch
,不明白它应该做什么
通过进一步的修补,可以消除参考书目项目之间的垂直空格。
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{caption}
\usepackage{url}
\usepackage{etoolbox}
\captionsetup{
justification=justified,
singlelinecheck=false,
labelfont=bf,
textfont=footnotesize,
}
\addto\captionsngerman{\renewcommand{\refname}{Referenzen}}
\apptocmd{\thebibliography}{\footnotesize}{}{} % bibliography in footnote size
\patchcmd{\thebibliography}{\refname}{\normalsize\refname}{}{}
\patchcmd{\thebibliography}
{\leftmargin}
{\setlength{\itemsep}{0pt}\setlength{\parsep}{0pt}\leftmargin}
{}{}
%\renewcommand{\arraystretch}{1.5}% <--- ???
\begin{document}
\section*{A section}
Some text to see what happens with the bibliography.
\begin{thebibliography}{5}
\bibitem{Hon89}
Honig, M. G. and Hume, R. I. \emph{Dil and diO: versatile fluorescent
dyes for neuronal labelling and pathway tracing}.
Trends in Neuroscience 12, Nr.9 (1989):333-5,340-1.
\bibitem{WoAmPh}
\emph{Nervous system, neuronal support cells}.
\url{http://wormatlas.org/hermaphrodite/neuronalsupport/jump.html?newLink=mainframe.htm&newAnchor=Phasmidsensilla36}. Access: 31.12.17, 11:59.
\end{thebibliography}
\end{document}