在 TeXstudio 的结构视图中包含元素

在 TeXstudio 的结构视图中包含元素

我想在 TeXstudio 的结构视图中包含元素,以便我可以轻松浏览文档。这些新元素应与结构视图中的章节标题一起。该命令paragraph部分执行了此操作。它在结构中包含标题,但不会在新的段落中排版文本。是否有现有命令在结构视图中包含标题,但不会创建新的章节或子章节?MWE 中有更多详细信息。

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}
Including elements in the structure view of TeXstudio

\section{Section 1}

The name ``Section 1'' is in the structure view.

\subsection{Subsection A}

The name ``Subsection A'' is in the structure view.

\paragraph{Emphasis}

Text of emphasis with \verb|paragraph|. It enters the structure view, but the typeset text does not appear in a new paragraph (normal behavior of \verb|paragraph|). Is there an existing command that emphasizes text and puts the text in the structure view, as \verb|paragraph| does, but that typesets the text in a new paragraph?

\paragraph{Emphasis 2} \ \par

This is a fix, with \verb|\ \par|. But there is probably a better way.

\end{document}

屏幕

相关内容