我有 main.tex 文件和 appendix.tex 文件。我使用include
命令插入附录文件。latex 没有问题,但 vim-latex 将语句折叠\include{appendix}
到上一节中。我该如何避免这种情况?
这是 MWE:main.tex
\documentclass[11pt]{scrartcl}
\usepackage[a4paper, total={6.1 in, 9.5in}]{geometry}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[title]{appendix}
\begin{document}
\title{ State of the Art }
\author{\bf My Name}
\date{\today}
\maketitle
\section{Introduction}
Some introduction
\section{Main Section}
Main content
\subsection{subsection}
Subsection content
\newpage
\include{appendix}
\end{document}
和附录.tex
\appendixpage
\begin{appendices}
\section{Appendix Header}
\end{appendices}
\bibliography{bibfile}
答案1
虚假部分如下所述8.2 自定义折叠内容文档可以像%%fakesection Appendix
这样使用
\documentclass[11pt]{article}
\usepackage[title]{appendix}
\begin{document}
\title{ State of the Art }
\author{\bfseries My Name}
\date{\today}
\maketitle
\section{Introduction}
Some introduction
\section{Main Section}
Main content
\subsection{subsection}
Subsection content
%%fakesection Appendix
\newpage
\include{appendix}
\end{document}
折叠起来
+ 3 lines: Preamble: \documentclass[11pt]{article}---------------------
\begin{document}
\title{ State of the Art }
\author{\bfseries My Name}
\date{\today}
\maketitle
+ 3 lines: \section{Introduction}--------------------------------------
+ 6 lines: \section{Main Section}--------------------------------------
+ 3 lines: %section Appendix-------------------------------------------
\end{document}