我想知道是否可以改进文档的子部分样式。如您所见,我希望“方法”一章最多包含四个子部分。例如,文档显示“II. 资产选择”,而理想的情况是“I.II. 资产选择”(因为它属于特定章节)。这可能吗?
这是我的代码:
\AtBeginDocument{\flushbottom}
\documentclass[10pt,a4paper,twocolumn]{scrartcl}
\bibliographystyle{nature}
\setlength{\columnsep}{30pt}
\usepackage{geometry}
\geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm, headsep=10mm}
\setlength{\parskip}{\the\baselineskip plus 2pt minus 1pt}
\setlength{\parindent}{0pt}
\usepackage[T1]{fontenc}
\usepackage[latin1,utf8]{inputenc}
\usepackage{lmodern}
\usepackage[ngerman,english]{babel}
\usepackage[english,ngerman]{babel}
\usepackage[tracking=true]{microtype}
\usepackage{dsfont}
\usepackage{hyperref}
\usepackage{accents}
\usepackage{textcomp}
\usepackage{url}
%----------------------------------------------------------------------------------------
% HEADER
%----------------------------------------------------------------------------------------
\usepackage{fancyhdr}
% All pages have headers and footers
\pagestyle{fancy}
% Blank out the default header
\fancyhead{}
% Custom header text
\fancyhead[C]{ABC $\bullet$ ABC $\bullet$ ABC}
%----------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------
% TITLES
%----------------------------------------------------------------------------------------
% Allows customization of titles
\usepackage{titlesec}
% Roman numerals for the sections
\renewcommand\thesection{\Roman{section}.}
% Arabic numerals for subsections
\renewcommand\thesubsection{\Roman{subsection}.}
%----------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------
% REFERENCE HYPERLINK SMALLER FONT
%----------------------------------------------------------------------------------------
\makeatletter
\def\url@leostyle{
\@ifundefined{selectfont}{\def\UrlFont{\sffamily}}{\def\UrlFont{\small\ttfamily}}}
\makeatother
\urlstyle{leo}
%----------------------------------------------------------------------------------------
\begin{document}
% starts supressing the twoculomn environment, from here on it will we one column
\twocolumn[\begin{@twocolumnfalse}
% make a section
\section*{\huge\scshape\centering{The Mash-Up Experiment}}
\vspace{4mm}
\normalsize
\begin{center}
\large\textsc{XXX XXX}\\
\vspace{4mm}
University
\href{mailto:[email protected]}{[email protected]}
\end{center}
\vspace{6mm}
\section*{Abstract}
“The Mash-Up Experiment” is a six-minute musical piece.
\vspace{8mm}
%begins tabular
\begin{tabular}{p{1,5cm}p{12,55cm}p{1,5cm}}
&\textbf{Keywords}: authorship\\
\end{tabular}
% ends tabular
\vspace{11mm}
% ends suppressing the twocolumn environment, from here on it will be twocolumn
\end{@twocolumnfalse}]
\section{Methods} % make section
\subsection{Foundations}
In the matter of the sonic sources included in this song, more than thirty different tracks were utilised. The scope of genres and authors was motley, ranging from classical orchestration to bolero, from old singers to contemporary pop acts. Nonetheless, a great percentage of these tunes were taken from the works of James Bernard, who composed several scores for Hammer Films in the last millennium. He is the man behind the music from classic horror flicks such as “The Quartermass Experiment (1955),“ ”The Devil Rides Out (1968),” and “Scars of Dracula (1970).”
\subsection{Selection of assets}
In the matter of the sonic sources included in this song, more than thirty different tracks were utilised. The scope of genres and authors was motley, ranging from classical orchestration to bolero, from old singers to contemporary pop acts. Nonetheless, a great percentage of these tunes were taken from the works of James Bernard, who composed several scores for Hammer Films in the last millennium. He is the man behind the music from classic horror flicks such as “The Quartermass Experiment (1955),“ ”The Devil Rides Out (1968),” and “Scars of Dracula (1970).”
\subsection{Composition and arrangement}
In the matter of the sonic sources included in this song, more than thirty different tracks were utilised. The scope of genres and authors was motley, ranging from classical orchestration to bolero, from old singers to contemporary pop acts. Nonetheless, a great percentage of these tunes were taken from the works of James Bernard, who composed several scores for Hammer Films in the last millennium. He is the man behind the music from classic horror flicks such as “The Quartermass Experiment (1955),“ ”The Devil Rides Out (1968),” and “Scars of Dracula (1970).”
\end{document}
答案1
期望的行为
一、资产选择
可以通过更改以下行来获得
\renewcommand\thesubsection{\Roman{subsection}.}
到
\renewcommand\thesubsection{\thesection\Roman{subsection}.}
尽管评论中提到的警告仍然适用。