emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Changing page style in odt export
Date: Fri, 30 Aug 2013 20:02:08 +0530	[thread overview]
Message-ID: <87d2ovb66v.fsf@gmail.com> (raw)
In-Reply-To: <20130812125948.GA21546@panahar> (Vikas Rawal's message of "Mon, 12 Aug 2013 18:29:48 +0530")

[-- 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 --]

      parent reply	other threads:[~2013-08-30 14:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2ovb66v.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).