emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: emacs-orgmode@gnu.org
Cc: Dan Griswold <dgriswol@rochester.rr.com>,
	Christian Moe <mail@christianmoe.com>
Subject: Re: tricky odt export needs
Date: Sat, 15 Feb 2014 11:54:11 +0530	[thread overview]
Message-ID: <87bny8ki5w.fsf@gmail.com> (raw)
In-Reply-To: 87wqiy1y0h.fsf@gmail.com

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]


Jambunathan K <kjambunathan@gmail.com> writes:

> In the pdf version of Emacs info manuals one typically sees all three of
> a Section number AND a Description AND a Page number, something like:
>
>     See Section 3.1 [Tropical Storms], page 24.
>
> In Org context, I am wondering whether there is such a need.

I have added support for generating page nos.  See attachments for
sample test file.

--8<---------------cut here---------------start------------->8---

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pagenos.org --]
[-- Type: text/x-org, Size: 611 bytes --]

#+OPTIONS: ':nil *:t -:nil ::t <:t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:(not "LOGBOOK") date:t
#+OPTIONS: e:t email:nil f:t inline:t num:3 p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t
#+TITLE: headline
#+DATE: <2014-02-12 Wed>
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunathan@gmail.com
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.20 (Org mode 8.2.5h)

#+TOC: headlines


* Headline 1

Some text. See [[Headline 2]].

#+PAGEBREAK:
* Headline 2

Some more text.  

[-- Attachment #3: Type: text/plain, Size: 858 bytes --]

--8<---------------cut here---------------end--------------->8---

----------------------------------------------------------------

Page nos are disabled by default.  To enable pagenos, you need to

    M-x customize-variable org-odt-caption-and-xref-settings

and choose a setting as below.

    [X] Key: :TARGET:
        Plist:
        [X] Key: :xref-format
            Choice: Value Menu TexInfo style
            INS


The "TexInfo style" is provided more for trial run.  A variety of
different "format strings" can be chosen.

----------------------------------------------------------------

You can pull my changes from the following ELPA archive:

    http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/

See instructions at http://cauvery.nfshost.com/wiki.pl/ODT_Exporter

----------------------------------------------------------------


[-- Attachment #4: pagenos-after-upate.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 16120 bytes --]

[-- Attachment #5: pagenos.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 10741 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #6: pagenos.org --]
[-- Type: text/x-org, Size: 611 bytes --]

#+OPTIONS: ':nil *:t -:nil ::t <:t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:(not "LOGBOOK") date:t
#+OPTIONS: e:t email:nil f:t inline:t num:3 p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t
#+TITLE: headline
#+DATE: <2014-02-12 Wed>
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunathan@gmail.com
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.20 (Org mode 8.2.5h)

#+TOC: headlines


* Headline 1

Some text. See [[Headline 2]].

#+PAGEBREAK:
* Headline 2

Some more text.  

      parent reply	other threads:[~2014-02-15  6:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20 19:13 tricky odt export needs Dan Griswold
2013-11-20 20:24 ` Nicolas Goaziou
2013-11-20 20:37   ` Dan Griswold
2013-11-20 21:10     ` Nicolas Goaziou
2013-11-20 21:34       ` Dan Griswold
2013-11-20 20:34 ` Christian Moe
2013-11-20 20:40   ` Dan Griswold
2013-11-20 21:33   ` Christian Moe
2013-11-21 16:34     ` Dan Griswold
2013-11-21 16:38       ` Suvayu Ali
2013-11-21 20:19         ` Dan Griswold
2013-11-21 21:02           ` Christian Moe
2013-11-21 20:52     ` Dan Griswold
2013-11-21 21:16       ` Christian Moe
2013-12-20  6:29   ` Jambunathan K
2013-12-20  9:25     ` Christian Moe
2013-12-21  7:09       ` Jambunathan K
2013-12-22 10:25         ` Christian Moe
2014-02-15  6:24         ` 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=87bny8ki5w.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=dgriswol@rochester.rr.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@christianmoe.com \
    /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).