;ELC   
;;; Compiled
;;; in Emacs version 24.5.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\300\301!\210\302\303\304\"\207" [require ob add-to-list org-babel-tangle-lang-exts ("latex" . "tex")] 3)
#@64 Default arguments to use when evaluating a LaTeX source block.
(defvar org-babel-default-header-args:latex '((:results . "latex") (:exports . "results")) (#$ . 528))
#@34 LaTeX-specific header arguments.
(defconst org-babel-header-args:latex '((border . :any) (fit . :any) (iminoptions . :any) (imoutoptions . :any) (packages . :any) (pdfheight . :any) (pdfpng . :any) (pdfwidth . :any)) (#$ . 700))
(byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\313&\207" [custom-declare-variable org-babel-latex-htlatex "htlatex" "The htlatex command to enable conversion of latex to SVG or HTML." :group org-babel :type string org-babel-latex-htlatex-packages '("[usenames]{color}" "{tikz}" "{color}" "{listings}" "{amsmath}") "Packages to use for htlatex export." (repeat (string))] 8)
#@60 Expand BODY according to PARAMS, return the expanded body.
(defalias 'org-babel-expand-body:latex #[(body params) "\302\303\304\305\306\307\"\"\"\210\310	!\207" [params body mapc #[(pair) "\302\303\304\305@\"!A;\203 A\202 \304\305A\"	#\211\207" [pair body replace-regexp-in-string regexp-quote format "%S"] 5] mapcar cdr org-babel-get-header :var org-babel-trim] 7 (#$ . 1342)])
#@101 Execute a block of Latex code with Babel.
This function is called by `org-babel-execute-src-block'.
(defalias 'org-babel-execute:latex #[(body params) "\306	\"\307\310	\"A\203\263\307\310	\"A\311\312\313\"\307\314	\"A\307\315	\"A\307\316	\"A@\307\317	\"AA\307\320	\"AB\307\321	\"A\206B \f\211C\205M \307\322	\"ADC\205Y \307\323	\"AE\307\324	\"AF\307\325	\"A\326\230?G\327\307\330	\"AH\"H\331\332\n\"\203\216 \204\216 \333\nIG$\210\202\257\331\334\n\"\203\306 \335\n!\203\237 \336\n!\210\n\337\340\341!!JK\342\216rJq\210c\210)rJq\210\343\344\211K\344\345%\210,\202\257\331\346\n\"\204\324 \331\347\n\"\203\220\350L!\203\220\337\340\341!!MN\351\216rMq\210\352\353\354O\355#F\203\355F<\203\353\356F\355#\202\nF\355Q\202\357\360\361\260c\210)rMq\210\343\344\211N\344\345%\210,\335\n!\2031\336\n!\210\362!P\363\364\365L#!\210)\335\366!\367P!\203k\331\346\n\"\203d\363\370!\210\363\364\371\366!\367P\n#!\210\202\257\372\373!\210\202\257\335\366!\374P!\203\257\331\347\n\"\203\211\363\371\366!\374P\n#\210\202\257\372\375!\210\202\257\331\376\n\"\204\233\203\230\337\340\341!!QR\377\216rQq\210\201V \201W !\210\201X \201Y S\201Z \344\201[ \201\\ T\"\"H\344$!C\203\332\201] \202\333\357\f\203\350\364\201^ \f\"\202\351\357D\203\372\355\364\201_ D\"P\202\373\357E\203\f\355\364\201` E\"P\202\357F\203)\355F<\203\"\353\356F\355#\202$F\355Q\202*\357C\203:\201a \201b Q\202B\201c \201d Q\261\210)rQq\210\343\344\211R\344\345%\210,\335\n!\203_\336\n!\210\201e !U\331\376\n\"\203x\201f U\n\"\210\202\224\203\224\201g U\n@A$\210\335U!\203\224\336U!\210)\202\257\331\201h \n\"\203\257\372\201i \201j \201k \n\"\"\210.\344\207\207" [body params out-file tex-file border imagemagick org-babel-expand-body:latex assoc :file org-babel-temp-file "latex-" ".tex" :border :imagemagick :iminoptions :imoutoptions :pdfpng :fit :pdfheight :pdfwidth :headers :buffer "no" append :packages string-match "\\.png$" org-create-formula-image "\\.tikz$" file-exists-p delete-file get-buffer-create generate-new-buffer-name " *temp file*" ((byte-code "\301!\203\n \302!\210\301\207" [#1=#:temp-buffer buffer-name kill-buffer] 2)) write-region nil 0 "\\.svg$" "\\.html$" executable-find ((byte-code "\301!\203\n \302!\210\301\207" [#2=#:temp-buffer buffer-name kill-buffer] 2)) "\\documentclass[preview]{standalone}\n\\def\\pgfsysdriver{pgfsys-tex4ht.def}\n" mapconcat #[(pkg) "\301P\207" [pkg "\\usepackage"] 2] "\n" identity "" "\\begin{document}" "\\end{document}" file-name-directory shell-command format "%s %s" file-name-sans-extension "-1.svg" "pwd" "mv %s %s" error "SVG file produced but HTML file requested" ".html" "HTML file produced but SVG file requested" "\\.pdf$" ((byte-code "\301!\203\n \302!\210\301\207" [#3=#:temp-buffer buffer-name kill-buffer] 2)) im-in-options im-out-options pdfpng fit height width headers in-buffer org-latex-packages-alist org-format-latex-options #1# #4=#:temp-file org-babel-latex-htlatex #2# #5=#:temp-file org-babel-latex-htlatex-packages default-directory #3# #6=#:temp-file org-format-latex-header org-latex-default-packages-alist transient-pdf-file require ox-latex org-latex-guess-inputenc org-splice-latex-header delq mapcar #[(el) "<\205 \211A@\262\301\230?\205 \207" [el "hyperref"] 2] "\n\\usepackage[active, tightpage]{preview}\n" "\\setlength{\\PreviewBorder}{%s}" "\\pdfpageheight %s" "\\pdfpagewidth %s" "\n\\begin{document}\n\\begin{preview}\n" "\n\\end{preview}\n\\end{document}\n" "\n\\begin{document}\n" "\n\\end{document}\n" org-babel-latex-tex-to-pdf rename-file org-babel-latex-convert-pdf "\\.\\([^\\.]+\\)$" "Can not create %s files, please specify a .png or .pdf file or try the :imagemagick header argument" match-string 1] 11 (#$ . 1736)])
#@52 Generate a file from a pdf file using imagemagick.
(defalias 'org-babel-latex-convert-pdf #[(pdffile out-file im-in-options im-out-options) "\305\306	\306\n\306\260\307\310\f\311Q!\210\312\f!)\207" [im-in-options pdffile im-out-options out-file cmd "convert " " " message "Converting pdffile file " "..." shell-command] 8 (#$ . 5560)])
#@53 Generate a pdf file according to the contents FILE.
(defalias 'org-babel-latex-tex-to-pdf #[(file) "\301\302!\210\303!\207" [file require ox-latex org-latex-compile] 2 (#$ . 5906)])
#@57 Return an error because LaTeX doesn't support sessions.
(defalias 'org-babel-prep-session:latex #[(session params) "\300\301!\207" [error "LaTeX does not support sessions"] 2 (#$ . 6095)])
(provide 'ob-latex)
