在给定的节(或小节)内,我希望节标题出现在左侧,并且希望文本紧接着节标题出现,如下例所示。
在此示例中,文本是否也处于“部分”模式?当我尝试在“部分”模式下包含段落时,无法获取 PDF。因此,我目前拥有的是“标准”模式下的段落文本。
章节和文本的源代码:
\section{\noindent \textbf{Introduction.}}
\begin{doublespace}
Let $\left\{ x:0\le x<1\right\} $ be the compact group of real numbers
modulo 1.\end{doublespace}
完整源代码:
\documentclass[english]{amsart}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsthm}
\usepackage{setspace}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{mathtools}
\makeatletter
\renewcommand{\section}{%
\@startsection{section}
{1}
\z@
{.7\linespacing \@plus \linespacing}
{.5\linespacing}
{\normalfont\centering}% \scshape
}
\makeatother
\makeatother
\usepackage{babel}
\begin{document}
\section{\noindent \textbf{Introduction.}}
\begin{doublespace}
Let $\left\{ x:0\le x<1\right\} $ be the compact group of real numbers
modulo 1.\end{doublespace}
\end{document}
答案1
不要在\section
论点中添加格式!
只需将部分定义为内联而不是显示(通过改变空间参数的符号)
\documentclass[english]{amsart}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsthm}
\usepackage{setspace}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{mathtools}
\makeatletter
\renewcommand{\section}{%
\@startsection{section}
{1}
\z@
{1\baselineskip plus \baselineskip}
{-1em}
{\normalfont\bfseries}% \scshape
}
\makeatother
\makeatother
\usepackage{babel}
\begin{document}
\section{Introduction.}
\begin{doublespace}
Let $\left\{ x:0\le x<1\right\} $ be the compact group of real numbers
modulo 1.\end{doublespace}
\end{document}