Scribus Forums

Scribus => Text and Typography => Topic started by: Vharcaen on October 08, 2019, 08:24:01 PM

Title: Title style formatting
Post by: Vharcaen on October 08, 2019, 08:24:01 PM
Hello guys,

I'm looking to accomplish title formatting like in the picture. Is there a way to add a line like that to a style?

Thanks!

(https://i.imgur.com/cZwRT5y.jpg)
Title: Re: Title style formatting
Post by: a.l.e on October 09, 2019, 09:09:58 AM
no, not with a style.

scribus does not have a way to add horizonal lines below (or above, left or right...) a paragraph

But there are easy hacks to achieve this effect (the easiest one is based on a right alinged tab with underline formatting applied to it... which -- under certain circumnstances -- you can indeed define as a style...).

just ask, if you need more details on a hack...
Title: Re: Title style formatting
Post by: Vharcaen on October 09, 2019, 10:39:12 AM
Thanks for the reply :)

If I can't get lines to stick within my text, I'm going to have to can this project.

So it would really help to learn that hack.
Title: Re: Title style formatting
Post by: a.l.e on October 09, 2019, 11:13:11 AM
Here is a _simple_ hack that uses a tab to add a bottom line.

The screen capture is here:

https://peertube.social/videos/watch/2fe159c3-51fb-46a7-b7c0-7b218720bc03

- Show the Properties palette
- Set the frame width to 70 mm
- Add a paragraph after the title
- Hide the Properties palette
- Show the text palette
- Text Properties > Column & text distances > Tabulators
- Define a tabulator at 69 mm (one mm less than the frame width), right aligned
- Activate the "show control chars"
- Insert a tab character
- Colour & Effects:
  - Underline
  - Set the thickness for the underline
  - Set the color for the paragraph with the tab
- Shrink the line spacing

If you know the width of the column, you can create a style with the right tab, the color and the line height already defined.

You can find attached the final .sla file.

[attachment deleted by admin]
Title: Re: Title style formatting
Post by: Vharcaen on October 09, 2019, 11:46:07 AM
Muchas Gracias mate!
Title: Re: Title style formatting
Post by: Vharcaen on October 09, 2019, 06:28:36 PM
Strange. So I did as you suggested. The line shows up in the story editor, but not on the page itself. And also not when printed. (I'm on version 1.4.8 )

(https://i.imgur.com/gGIjSi9.jpg)
Title: Re: Title style formatting
Post by: a.l.e on October 09, 2019, 06:58:07 PM
you need to put the underlined tab on a separate line / paragraph...

i've not tested it, but iirc this should also work with 1.4.
there are small differences there between 1.5 and 1.4 but you should be able to recognize the buttons in 1.4.

i also would not use the story editor but the properties palette... but that's up to you...
Title: Re: Title style formatting
Post by: Vharcaen on October 09, 2019, 07:18:50 PM
I must be doing something terribly wrong.  ;D

It is on a different paragraph yes? And I did select the whole thing. The text behind the tab to show that it's actually underlined.

(https://i.imgur.com/Nj5fGNd.jpg)
Title: Re: Title style formatting
Post by: a.l.e on October 10, 2019, 08:59:30 AM
you don't need any text in line where there will be the line.

- define a right aligned tab at 1 mm less than the frame width
- insert a tab "char" at the beginning of the line
- select the tab "char" and
  - make it underlined
  - set the color of the selection to whatever color you need
  - tweak the underline thickness (through a long click on the "underline" button)

if you cannot get it to work, you might want to ask somebody around you to help you sort this out...
Title: Re: Title style formatting
Post by: Vharcaen on October 10, 2019, 09:24:39 AM
Yeah, the text was only to demonstrate that it definitely underlined the selection.

I'll toy with it some more.
Title: Re: Title style formatting
Post by: Vharcaen on October 10, 2019, 08:31:56 PM
Well figured it out... or rather you did. Found an earlier post, where you advised using underscore as a filler :)

I'm pretty damn happy with the result... Not completely what it should be yet, some page numbering with decoration, need to figure out tables and a few other stuffs, but I'm optimistic. So thanks for your patience!

[attachment deleted by admin]