我使用memoir
withsection
作为章节样式。我想将章节样式向右缩进。目前我有:
Chapter 1
Text of first paragraph (first line)
Text of first paragraph (rest of paragraph)
但我想要:
Chapter 1
Text of first paragraph (first line)
Text of first paragraph (rest of paragraph)
我应该改变什么参数?
编辑:这是MWE:
\documentclass[12pt,a4paper,oneside]{memoir}
\usepackage{indentfirst}
\parindent 1.25cm
\chapterstyle{section}
\secindent\parindent\relax
\renewcommand{\thechapter}{\arabic{chapter}.}
\renewcommand{\thesection}{\thechapter\arabic{section}}
\begin{document}
\chapter{Chapter}
\par
test test test test test
\section{Section}
\par
test test test test test
\end{document}
@Francis 如果我使用你的想法,它就可以起作用,但对于章节标题来说!
答案1
添加
\chapindent\parindent\relax
\renewcommand{\printchapternum}{\hspace{\chapindent}\chapnumfont \thechapter\space}
回到序言。
例子:
\documentclass[12pt,a4paper,oneside]{memoir}
\usepackage{lipsum}
\usepackage{indentfirst}
\parindent 1.25cm
\chapterstyle{section}
\renewcommand{\thechapter}{\arabic{chapter}.}
\renewcommand{\thesection}{\thechapter\arabic{section}}
\chapindent\parindent\relax
\renewcommand{\printchapternum}{\hspace{\chapindent}\chapnumfont \thechapter\space}
\begin{document}
\chapter{Chapter}
\lipsum[2-3]
\section{Section}
\lipsum[1]
\end{document}
结果: