Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to Create a Rounded Corner Background for Text in InDesign

Community Beginner ,
Aug 23, 2024 Aug 23, 2024

I cannot find a forum post with this topic.

 

This is the PDF output of markdown from Obsidian note-taking software showing the default styling for hashtags that link search terms or notes together accross notes.

 

Is there anyway to make a style for this in indesign? Character style underline/strikethrough does not have a rounded corner option, and paragraph rules go accross the whole paragraph.

 

-------------------------------

 

Screenshot 2024-08-24 at 12.01.18.png

 

<Title renamed by MOD>

TOPICS
How to , Print , Type
920
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Beginner , Aug 23, 2024 Aug 23, 2024

I have sort of answered my own question, hopefully helpful for someone else:

 

1) Make a new stroke style with rounded corners

- Go to Stroke menu then Stroke Styles from the drop down menu

- Press New.. and choose the type "dash"

- Adjust the stroke so there is essentially no gap in the dash (fake solid line)

- Apply rounded corners and give style a memorable name. Press Add then ok.

 

2) Add the stroke to the character style

-Go to Character Styles, Underline Options, and choose the type to be the styl

...
Translate
LEGEND , Aug 26, 2024 Aug 26, 2024
quote

Hi @Louise00 ,

you say:

3) Fudge for horizontal padding

Add a space either side of your desired word and apply character style (can't find any programmatic way to add horizontal space before/after words at this point.

 

That's the crucial point for making it fully automatic with a GREP Style.

Well, I have no solution for this…


By @Laubender

 

In this case - I think there is a solution: 

 

Find what: 

 

(.+)

with CharStyle selected 

 

Change to:

 

[space]$0[space]

 

Of course [space] should be

...
Translate
Community Beginner ,
Aug 23, 2024 Aug 23, 2024

I have sort of answered my own question, hopefully helpful for someone else:

 

1) Make a new stroke style with rounded corners

- Go to Stroke menu then Stroke Styles from the drop down menu

- Press New.. and choose the type "dash"

- Adjust the stroke so there is essentially no gap in the dash (fake solid line)

- Apply rounded corners and give style a memorable name. Press Add then ok.

 

2) Add the stroke to the character style

-Go to Character Styles, Underline Options, and choose the type to be the style you just made in the stroke style preference.

-Use Weight and Offset with preview checkbox checked, in order to position and size the vertical height of the stroke.

 

3) Fudge for horizontal padding

Add a space either side of your desired word and apply character style (can't find any programmatic way to add horizontal space before/after words at this point.

 

Screenshot 2024-08-24 at 12.32.30.pngScreenshot 2024-08-24 at 12.35.08.png

 

Hope it helps someone else!

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 26, 2024 Aug 26, 2024

Hi @Louise00 ,

you say:

3) Fudge for horizontal padding

Add a space either side of your desired word and apply character style (can't find any programmatic way to add horizontal space before/after words at this point.

 

That's the crucial point for making it fully automatic with a GREP Style.

Well, I have no solution for this…

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 26, 2024 Aug 26, 2024
quote

Hi @Louise00 ,

you say:

3) Fudge for horizontal padding

Add a space either side of your desired word and apply character style (can't find any programmatic way to add horizontal space before/after words at this point.

 

That's the crucial point for making it fully automatic with a GREP Style.

Well, I have no solution for this…


By @Laubender

 

In this case - I think there is a solution: 

 

Find what: 

 

(.+)

with CharStyle selected 

 

Change to:

 

[space]$0[space]

 

Of course [space] should be replaced with a desired kind of space. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 26, 2024 Aug 26, 2024
LATEST

Thanks Robert, that enhances the approach.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines