我想问一下 scrartcl 类中浮点环境的控制参数。我尝试阅读 Koma-script 手册,但感到困惑。手册很好,但缺少示例。(在我看来,他们放了很多交叉引用,可能会让像我这样的新手感到困惑)
\documentclass[a4paper,fontsize=14pt,]{scrartcl}
\usepackage[left=3cm,right=3cm,top=3cm,bottom=2cm,%
columnsep=1cm]{geometry}
\usepackage{multicol,caption}
\usepackage[demo]{graphicx}
\usepackage{lipsum}
\usepackage{authblk}
\title{AAAAAAAAAA}
\date{}
%=======================================================
\usepackage{booktabs}
\usepackage{fontspec}
\setkomafont{disposition}{\fontsize{14pt}{14pt}\bfseries}
\setmainfont{TH Sarabun New}
\setsansfont{TH Sarabun New}
\setmonofont{TH Sarabun New}
%==================================================================
%RenewCommand Section
\newcommand{\keywordsEnglish}[1]{\textbf{keywords: } #1}
\setlength{\parindent}{0.25in}
\setlength{\parskip}{0em}
%======================================================================
\begin{document}
\maketitle
\renewcommand{\abstractname}{\fontsize{20pt}{20pt}\vspace{0cm}\textbf{Abstract}}
\begin{abstract}
This research presents.................
\end{abstract}
%==================================================================
\section{Intro}
\begin{multicols}{2}
%\lipsum[1]
\begin{center}
% \begin{minipage}{\linewidth}
\captionof{table}{ \ Data}
\vspace{1mm}
\begin{tabular}{c c c c}
\toprule
w/c ratios &\multicolumn{3}{c}{{\scriptsize \textbf{$\beta$}}} \\
\cmidrule(r){2-4}
&0.55 &0.60 &0.65 \\
\midrule
{\scriptsize $D_{1}/D_{0}$ } &0.301 &0.555 &0.876 \\
{\scriptsize $D_{2}/D_{0}$ } &0.603 &1.110 &1.751 \\
{\scriptsize $D_{3}/D_{0}$ } &1.205 &2.220 &3.503 \\
\bottomrule
\label{table:1}
\end{tabular}
% \end{minipage}
\end{center}
\subsection{Subsection1}
\begin{center}
\begin{minipage}{\linewidth}
\center
\includegraphics[width=\linewidth]{foo}
\captionof{figure}{my caption of the figure 1}
\label{fig1}
\end{minipage}
\end{center}
\begin{equation}
\label{eq:linear}
y = ax+b
\end{equation}
\end{multicols}
QA.
\textbf{1.How can I manipulate figure/table heading and their caption?(i.e., fontsize, font type, beforeskip, afterskip, indentation, etc.)}
\textbf{2.How can I control equation's parameters? Especially making tag number to be Italic}
\end{document}
答案1
multicol
包中的环境不multicol
支持其中的浮点数。- 要更改
caption
参数,您需要使用 KOMA-Scripts 语法。其文档在章节中有描述3.20. 表格和图形的浮动环境在第 127 至 142 页上(后续页面处理)\listof...
。下面的 MWE 中显示了一些基本设置。 - 改变方程编号的外观(斜体)并不是一个好主意。最好坚持默认(特意选择的)设置。但是,如果您喜欢方程标签(数字)以(节号.方程编号)的形式组成,那么作为解决方案,您可以重新定义
\theequation
命令(参见下面的 MWE)。
\documentclass[a4paper, 14pt,
headings=normal,
twocolumn]{scrartcl}
\usepackage[hmargin=3cm,vmargin=2cm,
columnsep=1cm]{geometry}
\usepackage{scrlayer-scrpage}
\usepackage[demo]{graphicx}
\addtokomafont{caption}{\small\sffamily}
\setkomafont{captionlabel}{\bfseries}
\renewcommand\theequation{\emph{\thesection.\arabic{equation}}}
\usepackage{lipsum}
\usepackage{authblk}
\usepackage{amsmath, bm} % <---
\usepackage{array, booktabs} % <---
\usepackage{fontspec}
\setkomafont{disposition}{\fontsize{14pt}{14pt}\bfseries}
%\setmainfont{TH Sarabun New}
%\setsansfont{TH Sarabun New}
%\setmonofont{TH Sarabun New}
%==================================================================
%RenewCommand Section
\newcommand{\keywordsEnglish}[1]{\textbf{keywords: } #1}
\setlength{\parindent}{0.25in}
\setlength{\parskip}{0em}
%======================================================================
\title{AAAAAAAAAA}
\author{unknown }
\publishers{%
\itshape\small%
%\normalsize
\vspace{0.8cm}
\parbox{0.9\linewidth}{%
This research presents \lipsum[66]
}
}
\begin{document}
\maketitle
\section{Intro}
\lipsum[1]
\begin{table}[ht]
\centering
\captionabove{Data}
\label{table:1}
\begin{tabular}{>{$}c<{$} c c c}
\toprule
w/c \text{ ratios}
&\multicolumn{3}{c}{$\bm{\beta}$} \\
\cmidrule(r){2-4}
& 0.55 & 0.60 & 0.65 \\
\midrule
D_{1}/D_{0} & 0.301 & 0.555 & 0.876 \\
D_{2}/D_{0} & 0.603 & 1.110 & 1.751 \\
D_{3}/D_{0} & 1.205 & 2.220 & 3.503 \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Subsection1}
\lipsum[2]
\begin{table}[ht]
\centering
\includegraphics[width=\linewidth]{foo}
\captionof{figure}{my caption of the figure 1}
\label{fig1}
\end{table}
\begin{equation}\label{eq:linear}
y = ax+b
\end{equation}
QA:
\textbf{1.How can I manipulate figure/table heading and their caption?(i.e., fontsize, font type, beforeskip, afterskip, indentation, etc.)}
\textbf{2.How can I control equation's parameters? Especially making tag number to be Italic}
\end{document}