我正在用 KOMA Script 撰写一篇文章,想法是将其放在双栏中,但是我遇到了一些无法解决的问题:
- 我有 2 篇不同语言的摘要,如果我停用该
titlepage
选项,它们会出现在同一页面上,但是当我激活该titlepage
选项时,每个摘要都会出现在不同的页面的中心。 - 目录出现在一页上,但来自这个答案,我已改正。
问题 1 是我暂时无法解决的问题,当我激活双列选项并停用标题页时,目录会出现在同一页面上,但每列都有一个目录看起来会更好,有没有办法在 KOMA 中强制分列?
我还有一个疑问,如果在 KOMA 内部使用双列选项,是否有办法平衡文档末尾的列?
最后,KOMA Script 中的默认装订线太窄,使得列看起来太靠近,有没有办法使用 来调整它typearea
?
这是我的 MWE:
\documentclass{scrartcl}
\KOMAoptions{%
fontsize=11pt,%
headings=big,%
headsepline=on,%
titlepage=on,%
paper=b5,%
DIV=calc,%
twoside=on,%
BCOR=5mm,%
parskip=half+,%
abstract=on,
twocolumn=on,
bibliography=totoc
}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,spanish,mexico]{babel}
\usepackage{lmodern}
\usepackage{fourier}
\usepackage{FiraSans}
\renewcommand*\oldstylenums[1]{{\firaoldstyle #1}}
\usepackage{amsmath}
\usepackage[math,toc]{blindtext}
\usepackage{tocbasic}
\DeclareTOCStyleEntries[%
linefill=\quad,%
raggedpagenumber,%
pagenumberbox=\hbox%
]{tocline}{chapter,section,subsection,subsubsection,paragraph,subparagraph,figure,table}
\unsettoc{toc}{onecolumn}
\setlength{\columnsep}{7mm}
\raggedbottom
\clubpenalty=10000
\widowpenalty=1000
\titlehead{Contemporary Science Journal}
\subject{(Peer-reviewed paper)}
\title{Paper title:}
\subtitle{Paper subtitle}
\author{John Doe}
\date{\today}
\publishers{Some Academic Press}
\begin{document}
\maketitle
\newpage
{\small
\selectlanguage{Spanish}
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Descriptores:} blah, blah, blah, blah, blah, blah.
\end{abstract}
{
\selectlanguage{English}
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Keywords:} blah, blah, blah, blah, blah, blah.
\end{abstract}
}
}
\newpage
\tableofcontents
\blinddocument
\blindmathpaper
\end{document}
我忘记了最后一个细节,我注意到当我激活该twocolumn
选项时页脚消失了,而我通常将页码放在页脚处。
答案1
对于摘要页面,您可以将选项更改titlepage
为off
:
\KOMAoptions{titlepage=off}% <- added
{\small
\selectlanguage{Spanish}
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Descriptores:} blah, blah, blah, blah, blah, blah.
\end{abstract}
\newpage% <- added
{%
\selectlanguage{English}
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Keywords:} blah, blah, blah, blah, blah, blah.
\end{abstract}
}
}
\clearpage% <- added
或者您可以删除abstract
环境并使用\addsec*{\abstractname}
。
{\small
\selectlanguage{Spanish}
\addsec*{\abstractname}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Descriptores:} blah, blah, blah, blah, blah, blah.
\newpage% <- added
{%
\selectlanguage{English}
\addsec*{\abstractname}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Keywords:} blah, blah, blah, blah, blah, blah.
}
}
\clearpage% <- added
我在第一个摘要后添加了\newpage
。因此第二个摘要从新列开始。
为了解决页脚问题,您可以添加选项includefoot=on
(或includehead=off
之后headsepline=on
)。
您可以尝试使用包flushend
来平衡最后一页的列。
例子:
\documentclass[
%fontsize=11pt,% default
headsepline=on,% sets headinclude=on automatically
footinclude=on,% <- added
paper=b5,%
%DIV=calc,% default for paper≠a4
twoside=on,%
BCOR=5mm,%
parskip=half+,%
twocolumn=on
]{scrartcl}
\KOMAoptions{%
%headings=big,% default
titlepage=on,%
%abstract=on,
bibliography=totoc
}
\usepackage{flushend}% <- added
%\usepackage[utf8]{inputenc}% needed for outdated TeX distributions
\usepackage[T1]{fontenc}
\usepackage[english,spanish,mexico]{babel}
\usepackage{lmodern}
\usepackage{fourier}
\usepackage{FiraSans}
\renewcommand*\oldstylenums[1]{{\firaoldstyle #1}}
\usepackage{amsmath}
\usepackage[math]{blindtext}% only for dummy text
%\usepackage{tocbasic}% <- loaded by the class!
\DeclareTOCStyleEntries[%
linefill=\quad,%
raggedpagenumber,%
pagenumberbox=\mbox%
]{tocline}{chapter,section,subsection,subsubsection,paragraph,subparagraph,figure,table}
\unsettoc{toc}{onecolumn}
\setlength{\columnsep}{7mm}
\raggedbottom
\clubpenalty=10000
\widowpenalty=1000
\titlehead{Contemporary Science Journal}
\subject{(Peer-reviewed paper)}
\title{Paper title:}
\subtitle{Paper subtitle}
\author{John Doe}
\date{\today}
\publishers{Some Academic Press}
\begin{document}
\maketitle
% abstract
\KOMAoptions{titlepage=off}% <- added
{\small
\selectlanguage{Spanish}
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Descriptores:} blah, blah, blah, blah, blah, blah.
\end{abstract}
\newpage% <- added
{%
\selectlanguage{English}
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\smallskip
\textbf{Keywords:} blah, blah, blah, blah, blah, blah.
\end{abstract}
}
}
\clearpage% <- added
\tableofcontents
\blinddocument
\blindmathpaper
\end{document}