0 votes
222 views

I need to underline all \nd text. The default underline, however, is a bit too low. The PTXprint Technical Reference lists:

\UnderlineLower 0.1em — Distance below base line of underline rule

But what do I do with this? How do I use it to make the underline on all \nd text a bit higher?

PTXprint by (607 points)
reshown | 222 views

5 Answers

0 votes

Hi @EricP,

The Advanced tab has these settings available as tweakable parameters:

Play with those until you get the underline looking just right.

by (3.2k points)
0 votes

Great, except I think the tooltip is wrong. -0.10 is too low, but changing it to -0.25 raised it higher where I wanted to see it.

by (607 points)
0 votes

The description is wrong. The value is not related to the baseline, but the bottom of any descenders actually present, (tails of g, p etc)with the presumption that (since we haven’t any way of skipping them) crossing out bits of letters is bad, and underlining just below the bottom of the lowest descent in a given string is a better idea.

If you set a negative value, beware that at present it will cross out the body of the text if there is no descenders.

If there’s a demand for baseline relative underline, that will eventually be signaled by a negative value.

by (1.1k points)
0 votes

How does this look for the improved tooltip?

This sets the vertical position
(in ems) of the underline relative
to the bottom of any descenders. 
Negative values raise it.
Positive values lower it.
by (3.2k points)
0 votes

Further testing has shown that the intended functioning was getting confused by switching off XeTeXuseglyphmetrics. I’m considering this a bug, and unfortunately people are probably used to it, since XeTeXuseglyphmetrics was normally turned off by the python code. In fixing that, I’ve also fixed the partly implemented negative value = absolute position.

Intended default value:\def\UnderlineLower{0.2em}
image

Old, buggy behaviour \def\UnderlineLower{0.2em}
image

New absolute position: \def\UnderlineLower{-0.2em)
image

Set to zero:
image

Set to -0.1:
image

My suggestion for a tooltip:

This sets how far (in ems) underline is below the text
and what it is relative to. If positive or zero, it is the distance
below the bottom of any descenders. If negative,
it is the distance below the baseline. There is (now) no way
to use underlining to cross out text.

by (1.1k points)

Related questions

0 votes
1 answer 14 views
I've produced a PDF file with PTXprint. When I open it with Firefox on my desktop, Firefox displays the title of ... reader won't see this confusing title in the wrong language.
bit 495 asked Nov 17, 2025
0 votes
3 answers 330 views
I'm getting Luke and Acts ready to be printed as a booklet, and I can't figure out how to put an intermediate title page before the beginning of Acts.
Jamie 102 asked Aug 6, 2024
0 votes
2 answers 191 views
I got a new computer and installed PTXprint. It autoloads my KYU Healing Wounds auxiliary project but doesn't load ... the standard translation project but that also doesn't work.
JohnB 102 asked Apr 9, 2024
0 votes
1 answer 22 views
The basic idea for our diglot layout is seen below. In our project, the secondary text of the diglot is an ... just on facing pages. Are any of these approaches possible?
Christopher F 120 asked Apr 15, 2025
0 votes
2 answers 252 views
I am trying to print Ajami (Arabic font) Scripture. But all the consonants print individually rather than connected within ... looks like this: It should look like this: Thanks!
Kirk 123 asked Jul 12, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Very truly I tell you, whoever accepts anyone I send accepts me; and whoever accepts me accepts the one who sent me.
John 13:20
3,037 questions
5,994 answers
5,661 comments
2,022 users