;ELC ;;; Compiled ;;; in Emacs version 26.3 ;;; 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\300\302!\210\303\304\305\"\207" [require ob org-macs 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")) (#$ . 548)) #@34 LaTeX-specific header arguments. (defconst org-babel-header-args:latex '((border . :any) (fit . :any) (imagemagick (nil t)) (iminoptions . :any) (imoutoptions . :any) (packages . :any) (pdfheight . :any) (pdfpng . :any) (pdfwidth . :any) (headers . :any) (packages . :any) (buffer (yes no))) (#$ . 720)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\310\315&\207" [custom-declare-variable org-babel-latex-htlatex funcall function #[0 "\300\207" [#1="htlatex"] 1 #1#] "The htlatex command to enable conversion of latex to SVG or HTML." :group org-babel :type string org-babel-latex-htlatex-packages #[0 "\300\207" [("[usenames]{color}" "{tikz}" "{color}" "{listings}" "{amsmath}")] 1] "Packages to use for htlatex export." (repeat (string))] 8) #@78 Expand BODY according to PARAMS, return the expanded body. (fn BODY PARAMS) (defalias 'org-babel-expand-body:latex #[514 "C\300\301\302\303\304\305!\306\"\307\310%\311!\"\210\211\242\312\313\203!\314\202\"\315\316\313\317\316##\266\202\207" [mapc make-byte-code 257 "\300\301\302\303\304@\"!A;\203A\202\303\304A\"\300\242#\240\207" vconcat vector [replace-regexp-in-string regexp-quote format "%S"] 7 "\n\n(fn PAIR)" org-babel--get-vars nil replace-regexp-in-string "\\`\\([ ]*\n\\)+" "\\`[ \n ]+" "" "[ \n ]+\\'"] 12 (#$ . 1520)]) #@119 Execute a block of Latex code with Babel. This function is called by `org-babel-execute-src-block'. (fn BODY PARAMS) (defalias 'org-babel-execute:latex #[514 "\306\"\262\307\236A\203\304\307\236A\310!\311\312\313\"\314\236A\315\236A\316\236A\317\236A\320\236A\2063\211\205<\321 \236A\205E\322\n\236A\323 \236A\324\f\236A\325\230?\326\327\236A\"\330\331 \"\203~\204~ \332\333\334\332#Q\335 \n$\210)\202\301\330\336 \"\203\300\337\f!\203\222\340\f!\210 \341\342\343!!\344\345\346\347\350!\351\"\352$\216r\211q\210c\210)r\211q\210\353\354\211\354\345%\210*\266\202\301\n\355\230\204\316\n\356\230\203\242\357 !\203\242 \341\342\343!!\344\345\346\347\350!\360\"\352$\216r\211q\210\361\333\362\f\332#\203\f\332<\203\333\334\332#\202\332Q\202 \363\364\365\260c\210)r\211q\210\353\354\211\354\345%\210*\266\337\f!\2031\340\f!\210\366\n!\367\370\371  #!\210)\337\372 !\373P!\203q\330\374 \"\203h\367\375!\210\367\370\376\372 !\373P#!\210\202\301\377\201A!\210\202\301\337\372 !\201BP!\203\301\330\201B \"\203\231\367\376\372\f!\201BP#\210\202\301\377\201C!\210\202\301\n\201D\230\204\260\203\301 \341\342\343!!\344\345\346\347\350!\201E\"\352$\216r\211q\210\201F\201G!\210\201H\201I \201J\354\201K\201L@\"\"\354$!\203\365\201M\202\366\363\f\203\370\201N\"\202\363\203\332\370\201O \"P\202\363\203)\332\370\201P \"P\202*\363\203F\332 <\203?\333\334 \332#\202A \332Q\202G\363\f\203X\201Q\201RQ\202a\201S\201TQ\261\210)r\211q\210\353\354\211\354\345%\210*\266\337\f!\203\200\340\f!\210\201U\n! \201D\230\203\232\201V\"\210\202\300\203\270\201W\n\n$\210\337!\203\300\340!\210\202\300\377\201X \"\210\210)\354\207\207" [org-latex-packages-alist org-format-latex-header org-format-latex-options org-babel-latex-htlatex org-babel-latex-htlatex-packages default-directory org-babel-expand-body:latex :file file-name-extension org-babel-temp-file "latex-" ".tex" :border :imagemagick :iminoptions :imoutoptions :fit :pdfheight :pdfwidth :headers :buffer "no" append :packages string-suffix-p ".png" "\n" mapconcat identity org-create-formula-image ".tikz" file-exists-p delete-file get-buffer-create generate-new-buffer-name " *temp file*" make-byte-code 0 "\301\300!\205 \302\300!\207" vconcat vector [buffer-name kill-buffer] 2 write-region nil "svg" "html" executable-find [buffer-name kill-buffer] "\\documentclass[preview]{standalone}\n\\def\\pgfsysdriver{pgfsys-tex4ht.def}\n" #[257 "\300P\207" ["\\usepackage"] 3 "\n\n(fn PKG)"] "" "\\begin{document}" "\\end{document}" file-name-directory shell-command format "%s %s" file-name-sans-extension "-1.svg" ".svg" "pwd" "mv %s %s" error org-latex-default-packages-alist "SVG file produced but HTML file requested" ".html" "HTML file produced but SVG file requested" "pdf" [buffer-name kill-buffer] require ox-latex org-latex-guess-inputenc org-splice-latex-header delq mapcar #[257 "\211<\205\n\211A@\300\230?\205\211\207" ["hyperref"] 3 "\n\n(fn EL)"] "\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"] 26 (#$ . 2080)]) #@104 Generate a file from a pdf file using imagemagick. (fn PDFFILE OUT-FILE IM-IN-OPTIONS IM-OUT-OPTIONS) (defalias 'org-babel-latex-convert-pdf #[1028 "\300\301\301\301 \260\302\303\"\210\304!\207" ["convert " " " message "Converting pdffile file %s..." shell-command] 12 (#$ . 5621)]) #@64 Generate a pdf file according to the contents FILE. (fn FILE) (defalias 'org-babel-latex-tex-to-pdf #[257 "\300\301!\210\302!\207" [require ox-latex org-latex-compile] 3 (#$ . 5919)]) #@78 Return an error because LaTeX doesn't support sessions. (fn SESSION PARAMS) (defalias 'org-babel-prep-session:latex #[514 "\300\301!\207" [error "LaTeX does not support sessions"] 4 (#$ . 6111)]) (provide 'ob-latex)