From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Akater <nuclearspace@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Trivial bug in ox-latex
Date: Wed, 31 Jan 2018 21:22:54 +0100 [thread overview]
Message-ID: <87o9l9ye01.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87mv0tu79y.fsf@gmail.com> (Akater's message of "Wed, 31 Jan 2018 20:01:45 +0000")
Hello,
Akater <nuclearspace@gmail.com> writes:
> The following snippet in ox-latex.el processes negative tocdepths
> incorrectly:
>
> #+begin_src emacs-lisp
> ;; Table of contents.
> (let ((depth (plist-get info :with-toc)))
> (when depth
> (concat (when (wholenump depth)
> (format "\\setcounter{tocdepth}{%d}\n" depth))
> (plist-get info :latex-toc-command))))
> #+end_src
>
> When depth is -1, wholenump form evaluates to nil, and setcounter
> command is not exported at all.
I don't think it's a bug. Org doesn't pretend to support every LaTeX
feature. Setting `org-export-with-toc', which is where DEPTH comes from,
to -1 doesn't make much sense in an Org context, does it?
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2018-01-31 20:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-31 20:01 Trivial bug in ox-latex Akater
2018-01-31 20:22 ` Nicolas Goaziou [this message]
2018-02-01 14:50 ` Akater
2018-02-03 13:57 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o9l9ye01.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=nuclearspace@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.