Re: groffstudio 0.10.1

2022-03-11 Thread Hans Bezemer via
Dear Tux0r, Although I use make(1) for compiling my own files, I'm enthusiastic about your project. My coworkers like the opportunities groff gives, but would like a more graphical program to work with. I'll be happy to give your program a try. Kind regards, Hans 11 mrt. 2022 19:40:45

Re: Use of sed in PDFPIC macro with OpenBSD

2021-12-07 Thread Hans Bezemer
Hi Ralph, > > awk '/^Page size:/ {print ".nr pdf-wid (p;"$3")"; print ".nr pdf-ht > (p;"$5")"}' > .nr pdf-wid (p;595) > .nr pdf-ht (p;842) > $ Thanks, this helped. Changed the appropriate lines into: . sy pdfinfo @$1 | \ awk '/^Page size:/ {print ".nr pdf-wid (p;"$3")"; \

Snippets

2021-07-24 Thread Hans Bezemer
Dear all, Recently there have been some discussion on setting up a snippet repository[1]. Would it be a good idea to use the mailinglist to post a snippet and have some discussion about it before adding it to the (upcoming) repository? To make it easy to search for snippets in the mailinglist

Re: groff-examples repository

2021-07-14 Thread Hans Bezemer
To have a place where groff examples can be found would be great! I would like to add a suggestion. I've used lilypond frequently to typeset scores. They have a snippet-repository[1] which I found very useful at the time. One of the advantages is that users can submit their own snippets. Kind

Re: [mom] using chem in mom

2021-06-29 Thread Hans Bezemer
That was easy. Thanks! On 21/06/29 11:21AM, Tadziu Hoffmann wrote: > > > But I would like to append arguments after .PS like `CAPTION' > > and `TARGET'. > > .PS CAPTION "My chemical structure" TARGET "NoMethane" > begin chem > CH3 > bond > CH3 > end > .PE > > >

[mom] using chem in mom

2021-06-29 Thread Hans Bezemer
Dear all, I would like to use chem along with mom. This: .cstart CH3 bond CH3 .cend Results in: .PS .PE After preprocessing it with chem. But I would like to append arguments after .PS like `CAPTION' and `TARGET'. An option could be to add a marker above the chem code: \# ChemPic: CAPTION

Re: (A possible) way to change the background color of pdf

2021-06-15 Thread Hans Bezemer
On 21/06/15 03:14PM, Tadziu Hoffmann wrote: > > > I want to have a black background with green text for > > my slides. > > > > If I'm correct this can't be set within groff. > > You can draw a filled polygon (rectangle) using \D'P ...' > covering the whole page at the beginning of each page, >

Re: (A possible) way to change the background color of pdf

2021-06-15 Thread Hans Bezemer
On 21/06/15 11:01AM, Deri wrote: > On Tuesday, 15 June 2021 10:29:37 BST Hans Bezemer wrote: > > Dear all, > > > > I want to have a black background with green text for my > > slides. > > > > If I'm correct this can't be set within groff. > > Hi Ha

(A possible) way to change the background color of pdf

2021-06-15 Thread Hans Bezemer
Dear all, I want to have a black background with green text for my slides. If I'm correct this can't be set within groff. I've created a script to post process the pdf to add the desired background color. This is my sample document: cat GreenText.groff .gcolor green Green text .bp More Green

Re: [mom] Using LIST with DOCTYPE SLIDES

2021-06-13 Thread Hans Bezemer
.PRINTSTYLE. > > Then, I finished your example with .LIST OFF after the "Bye" and it > compiles, probably as intended, while throwing the error message > > slide.mom:5: can't transparently output node at top level > > Here my trial version: > > .\" TITLE "

[mom] Using LIST with DOCTYPE SLIDES

2021-06-13 Thread Hans Bezemer
Dear all, I would like to use LIST within DOCTYPE SLIDES in mom, but when doing so it doesn't show. Also trying to set QUAD to LEFT doesn't seem to work. Maybe I'm missing the obvious. Here's a minimal code: .DOCTYPE SLIDES \#.PRINTSTYLE TYPESET \#.DOCTYPE DEFAULT .START .HEADING 1 "Heading

Re: AW: Macro's for making an exam.

2021-06-10 Thread Hans Bezemer
Thanks for all the suggests. This is indeed what I want. I will expand the `answer' part, because sometimes students have to draw stuff on a grid or into a given graph, but I can continue from here. Regards, Hans On 21/06/09 11:46PM, Keith Marshall wrote: > Apologies for any confusion, which

Re: Macro's for making an exam.

2021-06-09 Thread Hans Bezemer
09:07PM, Hans Bezemer wrote: > Dear Oliver, > > Thanks for the detailed answer. > > I will take a look at UTP (have downloaded it). > Will give a heads up when I have a working example. > > Kind regards, > > Hans > > On 21/06/07 08:04PM, Oliver Corff wrot

Re: Macro's for making an exam.

2021-06-07 Thread Hans Bezemer
contents is placed at the end of the book, not the beginning, if no > measure is taken). However, the mom macro package and its wrapper > pdfmom, will help you place collected material near the beginning of the > document as pdfmom takes care of the necessary number of steps to > co

Macro's for making an exam.

2021-06-07 Thread Hans Bezemer
m of the points and number of questions on the first page. Is it needed to run groff twice to get does values? Thanks in advance. Kind regards, Hans Bezemer