G. Branden Robinson, just quick commentincle on this:
> So if "adjustment" is, as I claim, "the widening of
> the spaces between words until glyphs abut both the
> left and right margins", well, that's clearly not hap-
> pening here.
No, it is not. What you describe is "both" adjustment,
G. Branden Robinson:
> People frequently run into trouble because they usually
> don't want the text of function prototypes filled, but the
> prototypes can also get lengthy, and they don't know how
> to make the text adapt to the available terminal width in
> the absence of filling. (Short answe
G. Branden Robinson to Anton Shepelev:
> > This means that one must /set/ rather than unset
> > GROFF_SGR to restore the normal nroff behavior.
>
> This advice, while still applicable to groff 1.22.4, is
> becoming stale. Distributors that introduced the
> GROFF_SGR Debia
Hello, all
What is the covenstional way of documenting a set of C
functions with -man? Have you any recommendations or
examples about typesetting function declaraions, their
return types and aruguments in a classic man-page? The .SY
macro does not seem to work well for C, because its function
de
Anton Shepelev wrote to G. Branden Robinson:
> > Check your environment for variables named "GROFF_SGR"
> > (a Debianism) and "GROFF_NO_SGR". Unset them both and
> > try "groff -man -Tutf8" again.
>
> `export | grep -i sgr' finds nothin
Jim Hall:
> Several weeks ago, I interviewed Dr. Marshall Kirk
> McKusick about how he writes his books using groff:
> https://technicallywewrite.com/2023/10/13/groffbooks
McKusick writes about orphan elimination, end-of-
line tweaking, and balancing of text on facing
pages. Does that
G. Branden Robinson to Anton Shepelev:
> > I wonder what Debian user or developer dis-
> > liked those SGR sequences emitted by groff...
>
> Well, here's one of them.
>
>https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=312935
>
> ...with my leng
G. Branden Robinson to Anton Shepelev:
> > `export | grep -i sgr' finds nothing, unfortu-
> > nately. Where else can I look for the reason of
> > -man treating my virtual terminal as a printer?
> > Once I find it, I will bring it up with the ad-
> > minis
. Branden Robinson to Anton Shepelev:
> > instead of using ANSI control codes, and this has no
> > intended effect. How can I cause `-man -Tutf8' to use
> > ANSI codes?
>
> Check your environment for variables named "GROFF_SGR" (a
> Debianism) and "GROFF_
Hello, all
`groff -man -Tutf8' does not seem to handle font
styles on my terminal. I have made sure that plain
`groff' works as expected:
This is
.ft B
strange
.ft R
indeed.
Damian McGuckin to Anton Shepelev:
> As you noticed, that 1.22.4 version of '-mm' solved the
> fill-mode problem with '.DS'.
>
> However, when you use
>
>.DS 1
>.EQ (X)
>... equation
>.EN
>.DE
>
> it places put the
Damian McGuckin:
> The bug is that while
>
> .DS 1
>
> uses the standard indent,
>
> .DS 1 1
>
> does NOT use the standard indent.
Let us maybe share some examples of a) the current
and b) the expected behavior. This e-mail is for-
matted using mm, w
Damian McGuckin:
> I went back to a very old document using troff and
> MM. It is a tutorial on using troff at the macro
> package level without needing to know much about
> the low level troff. I was contemplating updating
> it and putting it out there.
>
> I am trying to use a display wi
Damian McGuckin:
> I went back to a very old document using troff and
> MM. It is a tutorial on using troff at the macro
> package level without needing to know much about
> the low level troff. I was contemplating updating
> it and putting it out there.
>
> I am trying to use a display wi
I wrote seven years ago:
> OK, I have modified the patch (attached).
>
> But I am not sure how mm is supposed to handle
> long signatures if they spread across the page
> boundary: should it treat the .FC + .SG combina-
> tion as an indivisible keep or not, e.t.c.; so I
> did it the si
ff_char(7) for the list of symbols:
man -t groff_char > somefile.ps
Anton
hj.oertel:
> by default groff generates PS, using the flag
> -Tps. In Linux you can convert it to PDF using
> the ps2pdf tool.
Ditto on Windows, just install Ghostscript for this
OS: http://ghostscript.com/download/gsdnld.html .
--
() ascii ribbon campaign - against html e-mail
/\ h
ce, still
the white space between the last 2 words
in the longer headers is gone.
Perhaps an overflow somewhere?
Thank you
Anton
x27;\*(.T'html' .RP
This exact command didn't work, but passing a
user defined register to groff does work:
.if \n[toc] .RP no
I now build PostScript with -r toc=1,
but not html.
Many thanks
Anton
ml
Are restrictions on the placement of XS/XE documented
somewhere?
Thanks
Anton
/doc.1:101: warning [p 2, 5.2i]: can't break line
soelim doc.ref | pic | tbl | eqn -Tps:html | pre-grohtml -Dhtmlimg -r troff -ms
-Thtml | post-grohtml -Dhtmlimg -r
Many thanks for your help
Anton
ull
.lf 1 ./doc.1
.\"$Id: doc.1 57 2016-04-13 14:34:10Z mexas $
.\" Copyright (c) 2016 Anton Shterenlikht, The University of Bristol
.\" See LICENSE for licensing conditions
.RP no
.na
.hy 0
.EQ
delim ##
.EN
.DA
.TL
Parallel programming with Fortran 2008 coarrays
.AU
and so on.
Wha
#x27;t break line
soelim doc.ref | pic | tbl | eqn -Tps:html | pre-grohtml troff -ms -Thtml |
post-grohtml
I don't understand why it mentions doc.full,
when I'm processing doc.ref?
doc.ref is made by running refer on doc.full.
doc.ref has this as its first line:
.lf 1 doc.full
Does this pose a problem for grohtml?
What else am I doing wrong?
Many thanks for all replies
Anton
So how do I use grohtml?
As groff -Thtml?
Using groff -Thtml -V shows me this pipeline:
soelim doc.1 | pic | tbl | eqn -Tps:html | pre-grohtml troff -ms
-Thtml | post-grohtml
What if I have a file that has already been processed
by soelim and refer?
What does -Tps:html mean?
Thanks
Anton
ntact the FreeBSD groff maintainer,
should a separate grohtml binary be built
as part of groff-1.22?
Thanks
Anton
>On 26/02/16 15:56, Anton Shterenlikht wrote:
>> I've a document that is built with pdfroff.
>> I use mspdf macro package and also PSPIC.
>>
>> This results in a document with 3 extra
>> pages after the cover page, where all PostScript
>> files, mention
ll my sources are at:
https://sourceforge.net/p/coarrays/svn/HEAD/tree/head/doc/
Is my cover.ps wrong?
Or perhaps pdfmark is incompatible with pspic?
Please advise
Thank you
Anton
Hi Keith,
Does pdfroff + mspdf understand PSPIC?
When I use .PSPIC, the image appears twice -
once where it should appear, and second time
between the cover and TOC.
Is there any other way to add images
when using pdfroff + mspdf?
Many thanks
Anton
cover page,
because ms' default TL, AU, AI, RP
do not work well together with pdfmark?
Thank you
Anton
file?
Thanks
Anton
uality of packages is really,
>really regrettable.
Thank you. I got it to work.
Are you saying this is something that should be
properly fixed in the FreeBSD groff package?
If so, I'll submit a PR for the port maintainer
to have a look.
Anton
usr/local/bin/pdfroff -mspdf z.1 > z.pdf
troff: fatal error: can't find macro file spdf
troff: fatal error: can't find macro file spdf
$
I can't see anything relevant in pdfroff man page.
Please help
Thanks
Anton
combine XN with adding reference
links?
Thanks again
Anton
roff/1.22.2/tmac/spdf.tmac
$
Using groff directly seems to work:
$ /usr/local/bin/groff -Tpdf -ms -mpdfmark z.1 > z.pdf
$
Am I using pdfroff wrong?
Or is this some misconfig on my system?
Thank you
Anton
The intro says that this document was produced
with groff-1.19.1.
So I wanted to ask, is pdfmark still maintained,
or is it abandoned?
Or perhaps there is an updated pdfmark.pdf
somewhere?
XN is defined in spdf.tmac,
but I lack the skills to understand it.
Please help/advise
Thanks
Anton
Carsten
This is my FreeBSD build log:
http://eis.bris.ac.uk/~mexas/groff1.22.2-freebsd.log
Perhaps if you compare it with yours, you'll be able
to narrow down the problem.
Anton
http://svnweb.freebsd.org/ports/head/textproc/groff/
I can post the build log if it helps.
(There should be some available online already,
from FreeBSD package cluster, but perhaps they
leave only broken build logs).
Anton
>So, having read the friendly manual, I decided to start working on my book.=
> I wrote the following:
>
>.RP no
>.TL
>A Stranger World
>.AU
>Koz Ross
>.AB no
I think you need .AE after .AB.
Anton
Ralph, thank you
This was a very useful Unix tutorial.
Thanks
Anton
t occurs when sed closes its stdin, nroff's stdout, and how that
>ripples back through the pipeline, causing yes(1) to stop?
No, I don't. This really was my question.
>From your answer I see it's not trivial.
Thanks
Anton
2 a 2 a 2 a 2 a 2
a 2 a 2 a 2 a 2 a 2
a 2 a 2 a 2 a 2 a 2
a 2 a 2 a 2 a 2 a 2
a 2 a 2 a 2 a 2 a 2
a 2 a 2 a 2 a 2 a 2
a 3 a 3 a 3 a 3 a 3
$
Anton
*biblio-start-hook
.\".rm REFERENCES
.so j.ref
.so r.ref
.so c.ref
.so p.ref
.NH 2
So I don't understand why I get different behaviour
between the big and a test documents.
Anyway, many thanks for your help.
Anton
each file with references
by refer separately. Then I use soelim to put together
a single document. Then I use groff -ms on it.
Thanks
Anton
>From keith.d.marsh...@ntlworld.com Wed Feb 4 06:06:14 2015
>
>On 03/02/15 12:05, Anton Shterenlikht wrote:
>> In the "UNIX processing handbook", 1988, there is a mention of .NP
>> macro for ms macros.
>
>I assume you mean the reference on page 105, (in th
recognised macro requests?
Is there an option to issue warnings for
all not recognised requests?
Thanks
Anton
wonder if this is related. Will discuss with
the FreeBSD psutils port maintainer.
Thanks again
Anton
1 > z.ps
>$ cp z.ps z1.ps
>$ diff z.ps z1.ps
>$ psmerge -ozz.ps z.ps z1.ps
>
>z.ps: http://eis.bris.ac.uk/~mexas/z.ps
>zz.ps: http://eis.bris.ac.uk/~mexas/zz.ps
>
>This is on FreeBSD 10.1-STABLE amd64, with
>$ pkg info -xo groff psutils
>groff-1.22.2_1 textproc/
1.22.2_1 textproc/groff
psutils-1.17_4 print/psutils
I'd be grateful for any advice
Thanks
Anton
e values may be given as
> fractional numbers; however, fractional basic units are always rounded
> to integers.
> :
> ((the available units explained))
Thank you.
Is this included into any of the man pages.
I tried to find, but couldn't, but I haven't
searched all of groff man pages.
Many thanks
Anton
4000 and if you leave u off it will
>be evaluated in en's (of the order of 500 feet!).
I confused stings with number registers.
.nr n1 2i
.ds s1 2i
gives, for a device unit of 72000
n1=144000
s1="2i"
Then \[n1]u is in units evaluating to 2 inches again,
and \[s1] is just 2 inches.
So it seems using strings is more natural.
Many thanks
Anton
r;
lw(\n[c1]u) lw(\n[c2]u) lw(\n[c3]u) lw(\n[c4]u) lw(\n[c5]u).
Thanks
Anton
i) lw(0.2i) lw(1i) lw(5i) lw(3i).
However, it seems tbl doesn't understand this:
tbl:wish.1:12: `.' not last character on line
tbl:wish.1:12: giving up on this table
Please advise
Thanks
Anton
>From ra...@inputplus.co.uk Fri Sep 5 11:38:30 2014
>
>Hi Anton,
>
>> Of course the point of an abstract is to fit on one page.
>> However, it is always good to know the rules exactly.
>> So is ms supposed to behave in this way?
>
>It only has code to
.
However, it is always good to know the rules exactly.
So is ms supposed to behave in this way?
Thanks
Anton
m nor theirs (with "u" at the end) work.
I guess this is because this feature is used
to affect vertical position on a single page,
not across pages.
Anton
>From ra...@inputplus.co.uk Thu Sep 4 12:49:40 2014
>
>Hi Anton,
>
>> Also, in latex figures are treated as floats and the text can move
>> before the figure, even if it's later than the fiture in the src, if
>> there is some space left on the previous page, a
vious
page, and the figure does not fit.
I'm using ms and with simple .PS/.PE I cannot
achive this behavior. Again, this might be
the intended behaviour. In that case, what is
the strategy to minimise unused space at the
bottom of the pages?
Thanks
Anton
created even without
the double quotes.
Thank you
Anton
nu = lambda over { 2 ( lambda + mu ) }
.EN
What's the problem?
Thanks
Anton
To me
.char \[-+] \f[S]\v'.05v'\z+\v'-.3v'\-\v'.3v'\v'-.05v'\f[]
looks better vertically aligned, but it's just a bikeshed.
Many thanks for all replies.
Anton
moment.
This is good, although it's a bit lower on the
line than \[+-]. Anyway, with your example and with
the UNIX Text Processing book, I'll be able to
fine-tune it.
Many thanks
Anton
ot be known, they must be opposite for
a and b.
Yes, I use Postscript output. As far as I understood
from Werner's reply, this symbol is now available via
the PS driver.
Anton
plus minus you can also use \[+-].
But \[-+] gives warning, and the groff_char(7)
man page entry for this symbol is not clear to me.
Anton
I'm looking at groff_char(7) and see
N/A \[-+]uni2213 u2213
or when I try using it:
full.1:5686: warning: can't find special character `-+'
How can I access the "minus plus" symbol?
Thanks
Anton
I 4i left.eps 1i
.rt
.PSPIC -I 5i right.eps 1i
.rt
.PSPIC -I 6i left.eps 1i
groff -ms -mpspic z.1 > z.ps
The result:
http://eis.bris.ac.uk/~mexas/z.ps
Anton
are named
>you may need to create a custom map file for afmtodit
>and encoding file for grops.)
>
Thanks, I'm not so desperate...
Anton
Is it possible to have bold greek letters?
Simply using
.EQ
bold sigma
.EN
doesn't seem to work.
Please advise
Thanks
Anton
do it so well, it's certainly
a motivation for me to invest some time
in learning groff and related tools.
Anton
I sent this to the list yesterday, but seems
it didn't reach it, so trying to send again.
ms table of contents (TOC) facilities are poor.
The groff manual agrees with me. Moreover it
suggests that NH macro should be modified [1].
Here's an easy macro that helps. Any comments?
An
is the easiest route for new users
to prepare standard technical documents.
The authors need know nothing about raw
tex at all.
Anton
-
>James Cloos OpenPGP: 1024D/ED7DAEA6
http://eis.bris.ac.uk/~mexas/zz.txz
$ tar xvf zz.txz
x z.1
x z.data
x z.pic
x z.plot
x z.ps
$ gnuplot z.plot
$ groff -ep -ms z.1 > z.ps
$
z.data is the data
z.plot is a gnuplot to plot z.data
z.pic is the resulting plot
z.1 is a groff file
z.ps is the resulting Postscript
Anton
qns. (1a), (1b) ...".
What am I missing?
Also, how exactly do I run groff twice
to resolve the first, forward-looking reference?
Should I take care myself that some cross-referencing
information is saved to files?
Or is this done automatically with some
command line options with ms?
Many thanks
Anton
this with
mm EC + mmroff, but it's very clunky.
So I wanted to ask - what is the easiest
way of achieving equation (or table,
figure, etc. ) cross-referencing with groff?
I've only tried mm and ms, but will try
other macro packages if advised.
Thanks
Anton
Peter Schaffter:
> Werner, you have fulfilled the role perfectly, and
> I know I speak for everyone on the list when I say
> you have earned not only our respect, but our ad-
> miration. Being a lead developer entails qauli-
> ties that go far beyond coding skills, not the
> least of which
Hello all,
I should like to typeset em dashes surrounded by
thin, say 1/4th en, spaces. To prevent a dash from
starting a new line, the first space must be un-
breakable. The second one must be discardable.
Both spaces must be unstretchable. How to do it?
The '\h' describption re
Tadziu Hoffmann:
> Thanks! Out of curiosity, I just ordered a used
> copy.
You should not have hurried:
http://www.gpo.gov/fdsys/pkg/GPO-STYLEMANUAL-2008/pdf/GPO-STYLEMANUAL-2008.pdf
> The book costs 12 Euros, and shipping from Aus-
> tralia costs 18 Euros. :-|
I had to order Clarke E
rlap.
Cool, that's exactly what I was looking for.
Many thanks. I'll now refer to my "Unix Text
Processing" (1987) by Tim O'Reilly, D. Dougherty
for more details of these two commands.
Thanks again
Anton
caption for all (a)-(d).
I know how to do it with latex, but not with groff.
Thanks
Anton
Jerome Frgacic:
> Here is the context : I'm student in Law and next
> year I will have to write a memorandum. Neverthe-
> less, this memorandum must be in MS Word format
> which displease me greatly. This format is im-
> posed to verify if we respect the instructions,
> and especially
Werner LEMBERG:
> Indeed. However, it's just a matter of taste to
> handle funny preconv and soelim cases with either
>
>soelim | groff -K ...
>
> (current groff) or with
>
>preconv -e... | groff -s ...
>
> (patched groff)
It didn't occur to me. There's no need to patch it
then...
-
Ralph Corderoy:
> > mmst1: tr -d 15 < [infile]| groff -s -Kcp1251 -t
> > -Tutf8>[outfile].txt
> > mmst2: soelim [infile] | tr -d 15 | groff-Kcp1251 -t
> > -Tutf8>[outfile].txt
> >
> > With the included test file (test.mm) the first
> > call seems to
till use latex, but for mainly
text and image documents groff is a good
alternative.
Anton
trebol:
> I've seen that hyphenation in mail is a bad idea.
Then justified text is the same in that it makes re-
formatting difficult.
> No other way to prevent multiple pages to .pl
> 1000?
Another way would be to set up transparent page
breaking, i.e. zero vertical margins, no keep
trebol:
>Thanks Aton.I think it's good that the
> hyphenation character is independent of the rest
> of the glyph's assigna- tions. For now I'll let
> you rest of my newbie's questions, and I will con-
> tinue studying how groff works. But I think in
> a short time I'm go
trebol:
> [...] so I'm going to follow the Anton's advise.
I see you are still having \(hy as the hyphenation
character. You can specify a different character,
the ASCII '-' for example, in unicode.tmac or else-
where using the .shc request:
.shc -
--
() ascii ribbon campaign - agains
re\groff\1.20.1\tmac\
> > unicode.tmac. This file is automatically loaded
> > by the utf8 device.
>
> Thanks Anton. There is a way to control this be-
> havior without changing this file? There is a
> danger of create a misunderstanding with a actual-
> ization.
You c
trebol:
> I can use -Tascii, but as you may have noticed,
> I'm not a English speaker, so I need send utf8
> mail, and formating with groff makes the work
> easy. Any advice?
Comment the mappings in share\groff\1.20.1\tmac\
unicode.tmac. This file is automatically loaded by
the
From groff-bounces+mexas=bristol.ac...@gnu.org Fri Sep 14 01:02:45 2012
Anton --
On Thu, Sep 13, 2012, Anton Shterenlikht wrote:
> I need to add book edition to a refer database entry.
> There seems to be no dedicated edition field. Which
&
I need to add book edition to a refer database entry.
There seems to be no dedicated edition field. Which
field should I use?
Thanks
ng example.
Cool!
I'll give troff2page a go.
Anton
macro packages, like mm, ms, etc.?
Thanks
Anton
;
The output document contains no bibliography at all.
There's only number 1 after the word "thesis", and
even that is not superscript.
Thanks
Anton
k you
Anton
P.S. I like this groff thing more and more!
refer(1) man page suggests that refer
output is incompartible with mm.
My quick check shows that ms and me
indeed work (produce the references
section with all references), but
mm does not.
Is that correct?
So if I want to use refer, I have
to use either ms or me, right?
Thanks
Anton
I wrote:
> My other suggestion...
Correction: It is actually Anton Shterenlikht's,
while I only proposed a way to implement it.
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Keith Marshall:
> > Thanks, I missed the piece about hd*sect-pg.
> > My version is definitely better then.
>
> Except for one fairly important issue: you are ad-
> vocating exposure of what *should* be a private in-
> terface, (according to naming convention), and is
> thus *entirely* spe
Ralph Corderoy:
> > Yes, and this is exactly what hd@set-page does.
> > The documentation doesn't say that P is not
> > read-only. I consider hd@set-page as a setter
> > of the field P and therefore preferable to set-
> > ting P directly. If it was not so trivial my
> > mehtod would
Keith Marshall:
> > I agree, but I didn't find a public mechanism to
> > do that.
>
> Does the attached achieve the desired effect?
> Agreed, it isn't intuitive: it's very picky about
> the placement of the reassignment of register 'P',
> and you have to set it to less than zero for it,
>
Anton Shterenlikht:
> Now that I sorted out my empty lines, I get the
> cover page with no number.
>
> I tried groff -n option, but it seems to change
> the number of only the cover page, which is not
> shown anyway. The numbers of other pages are unaf-
> fected.
From anton@gmail.com Thu Aug 23 14:43:42 2012
Keith Marshall:
> > That is solved by (thanks to Anton Shepelev > ton@gmail.com>)
> >
> > .hd@set-page -1
> >
> But that isn't really a
1 - 100 of 304 matches
Mail list logo