Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - nigelbrown

#61
newLISP newS /
January 26, 2006, 11:09:41 AM
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
#62
newLISP newS /
January 25, 2006, 06:44:34 PM
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
#63
newLISP newS /
January 25, 2006, 04:30:54 PM
Posted: http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual.tex">http://users.cyberone.com.au/nbrown/new ... manual.tex">http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual.tex



which is made by doing:

C:writer2latex04>w2l.bat newlisp_manual.sxw



This is Writer2LaTeX, Version 0.4 (2005-07-01)



Starting conversion...

Done!

C:writer2latex04>



Then loading as file into TexNicCenter and doing search&replace of newline to nothing (ie delete newline). This would remove a few valid formatting newlines but is a quick hack.



The .tex file upto begin{document} is :



% 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}}

}

% 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}



Nigel
#64
newLISP newS /
January 25, 2006, 07:28:49 AM
Hi Eddie,

I tried putting in usepackage{newcent} in but it didn't change much - there possibly is something that needs to come out to let the package work. I tried taking out amsfonts but that didn't help. Anyone know the trick?



The pdf was a first try so perhaps changing use of styles, and by that fonts, in openoffice may help. Also in the long run letting latex do more and generating html and pdf etc from that may be the cleanest approach. Once a tidy latex file is achieved then Lyx may well import it cleanly and thus Lyx could be used as a friendlier editor.



Nigel
#65
newLISP newS /
January 24, 2006, 10:16:31 PM
Hi all,

I've had some success generating a pdf with a hyperlinked Table of Contents using this tool chain:



1) import html manual into openoffice (2.0), save working file in openoffice format

2) generate a table of contents with included hyperlinks using openoffice functionality with hyperlink referencing selected

3) save this file as openoffice 1 format eg .sxw



4)here instead of using pdf output from openoffice I use Writer2Latex to generate a .tex file from the .sxw file - see http://www.hj-gym.dk/~hj/writer2latex/">http://www.hj-gym.dk/~hj/writer2latex/



5) open .tex file in TeXnicCenter (see http://www.texniccenter.org/front_content.php?idcat=50">http://www.texniccenter.org/front_content.php?idcat=50 - friendly but close to the bone if you want), removed all the /newline with text search and replace (were giving latex a problem) and click 'build and view current file' button to see the pdf (ignore the errors from latex engine the pdf opens and looks "OK").



The pdf (1,344 kB) does show some tweaking is needed eg trademark symbol, some font sizes are too big and cause wrapping in the syntax definitions etc but the hyperlinked table of contents is what I was looking for.



I'll put this first try pdf up for viewing for anyone interested - I've uploaded the pdf and sxw files to http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual.pdf">http://users.cyberone.com.au/nbrown/new ... manual.pdf">http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual.pdf and http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual.sxw">http://users.cyberone.com.au/nbrown/new ... manual.sxw">http://users.cyberone.com.au/nbrown/newlisp/newlisp_manual.sxw .



Hope this may help. I tried Lyx before TeXnicCenter to import .tex but the relyx import process gave problems. I tried html2latex.c but it would need a tweaked definition file to get the html manual version in properly.

See http://www.math.vanderbilt.edu/~schectex/wincd/list_tex.htm">http://www.math.vanderbilt.edu/~schecte ... st_tex.htm">http://www.math.vanderbilt.edu/~schectex/wincd/list_tex.htm for good software links.



Nigel
#66
newLISP newS /
January 19, 2006, 02:38:59 PM
Hi Eddie,

I'm pleased you have the skills for latex, while I raised it as an option I don't have the experience you have.

I look forward to seeing the text, a well set manual can be a thing of beauty in itself.



Nigel
#67
newLISP newS /
January 18, 2006, 06:18:31 AM
Potentially you could have a single source that could generate multiple formats. the advantage over html to pdf would be more control over the pdf with the option of generating a paper format if desired. I'll look into whether there would be any loss in html quality ie if framed html can come from latex nicely.

I raised the possibility because I've not found a free pdf generator that does a linked contents.



I'll look into latex more as you didn't say no straight off.



Nigel
#68
newLISP newS /
January 18, 2006, 04:01:09 AM
Lutz,

Would you consider a Latex manual that could generate pdf and html?



Nigel
#69
newLISP newS /
January 08, 2006, 07:18:30 PM
I'll look around for a way to do linked contents automatically.



Nigel
#70
newLISP newS /
January 08, 2006, 04:54:56 PM
Hi Lutz,

I like the manual in pdf. Perhaps the pdf Contents could have active links into the manual body? Once in the body the cross-links work well.



Nigel
#71
newLISP newS /
January 03, 2006, 03:17:22 PM
Quote from: "Lutz"makeing symbol-names like ':something' unavailable, which may be a good thing

Lutz


On the other hand it probably stops one doing a macro that could accept the standard keyword style - I've not thought this through but I gather that

(my-keyword-driven-fn :x 2 :y 3 :b 2 :a 4) can't be done now?



Nigel
#72
newLISP newS /
December 26, 2005, 03:57:55 PM
As I'm at UT+10 here in Australia any of those would get me well into 'tomorrow'.



Nigel
#73
newLISP newS /
December 26, 2005, 03:10:01 PM
...(USA time)?

Eastern (UT-5) West Coast (UT-8)? Hawaii (UT-10)? Samoa (UT-11 I believe)?

See http://nist.time.gov/">http://nist.time.gov/



Nigel
#74
newLISP and the O.S. /
December 23, 2005, 01:17:12 AM
Quote from: "Lutz"Until 64 bit gets main stream ...

Lutz

I've recently bought 2 middle range computers and a barebox and even the barebox one was 64bit - they're very quickly going to become all you can get.



Nigel
#75
newLISP in the real world /
December 09, 2005, 11:17:20 PM
Fantastic! Thank you Lutz, it will make my parsing of stdout much easier with stderr going elsewhere.



Regards

Nigel