World: r3wp
[Web] Everything web development related
older newer | first last |
Volker 8-Oct-2005 [866x3] | You need no cgi, only "static page"? |
ah, you found microweb, ok. | |
Complicated. And: <satirical> Isnt circumventing a lock circumventing a copy-protection? I mean, a lock prevents you from copying to something.. </satirical>. | |
Graham 8-Oct-2005 [869x3] | Yes, I guess this would be illegal in the UK and European Union. |
I note that an Australia court recently ruled that modifying Playstations with mod chips was not illegal .. so Australians can still use this software technique :) | |
No cgi required yet .. but good to keep it as an option. | |
Volker 8-Oct-2005 [872] | Did i understand right? Running a webserver to read acrobat on a moded playstation? :) |
Graham 8-Oct-2005 [873x3] | No :) |
This is my CRM application. I am using LaTeX to write letters, and a microweb server to preview the PDFs. | |
I am thinking now of creating a mini LaTeX letter writing dialect. | |
Volker 8-Oct-2005 [876] | makedoc to latex? |
Graham 8-Oct-2005 [877x3] | no, just a simple way to describe a letter format. |
Like a style I guess. | |
papersize A4 fontsize 11 class letter use fancyhdr my-address consultation-date signature begin provider-address Dear Provider patient-table diagnoses&medications body end | |
Volker 8-Oct-2005 [880x2] | Isnt text supposed to do such things itself? although, we know rebol better, so would be easier. |
text -> tex. | |
Graham 8-Oct-2005 [882x2] | my-address pulls in the data from the fields in the CRM, same with signature etc. Diagnoses&medications generates a LaTeX two column table. Body is the text that we have written. |
Tex .. need to mark up everything. This way I avoid writing the markup .. Rebol will do that for me. | |
Volker 8-Oct-2005 [884x2] | aah, i see, getting the data from the crm. |
And yes, tex looks confusing. | |
Graham 8-Oct-2005 [886x3] | Here's an example from the above layout. |
\documentclass[a4paper,11pt]{letter} %frenchspacing \pagestyle{plain} \usepackage{fancyhdr} \address{Upper Hutt Health Centre\\P.O. Box 40-044\\Upper Hutt\\ \\tel: 04 920-1800\\ fax: 04 920-1808} \date{1-Apr-2005} \signature{Dr Graham Chiu} \begin{document} \begin{letter}{Dr CP ANYON\\ Ropata Village Medical Centre\\577 High Street\\ Lower Hutt, } \opening{Dear Dr Anyon,} \begin{quote} \begin{tabular} {ll} Cap. James Tiberius \textbf{Kirk} Dob: 22-Mar-2233& \\ Captain's Quarters, Starship Enterprise& \\ \end{tabular} \end{quote}\begin{quote} \begin{tabular} {ll} \textbf{Diagnoses}&\textbf{Medications}\\Prolonged posttraumatic stress disorder&Methotrexate 12.5 mg Mondays only\\Other specified parasitic infections&Folic Acid 1 mg daily except Mondays\\ &Fosamax 70 mg Tuesdays only\\ \end{tabular} \end{quote} James needs a new hip! \closing{Best Regards,} \end{letter} \end{document} | |
So, this dialect will only deal with the LaTeX letter class. | |
Volker 8-Oct-2005 [889x2] | You worked as a spaceship-doctor? :) |
I understand you want a preprocesor for that :) | |
Graham 8-Oct-2005 [891x3] | Yeah .. I worked for Star Fleet a long time ago. |
I know Robert said he would make MDP emit LaTeX but I never heard anymore of that project. | |
Any LaTex users here ? It seems very hard to change default margins etc. | |
Graham 9-Oct-2005 [894x2] | well, I completed my mini preprocessing dialect ... harder than I thought it would be. Need to re-aquaint myself with block parsing! |
Oddly, when I print to a5paper, pdflatex seems to still produce a4 size paper ... or perhaps it's just Acrobat Reader ... | |
yeksoon 9-Oct-2005 [896] | it could be Adobe Reader...there are some settings on your Reader for the page size |
Graham 9-Oct-2005 [897x3] | inspecting the properties using Acrobat Reader, it says it's still A4 size. |
I must be doing something wrong in creating my tex file. | |
Although Acrobat displays it so that the text only occupies an A5 part of the paper. | |
yeksoon 9-Oct-2005 [900] | I am not familiar with tex.. but the fist line of your output has a word 'letter' in it...could that be the cause of it? |
Graham 9-Oct-2005 [901] | Letter is the class of document ie. it should not be specifying the page size. Others in this class include article, report, book, slides. It could be a problem but I don't know enough about it. |
Graham 10-Oct-2005 [902] | Found the problem .. pdflatex needs to be told the page size in addition to specifying that it is a4 or a5 etc. On page 73 of an intro to LaTeX ! |
Kaj 10-Oct-2005 [903] | Such is the state of the best that our industry has to offer... |
Graham 10-Oct-2005 [904] | LaTeX is a macro package for TeX. Some guy wrote pdflatex to output LaTeX to PDF instead of DVI. That was for his doctoral thesis. Such is the nature of freeware. |
Kaj 11-Oct-2005 [905x2] | Nah, it's open source ;-) |
So, is pdflatex better than straight from REBOL to PDF? Or is it also possible to output PDF from TeX, circumventing LaTeX? | |
Graham 11-Oct-2005 [907x2] | Dunno. |
Is it better than straight from REBOL to PDF? I would have to say yes. make-pdf gives you ultimate control over the page, but only for one page ie. you know the page layout already. It is set up more like a desktop design package, whereas LaTeX to PDF is much more in the same spirit as make-doc. | |
Volker 11-Oct-2005 [909] | IIRC pdfmaker has some hooks for pagebreaks. gabriele has something which makes tables across multiple pages, and rows are keept together. And seems the basics are inbuild to pdfmaker. Maybe Gab can step in? |
Graham 11-Oct-2005 [910x3] | It would be great once these hooks have something to catch onto. At the moment, I do not know of a way to flow text from one box to one on another page without tedious line counting. In the meantime, I need professionally typeset text now ... |
Grrrr... Altme lost the last paragraph I typed :( | |
BTW, the split-text function we worked on in the parse channel would be useful for counting lines. All we need now is a hyphenation dictionary :) | |
Gabriele 11-Oct-2005 [913x2] | I want to do a PDF emitter for MD2... i've just been too busy lately. hope to get back to this soon. |
won't be very good but better than nothing. | |
Volker 12-Oct-2005 [915] | Would you have enough time to answer a lot silly questions? I forgot the whole api and everything, but could do the coding. |
older newer | first last |