development version newLISP 8.7.

Started by Lutz, January 08, 2006, 03:28:51 PM

Previous topic - Next topic

nigelbrown

#30
Hi Eddie,

I found it worked putting it here:



renewcommandlabelitemiv{{textbullet}}

}

usepackage{newcent}

% Pages styles (master pages)

makeatletter



The font is much clearer. Thanks!

see

http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual-newcent.pdf">http://users.cyberone.com.au/nbrown/new ... ewcent.pdf">http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual-newcent.pdf

 



Putting it between title and begin lost the Table of Contents.

I commented out: %usepackage[ascii]{inputenc} OK but

commenting out  usepackage[T1]{fontenc} caused lots of error regarding textquotedbl

commenting out usepackage{amsmath,amssymb,amsfonts,textcomp} causes errors re textquotesingle.



The updated .tex reads now:

% This file was converted to LaTeX by Writer2LaTeX ver. 0.4

% see http://www.hj-gym.dk/~hj/writer2latex">http://www.hj-gym.dk/~hj/writer2latex for more info

documentclass[12pt,twoside]{article}

%usepackage[ascii]{inputenc}

usepackage[T1]{fontenc}

usepackage[english]{babel}

usepackage{amsmath,amssymb,amsfonts,textcomp}

usepackage{color}

usepackage{calc}

usepackage{longtable}

usepackage{hyperref}

hypersetup{colorlinks=true, linkcolor=blue, filecolor=blue, pagecolor=blue, urlcolor=blue}

% Text styles

newcommandtextstyleTeletype[1]{textrm{#1}}

newcommandtextstyleSourceText[1]{texttt{#1}}

% Outline numbering

setcounter{secnumdepth}{0}

% List styles

newcommandliststyleLii{%

renewcommandtheenumi{arabic{enumi}}

renewcommandlabelenumi{theenumi.}

renewcommandlabelitemi{{textbullet}}

renewcommandlabelitemii{{textbullet}}

renewcommandlabelitemiii{{textbullet}}

}

newcommandliststyleLiii{%

renewcommandtheenumi{arabic{enumi}}

renewcommandlabelenumi{theenumi.}

renewcommandlabelitemi{{textbullet}}

renewcommandlabelitemii{{textbullet}}

renewcommandlabelitemiii{{textbullet}}

}

newcommandliststyleLiv{%

renewcommandlabelitemi{{textbullet}}

renewcommandlabelitemii{{textbullet}}

renewcommandlabelitemiii{{textbullet}}

renewcommandlabelitemiv{{textbullet}}

}

newcommandliststyleLv{%

renewcommandtheenumi{arabic{enumi}}

renewcommandtheenumii{arabic{enumii}}

renewcommandtheenumiii{arabic{enumiii}}

renewcommandtheenumiv{arabic{enumiv}}

renewcommandlabelenumi{theenumi.}

renewcommandlabelenumii{theenumii.}

renewcommandlabelenumiii{theenumiii.}

renewcommandlabelenumiv{theenumiv.}

}

newcommandliststyleLvi{%

renewcommandtheenumi{arabic{enumi}}

renewcommandtheenumii{arabic{enumii}}

renewcommandtheenumiii{arabic{enumiii}}

renewcommandtheenumiv{arabic{enumiv}}

renewcommandlabelenumi{theenumi.}

renewcommandlabelenumii{theenumii.}

renewcommandlabelenumiii{theenumiii.}

renewcommandlabelenumiv{theenumiv.}

}

newcommandliststyleLvii{%

renewcommandlabelitemi{{textbullet}}

renewcommandlabelitemii{{textbullet}}

renewcommandlabelitemiii{{textbullet}}

renewcommandlabelitemiv{{textbullet}}

}

usepackage{newcent}

% Pages styles (master pages)

makeatletter

newcommandps@HTML{%

renewcommand@oddhead{}%

renewcommand@evenhead{}%

renewcommand@oddfoot{}%

renewcommand@evenfoot{}%

setlengthpaperwidth{20.999cm}setlengthpaperheight{29.699cm}setlengthvoffset{-1in}setlengthhoffset{-1in}setlengthtopmargin{1cm}setlengthheadheight{12pt}setlengthheadsep{0cm}setlengthfootskip{12pt+0cm}setlengthtextheight{29.699cm-1cm-1cm-0cm-12pt-0cm-12pt}setlengthoddsidemargin{2cm}setlengthtextwidth{20.999cm-2cm-1cm}

renewcommandthepage{arabic{page}}

setlength{skipfootins}{0.101cm}renewcommandfootnoterule{vspace*{-0.018cm}noindenttextcolor{black}{rule{0.25columnwidth}{0.018cm}}vspace*{0.101cm}}

}

makeatother

pagestyle{HTML}

setlengthtabcolsep{1mm}

renewcommandarraystretch{1.3}

title{newLISP v8.7.1 Manual and Reference}



begin{document}





Latex still doesn't like the GPL formatting at the end - it uses a fancy table but the construct as is throws an error. I note near the end of conversion writer2latex gives an 'out of memory' error but continues and still does a reasonable job - obviously tweaking is in order.



Maybe a newlisp program to replace the html constructs in the html manual with latex format commands and then wrapping that in a latex style is the newlisp way to go! (imagine relying on java to do the newlisp manual). I'll add html2latex.lsp to my list of possible projects.





Nigel

eddier

#31
Hi Nigel,



Looks great! Strange that it lost the table of contents.


Quotecommenting out usepackage[T1]{fontenc} caused lots of error regarding textquotedbl

commenting out usepackage{amsmath,amssymb,amsfonts,textcomp} causes errors re textquotesingle.


I'm not sure why they do it that way? Maybe to avoid useing backquotes. In latex, the left single quote is ` and the left double quote is `` two of them. Yep I bet you got small black rectangle for double quotes when you commented them out no?


QuoteI'll add html2latex.lsp to my list of possible projects.

Sounds like a fun project!



I worked on a translator for document codes into both html and latex for a little. I plan to work on this some more after I have finished the college's IT Plan. Even if not for newLISP but for creating large documents at work.



Eddie

pjot

#32
The last PDF is very impressive! Very nice fonts, easy to the eyes. The PDF reads perfectly OK in Linux with Xpdf 3.01, including the hyperlinks.



Regards and thanks

Peter

nigelbrown

#33
I'm glad you like it Peter, Thanks for the help Eddie.



By the way, the cyberone servers (the ISP I use) seems to have gone down tonight for anyone trying to get the pdfs - I don't know if they are just changing their IP address and it is taking time for the DNS to propogate as I'm getting 'failure to resolve' errors but can access other sites.



Nigel

nigelbrown

#34
I'm posting some comments on newlisp_manual html tags on doc thread http://www.alh.net/newlisp/phpbb/viewtopic.php?p=5633#5633">http://www.alh.net/newlisp/phpbb/viewto ... =5633#5633">http://www.alh.net/newlisp/phpbb/viewtopic.php?p=5633#5633 .

They may help conversion to latex.



Nigel