在论文中,我同时使用\footnote
和\footcite[][]{}
(以及\footcites[][]{}[][]{}
)来添加脚注和引用。
但是,我无法统一对齐脚注。 中的数字和文本之间的间距\footnote
与 中的间距不同\footcite[][]{}
。另外,我想确保多行脚注和引文不会悬在数字下方。
任何帮助都将非常有帮助,提前感谢大家。
这是该论文的类文件。
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{these_Eva}
% This is an adaptatin of the BFH template by bernl1
% Author: dhs1
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
\ProcessOptions
\LoadClass{memoir}
\RequirePackage{fancyhdr}
% Load Standard Packages:
%---------------------------------------------------------------------------
\usepackage{stix}
\usepackage[T1]{fontenc} %codage de sortie adapté au français
%\usepackage[standard-baselineskips]{cmbright}
\usepackage{babel} % language
%\usepackage{inputenc}
%\usepackage{csquotes} % for use of biblatex
\usepackage{textcomp} % additional symbols
\usepackage{enumitem} % for intertext in lists
\usepackage{fancyhdr} % simple manipulation of header and footer
\usepackage{etoolbox} % color manipulation of header and footer
\usepackage{graphicx} % integration of images
\usepackage{float} % floating objects
\usepackage{subcaption}
%\usepackage{caption} % for captions of figures and tables --> not needed with memoir class
\usepackage{booktabs} % package for nicer tables
\usepackage{tocvsec2} % provides means of controlling the sectional numbering
%\usepackage{titlesec} %
\usepackage{shorttoc}
\usepackage[hyphens]{url}
%[Himanshu] added [hyphens] in the above line.
%---------------------------------------------------------------------------
% Set up page dimension
%---------------------------------------------------------------------------
\setstocksize{225mm}{155mm}
\settrimmedsize{\stockheight}{\stockwidth}{*}
\setlrmarginsandblock{40mm}{20mm}{*} %\setlrmarginsandblock{⟨spine⟩}{⟨edge⟩}{⟨ratio⟩}
\setulmarginsandblock{23mm}{25mm}{*} % --> because headers and footers are included \setulmarginsandblock{⟨upper⟩}{⟨lower⟩}{⟨ratio⟩}
%%% Alternatively: %%%
%\settypeblocksize{*}{115mm}{1.512} % \settypeblocksize{⟨height⟩}{⟨width⟩}{⟨ratio⟩}
%\setlrmargins{20mm}{*}{*}
%\setulmargins{30mm}{*}{*}
%----------%% is defined accordingly to word-Vorlage from Schultess: -----------------
\setheaderspaces{12.25mm}{*}{1} % \setheaderspaces{⟨headdrop⟩}{⟨headsep⟩}{⟨ratio⟩} (above and below the header)
\setheadfoot{13pt}{12.5mm}
\setmarginnotes{6mm}{8mm}{10pt}
\sideparmargin{outer}
%\setfootins{⟨length for normal⟩}{⟨length for minipage⟩}
%When footnotes are added to the text block they are added \skip\footins below the text. Since this is a skip it usually needs special syntax to change it. Instead we have provided an interface to set it. 5 The default sizes are \bigskipamount.
%--------------------------------------------------------------------------
% Fonts and text size, headers and footers content
%--------------------------------------------------------------------------
%[Himanshu] Changed the font face to Linux Libertine. Remove the next three lines to restore to old font.
\usepackage{libertine}
\usepackage{libertinust1math}
\usepackage[T1]{fontenc}
\rmfamily %Roman family
\pagestyle{ruled}
\aliaspagestyle{chapter}{ruled} % header and footers d'une page chapitre sont comme dans le pagestyle défini. (Sans ça on aurait le style "plain")
%-------------------------- Headings -----------------------
% part:
% chapter:
%[Himanshu] Changed the font size from \huge to \Huge. Please change it back to restore to original.
%[Himanshu] Changed the font face to SANS SERIF (\sffamily) instead of previously assigned SERIF (\normalfont). Replace in the following three lines to change them back.
\makechapterstyle{lae}{
\clearpage
\renewcommand{\chapnamefont}{\sffamily\Huge\bfseries}
\renewcommand{\chapnumfont}{\sffamily\Huge\bfseries} % per default same value as chapnamefront
\renewcommand{\chaptitlefont}{\sffamily\Huge\bfseries}
\renewcommand{\chapterheadstart}{}
\renewcommand{\afterchapternum}{:\chapternamenum} % \midchapskip space between number and title
\setlength{\beforechapskip}{6.4mm}
\setlength{\afterchapskip}{2.1mm} % 2.1mm = 6pt
}
\headstyles{bringhurst}
\chapterstyle{lae}
% section:
%[Himanshu] Changed the font size from \large to \LARGE. Change it back to restore to original setting.
\renewcommand{\thesection}{\Roman{section}}
\setlength{\beforesecskip}{4.2mm}
\setlength{\aftersecskip}{2.1mm}
%\setSindent{⟨length⟩}
\setsecheadstyle{\LARGE\bfseries\raggedright}%
% sub-section:
%[Himanshu] changed the font face to \bfseries instead of \normalfont. Change to \normalfont to restore the original settings.
%[Himanshu] added a dot after the sub-section number. Remove the point after \arabic{subsection} to change it to the original settings.
\renewcommand{\thesubsection}{\arabic{subsection}.}
\setlength{\beforesubsecskip}{3.8mm}
\setlength{\aftersubsecskip}{2.1mm}
\setsubsecheadstyle{\Large\bfseries\raggedright}%
% sub-sub section:
%[Himanshu] added \mdseries to set to medium font face. Remove \mdseries to set it back to original settings.
%[Himanshu] added a dot after the subsubsection number. Remove the point after \arabic{subsubsection} to chnge it to the original settings.
\renewcommand{\thesubsubsection}{\arabic{subsection}.\arabic{subsubsection}.}
\setlength{\beforesubsubsecskip}{11pt}
\setlength{\aftersubsubsecskip}{2.1mm}
\setsubsubsecheadstyle{\large\mdseries\slshape\raggedright}%
% paragraph
%[Himanshu] added paranthesis around the paragraph number. Remove '(' and ')' around \alph{paragraph} to change it back to the initial settings.
%[Himanshu] added the slanting font-face. Remove \slshape to restore to the original settings.
\renewcommand{\theparagraph}{(\alph{paragraph})}
\setlength{\beforeparaskip}{3.9mm}
\setlength{\afterparaskip}{2.1 mm}
\setparaindent{0pt}
\setparaheadstyle{\normalsize\bfseries\slshape\raggedright}%
% sub-paragraph
\setlength{\beforesubparaskip}{4.2mm}
\setlength{\aftersubparaskip}{2.1 mm}
\setsubparaheadstyle{\normalsize\bfseries\raggedright}%
% lists:
%-------------------------- Paragraphs -----------------------
\setlength{\parindent}{0pt} % no indent for new paragraphs
\setlength{\parskip}{3.2mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Package to facilitate placement of boxes at absolute positions
%---------------------------------------------------------------------------
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}
%---------------------------------------------------------------------------
% Hyperref Package (Create links in a pdf)
%---------------------------------------------------------------------------
\usepackage[
pdftex,ngerman,bookmarks,plainpages=false,pdfpagelabels,
backref = {false}, % No index backreference
colorlinks = {true}, % Color links in a PDF
hypertexnames = {true}, % no failures "same page(i)"
bookmarksopen = {true}, % opens the bar on the left side
bookmarksopenlevel = {0}, % depth of opened bookmarksa
linkcolor = {black}, % Color of Links
citecolor = {black}, % Color of Cite-Links
urlcolor = {black}, % Color of URLs
]{hyperref}
\urlstyle{sf}
\endinput
我还附上了当前输出的快照。
以及期望的结果。
带有参考书目的最小工作示例:
\documentclass[
french,
10 pt, % fontsize
openright
]{class/these_Eva} % these-droit class
\usepackage[utf8]{inputenc}
\usepackage[style=geschichtsfrkl,backend=biber,sorting=nyt]{biblatex}
\addbibresource{\thesis.bib}
\usepackage{filecontents}
\begin{filecontents}{\thesis.bib}
@article{wybitul_betriebsvereinbarungen_nodate-1,
title = {Betriebsvereinbarungen und § 32 {BDSG}: {Wie} geht es nach der {DS}-{GVO} weiter?},
language = {de},
author = {Wybitul, Tim and Sörup, Thorsten and Pötters, Stephan},
pages = {6},
}
@book{gola_eu-ds-gvo_2016-1,
title = {{EU}-{DS}-{GVO} {EU}-{Datenschutz}-{Grundverordnung}},
isbn = {978-3-406-69543-8},
language = {German},
author = {Gola, Peter and Gola, Peter and Klug, Christoph and Nguyen, Alexander and Piltz, Carlo and Pötters, Stephan and Schulz, Sebastian and Wybutil, Tim and {Verlag C. H. Beck}},
year = {2016},
annote = {OCLC: 941670883}
}
\end{filecontents}
\begin{document}
Some text\footcite[Pre-text][Post-text]{wybitul_betriebsvereinbarungen_nodate-1}, then some more text\footcite[][]{gola_eu-ds-gvo_2016-1}, and now a normal footnote\footnote{Hello world!}.
\printbibliography
\end{document}
答案1
答案2
虽然花了一些时间但我还是解决了这个问题。
有两件事解决了这个问题。首先,为了在脚注标记(数字)和文本之间添加空格,我在 .cls 文件中添加了以下代码。
\usepackage[supstfm=libertinesups]{superiors}
\usepackage{fnpct}
\usepackage{scrextend}
\newlength{\fmwidth}
\AtBeginDocument{%
\settowidth{\fmwidth}{\footnotesize 0000.}%
\addtolength{\fmwidth}{3mm}%
\deffootnote[\fmwidth]{\fmwidth}{1em}{\thefootnotemark.\hspace{3mm}}%
}
接下来,要删除 \footcite[][]{} 第一行的缩进,我发现这篇文章非常有用,\fullcite 在 Biblatex 中不缩进。