Compare commits

...

3 Commits

1 changed files with 27 additions and 17 deletions

View File

@ -342,9 +342,9 @@ compiler will be used."
(ZLABEL . ,(propertize "Highlight changed pages, requires post-processing" 'face 'font-lock-doc-face))
(ONLYCHANGEDPAGE . ,(propertize "(Also) Highlights changed pages, no post-processing but dodgy floats" 'face 'font-lock-doc-face)))
("--floattype"
(FLOATSAFE . "")
(TRADITIONALSAFE . "")
(IDENTICAL . ""))
(FLOATSAFE . ,(concat "Treat as main text, but skip begin/end commands" (propertize " (default)" 'face 'shadow)))
(TRADITIONALSAFE . "Make deleted environments small and wrapped in brackets. Use with TRADITIONAL/CTRADITIONAL")
(IDENTICAL . "Treat floats exactly the same as the main text"))
("--math-markup"
(off . "Supress markup in math environments. Only show new version")
(whole . "Any change causes the whole equation to be marked as changed")
@ -381,10 +381,22 @@ compiler will be used."
(cdr (bounds-of-thing-at-point 'word)))))))
(orgdiff--define-infix
"-a" latexdiff-async "Export Org to TeX asyncronously"
"-A" latexdiff-async "Export Org to TeX asyncronously"
'boolean nil
(not orgdiff-latexdiff-async))
(orgdiff--define-infix
"-F" latexdiff-flatten "Flatten includes"
'boolean nil
(not orgdiff-latexdiff-flatten))
(orgdiff--define-infix
"-S" latexdiff-allow-spaces "Allow spaces"
'boolean nil
(not orgdiff-latexdiff-allow-spaces))
(orgdiff--define-infix
"-d" latexdiff-skip-deleted "Omit all deleted content"
'boolean nil
(not orgdiff-latexdiff-skip-deleted))
(orgdiff--define-infix
"-t" latexdiff-type "Type"
'symbol 'UNDERLINE
@ -397,16 +409,6 @@ compiler will be used."
"-f" latexdiff-floattype "Float type"
'symbol 'FLOATSAFE
(orgdiff--latexdiff-prompt-flag "--floattype"))
(orgdiff--define-infix
"-F" latexdiff-flatten "Flatten includes"
'boolean nil
(not orgdiff--latexdiff-flatten))
(orgdiff--define-infix
"-S" latexdiff-allow-spaces "Allow spaces"
'boolean nil
(not orgdiff-latexdiff-allow-spaces))
(orgdiff--define-infix
"-m" latexdiff-math-markup "Math markup"
'symbol 'coarse
@ -415,6 +417,10 @@ compiler will be used."
"-g" latexdiff-graphics-markup "Graphics markup"
'symbol 'new-only
(orgdiff--latexdiff-prompt-flag "--graphics-markup"))
(orgdiff--define-infix
"-c" latexdiff-citation-markup "Citation markup"
'boolean t
(not orgdiff-latexdiff-citation-markup))
(transient-define-prefix orgdiff--latexdiff-transient ()
["Processing"
@ -425,13 +431,14 @@ compiler will be used."
;; Preamble file
;; Cleanup output # custom
]
["Style "
["Style"
(orgdiff--set-latexdiff-skip-deleted)
(orgdiff--set-latexdiff-type)
(orgdiff--set-latexdiff-subtype)
(orgdiff--set-latexdiff-floattype)
(orgdiff--set-latexdiff-math-markup)
(orgdiff--set-latexdiff-graphics-markup)
;; Citation markup?
(orgdiff--set-latexdiff-math-markup)
(orgdiff--set-latexdiff-citation-markup)
]
["Action"
("l" "run latexdiff, compile, and open PDF" orgdiff--latexdiff--action-pdf-open)
@ -563,6 +570,9 @@ compiler will be used."
"-s" (symbol-name orgdiff-latexdiff-subtype)
"-f" (symbol-name orgdiff-latexdiff-floattype)
(and orgdiff-latexdiff-allow-spaces "--allow-spaces")
(and orgdiff-latexdiff-skip-deleted "--no-del")
(if orgdiff-latexdiff-citation-markup
"--enable-citation-markup" "--disable-citation-markup")
(format "--math-markup=%s" orgdiff-latexdiff-math-markup)
(format "--graphics-markup=%s" orgdiff-latexdiff-graphics-markup)
(expand-file-name (concat (file-name-sans-extension orgdiff--rev1file) ".tex"))