oc-csl: Prevent ' from being a LaTeX active char
* lisp/oc-csl.el (org-cite-csl-finalizer): The hanging LaTeX package we're using also affects punctuation and makes `,.'"`?!:;' active characters throughout the entire document. That means a LaTeX snippet like \(f'(x)\) will now make the document fail to compile. See <https://tex.stackexchange.com/questions/61732/hanging-package-chokes-on-apostrophes> for more information. Adding the [notquote] option stops \(f'(x)\) from being an issue. In time it could be worth looking into replacing the hanging package with some use of \parshape.
This commit is contained in:
parent
818bec57eb
commit
a3ba79cd3a
|
@ -595,7 +595,7 @@ property list."
|
|||
(goto-char (match-beginning 0))
|
||||
(let ((re (rx "\\usepackage" (opt "[" (*? nonl) "]") "{hanging}")))
|
||||
(unless (re-search-backward re nil t)
|
||||
(insert "\\usepackage{hanging}\n"))))
|
||||
(insert "\\usepackage[notquote]{hanging}\n"))))
|
||||
(buffer-string))))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue