emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export to pdf tags showing
@ 2012-06-16 17:22 itmejl
  2012-06-17  2:12 ` Nick Dokos
  0 siblings, 1 reply; 17+ messages in thread
From: itmejl @ 2012-06-16 17:22 UTC (permalink / raw)
  To: eol

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

This is about exporting to pdf and tags showing.

When exporting to pdf I use

#+OPTIONS tags:not-in-toc

Despite that tags are showing in toc in the resulting pdf file. How
can I get rid of tag-in-toc in pdf?

I use Emacs 24.1.1 on win7 and org mode 7.8.11.

/Christina
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iEYEARECAAYFAk/cwNgACgkQ2+bVj21Y+8mS1ACgzo7SSMrfFhjXrPUclnjVVnvz
r58AmQGzful7U6wQDlAw7kS+hSRCawEU
=I+Cs
-----END PGP SIGNATURE-----

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

* Re: export to pdf tags showing
  2012-06-16 17:22 export to pdf tags showing itmejl
@ 2012-06-17  2:12 ` Nick Dokos
  2012-06-17  8:49   ` itmejl
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Dokos @ 2012-06-17  2:12 UTC (permalink / raw)
  To: itmejl@chrikro.net; +Cc: eol

itmejl@chrikro.net <itmejl@chrikro.net> wrote:

> Hi!
> 
> This is about exporting to pdf and tags showing.
> 
> When exporting to pdf I use
> 
> #+OPTIONS tags:not-in-toc
> 

Missing colon perhaps?

#+OPTIONS: tags:not-in-toc

Nick

> Despite that tags are showing in toc in the resulting pdf file. How
> can I get rid of tag-in-toc in pdf?
> 
> I use Emacs 24.1.1 on win7 and org mode 7.8.11.
> 
> /Christina

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

* Re: export to pdf tags showing
  2012-06-17  2:12 ` Nick Dokos
@ 2012-06-17  8:49   ` itmejl
  2012-06-17 21:39     ` Nick Dokos
  0 siblings, 1 reply; 17+ messages in thread
From: itmejl @ 2012-06-17  8:49 UTC (permalink / raw)
  To: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nick Dokos skrev 2012-06-17 04:12:
> itmejl@chrikro.net <itmejl@chrikro.net> wrote:
> 
>> Hi!
>> 
>> This is about exporting to pdf and tags showing.
>> 
>> When exporting to pdf I use
>> 
>> #+OPTIONS tags:not-in-toc
>> 
> 
> Missing colon perhaps?
> 
> #+OPTIONS: tags:not-in-toc
> 
> Nick
> 
>> Despite that tags are showing in toc in the resulting pdf file.
>> How can I get rid of tag-in-toc in pdf?
>> 
>> I use Emacs 24.1.1 on win7 and org mode 7.8.11.

Thanks for anwering but no thats is not the problem. The full option
lines in the file look like this:

#+OPTIONS:   H:4 num:t toc:3 \n:t @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:t tags:not-in-toc


So, anyone else?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iEYEARECAAYFAk/dmhkACgkQ2+bVj21Y+8lW1ACg6GNfehVNSmYhBg2tV0UZEqHW
tdwAnRcaGw0R0mlw868v++axaUQ3mXsK
=jaql
-----END PGP SIGNATURE-----

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

