* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-04 20:41 [9front] [NOOB ALERT] Actually using 9front to write things Alexander Shendi
@ 2022-02-04 21:20 ` sirjofri
2022-02-04 21:30 ` sirjofri
2022-02-04 22:07 ` umbraticus
` (3 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: sirjofri @ 2022-02-04 21:20 UTC (permalink / raw)
To: Alexander Shendi
Hello again,
04.02.2022 21:41:32 Alexander Shendi <Alexander.Shendi@web.de>:
> Hi,
>
> So I've sysupdated and recompiled the system for amd64 and 386. I have
> also compiled minischeme and run some of my scheme programs from
> OpenBSD.
>
> Now I need to write things (mainly letters conforming to the german
> "dinbrief" standard). I guess the tool of choice is troff(1). Is there
> a good intro or example available? I read
> <http://helpful.cat-v.org/Blog/2019/12/03/0/>, but the linked
> repositories aren't available anymore.
I wrote most of my documents in din A4, and I also needed to learn the
progress.
First of all, you need to tell your troff system what's the output of
your page. This is the line length and the length of your body. Troff
doesn't really know about the physical paper size, so you don't need to
use it here.
This will be handled using the postscript converters, eg ps2pdf. Here you
can give it the actual papersize as a parameter and your troff output
will be cut to fit the paper.
Let me just look at how I did it in my thesis and I can give you the
technical details.
sirjofri
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-04 21:20 ` sirjofri
@ 2022-02-04 21:30 ` sirjofri
0 siblings, 0 replies; 11+ messages in thread
From: sirjofri @ 2022-02-04 21:30 UTC (permalink / raw)
To: Alexander Shendi
Yeah, I found something
In your building pipeline you have to convert the troff to some
postscript using 'lp -dstdout' (warning, it's possible you have to create
a world writable file somewhere as hostowner the first time), then you
feed it through ps2pdf to get a pdf page.
troff ... | lp -dstdout | ps2pdf '-sPAPERSIZE=a4' >output.pdf
(Note the quotes around the = sign)
As an extra bonus, some time ago I wrote a letter, and here are my troff
-ms settings for the page layout
.pl 29.7c
.po 2.5c
.ll 17c
.lt 17c
.ps 12 (optional)
Good luck, and I hope it helps.
sirjofri
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-04 20:41 [9front] [NOOB ALERT] Actually using 9front to write things Alexander Shendi
2022-02-04 21:20 ` sirjofri
@ 2022-02-04 22:07 ` umbraticus
2022-02-04 22:59 ` Alexander Shendi
2022-02-04 22:12 ` umbraticus
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: umbraticus @ 2022-02-04 22:07 UTC (permalink / raw)
To: 9front
; page /sys/doc/troff.ps
; man ms
; echo my first troff | troff -ms | page
; echo my first pdf | troff -ms | dpost | ps2pdf > first.pdf
umbraticus
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-04 20:41 [9front] [NOOB ALERT] Actually using 9front to write things Alexander Shendi
2022-02-04 21:20 ` sirjofri
2022-02-04 22:07 ` umbraticus
@ 2022-02-04 22:12 ` umbraticus
2022-02-05 7:25 ` tlaronde
2022-02-05 16:03 ` Humm
4 siblings, 0 replies; 11+ messages in thread
From: umbraticus @ 2022-02-04 22:12 UTC (permalink / raw)
To: 9front
Oh, I forgot about the German part. You'll want to
set appropriate margins through macros or troff requests
and then ps2pdf -sPAPERSIZE'='a4
umbraticus
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-04 20:41 [9front] [NOOB ALERT] Actually using 9front to write things Alexander Shendi
` (2 preceding siblings ...)
2022-02-04 22:12 ` umbraticus
@ 2022-02-05 7:25 ` tlaronde
2022-02-05 16:03 ` Humm
4 siblings, 0 replies; 11+ messages in thread
From: tlaronde @ 2022-02-05 7:25 UTC (permalink / raw)
To: 9front
Le Fri, Feb 04, 2022 at 09:41:32PM +0100, Alexander Shendi a écrit :
> Hi,
>
> So I've sysupdated and recompiled the system for amd64 and 386. I have also compiled minischeme and run some of my scheme programs from OpenBSD.
>
> Now I need to write things (mainly letters conforming to the german "dinbrief" standard). I guess the tool of choice is troff(1). Is there a good intro or example available? I read <http://helpful.cat-v.org/Blog/2019/12/03/0/>, but the linked repositories aren't available anymore.
>
There is also TeX (and LaTeX as package) available for plan9/9front,
and this is not gigabytes:
http://kertex.kergis.com
--
Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-04 20:41 [9front] [NOOB ALERT] Actually using 9front to write things Alexander Shendi
` (3 preceding siblings ...)
2022-02-05 7:25 ` tlaronde
@ 2022-02-05 16:03 ` Humm
2022-02-12 4:23 ` Stanley Lieber
2022-02-13 11:33 ` Alexander Shendi
4 siblings, 2 replies; 11+ messages in thread
From: Humm @ 2022-02-05 16:03 UTC (permalink / raw)
To: 9front
Quoth Alexander Shendi:
>Now I need to write things (mainly letters conforming to the german
>"dinbrief" standard).
(If you happen to have a PDF or similar of DIN 5008:2020 lying around,
I’ll take it.)
>I guess the tool of choice is troff(1). Is there a good intro or
>example available? I read
><http://helpful.cat-v.org/Blog/2019/12/03/0/>, but the linked
>repositories aren't available anymore.
There are many introductions to and examples of troff. My little list
is at https://paste.sr.ht/blob/5719305b1df836b6c3420474865316a4d0ffdfab .
--
Humm
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-05 16:03 ` Humm
@ 2022-02-12 4:23 ` Stanley Lieber
2022-02-13 11:33 ` Alexander Shendi
1 sibling, 0 replies; 11+ messages in thread
From: Stanley Lieber @ 2022-02-12 4:23 UTC (permalink / raw)
To: 9front
On February 5, 2022 4:03:20 PM UTC, Humm <hummsmith42@gmail.com> wrote:
>Quoth Alexander Shendi:
>> Now I need to write things (mainly letters conforming to the german "dinbrief" standard).
>
>(If you happen to have a PDF or similar of DIN 5008:2020 lying around, I’ll take it.)
>
>> I guess the tool of choice is troff(1). Is there a good intro or example available? I read <http://helpful.cat-v.org/Blog/2019/12/03/0/>, but the linked repositories aren't available anymore.
>
>There are many introductions to and examples of troff. My little list is at https://paste.sr.ht/blob/5719305b1df836b6c3420474865316a4d0ffdfab .
>
sorry about the broken links. the bitbucket stuff is now available at code.9front.org. i'll get the links fixed.
sl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9front] [NOOB ALERT] Actually using 9front to write things
2022-02-05 16:03 ` Humm
2022-02-12 4:23 ` Stanley Lieber
@ 2022-02-13 11:33 ` Alexander Shendi
1 sibling, 0 replies; 11+ messages in thread
From: Alexander Shendi @ 2022-02-13 11:33 UTC (permalink / raw)
To: 9front
Hi,
I actually managed to hack together something that seems to work. Please drop me a line, if you are interested.
Best regards,
Alexander
Am 5. Februar 2022 17:03:20 MEZ schrieb Humm <hummsmith42@gmail.com>:
>Quoth Alexander Shendi:
>>Now I need to write things (mainly letters conforming to the german
>>"dinbrief" standard).
>
>(If you happen to have a PDF or similar of DIN 5008:2020 lying around,
>I’ll take it.)
>
>>I guess the tool of choice is troff(1). Is there a good intro or
>>example available? I read
>><http://helpful.cat-v.org/Blog/2019/12/03/0/>, but the linked
>>repositories aren't available anymore.
>
>There are many introductions to and examples of troff. My little list
>is at https://paste.sr.ht/blob/5719305b1df836b6c3420474865316a4d0ffdfab .
>
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
^ permalink raw reply [flat|nested] 11+ messages in thread