emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Export Subtree to LaTeX: no EXPORT_LATEX_CLASS_OPTIONS ?
@ 2016-02-21 13:25 Axel Kielhorn
  2016-02-21 17:04 ` Richard Lawrence
  0 siblings, 1 reply; 3+ messages in thread
From: Axel Kielhorn @ 2016-02-21 13:25 UTC (permalink / raw)
  To: Org-Mode Mailing List

Hi,

I want to export a subtree with a columnview dynamic block in landscape orientation.
I don’t want just a rotated table, the whole page should be in landscape mode.
I may have to tweak the page layout using geometry as well,
thus I probably need EXPORT_LATEX_HEADER.

I’m using:
Org-mode version 8.3.3 (release_8.3.3-629-g635161 @ /Users/axel/src/Emacs/org-mode/lisp/)

with Emacs 24.5.

* Projektboard                                                     :noexport:
:PROPERTIES:
:EXPORT_FILE_NAME: Projektboard
:END:
#+EXPORT_LATEX_CLASS_OPTIONS: [landscape]
#+EXPORT_TITLE: Projektboard
#+BEGIN_EXPORT latex
\maketitle
#+END_EXPORT

#+BEGIN: columnview :hlines 1 :id "Inbetriebnahme"
| Problem          | Status MKB | Wer   | Termin_MKB | Termin_Teile | ErlMon |
|------------------+------------+-------+------------+--------------+--------|
| Inbetriebnahme   |            |       |            |              | [2/8]  |
| 2016-01-01 [0/3] |            |       |            |              | [0/3]  |
| Problem 1        | TODO       |       | 2016-02-02 |   2016-02-23 | [ ]    |
| Problem 2        | TASK       | :WER: |            |              | [ ]    |
| Problem 3        | TASK       | :WER: |            |              | [ ]    |
| 2016-01-02 [0/2] |            |       |            |              | [0/2]  |
| Problem 4        | TODO       |       |            |              | [ ]    |
| Problem 5        | TASK       | :WER: |            |              | [ ]    |
| 2016-01-03 [2/2] |            |       |            |              | [2/2]  |
| Problem 6        | DONE       |       |            |              | [X]    |
| Problem 7        | CANCELLED  |       |            |              | [X]    |
| 2016-01-04 [0/1] |            |       |            |              | [0/1]  |
| Problem 9        | in Arbeit  | :WER: |            |              | [ ]    |
#+END:

Did I overlook something or is it not possible to use a different LaTeX configuration to export a subtree?

If I use
#+LATEX_CLASS_OPTIONS: [landscape]
in the subtree it is used for the whole document as well.
The same happens when I us an #+INCLUDE file.

(Right now, I export to HTML and print from the browser.)

Axel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Export Subtree to LaTeX: no EXPORT_LATEX_CLASS_OPTIONS ?
  2016-02-21 13:25 Export Subtree to LaTeX: no EXPORT_LATEX_CLASS_OPTIONS ? Axel Kielhorn
@ 2016-02-21 17:04 ` Richard Lawrence
  2016-02-21 19:19   ` Axel Kielhorn
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Lawrence @ 2016-02-21 17:04 UTC (permalink / raw)
  To: Axel Kielhorn; +Cc: Org-Mode Mailing List

Hi Axel,

Axel Kielhorn <org-mode@axelkielhorn.de> writes:

> I want to export a subtree with a columnview dynamic block in
> landscape orientation.  I don’t want just a rotated table, the whole
> page should be in landscape mode.  I may have to tweak the page layout
> using geometry as well, thus I probably need EXPORT_LATEX_HEADER.

> * Projektboard                                                     :noexport:
> :PROPERTIES:
> :EXPORT_FILE_NAME: Projektboard
> :END:
> #+EXPORT_LATEX_CLASS_OPTIONS: [landscape]
> #+EXPORT_TITLE: Projektboard
> ...

I think what you want to do is put the EXPORT_LATEX_CLASS_OPTIONS (and
the TITLE) as a property in the property drawer, like this:

* Projektboard                                                     :noexport:
:PROPERTIES:
:EXPORT_LATEX_CLASS_OPTIONS: [landscape]
:EXPORT_TITLE: Projektboard
:EXPORT_FILE_NAME: Projektboard
:END:

That has the intended effect when I test it here, and my setup is
similar to yours.  In general, when you just want to affect the export
options of a subtree, you use properties, rather than keywords.

Best,
Richard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Export Subtree to LaTeX: no EXPORT_LATEX_CLASS_OPTIONS ?
  2016-02-21 17:04 ` Richard Lawrence
@ 2016-02-21 19:19   ` Axel Kielhorn
  0 siblings, 0 replies; 3+ messages in thread
From: Axel Kielhorn @ 2016-02-21 19:19 UTC (permalink / raw)
  To: Org-Mode Mailing List

Hi Richard,

> 
> I think what you want to do is put the EXPORT_LATEX_CLASS_OPTIONS (and
> the TITLE) as a property in the property drawer, like this:
> 
> * Projektboard                                                     :noexport:
> :PROPERTIES:
> :EXPORT_LATEX_CLASS_OPTIONS: [landscape]
> :EXPORT_TITLE: Projektboard
> :EXPORT_FILE_NAME: Projektboard
> :END:

Indeed it works.
I’m quite sure that I tried that first, maybe I mistyped something.

Now I get exactly what I want.
Thanks for the quick reply.

Axel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-21 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 13:25 Export Subtree to LaTeX: no EXPORT_LATEX_CLASS_OPTIONS ? Axel Kielhorn
2016-02-21 17:04 ` Richard Lawrence
2016-02-21 19:19   ` Axel Kielhorn

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).