Re: [O] Intermixed date in koma-letter export

2015-12-13 Thread York Zhao
> Yes. See here: http://orgmode.org/org.html#Export-settings I was actually aware of this INFO, but apparently I have ignored the following statement: > ... or for a tree by setting properties (See Properties and columns) As well as the following: > When exporting only a subtree, each of th

Re: [O] Intermixed date in koma-letter export

2015-12-13 Thread Rasmus
Hi, York Zhao writes: >> Use the :EXPORT_OPTIONS: subheading options. > > Thanks a lot, this really worked. I'm wondering whether this technique can > be > generalized to using subtree property :EXPORT_OPTIONS: for any #+OPTIONS > settings? I wasn't able to find this in INFO? Has this been docum

Re: [O] Intermixed date in koma-letter export

2015-12-13 Thread York Zhao
Hi Rasmus, > Use the :EXPORT_OPTIONS: subheading options. Thanks a lot, this really worked. I'm wondering whether this technique can be generalized to using subtree property :EXPORT_OPTIONS: for any #+OPTIONS settings? I wasn't able to find this in INFO? Has this been documented there? Thanks,

Re: [O] Intermixed date in koma-letter export

2015-12-12 Thread Rasmus
York Zhao writes: >> #+options: title:nil > > Thanks a lot! This worked, but still problematic. If I have "#+options: > title:centered" for letter 1 but "#+options: title:nil" for letter 2, > letter 2's > setting will override letter 1's. I.e., letter 1 will have no title now. Use the :EXPORT_OP

Re: [O] Intermixed date in koma-letter export

2015-12-12 Thread York Zhao
> #+options: title:nil Thanks a lot! This worked, but still problematic. If I have "#+options: title:centered" for letter 1 but "#+options: title:nil" for letter 2, letter 2's setting will override letter 1's. I.e., letter 1 will have no title now. Also, I was looking into ox-koma-letter.el tryin

Re: [O] Intermixed date in koma-letter export

2015-12-12 Thread Rasmus
Hi, York Zhao writes: >> Anyway, glad that I've got a solution! > > Unfortunately, I've just noticed that the "C-s" subtree export also > exported the > heading (the "letter1" in my example), which is definitely unacceptable when > exporting a letter. #+options: title:nil Or replace "letter 1"

Re: [O] Intermixed date in koma-letter export

2015-12-11 Thread York Zhao
> Anyway, glad that I've got a solution! Unfortunately, I've just noticed that the "C-s" subtree export also exported the heading (the "letter1" in my example), which is definitely unacceptable when exporting a letter. On Fri, Dec 11, 2015 at 9:55 PM, York Zhao wrote: > > You don't need to sel

Re: [O] Intermixed date in koma-letter export

2015-12-11 Thread York Zhao
> You don't need to select a subtree. Just put point in it. However, you are > missing the "C-s" in the keybindings, so you're not doing a subtree export. Thanks for telling me this, I didn't know before. What's interesting is that it works for "C-s" subtree export, but not for active region subtr

Re: [O] Intermixed date in koma-letter export

2015-12-11 Thread Nicolas Goaziou
Hello, York Zhao writes: > I selected the "letter 1" subtree, pressed C-cekp, opened the pdf file. But > the > date is still "Dec 12, 2015". You don't need to select a subtree. Just put point in it. However, you are missing the "C-s" in the keybindings, so you're not doing a subtree export. R

Re: [O] Intermixed date in koma-letter export

2015-12-10 Thread York Zhao
No, this still doesn't work. I just tested with my .emacs having only two lines: #+BEGIN_SRC emacs-lisp (require 'org "/usr/local/share/emacs/site-lisp/org/org") (require 'ox-koma-letter (locate-user-emacs-file "path/to/org-mode/contrib/lisp/ox-koma-letter")) #+END_SRC the org-mode

Re: [O] Intermixed date in koma-letter export

2015-12-10 Thread Rasmus
Hi, York Zhao writes: > Thanks for your help. However, adding the :EXPORT_DATE: property doesn't > work. Firstly, there's an error: "PDF file produced with errors.". You have to add an address, e.g. * letter 1 :PROPERTIES: :EXPORT_DATE: 2015-10-26 Monday :END: ** to

Re: [O] Intermixed date in koma-letter export

2015-12-09 Thread York Zhao
Hi Rasmus, Thanks for your help. However, adding the :EXPORT_DATE: property doesn't work. Firstly, there's an error: "PDF file produced with errors.". Secondly, even though it still produced a PDF output, the date is always today's date which is wrong. Thanks. On Mon, Dec 7, 2015 at 4:21 AM, Ras

Re: [O] Intermixed date in koma-letter export

2015-12-07 Thread Rasmus
York Zhao writes: > Let's say I have two letters: > > * Letter1 > ** Preamble :noexport: > > #+DATE: 2015-10-26 Monday > ** To whom it may concern, > > > * Letter2 > ** Preamble :noexport: > > #+DATE: 2015-12-03 Thursday > ** Hi, This should work: * letter 1 :PROPERTIES: :EXPORT

[O] Intermixed date in koma-letter export

2015-12-06 Thread York Zhao
Let's say I have two letters: * Letter1 ** Preamble :noexport: #+DATE: 2015-10-26 Monday ** To whom it may concern, * Letter2 ** Preamble :noexport: #+DATE: 2015-12-03 Thursday ** Hi, No matter whether I select letter1, or letter2, run `org-export-dispatch' and choose to export k