Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1506671

Re: The downside of math::

From Markus Heiser <markus.heiser@darmarit.de>
Newsgroups linux.kernel
Subject Re: The downside of math::
Date 2016-10-23 13:00 +0200
Message-ID <svoFr-8iu-1@gated-at.bofh.it> (permalink)
References <su89H-7UG-3@gated-at.bofh.it> <su9p7-cb-1@gated-at.bofh.it> <sumZ3-wo-19@gated-at.bofh.it> <suPHH-2MQ-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am 21.10.2016 um 23:38 schrieb Jonathan Corbet <corbet@lwn.net>:

> On Thu, 20 Oct 2016 17:55:21 +0300
> Jani Nikula <jani.nikula@linux.intel.com> wrote:
> 
>> I wonder if we could cook up a nice way to make the math:: usage
>> conditional on actually being able to render it.
> 
> I think that's the ideal solution.
> 
> I got the docs build working again on my Fedora machine, but it threw me
> back into this loop for several iterations:
> 
> 	while (htmldocs build fails)
> 		see which goddam LaTex file is missing now
> 		dig around to find which Fedora package provides it
> 		dnf install YA-texlive-package

Hmm, when I deinstall latex on my Debian box, I only get a warning:

 WARNING: LaTeX command 'latex' cannot be run (needed for math display), check the pngmath_latex setting

IMO the warning is OK, if not read below.

> This is just the kind of thing that I don't want to impose on anybody
> wanting to build the docs; if we get back to a place where almost nobody
> can do it again, we'll not have improved much.

I guess, that Jon walks through the latex installation hell on fedora,
which mauro has already done in August. Please take a look at the
discussion we had about math and PDF generation:

 https://www.mail-archive.com/linux-doc@vger.kernel.org/msg05583.html

With this, I think we have a leak of knowledge and we should document
latex installation dependencies right now.

If you don't want to see a warning log, we have to consider 
a solution like Johannes Berg posted here:

 https://www.mail-archive.com/linux-doc@vger.kernel.org/msg07071.html

@johannes: since this thread and our "sequence diagrams" thread addressing
the same questions (how should we handle dependencies from extensions)
I propose to continue the discussion here in this thread with Jon.

> LaTeX is a necessary evil for PDF output, it seems, but I really think
> that, one way or another, we need to be able to build the other formats
> without it.

I wish, but I can't see any serious alternative. Thats why I think, we
should accept latex and have to document it well.

Further I think we should not generate more (and more) external requirements
like e.g. plantuml, Java or reportlab discussed here:

 https://www.mail-archive.com/linux-doc@vger.kernel.org/msg07035.html

I understand the need of sequences diagrams and I like to see such a feature
in the kernel documentation. On the other side, since we have to maintain all
dependencies well over a long time period on distributions with different 
package managers, I really hesitate to include dependencies which might flood
out the banks. Right here, in the discussion of the math:: extension (which
is part of the standard sphinx installation) we see, what problems can occur on
different systems installations.

-- Markus --

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

The downside of math:: Jonathan Corbet <corbet@lwn.net> - 2016-10-20 01:10 +0200
  Re: The downside of math:: Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2016-10-20 02:30 +0200
    Re: The downside of math:: Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2016-10-20 02:50 +0200
    Re: The downside of math:: Jani Nikula <jani.nikula@linux.intel.com> - 2016-10-20 17:00 +0200
      Re: The downside of math:: Markus Heiser <markus.heiser@darmarit.de> - 2016-10-20 17:20 +0200
      Re: The downside of math:: Jonathan Corbet <corbet@lwn.net> - 2016-10-21 23:40 +0200
        Re: The downside of math:: Markus Heiser <markus.heiser@darmarit.de> - 2016-10-23 13:00 +0200
          Re: The downside of math:: Johannes Berg <johannes@sipsolutions.net> - 2016-10-24 10:00 +0200
            Re: The downside of math:: Johannes Berg <johannes@sipsolutions.net> - 2016-10-24 10:30 +0200
              Re: The downside of math:: Jani Nikula <jani.nikula@linux.intel.com> - 2016-10-24 11:10 +0200
            Re: The downside of math:: Jani Nikula <jani.nikula@linux.intel.com> - 2016-10-24 10:30 +0200

csiph-web