About groff and dformat

2022-08-16 Thread Riza Dindir
Hello All, I am trying to get dformat to work. What I did was this. I first tried to include an example dformat script into my document. I got the first example from the troff.org site (https://troff.org/prog.html). The first example for the dformat processor. That example has been using inline e

Re: About groff and dformat

2022-08-16 Thread Thomas Dupond
Riza Dindir wrote: > Hello All, Hi! > I am trying to get dformat to work. What I did was this. > > I first tried to include an example dformat script into my document. I > got the first example from the troff.org site > (https://troff.org/prog.html). The first example for the dformat > process

Re: About groff and dformat

2022-08-16 Thread Riza Dindir
Hello Thomas, To make sure, I have this in my dformat.sh awk -f dformat.awk $* I tried with the dformat.awk that I have found (https://github.com/arnoldrobbins/dformat) and the dformat.awk that you have pointed out (https://github.com/sathlan/dformat). But still I am getting the same error messa

Re: About groff and dformat

2022-08-16 Thread Riza Dindir
Hello Thomas, Finally I was able to use the dformat without problems. The problem was the order in the pipe. In the original paper the author provided an example on the order of the preprocessors. I did not have the correct order. It should have been !sh dformat.sh format-test.ms | pic | tbl | eq

Re: About groff and dformat

2022-08-17 Thread Thomas Dupond
Riza Dindir wrote: > Hello Thomas, Hi! > Finally I was able to use the dformat without problems. Congrats! :) > The problem was the order in the pipe. In the original paper the > author provided an example on the order of the preprocessors. I did > not have the correct order. It should have b

Re: About groff and dformat

2022-08-17 Thread Riza Dindir
Hello Thomas I did need tbl, abd chem for the original document, where I wanted to create a document that had all the elements and preprocessors used in troff. One thing that I realized is this. When you use chem, you can not have the # character in the dformat or other preprocessor blocks, since

Re: About groff and dformat

2022-08-18 Thread Dave Kemper
On 8/17/22, Riza Dindir wrote: > When you use chem, you can not have > the # character in the dformat or other preprocessor blocks, since the > chem macro package does take # as a comment and erases all the > characters to the end of the line. For anyone else who's run into trouble with this, Riz

Re: About groff and dformat

2022-08-21 Thread Riza Dindir
Hello Dave Thanks for the information on the # character. Will use that if needed. But I have solved the issue with the chem/dformat interference with a script. I have written an awk script that will make chem only process its own region. This worked and has eliminated the problems with the other