* Re: export to pdf tags showing
  2012-06-17  8:49   ` itmejl
@ 2012-06-17 21:39     ` Nick Dokos
  2012-06-17 23:40       ` Nicolas Goaziou
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Dokos @ 2012-06-17 21:39 UTC (permalink / raw)
  To: itmejl@chrikro.net; +Cc: emacs-orgmode

itmejl@chrikro.net <itmejl@chrikro.net> wrote:

> Nick Dokos skrev 2012-06-17 04:12:
> > itmejl@chrikro.net <itmejl@chrikro.net> wrote:
> >
> >> Hi!
> >>
> >> This is about exporting to pdf and tags showing.
> >>
> >> When exporting to pdf I use
> >>
> >> #+OPTIONS tags:not-in-toc
> >>
> >
> > Missing colon perhaps?
> >
> > #+OPTIONS: tags:not-in-toc
> >
> > Nick
> >
> >> Despite that tags are showing in toc in the resulting pdf file.
> >> How can I get rid of tag-in-toc in pdf?
> >>
> >> I use Emacs 24.1.1 on win7 and org mode 7.8.11.
> 
> Thanks for anwering but no thats is not the problem. The full option
> lines in the file look like this:
> 
> #+OPTIONS:   H:4 num:t toc:3 \n:t @:t ::t |:t ^:t -:t f:t *:t <:t
> #+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:t tags:not-in-toc
> 

Right: it's a bug. org-html.el and org-lparse.el call
org-export-cleanup-toc-line which gets rid of the tag in this case,
org-ascii.el does it by hand (i.e. without calling the above function)
and org-latex.el does not do it at all. It's likely that other backends
will also be found wanting.  Also, the new latex exporter has this bug
as well.

Nick

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

* Re: export to pdf tags showing
  2012-06-17 21:39     ` Nick Dokos
@ 2012-06-17 23:40       ` Nicolas Goaziou
  2012-06-17 23:56         ` suvayu ali
  2012-06-18  0:13         ` Nick Dokos
  0 siblings, 2 replies; 17+ messages in thread
From: Nicolas Goaziou @ 2012-06-17 23:40 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, itmejl@chrikro.net

Hello,

Nick Dokos <nicholas.dokos@hp.com> writes:

> itmejl@chrikro.net <itmejl@chrikro.net> wrote:
>
>> Nick Dokos skrev 2012-06-17 04:12:
>> > itmejl@chrikro.net <itmejl@chrikro.net> wrote:
>> >
>> >> Hi!
>> >>
>> >> This is about exporting to pdf and tags showing.
>> >>
>> >> When exporting to pdf I use
>> >>
>> >> #+OPTIONS tags:not-in-toc
>> >>
>> >
>> > Missing colon perhaps?
>> >
>> > #+OPTIONS: tags:not-in-toc
>> >
>> > Nick
>> >
>> >> Despite that tags are showing in toc in the resulting pdf file.
>> >> How can I get rid of tag-in-toc in pdf?
>> >>
>> >> I use Emacs 24.1.1 on win7 and org mode 7.8.11.
>> 
>> Thanks for anwering but no thats is not the problem. The full option
>> lines in the file look like this:
>> 
>> #+OPTIONS:   H:4 num:t toc:3 \n:t @:t ::t |:t ^:t -:t f:t *:t <:t
>> #+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:t tags:not-in-toc
>> 
>
> Right: it's a bug. org-html.el and org-lparse.el call
> org-export-cleanup-toc-line which gets rid of the tag in this case,
> org-ascii.el does it by hand (i.e. without calling the above function)
> and org-latex.el does not do it at all. It's likely that other backends
> will also be found wanting.  Also, the new latex exporter has this bug
> as well.

This is not a bug. LaTeX has its own command to create the table of
contents. There is no simple way to interfere with the process and
remove the tags.


Regards,

-- 
Nicolas Goaziou

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

* Re: export to pdf tags showing
  2012-06-17 23:40       ` Nicolas Goaziou
@ 2012-06-17 23:56         ` suvayu ali
  2012-06-18  8:41           ` Nicolas Goaziou
  2012-06-18  0:13         ` Nick Dokos
  1 sibling, 1 reply; 17+ messages in thread
From: suvayu ali @ 2012-06-17 23:56 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: nicholas.dokos, emacs-orgmode, itmejl@chrikro.net

On Mon, Jun 18, 2012 at 1:40 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> This is not a bug. LaTeX has its own command to create the table of
> contents. There is no simple way to interfere with the process and
> remove the tags.

I think this should work:

\section[Section title in toc]{Section title}

Then the "tagless" title could be in the [..] and the "with tag" title
in the {..}.

HTH

-- 
Suvayu

Open source is the future. It sets us free.

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

* Re: export to pdf tags showing
  2012-06-17 23:40       ` Nicolas Goaziou
  2012-06-17 23:56         ` suvayu ali
@ 2012-06-18  0:13         ` Nick Dokos
  1 sibling, 0 replies; 17+ messages in thread
