Hi

I worked a little about a latex generator for factor doc. You can find all information on the enclosed mail I posted a few month ago.

I will be interested If you have feedback.

Jeff


Début du message réexpédié :

De : Jean-François Bigot <jeff.bi...@wanadoo.fr>
Date : 5 février 2009 22:26:20 HNEC
À : factor-talk@lists.sourceforge.net
Objet : [Factor-talk] latex ouput for help
Répondre à : factor-talk@lists.sourceforge.net

Hi

From time to time there is a question on the mailing list about a paper doc for latex.

As exercise to discover streams, I made a first attempt to write a latex output for doc. It's a modified version of help.html vocab.
You can found it in the latex directory on
git://github.com/Bigot/work-bgt.git

Useful words are in latex.help :
  - cookbook>latex ( -- ) to generate a cookbook tex file
  - word-help>latex ( word -- )
  - vocab>latex
I also tried a generate-latex-doc word but my factor gets very slow after having generated 17500 files. My idea was to use \input {subfile} in a main latex document to concat needed pages.

I still have several difficulties
- I don't know how to handle stream-nl in order to avoid unwanted line break after commands - in each help page there are two "title-style" elements, a block included in a span. I have no nice solution to keep only one, I decided to add a $tex-plain-span symbol in stylesheet.
-  I don't know the best way to add color to factor code.
        - Is it better to use LGRIND package ? is anyone already used it ?
        - or is it better to write a factor word to parse code ?

For the next step I will add refs in order to build an index and allow hypertext navigation in pdf file.
I rarely use latex so I'm interested by any feedback and advice.
I hope it will be useful.

Jeff

Le 24 août 09 à 03:24, Hugh Aguilar a écrit :


Does Factor offer any support for LaTeX? I'm working on building a
slide-rule and want to use Factor to generate the LaTeX code for the images to be printed out as a pdf. I have my own idea for the design, so I can't
use any of the pdf files available by people who've already built
slide-rules. This shouldn't be too complicated to write. If Factor already
has LaTeX support though, I would rather use it as a jumping off point
rather than reinvent the wheel.

AutoCad and AutoLisp would probably be a better choice than LaTeX and
Factor, but I already know LaTeX --- and LaTeX is free.

BTW, I'm still working on that voting software. Most of what I'm doing now is reading about the theory. The software is fairly simple, so I haven't had
to ask any questions in regard to Factor.


---------------------------------------------------------------------- -------- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to