From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: rudolf@adamkovic.org, Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: LaTeX export is broken with 'num:nil` and 'ALT_TITLE`
Date: Fri, 27 Dec 2024 18:56:15 +0100 [thread overview]
Message-ID: <CAO48Bk8ZR_ub5k8MXUc+dSXysA+9S+bDt+Ck8VZqX0KL4tDSkA@mail.gmail.com> (raw)
In-Reply-To: <87wmfl3ttn.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 2429 bytes --]
Hi
On Fri, 27 Dec 2024 at 18:42, Ihor Radchenko <yantar92@posteo.net> wrote:
> Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
>
> > A quick fix (on main) attached. With this ALT_TITLE is ignored in the
> > document with #+OPTIONS: num:nil and if #+OPTIONS: num:t and :PROPERTIES:
> > :UNNUMBERED: t
>
> Thanks!
> I am slightly concerned about generality of dropping ALT_TITLE from
> unnumbered sectioning command.
>
> From LaTeX2e reference manual, I see
>
> Structure your text into divisions: parts, chapters, sections, etc.
> All sectioning commands
> have the same form, one of:
>
> sectioning-command{title}
> sectioning-command*{title}
> sectioning-command[toc-title]{title}
>
> But can we assume that unnumbered entries never appear in the table of
> contents?
>
I do think we can. Unnumbered sectioning commands never appear in the ToC...
Unless you use additional magic like, for example,
https://tex.stackexchange.com/questions/11668/adding-unnumbered-sections-to-toc
.
So I suppose the quick fix is what I sent and then we can try to implement
something like:
```
\section*{Introduction}\addcontentsline{toc}{section}{Introduction}
```
or
```
% Package 'hyperref' needed for command
'\nameref'\section*{Introduction}\label{sec:intro}
\addcontentsline{toc}{section}{\nameref{sec:intro}}
```
Although it goes quite against the \section vs \section* philosophy and it
would need more that a quick fix.
Best, /PA
> > MWE:
> > ----
> > #+OPTIONS: num:t
> >
> > * Test
> > :PROPERTIES:
> > :UNNUMBERED: t
> > :ALT_TITLE: alt
> > :END:
> >
> > This is a test.
> >
> > * Numbered test
> > :PROPERTIES:
> > :alt_title: alt numbered
> > :END:
> >
> > This is the second part of the test.
> > ----
> >
> > PS: maybe a rework of this part to make it more readable could be
> > desirable....
>
> Even better would be a test and a proper patch with commit message.
> Do you have time for that?
>
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
--
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet
[-- Attachment #2: Type: text/html, Size: 8442 bytes --]
next prev parent reply other threads:[~2024-12-27 17:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 17:08 LaTeX export is broken with 'num:nil` and 'ALT_TITLE` Pedro Andres Aranda Gutierrez
2024-12-26 17:15 ` Pedro Andres Aranda Gutierrez
2024-12-27 6:59 ` Pedro Andres Aranda Gutierrez
2024-12-27 17:43 ` Ihor Radchenko
2024-12-27 17:56 ` Pedro Andres Aranda Gutierrez [this message]
2024-12-27 18:01 ` Ihor Radchenko
2024-12-27 18:07 ` Pedro Andres Aranda Gutierrez
-- strict thread matches above, loose matches on Subject: below --
2024-12-25 17:45 Rudolf Adamkovič
2024-12-26 15:08 ` Ihor Radchenko
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=CAO48Bk8ZR_ub5k8MXUc+dSXysA+9S+bDt+Ck8VZqX0KL4tDSkA@mail.gmail.com \
--to=paaguti@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rudolf@adamkovic.org \
--cc=yantar92@posteo.net \
/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).