From: Nick Dokos @ 2012-06-18  0:13 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode, itmejl@chrikro.net

Nicolas Goaziou <n.goaziou@gmail.com> wrote:

> > Right: it's a bug. org-html.el and org-lparse.el call
> > org-export-cleanup-toc-line which gets rid of the tag in this case,
> > org-ascii.el does it by hand (i.e. without calling the above function)
> > and org-latex.el does not do it at all. It's likely that other backends
> > will also be found wanting.  Also, the new latex exporter has this bug
> > as well.
> 
> This is not a bug. LaTeX has its own command to create the table of
> contents. There is no simple way to interfere with the process and
> remove the tags.
> 

It's (at least) a documentation bug.

Nick

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

* Re: export to pdf tags showing
  2012-06-17 23:56         ` suvayu ali
@ 2012-06-18  8:41           ` Nicolas Goaziou
  2012-06-18 14:10             ` Nick Dokos
  0 siblings, 1 reply; 17+ messages in thread
From: Nicolas Goaziou @ 2012-06-18  8:41 UTC (permalink / raw)
  To: suvayu ali; +Cc: nicholas.dokos, emacs-orgmode, itmejl@chrikro.net

Hello,

suvayu ali <fatkasuvayu+linux@gmail.com> writes:

> On Mon, Jun 18, 2012 at 1:40 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>> This is not a bug. LaTeX has its own command to create the table of
>> contents. There is no simple way to interfere with the process and
>> remove the tags.
>
> I think this should work:
>
> \section[Section title in toc]{Section title}
>
> Then the "tagless" title could be in the [..] and the "with tag" title
> in the {..}.

I had totally forgotten about alternative headlines.  This is now
implemented.

> HTH

It does.  Thanks.


Regards,

-- 
Nicolas Goaziou

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

* Re: export to pdf tags showing
  2012-06-18  8:41           ` Nicolas Goaziou
@ 2012-06-18 14:10             ` Nick Dokos
  2012-06-18 16:29               ` Nicolas Goaziou
  2012-06-20 19:53               ` itmejl
  0 siblings, 2 replies; 17+ messages in thread
From: Nick Dokos @ 2012-06-18 14:10 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode, itmejl@chrikro.net

Nicolas Goaziou <n.goaziou@gmail.com> wrote:

> Hello,
> 
> suvayu ali <fatkasuvayu+linux@gmail.com> writes:
> 
> > On Mon, Jun 18, 2012 at 1:40 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> >> This is not a bug. LaTeX has its own command to create the table of
> >> contents. There is no simple way to interfere with the process and
> >> remove the tags.
> >
> > I think this should work:
> >
> > \section[Section title in toc]{Section title}
> >
> > Then the "tagless" title could be in the [..] and the "with tag" title
> > in the {..}.
> 
> I had totally forgotten about alternative headlines.  This is now
> implemented.
> 
> > HTH
> 
> It does.  Thanks.
> 
> 

Pulled and tested: works nicely. Thanks to Suvayu for the idea and to
Nicolas for the implementation.

IIUC, this is only implemented in the new exporter: the old one remains
unchanged - yes?

Thanks,
Nick

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

* Re: export to pdf tags showing
  2012-06-18 14:10             ` Nick Dokos
@ 2012-06-18 16:29               ` Nicolas Goaziou
  2012-06-20 19:53               ` itmejl
  1 sibling, 0 replies; 17+ messages in thread
