WFH tweaks, more options for fic export
This commit is contained in:
parent
bfd5775927
commit
99b9079131
5 changed files with 77 additions and 48 deletions
|
@ -61,6 +61,7 @@
|
|||
(if multichapter
|
||||
(setq chaptertitles (y-or-n-p "Titled chapters?")))
|
||||
(setq ffx (y-or-n-p "FFX fic?"))))
|
||||
(setq draftmode (y-or-n-p "Edit LaTeX file manually?"))
|
||||
(org-format)
|
||||
(save-buffer)
|
||||
(goto-char (point-min))
|
||||
|
@ -217,23 +218,25 @@
|
|||
(replace-match "\\begin{document}\n\\pagestyle{plain}" nil t)))))
|
||||
(goto-char (point-max))
|
||||
(save-buffer)
|
||||
(shell-command
|
||||
(format "xelatex -interaction=batchmode %s"
|
||||
(shell-quote-argument (buffer-file-name))))
|
||||
(shell-command
|
||||
(format "xelatex -interaction=batchmode %s"
|
||||
(shell-quote-argument (buffer-file-name))))
|
||||
(unless draftmode
|
||||
(shell-command
|
||||
(format "xelatex -interaction=batchmode %s"
|
||||
(shell-quote-argument (buffer-file-name))))
|
||||
(shell-command
|
||||
(format "xelatex -interaction=batchmode %s"
|
||||
(shell-quote-argument (buffer-file-name)))))
|
||||
(kill-current-buffer))
|
||||
(delete-file "FFXYevon.ttf")
|
||||
(if (file-exists-p (concat (file-name-base) ".aux"))
|
||||
(delete-file (concat (file-name-base) ".aux")))
|
||||
(if (file-exists-p (concat (file-name-base) ".log"))
|
||||
(delete-file (concat (file-name-base) ".log")))
|
||||
(if (file-exists-p (concat (file-name-base) ".out"))
|
||||
(delete-file (concat (file-name-base) ".out")))
|
||||
(if (file-exists-p (concat (file-name-base) ".toc"))
|
||||
(delete-file (concat (file-name-base) ".toc")))
|
||||
(if (file-exists-p "texput.log")
|
||||
(delete-file "texput.log"))
|
||||
(delete-file texfile)
|
||||
(unless draftmode
|
||||
(delete-file "FFXYevon.ttf")
|
||||
(if (file-exists-p (concat (file-name-base) ".aux"))
|
||||
(delete-file (concat (file-name-base) ".aux")))
|
||||
(if (file-exists-p (concat (file-name-base) ".log"))
|
||||
(delete-file (concat (file-name-base) ".log")))
|
||||
(if (file-exists-p (concat (file-name-base) ".out"))
|
||||
(delete-file (concat (file-name-base) ".out")))
|
||||
(if (file-exists-p (concat (file-name-base) ".toc"))
|
||||
(delete-file (concat (file-name-base) ".toc")))
|
||||
(if (file-exists-p "texput.log")
|
||||
(delete-file "texput.log"))
|
||||
(delete-file texfile))
|
||||
(message "Done"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue