From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,666bab5bfbdf30c2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!news2.euro.net!newsfeed.freenet.ag!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sun, 16 Jan 2011 20:22:09 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101129 Thunderbird/3.1.7 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Generating PDFs with Ada References: <4d2908c7$0$22120$742ec2ed@news.sonic.net> <9f23e50a-2c2c-4ccc-bd56-f6ffdc6c7ee7@37g2000prx.googlegroups.com> <82aaj73jsr.fsf@stephe-leake.org> <7a048419-1126-45b2-bfa9-26f3ad6e480e@fu15g2000vbb.googlegroups.com> <4d32496c$0$7669$9b4e6d93@newsspool1.arcor-online.net> <90294a5b-d915-45c4-ab85-4811dc4a24af@o4g2000yqd.googlegroups.com> In-Reply-To: <90294a5b-d915-45c4-ab85-4811dc4a24af@o4g2000yqd.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4d334560$0$6984$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 16 Jan 2011 20:22:09 CET NNTP-Posting-Host: a2ce5c58.newsspool4.arcor-online.net X-Trace: DXC=]AgjSX`IKAK[6=1B@oB@@@4IUKI`M6T[N9EPCY\c7>ejVHMoRI5PUU0J On 1/16/11 1:27 PM, Elias Salom�o Helou Neto wrote: > On 15 jan, 23:27, Georg Bauhaus > wrote: >> From the *practical* point of view, I can think of many features >> available in Microsoft Word or OpenOffice Writer (or FrameMaker >> or Ventura Publisher, or Adobe Something) not available in TeX. > > How to generate the file formats required by these softs from Ada? (1) Write a program controlling any capable text processing software's programming interface, as was suggested. This method will be forgetful of internal data formats of these programs. The method is unavailable if you don't have the programs. A third party could be offering a ready made class library for generating the files, though. (2) Depending on the level of abstraction, one may generate .gen files or maker files just like LaTeX files. I find targeting anything at a level lower than that to be an attempt at reinventing big wheels. >> Nevertheless, The ISO Fortran 2003 draft document is >> proof that LaTeX is a possibility for this kind of document. > > Thank you for pointing out the example, but not automatically > generated. Really? I don't know how the Fortran people had generated input for TeX. >> So that works, too. (TeXmacs is a formidable editor for technical >> stuff. Interestingly, it doesn't use TeX files for storage.) > > Probably because of its nearly WYSIWYG nature. Nearly? > It is not suitable for > automatically generating PDFs. Have your Ada program generate a TeXmacs files, in Scheme format. Then, $ texmacs --convert test.scm test.pdf --quit Similar to how one uses LaTeX or Lout. Is it possible to run Word simply like C:\MyFiles> word /convert /in:test.docx /out:test.pdf /quit > There is no need to modify the typesetting software because > of the \special macro. \special is indicating a need for output that TeX alone cannot produce. Is this standard enough? >> But that's a book... hyperref won't give you Eclipse help views >> easily, or will it? Or .info files. > > Why do you mention it? The OP wanted PDFs! When did .info files or > Eclipse help views come into play? I got carried away, thinking about the document generating processes, and in particular, about how a document will be used. (By clients, programmers, ISO, ...) If you want typographically flexible typesetting (really, layout), TeX is out of the question (for example, frames that span a page break?). If you wanted to write an Ada program that generates this in PDF directly, wouldn't you be trying hard to reinvent text formatting?