emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org a3ba79c 2/2: oc-csl: Prevent ' from being a LaTeX a


From: ELPA Syncer
Subject: [elpa] externals/org a3ba79c 2/2: oc-csl: Prevent ' from being a LaTeX active char
Date: Thu, 26 Aug 2021 04:57:16 -0400 (EDT)

branch: externals/org
commit a3ba79cd3a120235dae524f49945fbe99df923cf
Author: TEC <tec@tecosaur.com>
Commit: TEC <tec@tecosaur.com>

    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.
---
 lisp/oc-csl.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/oc-csl.el b/lisp/oc-csl.el
index 617bddb..36a8856 100644
--- a/lisp/oc-csl.el
+++ b/lisp/oc-csl.el
@@ -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))))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]