LaTeXStudio
LaTeXStudio
这家伙很懒,什么也没写!

注册于 4年前

回答
467
文章
291
关注者
196

这样的用法就比较奇怪了,最好使用 appendix 宏包来实现,看看这里:https://tex.stackexchange.com/questions/120716/appendix-after-each-chapter

\documentclass{book}
\usepackage{appendix}
\usepackage{chngcntr}
\usepackage{etoolbox}
\usepackage{lipsum}

\AtBeginEnvironment{subappendices}{%
\chapter*{Appendix}
\addcontentsline{toc}{chapter}{Appendices}
\counterwithin{figure}{section}
\counterwithin{table}{section}
}

\begin{document}

\tableofcontents
\chapter{Test Chapter One}
\section{A regular section}
\section{Another regular section}
\begin{subappendices}
\section{Some title for an appendix}
\lipsum[4]
\section{Some title for an appendix}
\lipsum[4]
\end{subappendices}
\chapter{Test Chapter Two}
\section{A regular section}
\section{Another regular section}
\begin{subappendices}
\section{Some title for an appendix}
\lipsum[4]
\section{Some title for an appendix}
\lipsum[4]
\section{Some title for an appendix}
\lipsum[4]
\end{subappendices}

\end{document}

image.png

cuo错误提示很明显了,双下标 c_i_j 这算是啥。最后的 j 是谁的下标。

此回答仅提问者可以查看

section 是和内容可以认为是黏连的。你后面的内容如果不能正常断页,比如大公式,表格,容易出现类似的问题。

看这里的代码,自己练习下,大致保持一致即可。

\ctexset{
part/pagestyle = empty,
chapter ={
break = {},
name={},
number=\arabic{chapter},
format =\bfseries\heiti\zihao{-3},
beforeskip={-10pt plus .2ex minus -.2ex},
afterskip={5pt plus 3pt minus 3pt}},
section = {
format=\raggedright\bfseries\heiti\zihao{4},numberformat =\rmfamily,
beforeskip={2ex},
afterskip={2ex plus 3pt minus 3pt}
},
subsection = {
format=\raggedright\bfseries\heiti\zihao{-4},numberformat =\rmfamily,
beforeskip={2ex},
afterskip={2ex plus 3pt minus 3pt}
},}

win 10 需要为所有用户安装字体,刷新缓冲用这个命令 fc-cache -fsv

嗯,肯定是那个图觉得站着太累了,想歪着舒服。

这样更好:

\documentclass{ctexart}
\usepackage{array}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{8cm}{>{\ttfamily}p{4cm}p{4cm}}
helloworld & helloworld
\end{tabularx}
\end{document}

编译两次毫无问题,如果不会用,推荐用 latexmk 来编辑。

一般就是两个:内容介绍加个名言啥的,另一个就是 价格 本章节的小目录。我见到的最多的情况是这个。

^^I 是不可见 ASCII 字符 tab 键在 TeX 中的一种表示方法,在 TeX Live 的实现中,可以在编译时加选项 -8bit 避免这种转换即可。

看看自己的系统是否有字体,没有的话最好安装下,然后自己定义下隶书,看看 xeCJK 宏包。

发布
问题