[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] paragraph-start in modes other than latex
From: |
Marcin Borkowski |
Subject: |
Re: [AUCTeX-devel] paragraph-start in modes other than latex |
Date: |
Sun, 02 Apr 2017 21:01:41 +0200 |
User-agent: |
mu4e 0.9.19; emacs 26.0.50 |
On 2017-04-02, at 13:41, Ikumi Keita <address@hidden> wrote:
> [To: and Subject: changed]
>
> Hi all,
>
> I thought of checking `paragraph-start' in modes other than latex and
> some questions came to my mind. Could you see the following topics?
>
> A. plain-tex mode
> This is a quote from plain-tex.el:
> ----------------------------------------------------------------------
> (setq paragraph-start
> (concat
> "\\(^[ \t]*$"
> "\\|" (regexp-quote TeX-esc) "par\\|"
> "^[ \t]*"
> (regexp-quote TeX-esc)
> "\\("
> "begin\\|end\\|part\\|chapter\\|"
> "section\\|subsection\\|subsubsection\\|"
> "paragraph\\|include\\|includeonly\\|"
> "tableofcontents\\|appendix\\|label\\|caption\\|"
> "\\[\\|\\]" ; display math delimitors
> "\\)"
> "\\|"
> "^[ \t]*\\$\\$" ; display math delimitor
> "\\)" ))
> ----------------------------------------------------------------------
> I know almost nothing about plain TeX commands.
A long-time plain user here. (Now for the last fifteen years I've been
using LaTeX almost exclusively, but I'd been using plain heavily for
like five years. I guess I still remember something.)
> (1) It seems that "\b" is necessary as well.
Most probably, yes.
> (2) Macros "begin", "end", "part" and so on are treated as paragraph
> starters. Are these macros available not only in LaTeX but also plain
> TeX? Similar question goes for "\[" and "\]" as display math
> delimiters.
AFAIR, no \begin, most probably no \part. \end in plain is like
\end{document} (or rather, \stop) in LaTeX. No \[, \] in plain, either,
only $$ ... $$.
I'm now wondering about ConTeXt mode, too.
> Bye,
> Ikumi Keita
Hth,
--
Marcin Borkowski