* Intermixed date in koma-letter export
@ 2015-12-06 18:09 York Zhao
2015-12-07 9:21 ` Rasmus
0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2015-12-06 18:09 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
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 koma-letter, I always get the date intermixed in the
export, i.e., "2015-10-26 Monday 2015-12-03 Thursday", instead of being
"2015-10-26 Monday" when exporting letter1, and "2015-12-03 Thursday" when
exporting letter2.
Please let me know if more information is needed.
Thanks,
[-- Attachment #2: Type: text/html, Size: 701 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-06 18:09 Intermixed date in koma-letter export York Zhao
@ 2015-12-07 9:21 ` Rasmus
2015-12-10 2:41 ` York Zhao
0 siblings, 1 reply; 14+ messages in thread
From: Rasmus @ 2015-12-07 9:21 UTC (permalink / raw)
To: emacs-orgmode
York Zhao <gtdplatform@gmail.com> 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_DATE: 2015-10-26 Monday
:END:
** To whom it may concern,
* letter 2
:PROPERTIES:
:EXPORT_DATE: 2015-12-03 Thursday
:END:
** hi,
--
Dobbelt-A
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-07 9:21 ` Rasmus
@ 2015-12-10 2:41 ` York Zhao
2015-12-10 15:45 ` Rasmus
0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2015-12-10 2:41 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 862 bytes --]
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, Rasmus <rasmus@gmx.us> wrote:
> York Zhao <gtdplatform@gmail.com> 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_DATE: 2015-10-26 Monday
> :END:
> ** To whom it may concern,
>
> * letter 2
> :PROPERTIES:
> :EXPORT_DATE: 2015-12-03 Thursday
> :END:
> ** hi,
>
>
> --
> Dobbelt-A
>
>
>
[-- Attachment #2: Type: text/html, Size: 1514 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-10 2:41 ` York Zhao
@ 2015-12-10 15:45 ` Rasmus
2015-12-11 3:41 ` York Zhao
0 siblings, 1 reply; 14+ messages in thread
From: Rasmus @ 2015-12-10 15:45 UTC (permalink / raw)
To: emacs-orgmode
Hi,
York Zhao <gtdplatform@gmail.com> 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 :to:
The Org list
** To whom it may concern,
txt
* letter 2
:PROPERTIES:
:EXPORT_DATE: 2015-12-03 Thursday
:END:
** to :to:
list
** To whom it may concern,
txt
> Secondly, even though it still produced a PDF output, the date is always
> today's date which is wrong.
I cannot reproduce. I get this as part of exporting the first subtree
(I click: C-c C-e C-s k L)
\date{2015-10-26 Monday}
Hope it helps,
Rasmus
--
Enough with the bla bla!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-10 15:45 ` Rasmus
@ 2015-12-11 3:41 ` York Zhao
2015-12-11 23:44 ` Nicolas Goaziou
0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2015-12-11 3:41 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]
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 version is from git commit "a198d81". M-x org-version gives:
Org-mode version 8.3.2 (release_8.3.2-378-ga198d8 @
/usr/local/share/emacs/site-lisp/org/)
I then copied the text from your email exactly as:
#+BEGIN_EXAMPLE
* letter 1
:PROPERTIES:
:EXPORT_DATE: 2015-10-26 Monday
:END:
** to
:to:
The Org list
** To whom it may concern,
txt
* letter 2
:PROPERTIES:
:EXPORT_DATE: 2015-12-03 Thursday
:END:
** to
:to:
list
** To whom it may concern,
txt
#+END_EXAMPLE
I selected the "letter 1" subtree, pressed C-cekp, opened the pdf file. But
the
date is still "Dec 12, 2015".
Hope this helps,\\
York
On Thu, Dec 10, 2015 at 10:45 AM, Rasmus <rasmus@gmx.us> wrote:
> Hi,
>
> York Zhao <gtdplatform@gmail.com> 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
> :to:
> The Org list
> ** To whom it may concern,
> txt
> * letter 2
> :PROPERTIES:
> :EXPORT_DATE: 2015-12-03 Thursday
> :END:
> ** to
> :to:
> list
> ** To whom it may concern,
> txt
>
> > Secondly, even though it still produced a PDF output, the date is always
> > today's date which is wrong.
>
> I cannot reproduce. I get this as part of exporting the first subtree
> (I click: C-c C-e C-s k L)
>
> \date{2015-10-26 Monday}
>
> Hope it helps,
> Rasmus
>
> --
> Enough with the bla bla!
>
>
>
[-- Attachment #2: Type: text/html, Size: 3145 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-11 3:41 ` York Zhao
@ 2015-12-11 23:44 ` Nicolas Goaziou
2015-12-12 2:55 ` York Zhao
0 siblings, 1 reply; 14+ messages in thread
From: Nicolas Goaziou @ 2015-12-11 23:44 UTC (permalink / raw)
To: York Zhao; +Cc: emacs-orgmode, Rasmus
Hello,
York Zhao <gtdplatform@gmail.com> 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.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-11 23:44 ` Nicolas Goaziou
@ 2015-12-12 2:55 ` York Zhao
2015-12-12 3:51 ` York Zhao
0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2015-12-12 2:55 UTC (permalink / raw)
To: York Zhao, Rasmus, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]
> 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 subtree export.
I'm
not sure if we should expect this to work for active region subtree export,
but
here's what's written in the Info file:
> Normally the entire buffer is exported, but if there is an active region
> only that part of the buffer will be exported.
Anyway, glad that I've got a solution!
Thanks,\\
York
On Fri, Dec 11, 2015 at 6:44 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> York Zhao <gtdplatform@gmail.com> 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.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
[-- Attachment #2: Type: text/html, Size: 1725 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-12 2:55 ` York Zhao
@ 2015-12-12 3:51 ` York Zhao
2015-12-12 10:39 ` Rasmus
0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2015-12-12 3:51 UTC (permalink / raw)
To: York Zhao, Rasmus, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]
> 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 <gtdplatform@gmail.com> wrote:
> > 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 subtree export.
> I'm
> not sure if we should expect this to work for active region subtree
> export, but
> here's what's written in the Info file:
>
> > Normally the entire buffer is exported, but if there is an active
> region
> > only that part of the buffer will be exported.
>
> Anyway, glad that I've got a solution!
>
> Thanks,\\
> York
>
>
> On Fri, Dec 11, 2015 at 6:44 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> Hello,
>>
>> York Zhao <gtdplatform@gmail.com> 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.
>>
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>
[-- Attachment #2: Type: text/html, Size: 2487 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-12 3:51 ` York Zhao
@ 2015-12-12 10:39 ` Rasmus
2015-12-12 16:50 ` York Zhao
0 siblings, 1 reply; 14+ messages in thread
From: Rasmus @ 2015-12-12 10:39 UTC (permalink / raw)
To: emacs-orgmode
Hi,
York Zhao <gtdplatform@gmail.com> 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" with the actual title or subject of the letter (see
org-koma-letter-prefer-subject for the latter).
Rasmus
--
Er du tosset for noge' lårt!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-12 10:39 ` Rasmus
@ 2015-12-12 16:50 ` York Zhao
2015-12-12 18:13 ` Rasmus
0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2015-12-12 16:50 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
> #+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 trying to find some clue, but I
couldn't find where it handles the "title" option. The closest I've got was
`org-koma-letter-subject-format', which can be set with "#+OPTIONS
subject". But
it seems that the "subject" option works the same as the "title" option,
and has
exactly the same problem.
Thanks
On Sat, Dec 12, 2015 at 5:39 AM, Rasmus <rasmus@gmx.us> wrote:
> Hi,
>
> York Zhao <gtdplatform@gmail.com> 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" with the actual title or subject of the letter (see
> org-koma-letter-prefer-subject for the latter).
>
> Rasmus
>
> --
> Er du tosset for noge' lårt!
>
>
>
[-- Attachment #2: Type: text/html, Size: 1868 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-12 16:50 ` York Zhao
@ 2015-12-12 18:13 ` Rasmus
2015-12-13 16:17 ` York Zhao
0 siblings, 1 reply; 14+ messages in thread
From: Rasmus @ 2015-12-12 18:13 UTC (permalink / raw)
To: emacs-orgmode
York Zhao <gtdplatform@gmail.com> 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_OPTIONS: subheading options.
> Also, I was looking into ox-koma-letter.el trying to find some clue, but I
> couldn't find where it handles the "title" option.
Probably in ox.el or ox-latex.el depending on what you have got in mind.
> The closest I've got was `org-koma-letter-subject-format', which can be
> set with "#+OPTIONS subject". But it seems that the "subject" option
> works the same as the "title" option, and has exactly the same problem.
I don't understand this part. The documentation of ox-koma-letter.el is
at the top of the file. There’s also a tutorial on Worg.
Rasmus
--
Enough with the bla bla!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-12 18:13 ` Rasmus
@ 2015-12-13 16:17 ` York Zhao
2015-12-13 16:29 ` Rasmus
0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2015-12-13 16:17 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]
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,
York
On Sat, Dec 12, 2015 at 1:13 PM, Rasmus <rasmus@gmx.us> wrote:
> York Zhao <gtdplatform@gmail.com> 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_OPTIONS: subheading options.
>
> > Also, I was looking into ox-koma-letter.el trying to find some clue, but
> I
> > couldn't find where it handles the "title" option.
>
> Probably in ox.el or ox-latex.el depending on what you have got in mind.
>
> > The closest I've got was `org-koma-letter-subject-format', which can be
> > set with "#+OPTIONS subject". But it seems that the "subject" option
> > works the same as the "title" option, and has exactly the same problem.
>
> I don't understand this part. The documentation of ox-koma-letter.el is
> at the top of the file. There’s also a tutorial on Worg.
>
> Rasmus
>
> --
> Enough with the bla bla!
>
>
>
[-- Attachment #2: Type: text/html, Size: 2079 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-13 16:17 ` York Zhao
@ 2015-12-13 16:29 ` Rasmus
2015-12-13 16:52 ` York Zhao
0 siblings, 1 reply; 14+ messages in thread
From: Rasmus @ 2015-12-13 16:29 UTC (permalink / raw)
To: gtdplatform; +Cc: emacs-orgmode
Hi,
York Zhao <gtdplatform@gmail.com> 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 documented
> there?
Yes. See here:
http://orgmode.org/org.html#Export-settings
Rasmus
--
I feel emotional landscapes they puzzle me
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Intermixed date in koma-letter export
2015-12-13 16:29 ` Rasmus
@ 2015-12-13 16:52 ` York Zhao
0 siblings, 0 replies; 14+ messages in thread
From: York Zhao @ 2015-12-13 16:52 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]
> 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 the previous keywords(3) can be
> overridden locally by special node properties. These begin with
‘EXPORT_’,
> followed by the name of the keyword they supplant. For example, ‘DATE’
and
> ‘OPTIONS’ keywords become, respectively, ‘EXPORT_DATE’ and
‘EXPORT_OPTIONS’
> properties.
Have no idea why I didn't see them before. Thanks a lot!
Thanks,
York
On Sun, Dec 13, 2015 at 11:29 AM, Rasmus <rasmus@gmx.us> wrote:
> Hi,
>
> York Zhao <gtdplatform@gmail.com> 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 documented
> > there?
>
> Yes. See here:
>
> http://orgmode.org/org.html#Export-settings
>
> Rasmus
>
> --
> I feel emotional landscapes they puzzle me
>
[-- Attachment #2: Type: text/html, Size: 2011 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2015-12-13 16:53 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-06 18:09 Intermixed date in koma-letter export York Zhao
2015-12-07 9:21 ` Rasmus
2015-12-10 2:41 ` York Zhao
2015-12-10 15:45 ` Rasmus
2015-12-11 3:41 ` York Zhao
2015-12-11 23:44 ` Nicolas Goaziou
2015-12-12 2:55 ` York Zhao
2015-12-12 3:51 ` York Zhao
2015-12-12 10:39 ` Rasmus
2015-12-12 16:50 ` York Zhao
2015-12-12 18:13 ` Rasmus
2015-12-13 16:17 ` York Zhao
2015-12-13 16:29 ` Rasmus
2015-12-13 16:52 ` York Zhao
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).