From: Nicolas Goaziou @ 2012-06-18 16:29 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, itmejl@chrikro.net

Hello,

Nick Dokos <nicholas.dokos@hp.com> writes:

> Pulled and tested: works nicely. Thanks to Suvayu for the idea and to
> Nicolas for the implementation.
>
> IIUC, this is only implemented in the new exporter: the old one remains
> unchanged - yes?

Correct.


Regards,

-- 
Nicolas Goaziou

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

* Re: export to pdf tags showing
  2012-06-18 14:10             ` Nick Dokos
  2012-06-18 16:29               ` Nicolas Goaziou
@ 2012-06-20 19:53               ` itmejl
  2012-06-20 20:01                 ` Nick Dokos
  1 sibling, 1 reply; 17+ messages in thread
From: itmejl @ 2012-06-20 19:53 UTC (permalink / raw)
  To: emacs-orgmode

> IIUC, this is only implemented in the new exporter: the old one remains
> unchanged - yes?
> 

The new and the old exporter. How is the new envoked?

/

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

* Re: export to pdf tags showing
  2012-06-20 19:53               ` itmejl
@ 2012-06-20 20:01                 ` Nick Dokos
  2012-06-23 13:44                   ` Bernt Hansen
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Dokos @ 2012-06-20 20:01 UTC (permalink / raw)
  To: itmejl@chrikro.net; +Cc: emacs-orgmode

itmejl@chrikro.net <itmejl@chrikro.net> wrote:

> > IIUC, this is only implemented in the new exporter: the old one remains
> > unchanged - yes?
> > 
> 
> The new and the old exporter. How is the new envoked?
> 

You have to do two things in your .emacs (or equivalent):

(require 'org-export)
(add-to-list 'load-path (expand-file-name "/path/to/org/contrib/lisp"))

where you have to change the path appropriately for your situation: the
second step allows the new exporter to pick up the new latex and html
backends (org-e-latex.el and org-e-html.el resp.)

You can then invoke the export dispatcher with

M-x org-export-dispatch

There is no key assigned to it yet (presumably it will sit under C-c C-e
eventually), but you can of course define your own binding for now.

Nick

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

* Re: export to pdf tags showing
  2012-06-20 20:01                 ` Nick Dokos
@ 2012-06-23 13:44                   ` Bernt Hansen
  2012-06-23 15:44                     ` Nick Dokos
  0 siblings, 1 reply; 17+ messages in thread
From: Bernt Hansen @ 2012-06-23 13:44 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, itmejl@chrikro.net

Nick Dokos <nicholas.dokos@hp.com> writes:

