Dear Flare community,
I'm building a two-column layout for the index in our pdf output. I've created a dedicated Page Layout for the index; it starts with a title page containing the heading in a decoration frame and two body columns, then continues with a page only containing the columns. In the page layout, the body columns seem to be perfectly aligned, but for some reason my output starts like that:
Does anyone of you have an idea where the margin/padding before the start of the left column might come from? This only occurs on the first page of the index, all following pages are ok. At first I thought it might be coming from MadCap:indexProxy, but this does not seem to be the case (margin-top and padding-top of this element only affect the spacing between the text of the index and the black line, which apparently is the border-top of the MadCap:indexProxy). The margin also doesn't come from the index topic - the body section of the topic only consists of <MadCap:indexProxy style="mc-index-headings: true;" />, there is nothing else there. Any suggestions where I should be looking?
Two-column layout in pdf - margin before first index item
-
- Propeller Head
- Posts: 32
- Joined: Thu May 17, 2018 1:55 am
- Location: Germany
Two-column layout in pdf - margin before first index item
You do not have the required permissions to view the files attached to this post.
-
- Sr. Propeller Head
- Posts: 277
- Joined: Fri Feb 13, 2015 8:25 am
- Location: Germany
Re: Two-column layout in pdf - margin before first index ite
Hello,
I would search for it...
1. in the page layout
2. in stylesheet for the style that is used for your heading, i.e. Index
I would search for it...
1. in the page layout
2. in stylesheet for the style that is used for your heading, i.e. Index
Kind regards,
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
-
- Propeller Head
- Posts: 32
- Joined: Thu May 17, 2018 1:55 am
- Location: Germany
Re: Two-column layout in pdf - margin before first index ite
Thanks for your reply
I don't think either of the two is the root of the problem. This is what the relevant parts of the page layout look like:
The positioning of the two body frames seems to be ok to me. They seem to be aligned and I couldn't find any settings that were different from the columns in the "normal" page layout for the following pages of the index, apart from the added decoration frame for the heading (as I said, everything looks good on the following pages of the index).
The heading is in a decoration frame, not in the body of the layout. If there was a margin coming from there, it shouldn't affect the left and only the left body column. I tried it out anyway and stripped away the padding-/margin-bottom of the heading and gave the heading a border-bottom to see what that looked like. This is the result:
There must be something else going on, but I can't figure out what
Edit: Spelling.
I don't think either of the two is the root of the problem. This is what the relevant parts of the page layout look like:
The positioning of the two body frames seems to be ok to me. They seem to be aligned and I couldn't find any settings that were different from the columns in the "normal" page layout for the following pages of the index, apart from the added decoration frame for the heading (as I said, everything looks good on the following pages of the index).
The heading is in a decoration frame, not in the body of the layout. If there was a margin coming from there, it shouldn't affect the left and only the left body column. I tried it out anyway and stripped away the padding-/margin-bottom of the heading and gave the heading a border-bottom to see what that looked like. This is the result:
There must be something else going on, but I can't figure out what
Edit: Spelling.
You do not have the required permissions to view the files attached to this post.
-
- Sr. Propeller Head
- Posts: 277
- Joined: Fri Feb 13, 2015 8:25 am
- Location: Germany
Re: Two-column layout in pdf - margin before first index ite
My next idea: do you have a blank paragraph before the Index Proxy?
Kind regards,
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
-
- Propeller Head
- Posts: 32
- Joined: Thu May 17, 2018 1:55 am
- Location: Germany
Re: Two-column layout in pdf - margin before first index ite
At first, I also thought these might be the case, but in the body section of the topic there is only the index proxy, nothing else.
Im pretty sure by now that the strange margin has something to do with the proxy itself. It apparently can not be regulated by styling MadCap:indexProxy though. I tried the following:
- I set the margin and padding for MadCap|indexProxy to zero.
- In the index topic, I added a blue horizontal row element before the proxy. I gave the hr a margin and padding of zero.
This is the result: You can see two things here:
- The blue horizontal row aligns perfectly with the right index column
- Though the hr has a padding and margin-bottom of zero, and the indexProxy has a padding and margin-top of zero, there is still whitespace between the two.
I guess there must be something inserted there when the index is built, and this something causes the whitespace. Any ideas how to get rid of this mysterious something?
Im pretty sure by now that the strange margin has something to do with the proxy itself. It apparently can not be regulated by styling MadCap:indexProxy though. I tried the following:
- I set the margin and padding for MadCap|indexProxy to zero.
- In the index topic, I added a blue horizontal row element before the proxy. I gave the hr a margin and padding of zero.
This is the result: You can see two things here:
- The blue horizontal row aligns perfectly with the right index column
- Though the hr has a padding and margin-bottom of zero, and the indexProxy has a padding and margin-top of zero, there is still whitespace between the two.
I guess there must be something inserted there when the index is built, and this something causes the whitespace. Any ideas how to get rid of this mysterious something?
You do not have the required permissions to view the files attached to this post.
Re: Two-column layout in pdf - margin before first index ite
I remember there are p.TOC1 styles to style the look of TOC entries in the output. Perhaps there are similar styles for index entries and the index heading?
So perhaps check the stylesheet for something like p.IndexHeading? If it doesn't exist you could try adding it with a wacky font-color to see if it takes effect.
So perhaps check the stylesheet for something like p.IndexHeading? If it doesn't exist you could try adding it with a wacky font-color to see if it takes effect.
-
- Propellus Maximus
- Posts: 1979
- Joined: Tue Nov 28, 2006 11:18 am
- Location: Crossroads of the West
- Contact:
Re: Two-column layout in pdf - margin before first index ite
When you look at the temporary files in the output folder, you can see some interim files that Flare generates before it makes the PDF. Sometimes these are helpful in troubleshooting what is happening.
When I looked at my index file in that temporary folder, I found that it just showed the index proxy, which isn't surprising. But then I went into my style sheet and I looked at the index proxy settings, and I noticed that I have a default 10px padding and 10px margin on top of my index proxy:
Look there, and make sure both those values are 0, then see if that helps. (Make sure you do it in the PRINT medium section of your style sheet!)
But now that I read your post more carefully, you already checked that (make sure your print style sheet was affected as well. Also, don't just remove the value, set it to 0, so it isn't inheriting something from somewhere else).
My next guess is that you should check the value of this setting (p class IndexHeading):
When I looked at my index file in that temporary folder, I found that it just showed the index proxy, which isn't surprising. But then I went into my style sheet and I looked at the index proxy settings, and I noticed that I have a default 10px padding and 10px margin on top of my index proxy:
Look there, and make sure both those values are 0, then see if that helps. (Make sure you do it in the PRINT medium section of your style sheet!)
But now that I read your post more carefully, you already checked that (make sure your print style sheet was affected as well. Also, don't just remove the value, set it to 0, so it isn't inheriting something from somewhere else).
My next guess is that you should check the value of this setting (p class IndexHeading):
-
- Propeller Head
- Posts: 32
- Joined: Thu May 17, 2018 1:55 am
- Location: Germany
Re: Two-column layout in pdf - margin before first index ite
Thank you, doc_guy and Psider! It was indeed the p.IndexHeading. Seems like it is automatically inserted at the beginning of the index in the build process. I set its margin and padding to 0, and everything looks fine now