Ask Your Question
0

Can I get straight underlines for subscripts?

asked 2018-12-10 20:42:13 +0100

baziliscus gravatar image

updated 2018-12-10 20:42:30 +0100

When I underline words that include subscript characters, the underline gets chopped up:

choppy underline

Is there a way to get one straight underline for the whole word?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2018-12-10 21:47:40 +0100

RGB-es gravatar image

There are two possibilities, one is a workaround, the other a "proper" solution that involves some extra work with character styles.

The workaround is to use a border instead of underline: select the text → right click → Character → Border tab.

The second possibility is to use an OpenType font that support real subscripts through the sinf or subs OpenType substitution.

image description

I describe how to use OpenType in LibreOffice in my book.

edit flag offensive delete link more

Comments

Interesting.

My favorite font is Lato -- it should qualify as OpenType, right? Underlines are still interrupted though, and I understand that's because my subscripts aren't "real" subscripts.

So how do I make them real?

baziliscus gravatar imagebaziliscus ( 2018-12-10 21:59:41 +0100 )edit

"OpenType" refers to two things: a file format and a smart font technology. I don't have Lato on my system so I cannot tell you if it has the sinf font feature. On my example I used Libertinus Serif. For the last line, a character style was used with an "extended font name" to activate the feature, something like

Libertinus Serif:sinf

OpenType support is a complex topic, but quite powerful. Just check the book I linked above ;)

RGB-es gravatar imageRGB-es ( 2018-12-10 22:08:11 +0100 )edit

I did look at your book but got intimidated when I learned that there is a difference between "subscript" and "scientific inferiors..."

I can get sinf to work with Libertinus. Vollkorn takes subs but not sinf, and Lato does neither.

Anyway: For the time being I'll keep clicking Subscript in the toolbar. I'll leave the subs and sinf to the experts and accept the broken underlines.

Thanks!

baziliscus gravatar imagebaziliscus ( 2018-12-10 23:18:51 +0100 )edit

Lato v2.015 has both sinf and subs although it does use the same replacements for both.
Applying sinf and then underline results in the last example above (labeled OpenType).
The character border example above could easily be done with a character style.
Assign that character style to Control+0 for example and it would be very quick and easy to apply.

LibreTraining gravatar imageLibreTraining ( 2018-12-12 03:13:44 +0100 )edit
2

answered 2018-12-11 09:35:55 +0100

ajlittoz gravatar image

My workaround is to use a specific character style with bottom border. There are advantages to this:

  • it works with any font
  • you can tune the distance text-to-underline, line width and colour to you liking

image description

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2018-12-10 20:42:13 +0100

Seen: 60 times

Last updated: Dec 11 '18