Server IP : 111.118.215.189 / Your IP : 18.117.158.174 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/org/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:41 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/ob-latex.el ;;; in Emacs version 24.3.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")) (#$ . 673)) #@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\305A\" #\211\207" [pair body replace-regexp-in-string regexp-quote format "%S"] 5] mapcar cdr org-babel-get-header :var org-babel-trim] 7 (#$ . 845)]) #@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\230\307\310 \"A\311\312\313\"\307\314 \"A\307\315 \"A\307\316 \"A@\307\317 \"AA\307\320 \"AB\307\321 \"A\206B \f\211C\205M \307\322 \"ADC\205Y \307\323 \"AE\307\324 \"AF\307\325 \"A\326\230?G\327\307\330 \"AH\"H\331\332\n\"\203\216 \204\216 \333\nIG$\210\202\224\331\334\n\"\204\231 \203\201\335\336!\210\337\340\341!!JK\342\216rJq\210\343L\344\345\346\347M\"\"HN$C\203\307 \350\202\310 \351\f\203\323 \352\353\f\"\202\324 \351D\203\343 \354\352\355D\"P\202\344 \351E\203\363 \354\352\356E\"P\202\364 \351F\203\354F<\203 \357\360F\354#\202F\354Q\202\351N\203\354NP\202\351C\203*\361\362Q\202.\363\364Q\261\210\365 \210)rJq\210\366\345\211K\345\367%\210,\370\n!\203N\371\n!\210\372!O\331\334\n\"\203c\373O\n\"\210\202} \203}\374O\n@A$\210\370O!\203}\371O!\210)\202\224\331\375\n\"\203\224\376\377\201P \201Q \n\"\"\210. \345\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 "\\.pdf$" require org-latex 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)) org-splice-latex-header delq nil mapcar #[(el) "<\205 \211A@)\302\230?\205 \207" [el x "hyperref"] 3] "\n\\usepackage[active, tightpage]{preview}\n" "" format "\\setlength{\\PreviewBorder}{%s}" "\n" "\\pdfpageheight %s" "\\pdfpagewidth %s" mapconcat identity "\n\\begin{document}\n\\begin{preview}\n" "\n\\end{preview}\n\\end{document}\n" "\n\\begin{document}\n" "\n\\end{document}\n" org-export-latex-fix-inputenc write-region 0 file-exists-p delete-file org-babel-latex-tex-to-pdf rename-file convert-pdf "\\.\\([^\\.]+\\)$" error "Can not create %s files, please specify a .png or .pdf file or try the :imagemagick header argument" im-in-options im-out-options pdfpng fit height width headers in-buffer org-export-latex-packages-alist org-format-latex-options #1# #2=#:temp-file org-format-latex-header org-export-latex-default-packages-alist org-format-latex-header-extra transient-pdf-file match-string 1] 11 (#$ . 1238)]) #@52 Generate a file from a pdf file using imagemagick. (defalias '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 (#$ . 3740)]) #@105 Generate a pdf file according to the contents FILE. Extracted from `org-export-as-pdf' in org-latex.el. (defalias 'org-babel-latex-tex-to-pdf #[(file) "\306 \307 !\310 !\211\311P &\312\313!'\314\211()r'q\210\315 \210)\316\317 \320Q!\210\307 !(&\203G &9\203G &\321 !!\210\202\267 &\203\267 &\211A&@)\322\323)\"\203r \324\325 *\326\216\321!*\327\211)$)\202U \322\330)\"\203\217 \324\325 *\331\216\321 !*\327\211)$)\202r \322\332)\"\203\255 \324\325 *\333\216\321(!*\327\211)$)\202\217 \334)'\"\210\202G \316\317 \335Q!\210\336\f!\204\315 \337\340\f\341Q!\202\342!\210+\203 ,\314-\211.\203\377 .@-\343-Q\336 !\203\366 \344 !\210.A\211.\204\341 *\316\345!\210\f.\207" [wconfig file default-directory base pdffile org-latex-to-pdf-process current-window-configuration file-name-directory file-name-sans-extension ".pdf" get-buffer-create "*Org PDF LaTeX Output*" nil erase-buffer message "Processing LaTeX file " "..." shell-quote-argument string-match "%b" replace-match match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) t "%f" ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) "%o" ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) shell-command "...done" file-exists-p error "PDF file " " was not produced" set-window-configuration "." delete-file "Exporting to PDF...done" cmds outbuf output-dir cmd save-match-data-internal org-export-pdf-remove-logfiles org-export-pdf-logfiles ext --dolist-tail--] 6 (#$ . 4071)]) #@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 (#$ . 5661)]) (provide 'ob-latex)