commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311\312\313\314&\207" [require cl-lib ox ox-publish org-export-define-backend latex ((bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) (plain-list . org-latex-plain-list) (plain-text . org-latex-plain-text) (planning . org-latex-planning) (property-drawer . org-latex-property-drawer) (quote-block . org-latex-quote-block) (radio-target . org-latex-radio-target) (section . org-latex-section) (special-block . org-latex-special-block) (src-block . org-latex-src-block) (statistics-cookie . org-latex-statistics-cookie) (strike-through . org-latex-strike-through) (subscript . org-latex-subscript) (superscript . org-latex-superscript) (table . org-latex-table) (table-cell . org-latex-table-cell) (table-row . org-latex-table-row) (target . org-latex-target) (template . org-latex-template) (timestamp . org-latex-timestamp) (underline . org-latex-underline) (verbatim . org-latex-verbatim) (verse-block . org-latex-verse-block) (latex-math-block . org-latex-math-block) (latex-matrices . org-latex-matrices)) :menu-entry (108 "Export to LaTeX" ((76 "As LaTeX buffer" org-latex-export-as-latex) (108 "As LaTeX file" org-latex-export-to-latex) (112 "As PDF file" org-latex-export-to-pdf) (111 "As PDF file and open" (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b))))))) :filters-alist ((:filter-options . org-latex-math-block-options-filter) (:filter-paragraph . org-latex-clean-invalid-line-breaks) (:filter-parse-tree org-latex-math-block-tree-filter org-latex-matrices-tree-filter org-latex-image-link-filter) (:filter-verse-block . org-latex-clean-invalid-line-breaks)) :options-alist ((:latex-class "LATEX_CLASS" nil org-latex-default-class t) (:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t) (:latex-header "LATEX_HEADER" nil nil newline) (:latex-header-extra "LATEX_HEADER_EXTRA" nil nil newline) (:description "DESCRIPTION" nil nil parse) (:keywords "KEYWORDS" nil nil parse) (:subtitle "SUBTITLE" nil nil parse) (:latex-active-timestamp-format nil nil org-latex-active-timestamp-format) (:latex-caption-above nil nil org-latex-caption-above) (:latex-classes nil nil org-latex-classes) (:latex-default-figure-position nil nil org-latex-default-figure-position) (:latex-default-table-environment nil nil org-latex-default-table-environment) (:latex-default-table-mode nil nil org-latex-default-table-mode) (:latex-diary-timestamp-format nil nil org-latex-diary-timestamp-format) (:latex-footnote-defined-format nil nil org-latex-footnote-defined-format) (:latex-footnote-separator nil nil org-latex-footnote-separator) (:latex-format-drawer-function nil nil org-latex-format-drawer-function) (:latex-format-headline-function nil nil org-latex-format-headline-function) (:latex-format-inlinetask-function nil nil org-latex-format-inlinetask-function) (:latex-hyperref-template nil nil org-latex-hyperref-template t) (:latex-image-default-height nil nil org-latex-image-default-height) (:latex-image-default-option nil nil org-latex-image-default-option) (:latex-image-default-width nil nil org-latex-image-default-width) (:latex-images-centered nil nil org-latex-images-centered) (:latex-inactive-timestamp-format nil nil org-latex-inactive-timestamp-format) (:latex-inline-image-rules nil nil org-latex-inline-image-rules) (:latex-link-with-unknown-path-format nil nil org-latex-link-with-unknown-path-format) (:latex-listings nil nil org-latex-listings) (:latex-listings-langs nil nil org-latex-listings-langs) (:latex-listings-options nil nil org-latex-listings-options) (:latex-minted-langs nil nil org-latex-minted-langs) (:latex-minted-options nil nil org-latex-minted-options) (:latex-prefer-user-labels nil nil org-latex-prefer-user-labels) (:latex-subtitle-format nil nil org-latex-subtitle-format) (:latex-subtitle-separate nil nil org-latex-subtitle-separate) (:latex-table-scientific-notation nil nil org-latex-table-scientific-notation) (:latex-tables-booktabs nil nil org-latex-tables-booktabs) (:latex-tables-centered nil nil org-latex-tables-centered) (:latex-text-markup-alist nil nil org-latex-text-markup-alist) (:latex-title-command nil nil org-latex-title-command) (:latex-toc-command nil nil org-latex-toc-command) (:latex-compiler "LATEX_COMPILER" nil org-latex-compiler) (:date "DATE" nil "\\today" parse))] 9) |
|
16 |
#@61 Alist between language code and corresponding Babel option. |
|
17 |
(defconst org-latex-babel-language-alist '(("af" . "afrikaans") ("bg" . "bulgarian") ("bt-br" . "brazilian") ("ca" . "catalan") ("cs" . "czech") ("cy" . "welsh") ("da" . "danish") ("de" . "germanb") ("de-at" . "naustrian") ("de-de" . "ngerman") ("el" . "greek") ("en" . "english") ("en-au" . "australian") ("en-ca" . "canadian") ("en-gb" . "british") ("en-ie" . "irish") ("en-nz" . "newzealand") ("en-us" . "american") ("es" . "spanish") ("et" . "estonian") ("eu" . "basque") ("fi" . "finnish") ("fr" . "frenchb") ("fr-ca" . "canadien") ("gl" . "galician") ("hr" . "croatian") ("hu" . "hungarian") ("id" . "indonesian") ("is" . "icelandic") ("it" . "italian") ("la" . "latin") ("ms" . "malay") ("nl" . "dutch") ("nb" . "norsk") ("nn" . "nynorsk") ("no" . "norsk") ("pl" . "polish") ("pt" . "portuguese") ("ro" . "romanian") ("ru" . "russian") ("sa" . "sanskrit") ("sb" . "uppersorbian") ("sk" . "slovak") ("sl" . "slovene") ("sq" . "albanian") ("sr" . "serbian") ("sv" . "swedish") ("ta" . "tamil") ("tr" . "turkish") ("uk" . "ukrainian")) (#$ . 5694)) |
|
18 |
#@66 Alist between language code and corresponding Polyglossia option |
|
19 |
(defconst org-latex-polyglossia-language-alist '(("am" "amharic") ("ast" "asturian") ("ar" "arabic") ("bo" "tibetan") ("bn" "bengali") ("bg" "bulgarian") ("br" "breton") ("bt-br" "brazilian") ("ca" "catalan") ("cop" "coptic") ("cs" "czech") ("cy" "welsh") ("da" "danish") ("de" "german" "german") ("de-at" "german" "austrian") ("de-de" "german" "german") ("dv" "divehi") ("el" "greek") ("en" "english" "usmax") ("en-au" "english" "australian") ("en-gb" "english" "uk") ("en-nz" "english" "newzealand") ("en-us" "english" "usmax") ("eo" "esperanto") ("es" "spanish") ("et" "estonian") ("eu" "basque") ("fa" "farsi") ("fi" "finnish") ("fr" "french") ("fu" "friulan") ("ga" "irish") ("gd" "scottish") ("gl" "galician") ("he" "hebrew") ("hi" "hindi") ("hr" "croatian") ("hu" "magyar") ("hy" "armenian") ("id" "bahasai") ("ia" "interlingua") ("is" "icelandic") ("it" "italian") ("kn" "kannada") ("la" "latin" "modern") ("la-modern" "latin" "modern") ("la-classic" "latin" "classic") ("la-medieval" "latin" "medieval") ("lo" "lao") ("lt" "lithuanian") ("lv" "latvian") ("mr" "maranthi") ("ml" "malayalam") ("nl" "dutch") ("nb" "norsk") ("nn" "nynorsk") ("nko" "nko") ("no" "norsk") ("oc" "occitan") ("pl" "polish") ("pms" "piedmontese") ("pt" "portuges") ("rm" "romansh") ("ro" "romanian") ("ru" "russian") ("sa" "sanskrit") ("hsb" "usorbian") ("dsb" "lsorbian") ("sk" "slovak") ("sl" "slovenian") ("se" "samin") ("sq" "albanian") ("sr" "serbian") ("sv" "swedish") ("syr" "syriac") ("ta" "tamil") ("te" "telugu") ("th" "thai") ("tk" "turkmen") ("tr" "turkish") ("uk" "ukrainian") ("ur" "urdu") ("vi" "vietnamese")) (#$ . 6813)) |
|
20 |
#@51 Alist between matrix macros and their row ending. |
|
21 |
(defconst org-latex-table-matrix-macros '(("bordermatrix" . "\\cr") ("qbordermatrix" . "\\cr") ("kbordermatrix" . "\\\\")) (#$ . 8506)) |
|
22 |
#@36 Regexp of LaTeX math environments. |
|
23 |
(defconst org-latex-math-environments-re (format "\\`[ ]*\\\\begin{%s\\*?}" "\\(?:align\\(?:at\\)?\\|d\\(?:array\\|group\\|isplaymath\\|math\\|series\\)\\|e\\(?:mpheq\\|q\\(?:narray\\|uation\\)\\)\\|flalign\\|gather\\|m\\(?:ath\\|ultline\\)\\|subequations\\|x\\(?:x?alignat\\)\\)") (#$ . 8698)) |
|
24 |
(byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\306\301\316\317\320\321\322\323&\210\310\324\312\313\325DD\326\306\301\322\327\316\317\320\330&\210\310\331\312\313\332DD\333\306\301\322\334&\210\310\335\312\313\336DD\337\306\301\322\340&\210\310\341\312\313\342DD\343\306\301\322\344&\210\310\345\312\313\346DD\347\306\301\322\350&\210\310\351\312\313\352DD\353\306\301\316\317\320\354\322\355&\210\310\356\312\313\357DD\360\306\301\316\317\320\361\322\327&\210\310\362\312\313\363DD\364\306\301\322\365&\210\310\366\312\313\367DD\370\306\301\316\317\320\371\322\372&\210\310\373\312\313\374DD\375\306\301\316\376\320\377\322\313&\210\310\201@ \312\313\201A DD\201B \306\301\322\365&\210\310\201C \312\313\201D DD\201E \306\301\322\201F \316\317\320\201G &\210\310\201H \312\313\201I DD\201J \306\301\322\365&\210\310\201K \312\313\201L DD\201M \306\301\322\365&\210\310\201N \312\313\201O DD\201P \306\301\322\365&\210\310\201Q \312\313\201R DD\201S \306\301\316\317\320\201T \322\327\201U \201V &
\210\310\201W \312\313\201X DD\201Y \306\301\316\376\320\201Z \322\365&\210\310\201[ \312\313\201\\ DD\201] \306\301\316\376\320\201^ \322\365&\210\310\201_ \312\313\201` DD\201a \306\301\316\376\320\201b \322\365&\210\310\201c \312\313\201d DD\201e \306\301\322\365\316\317\320\201f \201U \201g &
\210\310\201h \312\313\201i DD\201j \306\301\316\376\320\201k \322\201l &\210\310\201m \312\313\201n DD\201o \306\301\322\365&\210\310\201p \312\313\201q DD\201r \306\301\316\376\320\201s \322\365&\210\310\201t \312\313\201u DD\201v \306\301\316\376\320\201w \322\201x \201U \201y &
\210\310\201z \312\313\201{ DD\201| \306\301\322\327\201U \201V & \210\310\201} \312\313\201~ DD\201 \306\301\316\376\320\201\200 \322\327\201U \201V &
\210\310\201\201 \312\313\201\202 DD\201\203 \306\301\316\376\320\201\204 \322\201\205 &\210\310\201\206 \312\313\201\207 DD\201\210 \306\301\316\317\320\201\211 \322\201\212 \201\213 \201\214 &
\210\310\201\215 \312\313\201\216 DD\201\217 \306\301\316\317\320\201\220 \322\313&\210\310\201\221 \312\313\201\222 DD\201\223 \306\301\322\313\316\317\320\201\224 &\210\310\201\225 \312\313\201\226 DD\201\227 \306\301\322\201\230 \201U \201\231 & \210\310\201\232 \312\313\201\233 DD\201\234 \306\301\316\317\320\201\235 \322\201\236 &\210\310\201\237 \312\313\201\240 DD\201\241 \306\301\322\201\242 &\210\310\201\243 \312\313\201\244 DD\201\245 \306\301\322\201\246 &\210\310\201\247 \312\313\201\250 DD\201\251 \306\301\322\201\252 &\210\310\201\253 \312\313\201\254 DD\201\255 \306\301\322\201\256 \316\317\320\201\257 &\210\310\201\260 \312\313\201\261 DD\201\262 \306\301\322\201\263 \316\317\320\201\264 &\210\310\201\265 \312\313\201\266 DD\201\267 \306\301\322\201\270 \316\317\320\201\271 &\207" [custom-declare-group org-export-latex nil "Options for exporting Org mode files to LaTeX." :tag "Org Export LaTeX" :group org-export custom-declare-variable org-latex-caption-above funcall function #[0 "\300\207" [(table)] 1] "When non-nil, place caption string at the beginning of elements.\nOtherwise, place it near the end. When value is a list of\nsymbols, put caption above selected elements only. Allowed\nsymbols are: `image', `table', `src-block' and `special-block'." :version "26.1" :package-version (Org . "8.3") :type (choice (const :tag "For all elements" t) (const :tag "For no element" nil) (set :tag "For the following elements only" :greedy t (const :tag "Images" image) (const :tag "Tables" table) (const :tag "Source code" src-block) (const :tag "Special blocks" special-block))) org-latex-prefer-user-labels #[0 "\300\207" [nil] 1] "Use user-provided labels instead of internal ones when non-nil.\n\nWhen this variable is non-nil, Org will use the value of\nCUSTOM_ID property, NAME keyword or Org target as the key for the\n\\label commands generated.\n\nBy default, Org generates its own internal labels during LaTeX\nexport. This process ensures that the \\label keys are unique\nand valid, but it means the keys are not available in advance of\nthe export process.\n\nSetting this variable gives you control over how Org generates\nlabels during LaTeX export, so that you may know their keys in\nadvance. One reason to do this is that it allows you to refer to\nvarious elements using a single label both in Org's link syntax\nand in embedded LaTeX code.\n\nFor example, when this variable is non-nil, a headline like this:\n\n ** Some section\n :PROPERTIES:\n :CUSTOM_ID: sec:foo\n :END:\n This is section [[#sec:foo]].\n #+BEGIN_EXPORT latex\n And this is still section \\ref{sec:foo}.\n #+END_EXPORT\n\nwill be exported to LaTeX as:\n\n \\subsection{Some section}\n \\label{sec:foo}\n This is section \\ref{sec:foo}.\n And this is still section \\ref{sec:foo}.\n\nNote, however, that setting this variable introduces a limitation\non the possible values for CUSTOM_ID and NAME. When this\nvariable is non-nil, Org passes their value to \\label unchanged.\nYou are responsible for ensuring that the value is a valid LaTeX\n\\label key, and that no other \\label commands with the same key\nappear elsewhere in your document. (Keys may contain letters,\nnumbers, and the following punctuation: '_' '.' '-' ':'.) There\nare no such limitations on CUSTOM_ID and NAME when this variable\nis nil.\n\nFor headlines that do not define the CUSTOM_ID property or\nelements without a NAME, Org will continue to use its default\nlabeling scheme to generate labels and resolve links into proper\nreferences." boolean (Org . "8.3") org-latex-default-class #[0 "\300\207" [#1="article"] 1 #1#] "The default LaTeX class." (string :tag "LaTeX class") org-latex-classes #[0 "\300\207" [(("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))] 1] "Alist of LaTeX classes and associated header and structure.\nIf #+LATEX_CLASS is set in the buffer, use its value and the\nassociated information. Here is the structure of each cell:\n\n (class-name\n header-string\n (numbered-section . unnumbered-section)\n ...)\n\nThe header string\n-----------------\n\nThe HEADER-STRING is the header that will be inserted into the\nLaTeX file. It should contain the \\documentclass macro, and\nanything else that is needed for this setup. To this header, the\nfollowing commands will be added:\n\n- Calls to \\usepackage for all packages mentioned in the\n variables `org-latex-default-packages-alist' and\n `org-latex-packages-alist'. Thus, your header definitions\n should avoid to also request these packages.\n\n- Lines specified via \"#+LATEX_HEADER:\" and\n \"#+LATEX_HEADER_EXTRA:\" keywords.\n\nIf you need more control about the sequence in which the header\nis built up, or if you want to exclude one of these building\nblocks for a particular class, you can use the following\nmacro-like placeholders.\n\n [DEFAULT-PACKAGES] \\usepackage statements for default packages\n [NO-DEFAULT-PACKAGES] do not include any of the default packages\n [PACKAGES] \\usepackage statements for packages\n [NO-PACKAGES] do not include the packages\n [EXTRA] the stuff from #+LATEX_HEADER(_EXTRA)\n [NO-EXTRA] do not include #+LATEX_HEADER(_EXTRA) stuff\n\nSo a header like\n\n \\documentclass{article}\n [NO-DEFAULT-PACKAGES]\n [EXTRA]\n \\providecommand{\\alert}[1]{\\textbf{#1}}\n [PACKAGES]\n\nwill omit the default packages, and will include the\n#+LATEX_HEADER and #+LATEX_HEADER_EXTRA lines, then have a call\nto \\providecommand, and then place \\usepackage commands based\non the content of `org-latex-packages-alist'.\n\nIf your header, `org-latex-default-packages-alist' or\n`org-latex-packages-alist' inserts \"\\usepackage[AUTO]{inputenc}\",\nAUTO will automatically be replaced with a coding system derived\nfrom `buffer-file-coding-system'. See also the variable\n`org-latex-inputenc-alist' for a way to influence this mechanism.\n\nLikewise, if your header contains \"\\usepackage[AUTO]{babel}\"\nor \"\\usepackage[AUTO]{polyglossia}\", AUTO will be replaced\nwith the language related to the language code specified by\n`org-export-default-language'. Note that constructions such as\n\"\\usepackage[french,AUTO,english]{babel}\" are permitted. For\nPolyglossia the language will be set via the macros\n\"\\setmainlanguage\" and \"\\setotherlanguage\". See also\n`org-latex-guess-babel-language' and\n`org-latex-guess-polyglossia-language'.\n\nThe sectioning structure\n------------------------\n\nThe sectioning structure of the class is given by the elements\nfollowing the header string. For each sectioning level, a number\nof strings is specified. A %s formatter is mandatory in each\nsection string and will be replaced by the title of the section.\n\nInstead of a cons cell (numbered . unnumbered), you can also\nprovide a list of 2 or 4 elements,\n\n (numbered-open numbered-close)\n\nor\n\n (numbered-open numbered-close unnumbered-open unnumbered-close)\n\nproviding opening and closing strings for a LaTeX environment\nthat should represent the document section. The opening clause\nshould have a %s to represent the section title.\n\nInstead of a list of sectioning commands, you can also specify\na function name. That function will be called with two\nparameters, the (reduced) level of the headline, and a predicate\nnon-nil when the headline should be numbered. It must return\na format string in which the section title will be added." (repeat (list (string :tag "LaTeX class") (string :tag "LaTeX header") (repeat :tag "Levels" :inline t (choice (cons :tag "Heading" (string :tag " numbered") (string :tag "unnumbered")) (list :tag "Environment" (string :tag "Opening (numbered)") (string :tag "Closing (numbered)") (string :tag "Opening (unnumbered)") (string :tag "Closing (unnumbered)")) (function :tag "Hook computing sectioning"))))) org-latex-inputenc-alist #[0 "\300\207" [nil] 1] "Alist of inputenc coding system names, and what should really be used.\nFor example, adding an entry\n\n (\"utf8\" . \"utf8x\")\n\nwill cause \\usepackage[utf8x]{inputenc} to be used for buffers that\nare written as utf8 files." (repeat (cons (string :tag "Derived from buffer") (string :tag "Use this instead"))) org-latex-title-command #[0 "\300\207" [#2="\\maketitle"] 1 #2#] "The command used to insert the title just after \\begin{document}.\n\nThis format string may contain these elements:\n\n %a for AUTHOR keyword\n %t for TITLE keyword\n %s for SUBTITLE keyword\n %k for KEYWORDS line\n %d for DESCRIPTION line\n %c for CREATOR line\n %l for Language keyword\n %L for capitalized language keyword\n %D for DATE keyword\n\nIf you need to use a \"%\" character, you need to escape it\nlike that: \"%%\".\n\nSetting :latex-title-command in publishing projects will take\nprecedence over this variable." (string :tag "Format string") org-latex-subtitle-format #[0 "\300\207" [#3="\\\\\\medskip\n\\large %s"] 1 #3#] "Format string used for transcoded subtitle.\nThe format string should have at most one \"%s\"-expression,\nwhich is replaced with the subtitle." (Org . "8.3") (string :tag "Format string") org-latex-subtitle-separate #[0 "\300\207" [nil] 1] "Non-nil means the subtitle is not typeset as part of title." (Org . "8.3") org-latex-toc-command #[0 "\300\207" [#4="\\tableofcontents\n\n"] 1 #4#] "LaTeX command to set the table of contents, list of figures, etc.\nThis command only applies to the table of contents generated with\nthe toc:nil option, not to those generated with #+TOC keyword." string org-latex-hyperref-template #[0 "\300\207" [#5="\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}}\n"] 1 #5#] "Template for hyperref package options.\n\nThis format string may contain these elements:\n\n %a for AUTHOR keyword\n %t for TITLE keyword\n %s for SUBTITLE keyword\n %k for KEYWORDS line\n %d for DESCRIPTION line\n %c for CREATOR line\n %l for Language keyword\n %L for capitalized language keyword\n %D for DATE keyword\n\nIf you need to use a \"%\" character, you need to escape it\nlike that: \"%%\".\n\nAs a special case, a nil value prevents template from being\ninserted.\n\nSetting :latex-hyperref-template in publishing projects will take\nprecedence over this variable." (Org . "8.3") (choice (const :tag "No template" nil) (string :tag "Format string")) org-latex-format-headline-function #[0 "\300\207" [org-latex-format-headline-default-function] 1] "Function for formatting the headline's text.\n\nThis function will be called with six arguments:\nTODO the todo keyword (string or nil)\nTODO-TYPE the type of todo (symbol: `todo', `done', nil)\nPRIORITY the priority of the headline (integer or nil)\nTEXT the main headline text (string)\nTAGS the tags (list of strings or nil)\nINFO the export options (plist)\n\nThe function result will be used in the section format string." "24.4" (Org . "8.0") org-latex-footnote-separator #[0 "\300\207" [#6="\\textsuperscript{,}\\,"] 1 #6#] "Text used to separate footnotes." org-latex-footnote-defined-format #[0 "\300\207" [#7="\\textsuperscript{\\ref{%s}}"] 1 #7#] "Format string used to format reference to footnote already defined.\n%s will be replaced by the label of the referred footnote." (choice (const :tag "Use plain superscript (default)" "\\textsuperscript{\\ref{%s}}") (const :tag "Use Memoir/KOMA-Script footref" "\\footref{%s}") (string :tag "Other format string")) (Org . "9.0") org-latex-active-timestamp-format #[0 "\300\207" [#8="\\textit{%s}"] 1 #8#] "A printf format string to be applied to active timestamps." org-latex-inactive-timestamp-format #[0 "\300\207" [#9="\\textit{%s}"] 1 #9#] "A printf format string to be applied to inactive timestamps." org-latex-diary-timestamp-format #[0 "\300\207" [#10="\\textit{%s}"] 1 #10#] "A printf format string to be applied to diary timestamps." org-latex-images-centered #[0 "\300\207" [t] 1] "When non-nil, images are centered." (Org . "9.0") :safe booleanp org-latex-image-default-option #[0 "\300\207" [#11=""] 1 #11#] "Default option for images." (Org . "8.0") org-latex-image-default-width #[0 "\300\207" [#12=".9\\linewidth"] 1 #12#] "Default width for images.\nThis value will not be used if a height is provided." (Org . "8.0") org-latex-image-default-height #[0 "\300\207" [#11#] 1 #11#] "Default height for images.\nThis value will not be used if a width is provided, or if the\nimage is wrapped within a \"figure\" or \"wrapfigure\"\nenvironment." (Org . "8.0") org-latex-default-figure-position #[0 "\300\207" [#13="htbp"] 1 #13#] "Default position for LaTeX figures." (Org . "9.0") stringp org-latex-inline-image-rules #[0 "\300\301BC\207" ["file" "\\(?:eps\\|jp\\(?:e?g\\)\\|p\\(?:df\\|gf\\|ng\\|s\\)\\|svg\\|tikz\\)"] 2] "Rules characterizing image files that can be inlined into LaTeX.\n\nA rule consists in an association whose key is the type of link\nto consider, and value is a regexp that will be matched against\nlink's path.\n\nNote that, by default, the image extension *actually* allowed\ndepend on the way the LaTeX file is processed. When used with\npdflatex, pdf, jpg and png images are OK. When processing\nthrough dvi to Postscript, only ps and eps are allowed. The\ndefault we use here encompasses both." (Org . "8.0") (alist :key-type (string :tag "Type") :value-type (regexp :tag "Path")) org-latex-link-with-unknown-path-format #[0 "\300\207" [#14="\\texttt{%s}"] 1 #14#] "Format string for links with unknown path type." org-latex-default-table-environment #[0 "\300\207" [#15="tabular"] 1 #15#] "Default environment used to build tables." (Org . "8.0") org-latex-default-table-mode #[0 "\300\207" [table] 1] "Default mode for tables.\n\nValue can be a symbol among:\n\n `table' Regular LaTeX table.\n\n `math' In this mode, every cell is considered as being in math\n mode and the complete table will be wrapped within a math\n environment. It is particularly useful to write matrices.\n\n `inline-math' This mode is almost the same as `math', but the\n math environment will be inlined.\n\n `verbatim' The table is exported as it appears in the Org\n buffer, within a verbatim environment.\n\nThis value can be overridden locally with, i.e. \":mode math\" in\nLaTeX attributes.\n\nWhen modifying this variable, it may be useful to change\n`org-latex-default-table-environment' accordingly." (Org . "8.0") (choice (const :tag "Table" table) (const :tag "Matrix" math) (const :tag "Inline matrix" inline-math) (const :tag "Verbatim" verbatim)) #[257 "\211\300>\207" [(table math inline-math verbatim)] 3 "\n\n(fn S)"] org-latex-tables-centered #[0 "\300\207" [t] 1] "When non-nil, tables are exported in a center environment." org-latex-tables-booktabs #[0 "\300\207" [nil] 1] "When non-nil, display tables in a formal \"booktabs\" style.\nThis option assumes that the \"booktabs\" package is properly\nloaded in the header of the document. This value can be ignored\nlocally with \":booktabs t\" and \":booktabs nil\" LaTeX\nattributes." (Org . "8.0") org-latex-table-scientific-notation #[0 "\300\207" [#16="%s\\,(%s)"] 1 #16#] "Format string to display numbers in scientific notation.\nThe format should have \"%s\" twice, for mantissa and exponent\n(i.e., \"%s\\\\times10^{%s}\").\n\nWhen nil, no transformation is made." (Org . "8.0") (choice (string :tag "Format string") (const :tag "No formatting" nil)) org-latex-text-markup-alist #[0 "\300\207" [((bold . "\\textbf{%s}") (code . protectedtexttt) (italic . "\\emph{%s}") (strike-through . "\\sout{%s}") (underline . "\\uline{%s}") (verbatim . protectedtexttt))] 1] "Alist of LaTeX expressions to convert text markup.\n\nThe key must be a symbol among `bold', `code', `italic',\n`strike-through', `underline' and `verbatim'. The value is\na formatting string to wrap fontified text with.\n\nValue can also be set to the following symbols: `verb' and\n`protectedtexttt'. For the former, Org will use \"\\verb\" to\ncreate a format string and select a delimiter character that\nisn't in the string. For the latter, Org will use \"\\texttt\"\nto typeset and try to protect special characters.\n\nIf no association can be found for a given markup, text will be\nreturned as-is." (Org . "8.3") alist :options (bold code italic strike-through underline verbatim) org-latex-format-drawer-function #[0 "\300\207" [#[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]] 1] "Function called to format a drawer in LaTeX code.\n\nThe function must accept two parameters:\n NAME the drawer name, like \"LOGBOOK\"\n CONTENTS the contents of the drawer.\n\nThe function should return the string to be exported.\n\nThe default function simply returns the value of CONTENTS." (Org . "8.3") org-latex-format-inlinetask-function #[0 "\300\207" [org-latex-format-inlinetask-default-function] 1] "Function called to format an inlinetask in LaTeX code.\n\nThe function must accept seven parameters:\n TODO the todo keyword (string or nil)\n TODO-TYPE the todo type (symbol: `todo', `done', nil)\n PRIORITY the inlinetask priority (integer or nil)\n NAME the inlinetask name (string)\n TAGS the inlinetask tags (list of strings or nil)\n CONTENTS the contents of the inlinetask (string or nil)\n INFO the export options (plist)\n\nThe function should return the string to be exported." (Org . "8.3") org-latex-listings #[0 "\300\207" [nil] 1] "Non-nil means export source code using the listings package.\n\nThis package will fontify source code, possibly even with color.\nIf you want to use this, you also need to make LaTeX use the\nlistings package, and if you want to have color, the color\npackage. Just add these to `org-latex-packages-alist', for\nexample using customize, or with something like:\n\n (require \\='ox-latex)\n (add-to-list \\='org-latex-packages-alist \\='(\"\" \"listings\"))\n (add-to-list \\='org-latex-packages-alist \\='(\"\" \"color\"))\n\nAlternatively,\n\n (setq org-latex-listings \\='minted)\n\ncauses source code to be exported using the minted package as\nopposed to listings. If you want to use minted, you need to add\nthe minted package to `org-latex-packages-alist', for example\nusing customize, or with\n\n (require \\='ox-latex)\n (add-to-list \\='org-latex-packages-alist \\='(\"newfloat\" \"minted\"))\n\nIn addition, it is necessary to install pygments\n(URL `http://pygments.org>'), and to configure the variable\n`org-latex-pdf-process' so that the -shell-escape option is\npassed to pdflatex.\n\nThe minted choice has possible repercussions on the preview of\nlatex fragments (see `org-preview-latex-fragment'). If you run\ninto previewing problems, please consult\nURL `https://orgmode.org/worg/org-tutorials/org-latex-preview.html'." (choice (const :tag "Use listings" t) (const :tag "Use minted" minted) (const :tag "Export verbatim" nil)) #[257 "\211\300>\207" [(t nil minted)] 3 "\n\n(fn S)"] org-latex-listings-langs #[0 "\300\207" [((emacs-lisp "Lisp") (lisp "Lisp") (clojure "Lisp") (c "C") (cc "C++") (fortran "fortran") (perl "Perl") (cperl "Perl") (python "Python") (ruby "Ruby") (html "HTML") (xml "XML") (tex "TeX") (latex "[LaTeX]TeX") (shell-script "bash") (gnuplot "Gnuplot") (ocaml "Caml") (caml "Caml") (sql "SQL") (sqlite "sql") (makefile "make") (R "r"))] 1] "Alist mapping languages to their listing language counterpart.\nThe key is a symbol, the major mode symbol without the \"-mode\".\nThe value is the string that should be inserted as the language\nparameter for the listings package. If the mode name and the\nlistings name are the same, the language does not need an entry\nin this list - but it does not hurt if it is present." (Org . "8.3") (repeat (list (symbol :tag "Major mode ") (string :tag "Listings language"))) org-latex-listings-options #[0 "\300\207" [nil] 1] "Association list of options for the latex listings package.\n\nThese options are supplied as a comma-separated list to the\n\\lstset command. Each element of the association list should be\na list containing two strings: the name of the option, and the\nvalue. For example,\n\n (setq org-latex-listings-options\n \\='((\"basicstyle\" \"\\\\small\")\n (\"keywordstyle\" \"\\\\color{black}\\\\bfseries\\\\underbar\")))\n\nwill typeset the code in a small size font with underlined, bold\nblack keywords.\n\nNote that the same options will be applied to blocks of all\nlanguages. If you need block-specific options, you may use the\nfollowing syntax:\n\n #+ATTR_LATEX: :options key1=value1,key2=value2\n #+BEGIN_SRC <LANG>\n ...\n #+END_SRC" (repeat (list (string :tag "Listings option name ") (string :tag "Listings option value"))) org-latex-minted-langs #[0 "\300\207" [((emacs-lisp "common-lisp") (cc "c++") (cperl "perl") (shell-script "bash") (caml "ocaml"))] 1] "Alist mapping languages to their minted language counterpart.\nThe key is a symbol, the major mode symbol without the \"-mode\".\nThe value is the string that should be inserted as the language\nparameter for the minted package. If the mode name and the\nlistings name are the same, the language does not need an entry\nin this list - but it does not hurt if it is present.\n\nNote that minted uses all lower case for language identifiers,\nand that the full list of language identifiers can be obtained\nwith:\n\n pygmentize -L lexers" (repeat (list (symbol :tag "Major mode ") (string :tag "Minted language"))) org-latex-minted-options #[0 "\300\207" [nil] 1] "Association list of options for the latex minted package.\n\nThese options are supplied within square brackets in\n\\begin{minted} environments. Each element of the alist should\nbe a list containing two strings: the name of the option, and the\nvalue. For example,\n\n (setq org-latex-minted-options\n \\='((\"bgcolor\" \"bg\") (\"frame\" \"lines\")))\n\nwill result in src blocks being exported with\n\n\\begin{minted}[bgcolor=bg,frame=lines]{<LANG>}\n\nas the start of the minted environment. Note that the same\noptions will be applied to blocks of all languages. If you need\nblock-specific options, you may use the following syntax:\n\n #+ATTR_LATEX: :options key1=value1,key2=value2\n #+BEGIN_SRC <LANG>\n ...\n #+END_SRC" (repeat (list (string :tag "Minted option name ") (string :tag "Minted option value"))) org-latex-custom-lang-environments #[0 "\300\207" [nil] 1] "Alist mapping languages to language-specific LaTeX environments.\n\nIt is used during export of src blocks by the listings and minted\nlatex packages. The environment may be a simple string, composed of\nonly letters and numbers. In this case, the string is directly the\nname of the latex environment to use. The environment may also be\na format string. In this case the format string will be directly\nexported. This format string may contain these elements:\n\n %s for the formatted source\n %c for the caption\n %f for the float attribute\n %l for an appropriate label\n %o for the LaTeX attributes\n\nFor example,\n\n (setq org-latex-custom-lang-environments\n \\='((python \"pythoncode\")\n (ocaml \"\\\\begin{listing}\n\\\\begin{minted}[%o]{ocaml}\n%s\\\\end{minted}\n\\\\caption{%c}\n\\\\label{%l}\")))\n\nwould have the effect that if Org encounters a Python source block\nduring LaTeX export it will produce\n\n \\begin{pythoncode}\n <src block body>\n \\end{pythoncode}\n\nand if Org encounters an Ocaml source block during LaTeX export it\nwill produce\n\n \\begin{listing}\n \\begin{minted}[<attr_latex options>]{ocaml}\n <src block body>\n \\end{minted}\n \\caption{<caption>}\n \\label{<label>}\n \\end{listing}" (repeat (list (symbol :tag "Language name ") (string :tag "Environment name or format string"))) (Org . "9.0") org-latex-compiler-file-string #[0 "\300\207" [#17="%% Intended LaTeX compiler: %s\n"] 1 #17#] "LaTeX compiler format-string.\nSee also `org-latex-compiler'." (choice (const :tag "Comment" "%% Intended LaTeX compiler: %s\n") (const :tag "latex-mode file variable" "%% -*- latex-run-command: %s -*-\n") (const :tag "AUCTeX file variable" "%% -*- LaTeX-command: %s -*-\n") (string :tag "custom format" "%% %s")) (Org . "9.0") org-latex-compiler #[0 "\300\207" [#18="pdflatex"] 1 #18#] "LaTeX compiler to use.\n\nMust be an element in `org-latex-compilers' or the empty quote.\nCan also be set in buffers via #+LATEX_COMPILER. See also\n`org-latex-compiler-file-string'." (choice (const :tag "pdfLaTeX" "pdflatex") (const :tag "XeLaTeX" "xelatex") (const :tag "LuaLaTeX" "lualatex") (const :tag "Unset" #11#)) (Org . "9.0")] 14) |
|
25 |
#@55 Known LaTeX compilers. |
|
26 |
See also `org-latex-compiler'. |
|
27 |
(defconst org-latex-compilers '("pdflatex" "xelatex" "lualatex") (#$ . 36368)) |
|
28 |
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315&\210\300\316\302\303\317DD\320\306\321\310\322&\210\300\323\302\303\324DD\325\306\307\312\313\314\326\310\327&\210\300\330\302\303\331DD\332\306\307\310\333&\210\300\334\302\303\335DD\336\306\307\312\313\314\337\310\340&\207" [custom-declare-variable org-latex-bib-compiler funcall function #[0 "\300\207" [#1="bibtex"] 1 #1#] "Command to process a LaTeX file's bibliography.\n\nThe shorthand %bib in `org-latex-pdf-process' is replaced with\nthis value.\n\nA better approach is to use a compiler suit such as `latexmk'." :group org-export-latex :type (choice (const :tag "BibTeX" "bibtex") (const :tag "Biber" "biber") (string :tag "Other process")) :version "26.1" :package-version (Org . "9.0") org-latex-pdf-process #[0 "\300\207" [("%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f")] 1] "Commands to process a LaTeX file to a PDF file.\n\nThis is a list of strings, each of them will be given to the\nshell as a command. %f in the command will be replaced by the\nrelative file name, %F by the absolute file name, %b by the file\nbase name (i.e. without directory and extension parts), %o by the\nbase directory of the file, %O by the absolute file name of the\noutput file, %latex is the LaTeX compiler (see\n`org-latex-compiler'), and %bib is the BibTeX-like compiler (see\n`org-latex-bib-compiler').\n\nThe reason why this is a list is that it usually takes several\nruns of `pdflatex', maybe mixed with a call to `bibtex'. Org\ndoes not have a clever mechanism to detect which of these\ncommands have to be run to get to a stable result, and it also\ndoes not do any error checking.\n\nConsider a smart LaTeX compiler such as `texi2dvi' or `latexmk',\nwhich calls the \"correct\" combinations of auxiliary programs.\n\nAlternatively, this may be a Lisp function that does the\nprocessing, so you could use this to apply the machinery of\nAUCTeX or the Emacs LaTeX mode. This function should accept the\nfile name as its single argument." org-export-pdf (choice (repeat :tag "Shell command sequence" (string :tag "Shell command")) (const :tag "2 runs of latex" ("%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f")) (const :tag "3 runs of latex" ("%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f")) (const :tag "latex,bibtex,latex,latex" ("%latex -interaction nonstopmode -output-directory %o %f" "%bib %b" "%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f")) (const :tag "texi2dvi" ("cd %o; LATEX=\"%latex\" texi2dvi -p -b -V %b.tex")) (const :tag "latexmk" ("latexmk -g -pdf -pdflatex=\"%latex\" -outdir=%o %f")) (function)) org-latex-logfiles-extensions #[0 "\300\207" [("aux" "bcf" "blg" "fdb_latexmk" "fls" "figlist" "idx" "log" "nav" "out" "ptc" "run.xml" "snm" "toc" "vrb" "xdv")] 1] "The list of file extensions to consider as LaTeX logfiles.\nThe logfiles will be removed if `org-latex-remove-logfiles' is\nnon-nil." (Org . "8.3") (repeat (string :tag "Extension")) org-latex-remove-logfiles #[0 "\300\207" [t] 1] "Non-nil means remove the logfiles produced by PDF production.\nBy default, logfiles are files with these extensions: .aux, .idx,\n.log, .out, .toc, .nav, .snm and .vrb. To define the set of\nlogfiles to remove, set `org-latex-logfiles-extensions'." boolean org-latex-known-warnings #[0 "\300\207" [(("Reference.*?undefined" . "[undefined reference]") ("Runaway argument" . "[runaway argument]") ("Underfull \\hbox" . "[underfull hbox]") ("Overfull \\hbox" . "[overfull hbox]") ("Citation.*?undefined" . "[undefined citation]") ("Undefined control sequence" . "[undefined control sequence]"))] 1] "Alist of regular expressions and associated messages for the user.\nThe regular expressions are used to find possible warnings in the\nlog of a latex-run. These warnings will be reported after\ncalling `org-latex-compile'." (Org . "8.3") (repeat (cons (string :tag "Regexp") (string :tag "Message")))] 12) |
|
29 |
#@130 Non nil when caption is expected to be located above ELEMENT. |
|
30 |
INFO is a plist holding contextual information. |
|
31 |
|
|
32 |
(fn ELEMENT INFO) |
|
33 |
(defalias 'org-latex--caption-above-p #[514 "\300\301\"\2119\203
\211\2025 \211:\204 \211;\205$ \302\202$ \211@9\205$ \211@\262\211\303=\2030 \304\2021 \211>\262\207" [plist-get :latex-caption-above plain-text link image] 6 (#$ . 40801)]) |
|
34 |
#@399 Return an appropriate label for DATUM. |
|
35 |
DATUM is an element or a `target' type object. INFO is the |
|
36 |
current export state, as a plist. |
|
37 |
|
|
38 |
Return nil if element DATUM has no NAME or VALUE affiliated |
|
39 |
keyword or no CUSTOM_ID property, unless FORCE is non-nil. In |
|
40 |
this case always return a unique label. |
|
41 |
|
|
42 |
Eventually, if FULL is non-nil, wrap label within "\label{}". |
|
43 |
|
|
44 |
(fn DATUM INFO &optional FORCE FULL) |
|
45 |
(defalias 'org-latex--label #[1026 "\211:\204 \211;\205 \302\202 \211@9\205 \211@\262\303\304\"\203$ \305\2020 \306\307\"\203/ \310\2020 \311\211;\203> |