[Groff] Macro to detect end of line

2013-02-02 Thread smoore
I have a consistently appearing extra line happening when line text ends right at the end of the line, and groff inserts a newline, and where I happen to insert a newline, I end of with two blank lines. I am wondering how I might check for this ? I note the hp register as provided

Re: [Groff] passing groff special chars to pdfmark as bookmarks

2012-09-15 Thread smoore
Deri, First pass at it returns the following: gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFFitPage -dPermissions=-4 -dBATCH -sOUTPUTFILE=ztest.pdf ztest_.pdf ztest.add.ps postscript files produced with groff -mpdfmark gs dumps an error: ERROR: /syntaxerror in pdfopenOperand

Re: [Groff] passing groff special chars to pdfmark as bookmarks

2012-09-10 Thread smoore
Is it the single quote apostrophe that is causing the problem, or, is it something else ?   Were I to pass the string with the french special character \['e] it is the 'é' that gets dropped and for the word Séance I get Sance as a bookmark. Is the string that gets passed after the trin an \[\[aq

Re: [Groff] passing groff special chars to pdfmark as bookmarks

2012-09-09 Thread smoore
Can you explain in your own words what is happening with .trin '\C'aq' please.   I have a text procesing sequence that does not afford the time at the moment to re-engineer how I build pdfs, gs / pdfroff. Relying on groff to rip postcript and using ps2pdf to complete the pdf, the above trin fu

Re: [Groff] passing groff special chars to pdfmark as bookmarks

2012-09-05 Thread smoore
Deri, That works right to PDF.  Nice. For those that have used gs to assemble pdfs, setting various pdf properties like permissions and pdf display variables, I wonder how that is to be batched now that groff is going directly to pdf. Are there extensions for these various attributes available

[Groff] passing groff special chars to pdfmark as bookmarks

2012-09-04 Thread smoore
All, I have encoded unicode utf8 chars in groff's special char handling glyphs, \['e], \[^a], ect. These work fine in the body of the text, however, when a macro pulls text for bookmarks, the character disappears. I've thought about protecting the glyph, however, i am thinking now i have to

[Groff] Setting pdf document properties

2009-10-28 Thread smoore
continuing with this stream I have a request to set page display preferences, Page Layout to 'Single Page Continuous' and Zoom to 'Fit Width'. I am having some challenge finding the correct language reference to determine whether this is possible with gs pdfwrite. Thanks.

[Groff] groff page numbering and pdf page counts

2009-08-28 Thread smoore
Hello all, First a great thanks for everyone who takes the time to respond not only to my inquiries, but to that of the list. I have a need to align page counts within adobe pdfs such that the reported page count within adobe matches the physical page number of the document. So I have a title p

[Groff] Setting pdf document properties

2009-08-10 Thread smoore
All, I am wondering where I find the specifications within pdfmark to set the following document properties? PDF Security: Defaults to No Security. I would like to change this to: Security Method: Password Security Also, I assume these settings are subset of Security Method: Document Open Pass

[Groff] Handling '...'

2009-06-19 Thread smoore
All, Wondering how best to do this. I have an occasion where '...' is the first set of chars on a line. How do I rightly escape the first . so it does not get translated as a macro '.' named '..' ? Scott

[Groff] [Fwd: Re: Available for small pdfmark project help]

2009-06-09 Thread smoore
Further >> and, creates a table of contents with >> links to the referenced page within the same document. >To achieve that, you will need to create an auxiliary file, >specifying the appropriate `pdfhref L' calls, and then source that >into your document. You will not be able to accomplis

[Groff] Re: Available for small pdfmark project help

2009-06-07 Thread smoore
Almost there. >> and, creates a table of contents with >> links to the referenced page within the same document. >To achieve that, you will need to create an auxiliary file, >specifying the appropriate `pdfhref L' calls, and then source that >into your document. You will not be able to accompli

Re: [Groff] Available for small pdfmark project help

2009-05-08 Thread smoore
Keith, Further questions: I notice that as I run a single pass with .pdfbookmark I get the necessary bookmarks, and the links function well. No title page, no separate table of contents. I have a custom title page (postscript) I seek to prepend to the document, and as I do, the links then are

[Groff] Available for small pdfmark project help

2009-05-07 Thread smoore
Thanks Keith. I will revisit the pdfhref -L links to destinations in a separate post. Does .pdfboomark by default create a break/space in the body of the text ? I am noticing this affect. Ive tried 'pdfbookmark ... no such resolution. Scott >> I am looking for clarification on how to incorp