> itmejl@chrikro.net <itmejl@chrikro.net> wrote:
>
>> The new and the old exporter. How is the new envoked?
>> 
>
> You have to do two things in your .emacs (or equivalent):
>
> (require 'org-export)
> (add-to-list 'load-path (expand-file-name "/path/to/org/contrib/lisp"))
>
> where you have to change the path appropriately for your situation: the
> second step allows the new exporter to pick up the new latex and html
> backends (org-e-latex.el and org-e-html.el resp.)
>
> You can then invoke the export dispatcher with
>
> M-x org-export-dispatch
>
> There is no key assigned to it yet (presumably it will sit under C-c C-e
> eventually), but you can of course define your own binding for now.

Hi Nick,

Is it possible to use the new exporter for publishing (org-publish-*)
versus standalone exports?

Thanks,
Bernt

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

* Re: export to pdf tags showing
  2012-06-23 13:44                   ` Bernt Hansen
@ 2012-06-23 15:44                     ` Nick Dokos
  2012-06-23 15:45                       ` Bernt Hansen
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Dokos @ 2012-06-23 15:44 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode, itmejl@chrikro.net

Bernt Hansen <bernt@norang.ca> wrote:

> Is it possible to use the new exporter for publishing (org-publish-*)
> versus standalone exports?
> 

That's a very good question: I don't know.

Nick

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

* Re: export to pdf tags showing
  2012-06-23 15:44                     ` Nick Dokos
@ 2012-06-23 15:45                       ` Bernt Hansen
  2012-06-23 15:55                         ` Nick Dokos
  2012-06-23 16:24                         ` Nicolas Goaziou
  0 siblings, 2 replies; 17+ messages in thread
From: Bernt Hansen @ 2012-06-23 15:45 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: nicholas.dokos, emacs-orgmode, itmejl@chrikro.net

Nick Dokos <nicholas.dokos@hp.com> writes:

> Bernt Hansen <bernt@norang.ca> wrote:
>
>> Is it possible to use the new exporter for publishing (org-publish-*)
>> versus standalone exports?
>> 
>
> That's a very good question: I don't know.
>
> Nick

Oops, wrong Nick :)

Adding ngz.

-Bernt

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

* Re: export to pdf tags showing
  2012-06-23 15:45                       ` Bernt Hansen
@ 2012-06-23 15:55                         ` Nick Dokos
  2012-06-23 16:24                         ` Nicolas Goaziou
  1 sibling, 0 replies; 17+ messages in thread
From: Nick Dokos @ 2012-06-23 15:55 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode, Nicolas Goaziou, itmejl@chrikro.net

Bernt Hansen <bernt@norang.ca> wrote:

> Nick Dokos <nicholas.dokos@hp.com> writes:
> 
> > Bernt Hansen <bernt@norang.ca> wrote:
> >
> >> Is it possible to use the new exporter for publishing (org-publish-*)
> >> versus standalone exports?
> >> 
> >
> > That's a very good question: I don't know.
> >
> > Nick
> 
> Oops, wrong Nick :)
> 
> Adding ngz.
> 

It's still a very good question :-)

A quick look at org-publish shows code like this:

,----
| 	      (funcall (intern (concat "org-export-as-" format))
| 		       (plist-get plist :headline-levels)
| 		       nil plist nil
| 		       (plist-get plist :body-only)
| 		       pub-dir)
`----

so I suspect it's not possible at the moment.

Nick
(still the wrong Nick :-))

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

* Re: export to pdf tags showing
  2012-06-23 15:45                       ` Bernt Hansen
  2012-06-23 15:55                         ` Nick Dokos
@ 2012-06-23 16:24                         ` Nicolas Goaziou
  1 sibling, 0 replies; 17+ messages in thread
From: Nicolas Goaziou @ 2012-06-23 16:24 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: nicholas.dokos, emacs-orgmode, itmejl@chrikro.net

Hello,

Bernt Hansen <bernt@norang.ca> writes:

>>> Is it possible to use the new exporter for publishing (org-publish-*)
>>> versus standalone exports?

`org-export-dispatch' should offer access to the publishing system.  In
contrib, org-e-publish is a patched version compatible with new export
engine.

Note that there is neither publish to Org nor background publishing
features yet.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2012-06-23 16:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-16 17:22 export to pdf tags showing itmejl
2012-06-17  2:12 ` Nick Dokos
2012-06-17  8:49   ` itmejl
2012-06-17 21:39     ` Nick Dokos
2012-06-17 23:40       ` Nicolas Goaziou
2012-06-17 23:56         ` suvayu ali
2012-06-18  8:41           ` Nicolas Goaziou
2012-06-18 14:10             ` Nick Dokos
2012-06-18 16:29               ` Nicolas Goaziou
2012-06-20 19:53               ` itmejl
2012-06-20 20:01                 ` Nick Dokos
2012-06-23 13:44                   ` Bernt Hansen
2012-06-23 15:44                     ` Nick Dokos
2012-06-23 15:45                       ` Bernt Hansen
2012-06-23 15:55                         ` Nick Dokos
2012-06-23 16:24                         ` Nicolas Goaziou
2012-06-18  0:13         ` Nick Dokos

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