Bug 92107 - Can not adjust the width of single-column index (Table of Contents)
Summary: Can not adjust the width of single-column index (Table of Contents)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.0.beta1
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-16 09:12 UTC by Jim Avera
Modified: 2015-07-02 08:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
TOC examples (17.35 KB, application/zip)
2015-06-16 20:16 UTC, Gordo
Details
WORKSFOEME screenshot (49.55 KB, image/png)
2015-07-02 05:11 UTC, Kevin Suo
Details
truncation.odt (showing TOC truncation inside a fram) (22.00 KB, application/vnd.oasis.opendocument.text)
2015-07-02 07:11 UTC, Jim Avera
Details
truncation_screenshot.png (131.60 KB, image/png)
2015-07-02 07:11 UTC, Jim Avera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2015-06-16 09:12:21 UTC
In the "Edit Index/Table" dialog, "Columns" tab, the width controls are inactive (grayed out) unless the table has 2 or more columns.  This makes it impossible to control the width of a single-column Table Of Contens.

This prevents using a Table of Contents which is not the full width of the page it is on.  It also effectively prevents putting a TOC inside a frame (without truncating content).

Steps to reproduce:

1. Create a Writer doc with a few "Heading" paragraphs (and possibly other paragraphs)
2. Put the cursor somewhere in the page
3. Insert->Index and Table->Index and Table
4. Click the "Columns" tab
5. Try to set or reduce the width of the (single) column

Actual results: You can't, the width controls are inactive

Expected: Should be able to adjust width of single column
Comment 1 Gordo 2015-06-16 15:19:22 UTC
You can have a separate page style with the margins you want since that is effectively what one column is or you can change the paragraph styles in the TOC to have indents.

I do not see any truncating of content within a frame.
Comment 2 Jim Avera 2015-06-16 19:31:35 UTC
A separate page style won't work because that would change the margins of entire page (right?)  What is wanted is to control with width of the T.O.C. only.  

Note that a T.O.C. can be embedded in the middle of a page (e.g. the title page).  That's particularly useful for small documents.

----

To see truncation when using a frame:

1. In the demo document, put cursor after the "INSERT TOC HERE" line
2. Insert->Frame
3. Expand the frame to, say, 3/4 of the page width and a suitable height
4. De-select the frame itself, then put cursor inside the frame to insert there.
5. Insert->Index and Table->Index and Table

Actual results: The right part of the TOC is invisible... you can't see the page numbers.  And you can't fix that by changing the styles because the TOC over-rides the margins in the styles.
Comment 3 Gordo 2015-06-16 20:16:53 UTC
Created attachment 116593 [details]
TOC examples

I can see page numbers when the TOC is in a frame.

I edited the Contents Heading and Contents 1 styles to have indents.  Any shading or borders are settings for how they appear and do not appear when printing as can be seen with print preview.

Wihle the attached examples were created in 4.4.4.2, I get the same results in master.

Version: 4.4.4.2
Build ID: f784c932ccfd756d01b70b6bb5e09ff62e1b3285

Version: 5.1.0.0.alpha1+
Build ID: 46564fd97308ce070248482ad65a311a329a2b76
TinderBox: Win-x86@39, Branch:master, Time: 2015-06-15_00:08:53
Comment 4 Gordo 2015-06-22 16:46:14 UTC
Could not reproduce truncation in RC1.

Windows Vista 64
Version: 5.0.0.1
Build ID: 9a0b23dd0ab9652e0965484934309f2d49a7758e

@Jim - Are you on a different OS and/or were you using the 64 bit version of LO?
Comment 5 Kevin Suo 2015-07-02 05:11:35 UTC
Created attachment 116980 [details]
WORKSFOEME screenshot

Hi Jim, would you please try the following:
* In the Index and Table dialog -> Column, make sure not the "2+ columns" is select, not the "1 column"
* make sure the "auto widh" is not selected below.

See my screenshot.

Set to NEEDINFO.
Comment 6 Jim Avera 2015-07-02 06:38:05 UTC
Kevin,   You created 2 columns, not 1 column.  So it is not the problem case. 
The problem occurs only with 1 column.

In other words, you can adjust the column widths with 2+ columns, but not with a single (1) column.  Therefore it is not possible to make a 1-column table more narrow than the default width (except using a frame).

Thanks.



Gordo,  I agree your "TOC examples" uses a frame to make a narrow table, and it works.   Let me find my original document which did not work with a frame (I'll have to clense confidential info first).
Comment 7 Kevin Suo 2015-07-02 06:54:00 UTC
If so, then in my opinion it would be not a bug - it is intended.

For 1-column paragraph, the total width is 100% of the page. On a A4 paper with a 2cm left and right margin, the width is 17 cm, you are not able to adjust it. For 2-column TOC, total total width may be 17cm ( = width of the page) while you can set two columns to be 8.5/8.5, 8.0/9.0, 7.5/9.5 etc. (When you increase one of them, the another one automatically decreases)

If you want to set the width of the whole TOC area, you have to set the page margin.
Comment 8 Jim Avera 2015-07-02 07:10:20 UTC
Kevin, I disagree because changing the Page Format does not work unless the TOC is on a page by itself (see comment #2).

The "obvious" controls to adjust the column width should Just Work.



Gordo, The truncation-inside-frame problem is related to something (unknown) in my specific file, which I will attach.   Maybe someone can figure out what is corrupted, or if I committed a cockpit error, which causes the page numbers to not be visible when a TOC is inside a frame.

-> Please see attached truncation.odt and truncation_screenshot.odt

P.S. I *have* fiddled with the TOC styles, including changing tab stops.  However I can't see anything which should cause right-adjusting tabs to not stop at the edge of the containing frame (and even by default the tab stops are beyond the frame width).
Comment 9 Jim Avera 2015-07-02 07:11:09 UTC
Created attachment 116983 [details]
truncation.odt (showing TOC truncation inside a fram)
Comment 10 Jim Avera 2015-07-02 07:11:38 UTC
Created attachment 116985 [details]
truncation_screenshot.png
Comment 11 Kevin Suo 2015-07-02 08:34:59 UTC
(In reply to Jim Avera from comment #8)
> Kevin, I disagree because changing the Page Format does not work unless the TOC is on a page by itself (see comment #2).

> The "obvious" controls to adjust the column width should Just Work.

That is what the "column width" is designed and behaved, in all LibreOffice versions.

To have the TOC have a different width and appear on the same page, Gordo's suggestion is perfect.