考虑我的标题和第一部分
---
title: "asdf"
author: "asdf"
date: "13 Januar 2018"
documentclass: report
output:
bookdown::pdf_book:
citation_package: biblatex
latex_engine: pdflatex
number_sections: yes
fig_caption: yes
---
# Introduction
Here begins my introduction
我想删除位于实际章节标题前面的自动“第 1 章”部分(在本例中介绍)
这不起作用
header-includes:
\renewcommand{\chaptername}{}
使用另一个文档类也不起作用,因为我需要在图形标题中表示我的部分/章节的数量(例如图 3.1)
我想要的是最终得到一个标题1 简介 , than 2 方法等等。
应该不难,但我无法弄清楚。
谢谢
格雷格
您可以使用
subparagraph: true
output:
bookdown::pdf_book:
includes:
in_header: preamble.tex
和...一起
\usepackage{titlesec}
\titleformat{\chapter}
{\normalfont\LARGE\bfseries}{\thechapter}{1em}{}
\titlespacing*{\chapter}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
in preamble.tex
(c.f. https://tex.stackexchange.com/questions/10326/how-to-set-the-chapter-style-in-report-class https://tex.stackexchange.com/questions/10326/how-to-set-the-chapter-style-in-report-class)。你必须确保 LaTeX 包titlesec https://ctan.org/pkg/titlesec已安装在您的 TeX 系统中。
在撰写本文时subparagraph: true
由于重新定义了使用的 pandoc LaTeX 模板,因此需要\paragraph
and \subparagraph
在某种程度上干扰titlesec
。从那时起,情况发生了变化。至少与rmarkdown
2.1版本不再需要subparagraph: true
。感谢@MarkNeal 注意到这一点!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)