--- tex-mode.el.orig 2014-05-06 10:44:16.000000000 +1000 +++ tex-mode.el 2014-11-13 07:41:23.523888672 +1100 @@ -1116,6 +1116,7 @@ ;; 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]*\\(\\$\\$\\|" "\\\\[][]\\|" @@ -1137,7 +1138,7 @@ "noindent" "newpage" "footnote" "marginpar" "parbox" "caption")) "\\|\\$\\$\\|[a-z]*\\(space\\|skip\\|page[a-z]*\\)" - "\\>\\)[ \t]*\\($\\|%\\)\\)")) + "\\>\\)[][0-9 \t]*\\($\\|%\\)\\)")) (set (make-local-variable 'imenu-create-index-function) 'latex-imenu-create-index) (set (make-local-variable 'tex-face-alist) tex-latex-face-alist)