Re: Proposed GNU troff behavior change: require end-of-input macros to exit

2023-12-11 Thread Holger Herrlich
As far as I got, by playing around, the '\c' doesn't matter. It seems that the additional page comes from an additional call to the default page break. Using a custom trap, just disable it in your end trap: 8< .\" .\" run: groff em-test.groff > em-test.ps .\" .nr PAGE-trap 20c .nr

Re: Zero Width Space (was Re: How to print a literal '.' as the first character in a line?)

2022-06-07 Thread Holger Herrlich
I see an argumentation of user model against the system model point of view. That will never do, because they are different. Secondly, you are fighting about the name (identifier) of an escape sequence using arguments valid of an description. That doesn't make sense. Generally the name 'zero

Re: pic doesn't center when i use a macro

2021-11-04 Thread Holger Herrlich
I did three things: 1) wrapped the what_should_become_a_string inside a custom object []. (See the braces of the macro.) This makes the 'if' statements (and more) possible. 2) I placed those object directly, as you can do with any graphic object (incl. strings) in pic. Annotation labels are

Re: pic doesn't center when i use a macro

2021-11-04 Thread Holger Herrlich
.PS define label_for {[ if $1 == 0 then { "Entête Ethernet" } else { if $1 == 1 then { "Entête IP"} else { if $1 == 2 then { "Entête TCP" } else { if $1 == 3 then { "Donnees applicatives" } else { } } } } ]} w = 3 ; h = 2; margin = .2 ; tr = 2 *

Re: includes in eqn & pic. [Re: GNU eqn question/suggestion]

2020-11-28 Thread Holger Herrlich
On Sat, 28 Nov 2020 01:32:33 +0100 Tadziu Hoffmann wrote: > > eqn does well, however .PS/.PE doesn't seem to be processed by > > [g]pic on inserting. > > > > I compiled using: groff -e -p test.groff > test.ps > > The eqnrc is inserted by eqn, but in the pipeline run by > "groff -e -p",

Re: includes in eqn & pic. [Re: GNU eqn question/suggestion]

2020-11-27 Thread Holger Herrlich
On Fri, 27 Nov 2020 15:17:49 +0100 Tadziu Hoffmann wrote: > > edit: ~/.groff/eqnrc > > define eqnrc_version % 0.0 % > > > > and got "define eqnrc_version % 0.0 %" literally included on top of > > the created .ps-file. > > Despite the name, eqnrc can contain all sorts of troff input, >

includes in eqn & pic. [Re: GNU eqn question/suggestion]

2020-11-27 Thread Holger Herrlich
On Fri, 13 Nov 2020 13:43:56 +0100 Tadziu Hoffmann wrote: > > element of set is '\[mo]'. Would it still be logical to expand > > the synax for eqn to add it as a keyword? > > I would just put something like > > define member % type relation \[mo] % > define emptyset % \[es] % > >

Re: [groff] Creating a numbered list without macros

2018-08-26 Thread Holger Herrlich
On Wed, 22 Aug 2018 11:55:26 -0400 Peter Schaffter wrote: > On Tue, Aug 21, 2018, Holger Herrlich wrote: > > > On Mon, 20 Aug 2018 15:24:39 -0400 > > > Peter Schaffter wrote: > > > > > set and change every applicable type parameter: family, font,

Re: [groff] Creating a numbered list without macros

2018-08-21 Thread Holger Herrlich
On Mon, 20 Aug 2018 23:22:44 +0200 Tadziu Hoffmann wrote: > > A macro package does not hide the controls any more than writing > > macros yourself does. A macro package aggregates the requests > > needed to perform typesetting functions for convenience, not > > opacity. > > Well said.

Re: [groff] Creating a numbered list without macros

2018-08-21 Thread Holger Herrlich
On Mon, 20 Aug 2018 15:24:39 -0400 Peter Schaffter wrote: > set and change every applicable type parameter: family, font, size, > colour, leading, spacing, indent, quad, fill, and vertical > placement. > > In other words, mom expands creative options rather than limiting > them. That's the

Re: [groff] Creating a numbered list without macros

2018-08-20 Thread Holger Herrlich
hically). Sorry again, Holger On Thu, 16 Aug 2018 11:55:59 +0200 Holger Herrlich wrote: > On Sat, 11 Aug 2018 18:12:18 +0200 > Ingo Schwarze wrote: > > [context removed however] > > Oh, and why don't you just pick one of the existing macro sets? > > Here are some r

Re: [groff] Creating a numbered list without macros

2018-08-16 Thread Holger Herrlich
On Sat, 11 Aug 2018 18:12:18 +0200 Ingo Schwarze wrote: [context removed however] > Oh, and why don't you just pick one of the existing macro sets? Here are some reasons to avoid frameworks like Latex or mom. (You may ask yourself why I mention Latex as well and further on talk about

Re: [Groff] ps: import of an EPS file with binary data

2012-07-07 Thread Holger Herrlich
BTW, In the case of jpeg-files I finally switched to gimp's fu-script to convert pictures to groffable eps-files. Gimp seems to me as of very high quality. I attached a pbm version of the script still leaving jpeg artifacts as comments. Further info of fu-script functions is provided by gimp's

Re: [Groff] rotating a line of text turns a hole page

2012-03-31 Thread Holger Herrlich
Thank you, that single line does the job. Lg Holger On 03/30/2012 12:30 AM, Tadziu Hoffmann wrote: However, is it possible to fix it at the groff level. I don't think so. Have to correct myself. If device escapes count as at the groff level then it is possible with the following

[Groff] rotating a line of text turns a hole page

2012-03-29 Thread Holger Herrlich
Hi, I have a problem setting a line of rotated text (test.groff). Output device is post script. Here is some processing (test.sh) that all succeeds but finally on a call to ps2pdf the page containing the rotated line itself is rotated by 180deg. Reasons unclear. A preceeding void helped,

Re: [Groff] Using variables from register within fractions or equations

2012-02-17 Thread Holger Herrlich
On 02/17/2012 02:45 PM, maouinin wrote: \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2 father on: \*n \ recalls string of name n \v'-1m' \ vertical move up one (1) line (m), this is a value. Note that \v for instance will interpret values by a default unit, used in absence of one given. Thereas

Re: [Groff] table column spacing

2011-04-14 Thread Holger Herrlich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 groff-file: .TS center box; l s s l c s s c s s l |6 n0.5i c1 n |6 n1 c1 n. Format DIN-A .sp .5 mm in _ DIN-A0 841 \[mu] 118933.11 \[mu] 46.81 DIN-A1 594 \[mu] 841 23.39 \[mu] 33.11 DIN-A2 420 \[mu]

Re: [Groff] table column spacing

2011-04-07 Thread Holger Herrlich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How about floating point distances. I got an error, cause of . finalizes the preamble. (Of cause one may use 0 distances at the preamble and put horizontal spaces in the table data.) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux)