![與章節相關的子章節](https://rvso.com/image/286372/%E8%88%87%E7%AB%A0%E7%AF%80%E7%9B%B8%E9%97%9C%E7%9A%84%E5%AD%90%E7%AB%A0%E7%AF%80.png)
我想知道是否可以改進我的文件的小節樣式。正如您所看到的,我希望“方法”一章中有最多四個小節。例如,該檔案顯示“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}.}
儘管評論中提到的警告仍然適用。