emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: emacs-orgmode@gnu.org
Subject: Re: index-title in org-publish
Date: Sun, 16 Nov 2008 16:38:02 -0600	[thread overview]
Message-ID: <m2r65bguut.fsf@fastmail.fm> (raw)
In-Reply-To: <BE96FBBA-302A-417E-A537-811F869D7765@uva.nl> (Carsten Dominik's message of "Sun\, 16 Nov 2008 19\:50\:49 +0100")

Carsten Dominik <dominik@science.uva.nl> writes:

> On Nov 16, 2008, at 5:51 PM, Matthew Lundin wrote:
>
>>
>> Carsten,
>>
>> Thanks so much for fixing the open buffer problem with auto-index was
>> turned on in org-publish. All buffers now close properly after
>> publishing.
>>
>> There is a new behavior in auto-index with 6.12. The index-title now
>> is written in the index-file as a heading, rather than the first line
>> of text.
>>
>> Let's say I have the following options in org-publish-project-alist:
>>
>> ...
>>        :auto-index t
>>        :index-filename "pagelist.org"
>>        :index-title "Page List"
>> ...
>>
>> In earlier versions of org-publish, auto-index resulted in a
>> pagelist.org that looked like this:
>>
>> Page List
>>
>>     + [[file1.org][File One]]
>>     + [[file2.org][File Two]]
>>
>> With 6.12, it creates a pagelist.org file that looks like this:
>>
>> * Page List
>>
>>     + [[file1.org][File One]]
>>     + [[file2.org][File Two]]
>>
>> In the latter instance, the published html has the name of the
>> file--"pagelist"--as the title (<h1>) and "Page List" as a level two
>> heading (<h2>).
>>
>> Thanks! (And sorry to bother you with such a minor issue...)
>>
>> Matt
>
> Hi Matt,
>
> from your post it is not clear to me what you would like to have
> changed.  Also in this iisues are usually follow Sebastian Rose's
> adice who also made the change you are mentioning.  Sebastian, could
> you chime in here?
>
> - Carsten

Hi Carsten (and Sebastian),

Yes, so sorry. My post wasn't clear. I was wondering if
org-publish-org-index could be reverted to the old behavior to produce
a file in which the first line contains the index-filename (e.g.,
"Page List") in form "a" below:
 
Page List        <------- (a) - old behavior

rather than

* Page List      <------- (b) new behavior

The new behavior (b) causes the filename (e.g., "pagelist") to be
exported as the title, which results in redundant titles/headings in
the html. You can see the results new behavior at:

http://faculty.valpo.edu/mlundin/pagelist.html

Thanks,

Matt

  reply	other threads:[~2008-11-16 22:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-16 16:51 index-title in org-publish Matthew Lundin
2008-11-16 18:50 ` Carsten Dominik
2008-11-16 22:38   ` Matthew Lundin [this message]
2008-11-17 11:59     ` Sebastian Rose
2008-11-17 12:37       ` Carsten Dominik
2008-11-17 13:45     ` Carsten Dominik

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=m2r65bguut.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=dominik@science.uva.nl \
    --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).