1392 |
\\begin{equation} |
\\begin{equation} |
1393 |
fontified stuff |
fontified stuff |
1394 |
\\end{equation} |
\\end{equation} |
1395 |
The \\begin{equation} and \\end{equation are not fontified here." |
The \\begin{equation} and \\end{equation} are not fontified here." |
1396 |
(when (re-search-forward |
(when (re-search-forward |
1397 |
(eval-when-compile |
(eval-when-compile |
1398 |
(concat "\\\\begin{\\(\\(display\\)?math\\|equation\\|eqnarray" |
(concat "\\\\begin[ \t]*{\\(\\(display\\)?math\\|equation\\|eqnarray" |
1399 |
"\\|gather\\|multline\\|align\\|x*alignat" |
"\\|gather\\|multline\\|align\\|x*alignat" |
1400 |
"\\)\\*?}")) |
"\\)\\*?}")) |
1401 |
limit t) |
limit t) |
1402 |
(let ((beg (match-end 0)) end) |
(let ((beg (match-end 0)) end) |
1403 |
(if (search-forward (concat "\\end{" (buffer-substring |
(if (re-search-forward (concat "\\\\end[ \t]*{" |
1404 |
(match-beginning 1)(match-end 0))) |
(regexp-quote (buffer-substring |
1405 |
limit 'move) |
(match-beginning 1) |
1406 |
|
(match-end 0)))) |
1407 |
|
limit 'move) |
1408 |
(setq end (match-beginning 0)) |
(setq end (match-beginning 0)) |
1409 |
(setq end (point))) |
(setq end (point))) |
1410 |
(store-match-data (list beg end)) |
(store-match-data (list beg end)) |