mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 00:02:51 +00:00
Fix problems with sub and superscript in LaTeX export
This commit is contained in:
parent
7087902788
commit
b62e7fc5a0
|
@ -292,7 +292,7 @@ This is a cons with two strings, to be added before and after the
|
||||||
fixed-with text.
|
fixed-with text.
|
||||||
|
|
||||||
Defaults to \\begin{verbatim} and \\end{verbatim}."
|
Defaults to \\begin{verbatim} and \\end{verbatim}."
|
||||||
:group 'org-export_translation
|
:group 'org-export-translation
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
:type '(cons (string :tag "Open")
|
:type '(cons (string :tag "Open")
|
||||||
(string :tag "Close")))
|
(string :tag "Close")))
|
||||||
|
@ -929,7 +929,7 @@ OPT-PLIST is the options plist for current buffer."
|
||||||
;; insert author info
|
;; insert author info
|
||||||
(if (plist-get opt-plist :author-info)
|
(if (plist-get opt-plist :author-info)
|
||||||
(format "\\author{%s}\n"
|
(format "\\author{%s}\n"
|
||||||
(or author user-full-name))
|
(org-export-latex-fontify-headline (or author user-full-name)));????????????????????
|
||||||
(format "%%\\author{%s}\n"
|
(format "%%\\author{%s}\n"
|
||||||
(or author user-full-name)))
|
(or author user-full-name)))
|
||||||
;; insert the date
|
;; insert the date
|
||||||
|
@ -1161,10 +1161,11 @@ See the `org-export-latex.el' code for a complete conversion table."
|
||||||
sub-superscript
|
sub-superscript
|
||||||
(match-string 2)
|
(match-string 2)
|
||||||
(match-string 1)
|
(match-string 1)
|
||||||
(match-string 3))) "") t t)))))))
|
(match-string 3))) "") t t)
|
||||||
|
(backward-char 1)))))))
|
||||||
'(;"^\\([^\n$]*?\\|^\\)\\(\\\\?\\$\\)\\([^\n$]*\\)$"
|
'(;"^\\([^\n$]*?\\|^\\)\\(\\\\?\\$\\)\\([^\n$]*\\)$"
|
||||||
"\\(\\(\\\\?\\$\\)\\)"
|
"\\(\\(\\\\?\\$\\)\\)"
|
||||||
"\\([a-za-z0-9]+\\|[ \t\n]\\|\\b\\|\\\\\\)\\(_\\|\\^\\)\\({[^{}]+}\\|[a-za-z0-9]+\\|[ \t\n]\\|[:punct:]\\|{[a-za-z0-9]+}\\|([a-za-z0-9]+)\\)"
|
"\\([a-za-z0-9]+\\|[ \t\n]\\|\\b\\|\\\\\\)\\(_\\|\\^\\)\\({[^{}]+}\\|[a-za-z0-9]+\\|[ \t\n]\\|[:punct:]\\|)\\|{[a-za-z0-9]+}\\|([a-za-z0-9]+)\\)"
|
||||||
"\\(.\\|^\\)\\(\\\\\\)\\([ \t\n]\\|[a-zA-Z&#%{}\"]+\\)"
|
"\\(.\\|^\\)\\(\\\\\\)\\([ \t\n]\\|[a-zA-Z&#%{}\"]+\\)"
|
||||||
"\\(.\\|^\\)\\(&\\)"
|
"\\(.\\|^\\)\\(&\\)"
|
||||||
"\\(.\\|^\\)\\(#\\)"
|
"\\(.\\|^\\)\\(#\\)"
|
||||||
|
|
Loading…
Reference in a new issue