0 votes
194 views

In the past, I read in some USFM documentation that there is a namespace \z… reserved for user-defined markers. In my Paratext project, I use several backslash markers for character-level markup, e.g.:

\zd for text that I would suggest to delete, which should be hidden in a draft printout
\zs for suggested text that I want to show in a draft printout
\zh for hidden suggested text
\zgl for grammatical labels (e.g. RC - relative clause) to help me find certain grammatical structures that I want to investigate further. This is also hidden text.

The idea is that my national colleagues in the translation team can see my suggestions right there in the text in Paratext, and don’t have to open any Notes.

Those character styles work just fine on screen. They are displayed exactly as formatted in the custom.sty stylesheet, but they cause PTXprint to throw an error. (By the way, Paratext 9’s “export draft PDF” also throws an error with those markers; it also uses XeTeX to create the pdf file.)

Any suggestions what I could do about this?

(My Paratext project uses USFM 2.)

PTXprint by (102 points) | 194 views

3 Answers

0 votes

Hi Rainer, Thanks for posting a great question!

Yes, there are ways to support these user-defined markers. If you have already defined these styles in either custom.sty or ptxprint-mods.sty then you can just enable those on the Advance tab as shown here:
image

If not, then you will need to use the Styles tab to add (or just modify) these user-defined styles. To add new styles (select another similar one, like bd…bd* and then use the Add button to add a style):

Change the parameters and comments as needed:
image
And then You can use color, and size to change the appearance.
image

[Note: there seems to be a bug in 1.5.9 which is preventing the Hide/Exclude Contents of marker, so a workaround is to set the Font size for \zd to 0.01pt which will make it invisible :slight_smile: ]
image

by (3.2k points)

Thank you for the instructions. I tried them with two projects, and they worked! At I first just selected the option to use custom.sty, but the printing failed. So I also defined some custom styles in PTXprint, and got the printout I expected.

Then tried just using custom.sty with another Paratext project [SBEBT - a back translation project], and it also worked.

I closed PTXprint and opened the app again, selected the SBET project, and tried to delete my custom styles that I had previously added, because I figured I don’t need them (and the settings there overwrite some settings in custom.sty). But the Del-Button did not show any effect. Even after closing and opening PTXprint, the added styles were still there!

Here is the screenshot:

So, how can I delete those custom, user-defined styles?

[By the way, the “the Hide/Exclude Contents of markers” \zd and \zh is working just fine for me. No workaround needed.]

Thanks, Rainer

0 votes

Thanks for reporting this bug Rainer.
In my brief testing, I can see that if you use the delete button, and then hit Print, it does actually try to delete the style, but it doesn’t remove the entry from the list on the left. When you close and re-open PTXprint, that marker has (almost) disappeared - it appears in the section “None”! Oops.
We’ll get this fixed for the next release.

Also note that it isn’t possible to delete styles that have come in from a Stylesheet, as they will just re-appear each time PTXprint starts up again. So, even when this is fixed, you will only be able to remove styles that have been manually added using the Styles editor (these end up being stored in the configuration’s ptxprint.sty file).

by (3.2k points)
0 votes

This bug (of not being able to delete added markers) has now be fixed in version 1.5.10 which was recently released.

by (3.2k points)
reshown

Related questions

0 votes
1 answer 51 views
I think the question is clear. I need to set up PTXprint on the new computer so that I can access the projects already created on the old computer. thanks
MnKN 134 asked Feb 3, 2025
0 votes
2 answers 213 views
25 years ago I learned CC tables, and got pretty good at it. Now I am trying to get with the times and learn regular ... get my expression to work in Reg Ex Pal in PTX, too.
mvk1000 206 asked Apr 19, 2024
0 votes
1 answer 23 views
error I'm getting: JAS 3:1-2 Attrib marker 'va' found after 'p' but may only follow 'v' at line 135, char ... up. Is there another solution besides putting the \vp's in Paratext?
Bub 105 asked Nov 6, 2025
0 votes
5 answers 68 views
When I first create a project in PTXprint I can link it to an existing PT-project. I have noticed that sometimes ... , but it happens sometimes.) Hence my question came up.
Tim 934 asked Apr 24
0 votes
2 answers 162 views
I'm just wondering what would happen if a user tries to use PTXPrint, including tasks that pull in Paratext data ... the send/receive is to Internet, Chorus Hub, or Flashdrive?
Ben Pehrson 280 asked May 4, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,037 questions
5,994 answers
5,661 comments
2,022 users