Hi,
in my humble opinion, a solution to your problem (if I understood it
correctly) already exists. Perhaps a good starting point for writing
useful macros which output the desired text according to language is the
macro repository of groff.
Check, e.g. the macro files trans.tmac, de.tmac, sv.tm
Hi Dave,
thank you very much for pointing out the usefulness of units!
Adding the "u" did the trick.
The simple macro
.de hline
\l'\n[LL]u'
..
.hline
now does the trick, the line length is exactly the same es the text line
length, no problems with truncated divisions anymore.
Best,
Oliver.
Dear All,
Recently I started using groff for writing business letters. In my
particular case, I experimented with the macro package me following the
example letter I found in the documentationm, but my question is not
linked to the choice of any particular macro package.
In me, adding a footer w
Dear All,
I was in search of the macros for writing indented and bulleted lists.
While groff_mm contains the macro BL which is explained as "Begin
bulleted list" and groff_me has "(l begin list" and ")l end list", I was
a bit baffled how groff_ms successfully hides its list feature from the
user:
lics) in string
definitions without any difficulty.
Best regards,
Oliver.
On 09/11/2024 20:34, Bento Borges Schirmer wrote:
Hey Oliver,
Em sex., 8 de nov. de 2024 às 19:05, Oliver Corff via GNU roff
typesetting system discussion escreveu:
Check, e.g. the macro files trans.tmac, de.tmac, sv.tmac, c
Dear Norwid,
I am overwhelmed by your response to my Saturday afternoon roff
exercise! Thank you for your copious feedback, also with regard mhchem,
etc. I installed IQmol on my computer to explore the field a bit
further. Besides that, there is quite a zoo of chemical notations! Of
which I was b
Hi Robert,
Thank you for your points. I get your idea.
Of course it is a salient approach to have perl, bash etc. loop through
some prompt and readline statements in order to produce the static roff
file that can then be compiled into an elegant invoice.
Consider my idea not to be a pursuit of
Hi Ingo,
thank you very much for your response!
I didn't have a *thorough* look at mom yet, it seems to have a dedicated
presentation mode, I'll study that and I'll certainly inspect the
multi-column feature.
In addition, I'll also have a look at gpresent. There is more than one
way to Rome;-)
Hi onf,
thank you for your example! I'll try it during the next days.
Yes, I am aware of looming complexity issues but I regard this as an
exercise only. I do not want to bulldoze my way forward if it is really
not practical, etc. Let's reword my approach: I only want to see if the
idea is *poss
Hi Bento,
you have to decide whether the following approach is a fair enough
approximation to your formatting needs.
The following command line was used:
$ groff -ms -t -k BBS_Example.ms > BBS.pdf
I made it a habit to use "|" as the tab character, that in conjunction
with empty spaces and t
the time and the ease of mind to finish what has been way too long on my
list.
Best,
Oliver.
On 08/05/2025 11:38, G. Branden Robinson wrote:
Hi Oliver,
At 2025-05-08T10:44:58+0200, Oliver Corff via GNU roff typesetting system
discussion wrote:
you have to decide whether the follo
Dear All,
I just read the explanation of "\c" (line continuation) in groff(7). The
manual page says: "The \c escape sequence continues an output line.
Nothing on the input line after it is formatted."
While the wording is clear enough, may I suggest an alternative wording?
"The \c escape seq
Hi Branden,
thank you for your illuminating answer. I was indeed afraid I missed a
critical detail when proposing the rewording!
Suggestion withdrawn.
Best, Oliver.
On 07/05/2025 21:03, G. Branden Robinson wrote:
Hi Oliver,
At 2025-05-07T20:50:22+0200, Oliver Corff via GNU roff
Dear All,
for the first time, I am experimenting with the html output features of
groff.
When attempting to compile the attached document (which is compiled
without problem when using any other -T option) by saying
$ groff -k -Thtml TA_html.ms > test.html
The generated html file test.html
Hi Keith,
thank you very much!
I should definitely write more macros in order to better understand the
subtleties of macro definition and execution.
Best,
Oliver.
On 10/05/2025 12:20, Keith Marshall wrote:
Hi Oliver,
On 10/05/2025 09:02, Oliver Corff via GNU roff typesetting system
Dear All,
I am afraid I miss a groff secret again.
For breaking pages, .bp works as expected if and only if there is text
before.
However, with the following start of my ms document, inserting .bp
between the title display and the first section heading does *not* break
the page.
..DS C
.\
Hi Bento,
I forgot to set the -Tpdf flag.
Here now a true pdf file.
Best regards,
Oliver.
On 08/05/2025 10:44, Oliver Corff via GNU roff typesetting system
discussion wrote:
Hi Bento,
you have to decide whether the following approach is a fair enough
approximation to your formatting
Hi Branden,
On 09/05/2025 14:59, G. Branden Robinson wrote:
When I format this document with groff Git trunk, I get a few
diagnostics.
---snip---
$ groff -ww -a -ms ATTIC/corff-early-bp.ms
troff:ATTIC/corff-early-bp.ms:1: warning: name '.DS' not defined
Sure, that's my fault, due to the extra
Self-follow-up:
1. Please ignore the double dot below at .DS C.
2. I found a workaround by putting .LH immediately before .bp.
Best,
Oliver.
On 09/05/2025 14:48, Oliver Corff via GNU roff typesetting system
discussion wrote:
Dear All,
I am afraid I miss a groff secret again.
For
Dar All,
I'm afraid I've run into a laughably simple problem inflicted by lack of
understanding the internals of groff.
I want to write a macro which uses its argument to define a register:
.mso s.tmac \" Load ms
.de pageno
\\$1:\c \" displayed as intended
.nr xx \\$1 \" regi
y with -Tpdf)
then the compile run with -Thtml was successful in the sense that it did
not abort prematurely. Very interesting!
Best regards,
Oliver.
On 14/05/2025 20:10, G. Branden Robinson wrote:
Hi Oliver,
At 2025-05-12T12:32:18+0200, Oliver Corff via GNU roff typesetting
system discussio
21 matches
Mail list logo