* Changing page style in odt export
@ 2013-08-12 12:59 Vikas Rawal
2013-08-30 11:08 ` Jambunathan K
2013-08-30 14:32 ` Jambunathan K
0 siblings, 2 replies; 3+ messages in thread
From: Vikas Rawal @ 2013-08-12 12:59 UTC (permalink / raw)
To: emacs-orgmode
I have a wide table in my org document which I want on a separate
landscape page in between the document. In my style file, I have a
page style "Landscape". Normally, in Libreoffice, I insert a page
break with Landscape page style before the table, and another page
break with "Default" page style after the table. How would one do it
in org mode to get the same behaviour on exporting to odt?
Vikas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changing page style in odt export
2013-08-12 12:59 Changing page style in odt export Vikas Rawal
@ 2013-08-30 11:08 ` Jambunathan K
2013-08-30 14:32 ` Jambunathan K
1 sibling, 0 replies; 3+ messages in thread
From: Jambunathan K @ 2013-08-30 11:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
Vikas Rawal <vikaslists@agrarianresearch.org> writes:
> I have a wide table in my org document which I want on a separate
> landscape page in between the document. In my style file, I have a
> page style "Landscape". Normally, in Libreoffice, I insert a page
> break with Landscape page style before the table, and another page
> break with "Default" page style after the table. How would one do it
> in org mode to get the same behaviour on exporting to odt?
>
> Vikas
The attached document should be self-explanatory. Pull my changes from
Web URL: http://repo.or.cz/w/org-mode/org-kjn.git
Pull URL: http://repo.or.cz/r/org-mode/org-kjn.git
Note that the above URL is NOT orgmode.org URL.
-------------------
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: parstyles.org --]
[-- Type: text/x-org, Size: 1788 bytes --]
* COMMENT Simple paragraphs
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing
#+ATTR_ODT: :style "Text_20_body_20_indent"
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing
#+ATTR_ODT: :style "Text_20_body_20_bold"
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing Testing testing testing testing
Testing testing testing testing
* COMMENT Paragraphs in Simple list
1. L1N1
2. L1N4
3. L1N5
#+ATTR_ODT: :p-style "Text_20_body_20_bold"
1. L1N1
2. L1N4
3. L1N5
* Paragraphs in Complex list
#+ATTR_ODT: :style "OrgBulletedList" :p-style "Text_20_body_20_bold"
1. N1
1. N11
2. N12
2. N2
#+ATTR_ODT: :style "OrgNumberedList" :p-style "Preformatted_20_Text"
* B21
* B22
- B221
First paragraph.
#+ATTR_ODT: :style "OrgBibliographyList" :p-style "Text_20_body"
1. one
2. two
3. three
#+ATTR_ODT: :style "Text_20_body_20_indent"
Second paragraph.
- B222
* B23
3. N3
[-- Attachment #3: Type: text/plain, Size: 22 bytes --]
-------------------
[-- Attachment #4: parstyles.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 10820 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changing page style in odt export
2013-08-12 12:59 Changing page style in odt export Vikas Rawal
2013-08-30 11:08 ` Jambunathan K
@ 2013-08-30 14:32 ` Jambunathan K
1 sibling, 0 replies; 3+ messages in thread
From: Jambunathan K @ 2013-08-30 14:32 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 698 bytes --]
Vikas Rawal <vikaslists@agrarianresearch.org> writes:
> I have a wide table in my org document which I want on a separate
> landscape page in between the document. In my style file, I have a
> page style "Landscape". Normally, in Libreoffice, I insert a page
> break with Landscape page style before the table, and another page
> break with "Default" page style after the table. How would one do it
> in org mode to get the same behaviour on exporting to odt?
Attached the wrong files.
LibreOffice takes some time to display the Table within a Text Box
within a Landscape page. If you hover over the table a bit it becomes
visible. This is the behaviour on LibreOffice 4.0.
-----------------
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: parstyles-and-pagebreaks.org --]
[-- Type: text/x-org, Size: 2247 bytes --]
Pagebreaks created via #+PAGEBREAK are a mere expedience. These
create extraneous "empty" paragraphs which take up "extra space". A
typographer will chide you for resorting to such underhanded means to
create pagebreaks.
As an expedient, it has it's uses. See `org-odt-special-block' for a
realistic example of how pagebreak can be to service.
#+ATTR_ODT: :style "Text_20_body_20_bold"
The right way to create pagebreaks is to create new styles -
custom or automatic - that set the "before/after" pagebreak
of an element (a paragraph, table etc).
For example, consider pagebreaks created as below.
Text in first page.
#+ATTR_ODT: :style "OrgPageBreakDefault"
#+PAGEBREAK:
This text goes in next page.
Now look at the page that is introduced with forced page
break. You will realize that the first line of text in that
page is a bit displaced [fn:1] from other pages created by
LibreOffice. A keen eye will definitely catch this
aberration.
------------
Textboxes an be used for centering tables etc horizontally
and vertically within a page.
In the example below, a landscape and centered table is
created in the middle of what is essentially a portrait
document.
Leading text.
#+ATTR_ODT: :style "OrgPageBreakLandscape"
#+PAGEBREAK:
#+ATTR_ODT: :width 5 :style "OrgPageImage" :anchor "page"
#+BEGIN_TEXTBOX
| a | b |
| e | f |
#+END_TEXTBOX
#+ATTR_ODT: :style "OrgPageBreakDefault"
#+PAGEBREAK:
-----------------------------------------
You can customize paragraphs - standalone one and those occurring
within lists - using `:style' and `:p-style' attributes. Try out
the following example and see for yourself what you can achieve.
#+ATTR_ODT: :style "OrgBulletedList" :p-style "Text_20_body_20_bold"
1. N1
1. N11
2. N12
2. N2
#+ATTR_ODT: :style "OrgNumberedList" :p-style "Preformatted_20_Text"
* B21
* B22
- B221
First paragraph.
#+ATTR_ODT: :style "OrgBibliographyList" :p-style "Text_20_body"
1. one
2. two
3. three
#+ATTR_ODT: :style "Text_20_body_20_indent"
Second paragraph.
- B222
* B23
3. N3
* Footnotes
[fn:1] Does anyone know how to clearout the extraneous "space" created
by the pagebreak?
[-- Attachment #3: Type: text/plain, Size: 30 bytes --]
------------------
> Vikas
[-- Attachment #4: parstyles-and-pagebreaks.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 11515 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-30 14:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 12:59 Changing page style in odt export Vikas Rawal
2013-08-30 11:08 ` Jambunathan K
2013-08-30 14:32 ` Jambunathan K
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).