How to make "zero indent" for List of Tables and List of Figures in the table of contents?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 59
- Joined: Tue Sep 13, 2022 4:13 pm
How to make "zero indent" for List of Tables and List of Figures in the table of contents?
In general, friends, the question is in the title. I'm only asking because I've tried everything and can't seem to find a solution.
The point here is this:
Usually there is no problem with this (unless you are trying to adjust the indentation for subsections in the table of contents). If you try to set it up, lists of tables and figures are automatically indented.
I set the indents like this:
However, I can’t find a way - how to remove the indents (automatically occurring) - before the List of Tables and List of Figures in TOC ...
I will be grateful for any advice!
The point here is this:
Usually there is no problem with this (unless you are trying to adjust the indentation for subsections in the table of contents). If you try to set it up, lists of tables and figures are automatically indented.
I set the indents like this:
Code: Select all
*[class ~= "map/topicref"] *[class ~= "map/topicref"] {
margin-left: 1em;
}
*[class ~= "map/topicref"] *[class ~= "map/topicref"] *[class ~= "map/topicref"] {
margin-left: 1em;
}
*[class ~= "map/topicref"] *[class ~= "map/topicref"] *[class ~= "map/topicref"] *[class ~= "map/topicref"]{
margin-left: 1em;
}
I will be grateful for any advice!
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: How to make "zero indent" for List of Tables and List of Figures in the table of contents?
Post by julien_lacour »
Hello,
This happens because figurelist and tablelist inherit from topicref (see DITA specs for figurelist and tablelist).
You can override this by adding this rule to your CSS customization:
Or if you don't want to use the !important annotation you can modify the following rule in your CSS:
You can debug the CSS to see all the rules applied to a given element and modify them (no need to transform again the document, just refresh the page).
Regards,
Julien
This happens because figurelist and tablelist inherit from topicref (see DITA specs for figurelist and tablelist).
You can override this by adding this rule to your CSS customization:
Code: Select all
*[class ~= "bookmap/figurelist"],
*[class ~= "bookmap/tablelist"] {
margin-left: 0 !important;
}
Code: Select all
*[class ~= "map/topicref"] *[class ~= "map/topicref"]:not([class ~= "bookmap/booklists"]) *[class ~= "map/topicref"] {
margin-left: 1em;
}
Regards,
Julien
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service