;; A line containing just $$ is treated as a paragraph separator.
;; A line starting with $$ starts a paragraph,
;; but does not separate paragraphs if it has more stuff on it.
+ ;; For \pagebreak allow latex optional arg like \pagebreak[2]
(setq paragraph-start
(concat "[ \t]*\\(\\$\\$\\|"
"\\\\[][]\\|"
"noindent" "newpage" "footnote"
"marginpar" "parbox" "caption"))
"\\|\\$\\$\\|[a-z]*\\(space\\|skip\\|page[a-z]*\\)"
- "\\>\\)[ \t]*\\($\\|%\\)\\)"))
+ "\\>\\)[][0-9 \t]*\\($\\|%\\)\\)"))
(setq-local imenu-create-index-function #'latex-imenu-create-index)
(setq-local tex-face-alist tex-latex-face-alist)
(add-hook 'fill-nobreak-predicate #'latex-fill-nobreak-predicate nil t)