
요즘 LaTeX에 대해 배우고 있어요. 참고문헌에 관해서는 가능한 한 단순하게 유지하고 싶었습니다. 시도했고 biblatex
효과가 있었지만 모든 스타일이 참고문헌의 필수 레이아웃에 맞지 않았기 때문에 많이 수정해야 했습니다.
thebibliography
그래서 나는 LaTeX와 함께 제공되는 추가 패키지와 사용을 사용하지 않기로 결정했습니다 . 지금까지는 잘 작동합니다. 문서 클래스에는 KOMA-Script가 사용됩니다.
편집(전체 예):
\documentclass[
12pt,
a4paper,
oneside,
listof=totoc,
pagesize,
parskip,
captions=tableheading,
listof=nochaptergap,
%%fleqn,
numbers=noendperiod,
]{scrreprt}
\usepackage
[
a4paper,
centering,
left=3cm,
right=3cm,
top=2.5cm,
bottom=2.5cm,
headsep=1cm,
%footskip=2.5cm,
]{geometry}
%%Standard
\usepackage{blindtext}
%%Zeilenabstand 1.5 wie bei Word
\usepackage{setspace}
\makeatletter
\newcommand{\MSonehalfspacing}{%
\setstretch{1.44}% default
\ifcase \@ptsize \relax % 10pt
\setstretch {1.448}%
\or % 11pt
\setstretch {1.399}%
\or % 12pt
\setstretch {1.433}%
\fi
}
\makeatother
\MSonehalfspacing
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\setkomafont{sectioning}{\bfseries}
\usepackage[withpage]{acronym}
\newcommand{\bflabel}[1]{\normalfont{\normalsize{#1}}\hfill}
\renewcommand{\bflabel}[1]{\normalfont{\normalsize{#1}}\hfill}
%Tabellen
\usepackage{booktabs}
\usepackage{tabularx}
%Mathe
\usepackage{amsmath}
%Sonderzeichen
\usepackage{amssymb}
\usepackage[euler]{textgreek}
%Elektrische Zeichnungen
\usepackage{circuitikz}
\usepackage{pgf}
\usepackage{tikz}
%Grafik
\usepackage{graphicx}
\usepackage{float}
\usepackage{subfigure}
%Bildunterschrift
\usepackage[margin=2 cm,font=small,labelfont=bf,]
{caption}
% Listings
\usepackage{listings}
%Zähleranpassung
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{equation}{chapter}
\counterwithout{figure}{part}
\counterwithout{table}{part}
\counterwithout{equation}{part}
%Kopf-/Fußzeile
\usepackage{fancyhdr}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[C]{}
\fancyhead[R]{\small \leftmark}
\fancyhead[L]{}
\fancyfoot[L]{\authorOne}
\fancyfoot[R]{\thepage}
\fancyfoot[C]{}
%% Linien in Kopf- und Fußzeile
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}
\fancypagestyle{framepart}{
\fancyhf{}
\fancyhead[C]{}
\fancyhead[L]{}
\fancyhead[R]{\leftmark}
\fancyfoot[L]{\authorOne}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagenumbering{gobble}
}
\pagestyle{plain}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}}
%Punkte im Inhaltsverzeichnis als Füllobjekte
\usepackage[]{tocstyle}
\usetocstyle{allwithdot}
%Formelverzeichnis:
\usepackage[version-1-compatibility]{siunitx}
\newcommand{\acrou}[1]{\acroextra{\makebox[18mm][l]{\si[per-mode=fraction,fraction=nice]{#1}}}}
%Überschriftformatierung
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\LARGE\bfseries\color{black}}{\thechapter\quad}{0pt}{}
\titleformat{\section}[hang]{\Large\bfseries\color{black}}{\thesection\quad}{0pt}{}
\titleformat{\subsection}[hang]{\large\bfseries\color{black}}{\thesubsection\quad}{0pt}{}
\titleformat{\subsubsection}[hang]{\bfseries\color{black}}{\thesubsubsection\quad}{0pt}{}
%Abstände nach den Überschriften
\titlespacing{\chapter} { 0em} { -8ex} { 0ex}
\titlespacing{\section} { 0em} { 0ex} { -2ex}
\titlespacing{\subsection} { 0em} { 0ex} { -2ex}
\titlespacing{\subsubsection} { 0em} { 0ex} { -2ex}
%%Weiteres
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage{url}
\usepackage{longtable}
%PDF Einstellungen
\usepackage[%
pdftitle={Info},
pdfauthor={Info},
pdfsubject={Info},
pdfcreator={pdflatex, LaTeX with KOMA-Script},
pdfpagemode=UseOutlines,
pdfdisplaydoctitle=true,
pdflang=de,
]{hyperref}
\begin{document}
This is a test \cite{papula,horowitz}.
\begin{thebibliography}{1}
\bibitem{papula} Papula, Lothar: {\em Mathematik für Ingenieure und Naturwissenschaftler.} Band 3. 3.Aufl., München: Vieweg+Teubner Verlag, 2016
\bibitem{horowitz} Horowitz, Paul \& Hill, Winfield: {\em The Art of Electronics.} 3.Aufl., Cambridge: Cambridge University Press, 2015
\end{thebibliography}
\end{document}
불행히도 나는 숫자와 그 뒤에 나오는 정보 사이의 수평 공간을 늘리는 방법을 모릅니다. 예를 들어 (1)-Papula 대신 (1)--Papula를 갖고 싶습니다. 어떤 도움이나 조언이라도 주시면 감사하겠습니다.
답변1
thebibliography
enumerate
맨 위에 구문 설탕이 있는 것과 거의 유사한 목록입니다 . 따라서 (인용) 레이블과 참고문헌 항목 사이의 간격은 \labelsep
(기본값은 \labelsep
) 에 의해 제어됩니다 0.5em
. 를 사용하여 이 값을 간단히 확대할 수 있지만 \setlength{\labelsep}{1em}
서문에서 그렇게 하면 문서의 모든 목록에 적용됩니다.
내 생각에는 재정의하여 자체적 thebibliography
으로 다음을 얻는 것이 유용할 수 있다고 생각합니다 .\labelsep
\biblabelsep
본질적으로 새로운 길이를 정의하고 의 올바른 위치에 \biblabelsep
추가하는 것으로 충분합니다 . 패치를 사용하여 동일한 결과를 얻는 것이 가능하고 더 짧을 수 있지만 정의 방법을 살펴보는 것이 도움이 될 수 있습니다.\setlength{\labelsep}{\biblabelsep}%
thebibliography
thebibliography
\documentclass[12pt,oneside,pagesize,parskip,]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{hyperref}
\newlength{\biblabelsep}
\setlength{\biblabelsep}{2\labelsep}
\makeatletter
% copied from scrreprt.cls
% we just added the line
% \setlength{\labelsep}{\biblabelsep}%
\renewenvironment{thebibliography}[1]{%
\if@bib@break@
\bib@beginhook
\else
\ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
\setchapterpreamble{\bibpreamble}%
\fi\fi
\bib@heading
\bib@beginhook
\bib@before@hook
\fi
\renewcommand{\BreakBibliography}[1]{%
\@bib@break
\end{thebibliography}%
\begingroup ##1\endgroup
\begin{thebibliography}{#1}
}%
\list{%
\@biblabel{\@arabic\c@enumiv}%
}{%
\setlength{\labelsep}{\biblabelsep}%
\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\if@bib@break@
\edef\@tempa{%
\noexpand\usecounter{enumiv}%
\noexpand\setcounter{enumiv}{\the\c@enumiv}%
}\@tempa
\no@bib@break
\else
\usecounter{enumiv}%
\fi
\let\p@enumiv\@empty
\renewcommand*\theenumiv{\@arabic\c@enumiv}%
}%
\sloppy\clubpenalty4000 \widowpenalty4000
\sfcode`\.=\@m
}{%
\if@bib@break@
\def\@noitemerr{%
\@latex@warning{%
\string\BreakBibliography\space at begin of `thebibliography'
environment\MessageBreak
or following \string\BreakBibliography}%
}%
\else
\def\@noitemerr{%
\@latex@warning{%
Empty `thebibliography' environment or
\string\BreakBibliography\MessageBreak
before end of `thebibliography' environment}%
}%
\fi
\endlist
\if@bib@break@
\else
\bib@after@hook
\let\bib@before@hook\@empty
\let\bib@after@hook\@empty
\fi
\bib@endhook
}
\makeatother
\begin{document}
This is a test \cite{papula,horowitz}.
\begin{thebibliography}{1}
\bibitem{papula} Papula, Lothar:
{\em Mathematik für Ingenieure und Naturwissenschaftler.} Band 3.
3.~Aufl., München: Vieweg+Teubner Verlag, 2016
\bibitem{horowitz} Horowitz, Paul \& Hill, Winfield: {\em The Art of Electronics.}
3.~Aufl., Cambridge: Cambridge University Press, 2015
\end{thebibliography}
\end{document}
다음을 사용하여 수평 공간을 수정할 수 있습니다.
\setlength{\biblabelsep}{2\labelsep}