76 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
59
views
support for indian languages in groff
Do groff or troff support any indian languages like hindi or sanskrit?
I have tried using font-install script to install the fonts which are required but it doesn't work. I have also tried to use -mom ...
0
votes
1
answer
71
views
Macro BOLDing 2+ lines
I am trying to debug one my macro and finally I reduced it to the simplest form: it accepts an argument, wraps it with "set-bold", "reset-bold" font requests and that's all. But ...
1
vote
1
answer
81
views
How to auto-adjust height of rows in a table?
I have very simple groff file:
.ps 14
.TS
tab(;) doublebox allbox expand;
rb rb
l ^
l l.
111;222
333
444;555
.TE
with a table which looks as:
As you see only "222" is in the middle of the ...
1
vote
1
answer
83
views
How is it possible to assign a macro parameter to a number register in groff?
Given 2 number registers, embedding this in a document works fine:
.nr weeks 12
.tm start is \n[weeks] weeks away.
The expected value is printed to the console.
Moving this code to a function does ...
1
vote
2
answers
204
views
Convert simple groff coded file into tabbed and aligned .txt file
I have this text file coded with some groff style that I can convert it to .pdf, but I want to convert it to a .txt or .md file (I do not mind which one of the two, but no postscript) that keeps and ...
1
vote
1
answer
65
views
How to Create a Vertically Spanned Cell in a Second Column in Table?
I want to get the following table:
+---+---+---+
| | b | c |
| +---+---+
| a | | c |
| + b +---+
| | | c |
+---+---+---+
but I can't seem to make it happen. The closest I got was ...
0
votes
1
answer
332
views
Setting top margin in groff to zero using mm macros
I am trying to define the top (and bottom) margins in groff to 0cm.
For the page offset is easy to define whatever margin you want, but I am not being able to achieve the same for the top and bottom ...
1
vote
1
answer
194
views
Defining the header in groff mm does not change it in the first page
I am trying to define a custom header in groff using mm macros.
If I define .PH it takes effect on page 2, but not on page 1.
Why is this happening?
% cat sample2.mm
\" ***************
\" ...
1
vote
1
answer
104
views
Placing a PIC image in an arbitrary position of the page using ms macros
I have an image defined using PIC and incorporated to a groff ms document.
I notice that I need to encapsulate the image inside a .DS L - .DE block to have it aligned to left. Otherwise is centered.
...
0
votes
2
answers
334
views
How to convert a PDF file to letter size using groff?
I am trying to convert a text file in groff format to PDF, using the following command:
groff -Tps -dpaper=letter -P-letter -P-l -ms foo.ms | ps2pdf - output.pdf
The command works fine and outputs me ...
1
vote
2
answers
256
views
Rendering Swedish Å Ä and Ö with groff, mupdf
I am learning to use groff as an alternative to Latex and am struggling with rendering Å Ä and Ö
characters.
In an English only setting, I have been running groff with:
$ groff -ms example.ms -T pdf &...
2
votes
1
answer
106
views
How to set all arguments of the Title line in manpage written in reStructuredText, converted to groff with pandoc
How can I get pandoc to properly set all of the arguments in the "Title line" (.TH) when converting from a .rst file to a man file?
According to the documentation man man-pages, the "...
1
vote
1
answer
143
views
Missing ".TH" section when converting .rst file to groff format in pandoc (reStructuredText, manpage)
What should I put in a source reStructuredText file to populate the "Title Heading" (.TH) line in the destination file when using pandoc to convert it to groff-format?
I have a python ...
0
votes
1
answer
171
views
Multiple page breaks in ms macros
In groff using ms macros, how can I insert multiple page breaks one after another?
This only produces one new page before the next paragraph (as expected):
.bp
.bp
However this also only produces one ...
0
votes
3
answers
256
views
How to get Groff to not print empty lines?
It's been some time since posting to the forum.
I've been trying to find a solution in the bash or zsh
programming language that would allow me to cat tables to files that later I could update with ...