emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: Nicolas Goaziou <mail@nicolasgoaziou.fr>,  emacs-orgmode@gnu.org
Subject: Re: [PATCH] Re: No mathematics in Texinfo exports
Date: Sun, 19 Jun 2022 16:23:01 +0800	[thread overview]
Message-ID: <87edzlxdsq.fsf@localhost> (raw)
In-Reply-To: <m2mtedisg0.fsf@me.com>

Rudolf Adamkovič <salutis@me.com> writes:

>> `org-export-with-latex' is a global setting. I do not think that
>> texinfo equivalent should be global. It should only be declared inside
>> ox-texinfo.
>
> That makes perfect sense.  Please see the new patch attached to this
> message.  What do you think?

> -    (:texinfo-compact-itemx nil "compact-itemx" org-texinfo-compact-itemx)))
> +    (:texinfo-compact-itemx nil "compact-itemx" org-texinfo-compact-itemx)
> +    ;; Redefine regular options.
> +    (:with-latex nil "tex" org-texinfo-with-latex)))

Looks reasonable.  

>> As for the default value, it would be better if the option were set
>> depending on the installed Texinfo version. If the installed Texinfo
>> supports math, set it to t. Otherwise, nil. Of course, users will be
>> able to override the default as they wish.
>
> I looked at both ox-texinfo.el and texinfo.el, and I found no function
> or variable that would give the installed Texinfo version.
>
> Do we pull the version from "makeinfo --version" and then parse it?  If
> so, does that functionality belong to Org (ox-texinfo.el) or Emacs
> (texinfo.el) instead?  I also wonder how we could test it so that it
> will not break.  I would appreciate any ideas and/or pointers from you.

First of all, checking version should probably be controlled by some
customization. Especially when we export to .texi (which does not
involve calling makeinfo), not to .info.

This customization might be set to 'auto by default, making ox-texinfo
check makeinfo version.

Parsing version is probably the easiest way. Another alternative is
trying to run makeinfo on a small test file with math environment and
checking if it gets exported as expected.

Best,
Ihor


  reply	other threads:[~2022-06-19  8:23 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-25  7:45 Rudolf Adamkovič
2022-03-26 16:07 ` [PATCH] " Rudolf Adamkovič
2022-04-20 20:14   ` Rudolf Adamkovič
2022-04-21  6:11     ` Ihor Radchenko
2022-04-21  7:31       ` Nicolas Goaziou
2022-04-21  9:59         ` Ihor Radchenko
2022-04-21 11:20           ` Nicolas Goaziou
2022-04-21 13:36             ` Ihor Radchenko
2022-05-15 19:37               ` Rudolf Adamkovič
2022-05-16  2:17                 ` Ihor Radchenko
2022-05-20 12:52                   ` Rudolf Adamkovič
2022-05-23 11:30                     ` Rudolf Adamkovič
2022-05-23 11:37                       ` Ihor Radchenko
2022-05-27  7:04                         ` Rudolf Adamkovič
2022-05-28  2:42                           ` Ihor Radchenko
2022-06-05  9:08                             ` Rudolf Adamkovič
2022-06-05 12:22                               ` Ihor Radchenko
2022-06-15 20:26                                 ` Rudolf Adamkovič
2022-06-19  8:23                                   ` Ihor Radchenko [this message]
2022-06-24 19:33                                     ` Rudolf Adamkovič
2022-06-25  5:51                                       ` 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=87edzlxdsq.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=salutis@me.com \
    --subject='Re: [PATCH] Re: No mathematics in Texinfo exports' \
    /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

Code repositories for project(s) associated with this 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).