Ask Your Question
2

Create style with border around multiple paragraphs [closed]

asked 2014-01-29 09:19:25 +0100

L-user gravatar image

updated 2016-02-19 05:44:14 +0100

Alex Kemp gravatar image

Hi,
using LibreOffice 4.1.4.2 Writer on Windows XP sp3 I would like to have a border around multiple lines (lines are separated by ENTER key - so there are actually paragraphs).

1. Because I have a large document I have decided to create a new paragraph style by selecting from menu: Format | Styles and Formatting.
2. Click on Page style tab on top new opened dialog.
3. Right click on top of "Default Style" and selected New.
4. Organizer tab | Style | Name: My_border_style
5. Borders tab | Line arrangement | Default | Set All Four Borders.
6. OK button to close a dialog. My_border_style appears in list of paragraph styles.
7. In document I have typed in the following text: my text
8. Pressed Enter to get into new line.
9. From toolbar I clicked on icon "Bullets On" to create a new bullet and typed text: my first bullet
10. I have selected both lines.
11. From "Styles and Formatting dialog" still displayed, double clicked on My_border_style. And the result is two borders around each of line: image description
But I would like to have a border outside both text lines (border created in image manipulation program):
image description How to do this?

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-19 05:44:34.507938

4 Answers

Sort by » oldest newest most voted
2

answered 2014-01-30 07:35:33 +0100

L-user gravatar image

Thanks for help. Now I understand that there is a problem with paragraph styles and list styles when using a border. Now I come up with new idea - solution. I decided to not use "lists styles", but instead use <tab> and "-" character at front of "bullet 1 text" and the rest is classic:
1. Select both lines.
2. Menu Format | Paragraph.
a) Border tab.
b) Line arrangement | Default - Set All Four Borders.
c) Shadow style | Position | Cast Shadow to Bottom Right.
d) Properties | "Merge with next paragraph" checked as default.
3. Click on OK button.

P.S. Does someone know if there exists a new feature (like enhancement) request for this problem?
Thanks.

image description</tab>

edit flag offensive delete link more

Comments

Thanks. I forgot to mention this workaround. You can use the List 1 style as a basis and create a series of custom paragraph styles (e.g., List 1 border L1, List 1 border L2, etc.) and simply set the tabs for these accordingly, to use a style-based solution. Inelegant, but effective. Bug fdo#54669 indicates a related problem with indent+border, however I can't find an existing enhancement request for this so please create one. It may get closed due to ODF/OOXML issues, but at least this will be recorded.

oweng gravatar imageoweng ( 2014-01-30 08:11:14 +0100 )edit
4

answered 2014-01-29 11:21:28 +0100

Regina gravatar image

updated 2014-01-29 11:33:20 +0100

I assume, that you have already checked "Merge with next paragraph" in the border dialog page. But merging does only work if, "These styles are only merged if the indent, border, and shadow styles of the next paragraph are the same as the current paragraph." (cite from help). So you need to give the list and the normal paragraph identical indent.

edit flag offensive delete link more

Comments

I can't find that statement in the online help. In any case, this is essentially correct, and is a constant annoyance that indents and borders are related in this manner.

oweng gravatar imageoweng ( 2014-01-30 00:40:54 +0100 )edit

Click on button Help in the paragraph style dialog, tab Borders.

Regina gravatar imageRegina ( 2014-01-30 00:51:31 +0100 )edit

I tried that. I get this page using v4.1.4.2.

oweng gravatar imageoweng ( 2014-01-30 01:04:56 +0100 )edit
1

I have used the build-in help of Version: 4.1.5.1. The lower part of that text is missing in the version on help.libreoffice.org . There are sections "Properties", "Merge with next paragraph", and "Merge adjacent line styles". It is in http://opengrok.libreoffice.org/xref/help/source/text/shared/01/05030500.xhp

Look at the source in help.libreoffice.org . There you see the text. Something is broken there.

Regina gravatar imageRegina ( 2014-01-30 01:25:23 +0100 )edit

Yes, "Merge with next paragraph" is checked.

L-user gravatar imageL-user ( 2014-01-30 07:18:22 +0100 )edit
2

answered 2014-01-29 15:16:23 +0100

Oldbwl gravatar image

One quick solution: You can draw a shape - say a rectangle with no colour fill. Type your text as nornal, draw a shape over it and then send the shape to the background.

edit flag offensive delete link more

Comments

1

You can actually just set the area to None rather than send the object to the background, but your workaround is decent advice.

oweng gravatar imageoweng ( 2014-01-30 01:22:20 +0100 )edit
2

answered 2014-01-30 01:18:58 +0100

oweng gravatar image

This is a difficult shortcoming that I feel is complicated by differences in the way indents are defined / catered for under ODF and OOXML. It should be easy to define borders and indents for paragraphs of multiple style in a manner that is unrelated, or at least related only at the request of the user, but unfortunately this is not the case.

This is also one area where the relationship between paragraph styles and list styles is made more complex than it needs to be e.g., as both use separate definitions for indents. By way of example, it should be relatively straightforward to style content like:

separate indent and border definitions

... but sadly this generally requires use of either a table or the suggested workaround by @Oldbwl.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-01-29 09:19:25 +0100

Seen: 1,751 times

Last updated: Jan 30 '14