[Solved] Hanging Indent for list of definitions

Writing a book, Automating Document Production - Discuss your special needs here
Post Reply
Kat27888
Posts: 12
Joined: Mon Jan 10, 2022 6:50 pm

[Solved] Hanging Indent for list of definitions

Post by Kat27888 »

I have a list of definitions in my document. I want a tab stop after the name of the first definition for the definition description. As it is more than one line I want the next and subsequent lines to align with the same tab stop, a hanging indent. I have tried hanging indent from styles and formatting but this causes the definition (before the tab stop) to indent slightly whereas I want that to stay at the margin (as I only want 1 tab stop where the definition description goes). I have played about with indent and spacing tab to no avail. Thanks in advance. (PS I realise it would probably be easier to do a table for this).
Last edited by Kat27888 on Thu Dec 01, 2022 11:24 am, edited 2 times in total.
Open office 4, MAC OS Monterey version 12.11
User avatar
floris v
Volunteer
Posts: 4498
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Hanging Indent

Post by floris v »

The trick is that if you don't want the first line to be indented, you set the Before text and First line to the same absolute values, so Before text might become 4 cm, First line then becomes -4 cm. In that case also set a left-aligned tab at 4 cm on the tabs tab.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Kat27888
Posts: 12
Joined: Mon Jan 10, 2022 6:50 pm

Re: Hanging Indent

Post by Kat27888 »

Thanks I tried that but it doesn't work for what I want to do. I found a work around. I did my description first at 4cm hanging indent tab and then at the margin I added before the indent arrow the definition name. However that limits the number of characters I can use and it means I can only use the first line for the definition name. I tried to use columns but as far as I can see that only allowed me to use 2 equal sized columns which I don't want.
Open office 4, MAC OS Monterey version 12.11
User avatar
MrProgrammer
Moderator
Posts: 5105
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Hanging Indent

Post by MrProgrammer »

Kat27888 wrote: Thu Dec 01, 2022 12:13 am I want a tab stop after the name of the first definition for the definition description. As it is more than one line I want the next and subsequent lines to align with the same tab stop, a hanging indent.
Example of hanging indent using a style.
202211301852.odt
(26.43 KiB) Downloaded 305 times

Kat27888 wrote: Thu Dec 01, 2022 1:14 am However that limits the number of characters I can use and it means I can only use the first line for the definition name.
If your definition names don't fit into the 4cm area of the first line, you either need to make that area wider, make the font for those characters smaller, or use a 2-column table for your definitions. For the latter, select the definitions and use Table → Convert → Text to Table → Separate at → Tabs. Then apply the Text Body style instead of Hanging Indent.


If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.1, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Kat27888
Posts: 12
Joined: Mon Jan 10, 2022 6:50 pm

Re: Hanging Indent for list of definitions

Post by Kat27888 »

Thanks MrProgrammer the second option worked well for me. I added one large tab stop at 8 cm so could fit my definition name on. I then did the text with only the one tab stop dividing and no other carriage returns. I then converted it to a table and then adjusted the column sizes to suit. I just need to figure out how to remove that gap before the border inside the table before I remove the lines.
Open office 4, MAC OS Monterey version 12.11
Post Reply