Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54FB8DFB8 for ; Thu, 20 Sep 2012 20:24:55 +0000 (UTC) Received: (qmail 61809 invoked by uid 500); 20 Sep 2012 20:24:54 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 61675 invoked by uid 500); 20 Sep 2012 20:24:54 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 61664 invoked by uid 99); 20 Sep 2012 20:24:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 20:24:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of phil.steitz@gmail.com designates 209.85.160.43 as permitted sender) Received: from [209.85.160.43] (HELO mail-pb0-f43.google.com) (209.85.160.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 20:24:48 +0000 Received: by pbbrq2 with SMTP id rq2so7603748pbb.30 for ; Thu, 20 Sep 2012 13:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=kLNWrz+1StNp31HuPm/RtIMt9K1W42lQ6xKyxLfjGTE=; b=rDCle0X/1JWcRQHf66fSDXnqbsxpp2JRpJiH/3RoESj3ENxXCctShnq/EKSof7MOOI p93Z1bl9NzYThDTemoy1ghSOEVBnIyS/tvbjcXDMQJ5Gj+58N6yU4om0SfqA4XizNEFj GiHjO+xEzJH0TMKXbTbGvM9rqM1LhjOslvuuf7m4Uv/EQJzO605JCnKIt+Jg+JV5j9vo RrxllURzwVQbiSxhIvtDMPAZS4koBXS4qhQGsXgQZWCM58GkI5RLtVI5ucfw8+5yNSaB oMHa4h6NDMqm3Q+4SA+swRNCK+/Z+llRxQPF9cD3j/2nbZSe5pmkL+4ePk8TnBKwfGaS 2nVw== Received: by 10.68.224.71 with SMTP id ra7mr9533717pbc.154.1348172668572; Thu, 20 Sep 2012 13:24:28 -0700 (PDT) Received: from [10.4.70.130] ([107.0.25.2]) by mx.google.com with ESMTPS id e9sm2911363pay.34.2012.09.20.13.24.26 (version=SSLv3 cipher=OTHER); Thu, 20 Sep 2012 13:24:27 -0700 (PDT) Message-ID: <505B7B79.5070709@gmail.com> Date: Thu, 20 Sep 2012 13:24:25 -0700 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [math] APT format for the users guide References: <20120920151339.GZ20488@dusk.harfang.homelinux.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 9/20/12 12:01 PM, S�bastien Brisard wrote: > Hello Gilles, > > 2012/9/20 Gilles Sadowski : >> Hi. >> >>> as I previously said, I'd like to extend the user's guide for the >>> special functions package. I am not a big fan of the xdoc format >>> currently in use, at is not easily readable. So I thought I would give >>> APT a go. Please find below the code corresponding to the current >>> "Special Functions" page. >> Can it be used to write math symbols/formulae? >> > Nope! Can you do the escaping necessary to get MathJax to work embedded? > >>> The learning curve is not steep at all (about 5 minutes!). I think >>> it's much better (even for tables, which might require a large screen >>> ;)). >> What's the advantage over the Wiki syntax? >> > None. I just wanted to use "standard" maven enriched text formats. APT > is supported out of the box. I am not familiar with Wiki syntax, but > I'm sure it's much, much better (as is ReSt). Do you know of any > plugin which supports it? Maven badly supports restructured text, for > example (which is why I got back to APT). > >>> The generated pages are identical (I've even reproduced the typo in >>> 5.4...), but for the fact that you cannot have anchors with a name >>> different from the text they refer to. So anchor {Beta} would be named >>> "Beta", and not "beta" as is currently the case. I don't think this is >>> much of an issue, as there is no reference to these anchors (I'll >>> check the other pages of the user's guide, and update them if >>> necessary). >>> >>> So, what do you think? Should I pursue, or would you like me to stay >>> with the xdoc format? >> My opinion is that we should figure out the kind of contents the document >> will contain, and choose the (possibly different) language(s) accordingly. >> > Basically, as already emphasized by someone else, APT is no better > than the currently used xdoc format, except that the source is > definitely readable (hence, more easily maintainable). I agree with this and have thought about suggesting this move in the past, just never had time or sufficient motivation to do it. > >>> I would like to emphasize I'm not advocating for a complete switch >>> from one format to another. But since I'm going to concentrate on this >>> section of the users guide, I thought I might as well choose the >>> format which I am most comfortable with. If you do not like the idea >>> of having two different formats for the same site, please let me know. >> If we can agree to keep the user guide simple (i.e. limited to "To do >> , you call with , then retrieve the result as >> follows..." etc., with some verbatim code examples), then there is an >> advantage to having a source syntax that looks like plain text: >> * simple to write, >> * easy to read. >> > Yes, that's exactly my point of view. From this perspective, I don't > think xdoc does the job. > In the special package, I want to go a little further (tutorials > should not be too difficult: "to compute gamma(x), call > Gamma.gamma(x)"...), and give some tables and plots on the accuracy : > if 0 <= x <= 8, then logGamma is accurate to within 4 ulps, and so > on... You can do all of this with xdoc, it is just painful. You need to use html syntax for tables. The [dbcp] docs have some examples showing the pain. > >> But if we want to show the math that corresponds to the code, then we loose >> everything: >> * difficult to write (either including preprocessed figures or ad-hoc >> syntax) >> * impossible to read (in the source). >> > In an ideal world, we would do this also. But our time is limited... > So I'm not sure we need to worry about that for now... I am +1 for playing with MathJax embedded where it makes sense. > >> Loosely related to this discussion: What would you think of splitting the >> user guide into several independent tutorials? That would be more in the >> spirit of simple "howto"s (as opposed to a sort of "reference" which should >> allow for more formatting power, a la LaTeX). >> [And that would make it less strange to have different source formats.] >> > That's something to think about. As a side note, APT, although > limited, offers the possibility to produce books. That would be nice > to have these tutorials on line, and in PDF format (even better: > epub!!!). > > My only worry is: our time is limited... I would say stay focused on the simple goals of the guide as it exists today. One thing to check is that generating some sources from apt and some from xdoc, we do not have big pain generating the integrated site and we can maintain a single table of contents page. Phil > > Best regards, > S�bastien > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org