| Server IP : 217.160.0.212 / Your IP : 216.73.216.165 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/org/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\301\302!\210\301\303!\210\304\305\"\204 \306\300\307\"\210\310\311\312\313\314\315\316\317&\210\320\321\322\323\324DD\325\326\327%\210\320\330\322\323\331DD\332\326\333%\210\320\334\322\323\335DD\336\326\337%\210\320\340\322\323\341DD\342\326\327%\210\320\343\322\323\344DD\345\326\327%\210\320\346\322\323\347DD\350\326\327\351\352&\210\320\353\322\323\354DD\355\326\327\351\352&\210\320\356\322\323\357DD\360\326\327%\210\320\361\322\323\362DD\363\326\327%\210\320\364\322\323\365DD\366\326\327%\210\320\367\322\323\370DD\371\326\327%\210\320\372\322\323\373DD\374\326\327%\210\320\375\322\323\376DD\377\326\201@ %\210\320\201A \322\323\201B DD\201C \326\201D %\210\320\201E \322\323\201F DD\201G \326\201@ %\210\320\201H \322\323\201I DD\201J \326\201K %\210\320\201L \322\323\201M DD\201N \326\201@ %\210\320\201O \322\323\201P DD\201Q \326\201@ \351\201R &\210\320\201S \322\323\201T DD\201U \326\201@ \351\201R &\210\320\201V \322\323\201W DD\201X \326\201@ %\210\320\201Y \322\323\201Z DD\201[ \326\201@ %\210\320\201\\ \322\323\201] DD\201^ \326\327%\210\320\201_ \322\323\201` DD\201a \326\201@ %\210\320\201b \322\323\201c DD\201d \326\201@ %\207" [org-latex-classes require cl-lib ox-latex assoc "default-koma-letter" add-to-list ("default-koma-letter" "\\documentclass[11pt]{scrlttr2}") custom-declare-group org-export-koma-letter nil "Options for exporting to KOMA scrlttr2 class in LaTeX export." :tag "Org Koma-Letter" :group org-export custom-declare-variable org-koma-letter-class-option-file funcall function #[0 "\300\207" ["NF"] 1 #1=""] "Letter Class Option File.\nThis option can also be set with the LCO keyword." :type string org-koma-letter-author #[0 "\300\207" [user-full-name] 1 #1#] "Sender's name.\n\nThis variable defaults to calling the function `user-full-name'\nwhich just returns the current function `user-full-name'.\nAlternatively a string, nil or a function may be given.\nFunctions must return a string.\n\nThis option can also be set with the AUTHOR keyword." (radio (function-item user-full-name) (string) (function) (const :tag "Do not export author" nil)) org-koma-letter-email #[0 "\300\207" [org-koma-letter-email] 1 #1#] "Sender's email address.\n\nThis variable defaults to the value `org-koma-letter-email' which\nreturns `user-mail-address'. Alternatively a string, nil or\na function may be given. Functions must return a string.\n\nThis option can also be set with the EMAIL keyword." (radio (function-item org-koma-letter-email) (string) (function) (const :tag "Do not export email" nil)) org-koma-letter-from-address #[0 "\300\207" [#1#] 1 #1#] "Sender's address, as a string.\nThis option can also be set with one or more FROM_ADDRESS\nkeywords." org-koma-letter-phone-number #[0 "\300\207" [#1#] 1 #1#] "Sender's phone number, as a string.\nThis option can also be set with the PHONE_NUMBER keyword." org-koma-letter-url #[0 "\300\207" [#1#] 1 #1#] "Sender's URL, e. g., the URL of her homepage.\nThis option can also be set with the URL keyword." :safe stringp org-koma-letter-from-logo #[0 "\300\207" [#1#] 1 #1#] "Commands for inserting the sender's logo, e. g., \\includegraphics{logo}.\nThis option can also be set with the FROM_LOGO keyword." org-koma-letter-place #[0 "\300\207" [#1#] 1 #1#] "Place from which the letter is sent, as a string.\nThis option can also be set with the PLACE keyword." org-koma-letter-location #[0 "\300\207" [#1#] 1 #1#] "Sender's extension field, as a string.\n\nThis option can also be set with the LOCATION keyword.\nMoreover, when:\n (1) Either `org-koma-letter-prefer-special-headings' is non-nil\n or there is no LOCATION keyword or the LOCATION keyword is\n empty;\n (2) the letter contains a headline with the special\n tag \"location\";\nthen the location will be set as the content of the location\nspecial heading.\n\nThe location field is typically printed right of the address\nfield (See Figure 4.9. in the English manual of 2015-10-03)." org-koma-letter-opening #[0 "\300\207" [#1#] 1 #1#] "Letter's opening, as a string.\n\nThis option can also be set with the OPENING keyword. Moreover,\nwhen:\n (1) Either `org-koma-letter-prefer-special-headings' is non-nil\n or the CLOSING keyword is empty\n (2) `org-koma-letter-headline-is-opening-maybe' is non-nil;\n (3) the letter contains a headline without a special\n tag (e.g. \"to\" or \"ps\");\nthen the opening will be implicitly set as the untagged headline title." org-koma-letter-closing #[0 "\300\207" [#1#] 1 #1#] "Letter's closing, as a string.\nThis option can also be set with the CLOSING keyword. Moreover,\nwhen:\n (1) Either `org-koma-letter-prefer-special-headings' is non-nil\n or the CLOSING keyword is empty;\n (2) `org-koma-letter-headline-is-opening-maybe' is non-nil;\n (3) the letter contains a headline with the special\n tag \"closing\";\nthen the opening will be set as the title of the closing special\nheading title." org-koma-letter-signature #[0 "\300\207" [#1#] 1 #1#] "Signature, as a string.\nThis option can also be set with the SIGNATURE keyword.\nMoreover, when:\n (1) Either `org-koma-letter-prefer-special-headings' is non-nil\n or there is no CLOSING keyword or the CLOSING keyword is empty;\n (2) `org-koma-letter-headline-is-opening-maybe' is non-nil;\n (3) the letter contains a headline with the special\n tag \"closing\";\nthen the signature will be set as the content of the\nclosing special heading.\n\nNote if the content is empty the signature will not be set." org-koma-letter-prefer-special-headings #[0 "\300\207" [nil] 1 #1#] "Non-nil means prefer headlines over keywords for TO and FROM.\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"special-headings:t\"." boolean org-koma-letter-subject-format #[0 "\300\207" [t] 1 #1#] "Non-nil means include the subject.\n\nSupport formatting options.\n\nWhen t, insert a subject using default options. When nil, do not\ninsert a subject at all. It can also be a list of symbols among\nthe following ones:\n\n `afteropening' Subject after opening\n `beforeopening' Subject before opening\n `centered' Subject centered\n `left' Subject left-justified\n `right' Subject right-justified\n `titled' Add title/description to subject\n `underlined' Set subject underlined\n `untitled' Do not add title/description to subject\n\nPlease refer to the KOMA-script manual (Table 4.16. in the\nEnglish manual of 2012-07-22).\n\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"subject:(underlined centered)\"." (choice (const :tag "No export" nil) (const :tag "Default options" t) (set :tag "Configure options" (const :tag "Subject after opening" afteropening) (const :tag "Subject before opening" beforeopening) (const :tag "Subject centered" centered) (const :tag "Subject left-justified" left) (const :tag "Subject right-justified" right) (const :tag "Add title or description to subject" underlined) (const :tag "Set subject underlined" titled) (const :tag "Do not add title or description to subject" untitled))) org-koma-letter-use-backaddress #[0 "\300\207" [nil] 1 #1#] "Non-nil prints return address in line above to address.\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"backaddress:t\"." org-koma-letter-use-foldmarks #[0 "\300\207" [t] 1 #1#] "Configure appearance of folding marks.\n\nWhen t, activate default folding marks. When nil, do not insert\nfolding marks at all. It can also be a list of symbols among the\nfollowing ones:\n\n `B' Activate upper horizontal mark on left paper edge\n `b' Deactivate upper horizontal mark on left paper edge\n\n `H' Activate all horizontal marks on left paper edge\n `h' Deactivate all horizontal marks on left paper edge\n\n `L' Activate left vertical mark on upper paper edge\n `l' Deactivate left vertical mark on upper paper edge\n\n `M' Activate middle horizontal mark on left paper edge\n `m' Deactivate middle horizontal mark on left paper edge\n\n `P' Activate punch or center mark on left paper edge\n `p' Deactivate punch or center mark on left paper edge\n\n `T' Activate lower horizontal mark on left paper edge\n `t' Deactivate lower horizontal mark on left paper edge\n\n `V' Activate all vertical marks on upper paper edge\n `v' Deactivate all vertical marks on upper paper edge\n\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"foldmarks:(b l m t)\"." (choice (const :tag "Activate default folding marks" t) (const :tag "Deactivate folding marks" nil) (set :tag "Configure folding marks" (const :tag "Activate upper horizontal mark on left paper edge" B) (const :tag "Deactivate upper horizontal mark on left paper edge" b) (const :tag "Activate all horizontal marks on left paper edge" H) (const :tag "Deactivate all horizontal marks on left paper edge" h) (const :tag "Activate left vertical mark on upper paper edge" L) (const :tag "Deactivate left vertical mark on upper paper edge" l) (const :tag "Activate middle horizontal mark on left paper edge" M) (const :tag "Deactivate middle horizontal mark on left paper edge" m) (const :tag "Activate punch or center mark on left paper edge" P) (const :tag "Deactivate punch or center mark on left paper edge" p) (const :tag "Activate lower horizontal mark on left paper edge" T) (const :tag "Deactivate lower horizontal mark on left paper edge" t) (const :tag "Activate all vertical marks on upper paper edge" V) (const :tag "Deactivate all vertical marks on upper paper edge" v))) org-koma-letter-use-phone #[0 "\300\207" [nil] 1 #1#] "Non-nil prints sender's phone number.\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"phone:t\"." org-koma-letter-use-url #[0 "\300\207" [nil] 1 #1#] "Non-nil prints sender's URL.\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"url:t\"." booleanp org-koma-letter-use-from-logo #[0 "\300\207" [nil] 1 #1#] "Non-nil prints sender's FROM_LOGO.\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"from-logo:t\"." org-koma-letter-use-email #[0 "\300\207" [nil] 1 #1#] "Non-nil prints sender's email address.\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"email:t\"." org-koma-letter-use-place #[0 "\300\207" [t] 1 #1#] "Non-nil prints the letter's place next to the date.\nThis option can also be set with the OPTIONS keyword, e.g.:\n\"place:nil\"." org-koma-letter-default-class #[0 "\300\207" ["default-koma-letter"] 1 #1#] "Default class for `org-koma-letter'.\nThe value must be a member of `org-latex-classes'." org-koma-letter-headline-is-opening-maybe #[0 "\300\207" [t] 1 #1#] "Non-nil means a headline may be used as an opening and closing.\nSee also `org-koma-letter-opening' and\n`org-koma-letter-closing'." org-koma-letter-prefer-subject #[0 "\300\207" [nil] 1 #1#] "Non-nil means title should be interpreted as subject if subject is missing.\nThis option can also be set with the OPTIONS keyword,\ne.g. \"title-subject:t\"."] 8)
#@43 Header tags related to the letter itself.
(defconst org-koma-letter-special-tags-in-letter '(to from closing location) (#$ . 11087))
#@57 Header tags to be inserted in the letter after closing.
(defconst org-koma-letter-special-tags-after-closing '(after_closing ps encl cc) (#$ . 11226))
#@39 Header tags to be inserted as macros.
(defconst org-koma-letter-special-tags-as-macro '(ps encl cc) (#$ . 11383))
#@46 Header tags to be inserted after the letter.
(defconst org-koma-letter-special-tags-after-letter '(after_letter) (#$ . 11503))
#@36 Holds special content temporarily.
(defvar org-koma-letter-special-contents nil (#$ . 11636))
(org-export-define-derived-backend 'koma-letter 'latex :options-alist '((:latex-class "LATEX_CLASS" nil org-koma-letter-default-class t) (:lco "LCO" nil org-koma-letter-class-option-file) (:author "AUTHOR" nil (org-koma-letter--get-value org-koma-letter-author) parse) (:author-changed-in-buffer-p "AUTHOR" nil nil t) (:from-address "FROM_ADDRESS" nil org-koma-letter-from-address newline) (:phone-number "PHONE_NUMBER" nil org-koma-letter-phone-number) (:url "URL" nil org-koma-letter-url) (:from-logo "FROM_LOGO" nil org-koma-letter-from-logo) (:email "EMAIL" nil (org-koma-letter--get-value org-koma-letter-email) t) (:to-address "TO_ADDRESS" nil nil newline) (:place "PLACE" nil org-koma-letter-place) (:location "LOCATION" nil org-koma-letter-location) (:subject "SUBJECT" nil nil parse) (:opening "OPENING" nil org-koma-letter-opening parse) (:closing "CLOSING" nil org-koma-letter-closing parse) (:signature "SIGNATURE" nil org-koma-letter-signature newline) (:special-headings nil "special-headings" org-koma-letter-prefer-special-headings) (:special-tags-as-macro nil nil org-koma-letter-special-tags-as-macro) (:special-tags-in-letter nil nil org-koma-letter-special-tags-in-letter) (:special-tags-after-closing nil "after-closing-order" org-koma-letter-special-tags-after-closing) (:special-tags-after-letter nil "after-letter-order" org-koma-letter-special-tags-after-letter) (:with-backaddress nil "backaddress" org-koma-letter-use-backaddress) (:with-email nil "email" org-koma-letter-use-email) (:with-foldmarks nil "foldmarks" org-koma-letter-use-foldmarks) (:with-phone nil "phone" org-koma-letter-use-phone) (:with-url nil "url" org-koma-letter-use-url) (:with-from-logo nil "from-logo" org-koma-letter-use-from-logo) (:with-place nil "place" org-koma-letter-use-place) (:with-subject nil "subject" org-koma-letter-subject-format) (:with-title-as-subject nil "title-subject" org-koma-letter-prefer-subject) (:with-headline-opening nil nil org-koma-letter-headline-is-opening-maybe) (:inbuffer-author "AUTHOR" nil 'koma-letter:empty) (:inbuffer-from "FROM" nil 'koma-letter:empty) (:inbuffer-email "EMAIL" nil 'koma-letter:empty) (:inbuffer-phone-number "PHONE_NUMBER" nil 'koma-letter:empty) (:inbuffer-url "URL" nil 'koma-letter:empty) (:inbuffer-from-logo "FROM_LOGO" nil 'koma-letter:empty) (:inbuffer-place "PLACE" nil 'koma-letter:empty) (:inbuffer-location "LOCATION" nil 'koma-letter:empty) (:inbuffer-signature "SIGNATURE" nil 'koma-letter:empty) (:inbuffer-with-backaddress nil "backaddress" 'koma-letter:empty) (:inbuffer-with-email nil "email" 'koma-letter:empty) (:inbuffer-with-foldmarks nil "foldmarks" 'koma-letter:empty) (:inbuffer-with-phone nil "phone" 'koma-letter:empty) (:inbuffer-with-url nil "url" 'koma-letter:empty) (:inbuffer-with-from-logo nil "from-logo" 'koma-letter:empty) (:inbuffer-with-place nil "place" 'koma-letter:empty)) :translate-alist '((export-block . org-koma-letter-export-block) (export-snippet . org-koma-letter-export-snippet) (headline . org-koma-letter-headline) (keyword . org-koma-letter-keyword) (template . org-koma-letter-template)) :menu-entry '(107 "Export with KOMA Scrlttr2" ((76 "As LaTeX buffer" org-koma-letter-export-as-latex) (108 "As LaTeX file" org-koma-letter-export-to-latex) (112 "As PDF file" org-koma-letter-export-to-pdf) (111 "As PDF file and open" (lambda (a s v b) (if a (org-koma-letter-export-to-pdf t s v b) (org-open-file (org-koma-letter-export-to-pdf nil s v b))))))))
#@41 Return the current `user-mail-address'.
(defalias 'org-koma-letter-email #[0 "\207" [user-mail-address] 1 (#$ . 15202)])
#@119 Get contents from a headline tagged with KEY.
The contents is stored in `org-koma-letter-special-contents'.
(fn KEY)
(defalias 'org-koma-letter--get-tagged-contents #[257 "\301\302!\"A\211\205# \303\304\305\203 \306\202 \307\310\305\311\310##\266\202!\207" [org-koma-letter-special-contents assoc-string org-koma-letter--get-value org-string-nw-p nil replace-regexp-in-string "\\`\\([ ]*\n\\)+" "\\`[ \n
]+" "" "[ \n
]+\\'"] 12 (#$ . 15331)])
#@146 Turn value into a string whenever possible.
Determines if VALUE is nil, a string, a function or a symbol and
return a string or nil.
(fn VALUE)
(defalias 'org-koma-letter--get-value #[257 "\211\205 \211;\203\n \207\300!\203 \211 \207\2119\203 \301!\207\211\207" [functionp symbol-name] 3 (#$ . 15793)])
#@255 Process KEYWORDS members of `org-koma-letter-special-contents'.
KEYWORDS is a list of symbols. Return them as a string to be
formatted.
The function is used for inserting content of special headings
such as the one tagged with PS.
(fn KEYWORDS INFO)
(defalias 'org-koma-letter--special-contents-inline #[514 "\300\301\302\"\303#\207" [mapconcat make-closure #[257 "\301!\302!\303\300\304\">\204 \305\207\211\203 \306\307#\207\207" [V0 org-koma-letter--get-value org-koma-letter--get-tagged-contents plist-get :special-tags-as-macro nil format "\\%s{%s}\n"] 8 "\n\n(fn KEYWORD)"] "\n"] 6 (#$ . 16109)])
#@72 Replace regular newlines with LaTeX newlines (i.e. `\\').
(fn STRING)
(defalias 'org-koma-letter--add-latex-newlines #[257 "\211\300\301\203 \302\202\f \303\304\301\305\304##\266\202\306!\205! \301\307\310#\207" [nil replace-regexp-in-string "\\`\\([ ]*\n\\)+" "\\`[ \n
]+" "" "[ \n
]+\\'" org-string-nw-p "\n" "\\\\\\\\\n"] 10 (#$ . 16732)])
#@160 Transcode an EXPORT-BLOCK element into KOMA Scrlttr2 code.
CONTENTS is nil. INFO is a plist used as a communication
channel.
(fn EXPORT-BLOCK CONTENTS INFO)
(defalias 'org-koma-letter-export-block #[771 "\300\211;\203 \301\302#\266\202\202 \303A@\"\266\202\304\235\2059 \305\306\211;\2030 \301\302#\266\202\2028 \303A@\"\266\202!\207" [:type get-text-property 0 plist-get ("KOMA-LETTER" "LATEX") org-remove-indentation :value] 10 (#$ . 17092)])
#@163 Transcode an EXPORT-SNIPPET object into KOMA Scrlttr2 code.
CONTENTS is nil. INFO is a plist used as a communication
channel.
(fn EXPORT-SNIPPET CONTENTS INFO)
(defalias 'org-koma-letter-export-snippet #[771 "\300!\301>\205 \302\211;\203 \303\304#\207\305A@\"\266\202\207" [org-export-snippet-backend (latex koma-letter) :value get-text-property 0 plist-get] 9 (#$ . 17558)])
#@149 Transcode a KEYWORD element into KOMA Scrlttr2 code.
CONTENTS is nil. INFO is a plist used as a communication
channel.
(fn KEYWORD CONTENTS INFO)
(defalias 'org-koma-letter-keyword #[771 "\300\211;\203 \301\302#\266\202\202 \303A@\"\266\202\304\211;\203* \301\302#\266\202\2022 \303A@\"\266\202\305\232\2039 \207\306\307$\207" [:key get-text-property 0 plist-get :value "KOMA-LETTER" org-export-with-backend latex] 10 (#$ . 17951)])
#@367 Transcode a HEADLINE element from Org to LaTeX.
CONTENTS holds the contents of the headline. INFO is a plist
holding contextual information.
Note that if a headline is tagged with a tag from
`org-koma-letter-special-tags' it will not be exported, but
stored in `org-koma-letter-special-contents' and included at the
appropriate place.
(fn HEADLINE CONTENTS INFO)
(defalias 'org-koma-letter-headline #[771 "\301\"\211\204\n \207\211BB\302\207" [org-koma-letter-special-contents org-koma-letter--special-tag ""] 6 (#$ . 18412)])
#@148 Non-nil if HEADLINE is a special headline.
INFO is a plist holding contextual information. Return first
special tag headline.
(fn HEADLINE INFO)
(defalias 'org-koma-letter--special-tag #[514 "\300\301\302\"\301\303\"\301\304\"#\305\306\307\"\310\"\"\207" [append plist-get :special-tags-in-letter :special-tags-after-closing :special-tags-after-letter cl-some make-closure #[257 "\301\300\"\205 \211\207" [V0 assoc-string] 4 "\n\n(fn TAG)"] org-export-get-tags] 8 (#$ . 18955)])
#@390 Return the correct version of opening or closing.
PLIST-KEY should be a key in info, typically :opening
or :closing. PRED is a predicate run on headline to determine
which title to use which takes two arguments, a headline element
and an info plist. INFO is a plist holding contextual
information. Return the preferred candidate for the exported of
PLIST-KEY.
(fn PLIST-KEY PRED INFO)
(defalias 'org-koma-letter--keyword-or-headline #[771 "\300\"\300\301\"\205'