Page 1 of 1
How to reduce the indent from the pictures - to the titles of them (the title is located at the bottom)?
Posted: Fri Dec 02, 2022 1:44 pm
by DAN SEA
Tried to fix it by applying in css file:
1) parameter for title: margin-top: 0px
2) parameter for the image: margin-bottom: 0px
It does not work ... I will be grateful for any advice!
p.s. I was able to place title under the picture - there are no problems with this. The problem is only with decreasing the margin from the picture to its title.
Re: How to reduce the indent from the pictures - to the titles of them (the title is located at the bottom)?
Posted: Sat Dec 03, 2022 7:03 pm
by chrispitude
Hi Dan,
Can you attach a simple testcase, perhaps a single .dita file that uses a single image file?
Re: How to reduce the indent from the pictures - to the titles of them (the title is located at the bottom)?
Posted: Sat Dec 03, 2022 10:19 pm
by DAN SEA
I can't do that unfortunately (due to the corporate restrictions of copying)...

Maybe we can do it differently: can you post an example that will work?
And one more directly such a "burning" question: I can't change the size of the picture in any way (stupid, but true). Image in svg format, approximately 1536 x 836 px. The sheet format of the oXygen document is regular A4.
Tried:
1) set the size of the image when pasting
2) set dimensions in attributes (width, height)
3) set the size in the attributes (size: 100)
4) set in the attributes "fit to size" (scalefit: yes)
ABSOLUTELY NOTHING works. I just don’t understand why this is so ... The picture is 1536 x 836 px in size, it doesn’t have any “fields” around (in the sense that the program fit it - but I think it’s not - this is not the situation, I checked ).
If you could help me with this as well, I would be extremely grateful!
Re: How to reduce the indent from the pictures - to the titles of them (the title is located at the bottom)?
Posted: Sun Dec 04, 2022 5:46 pm
by chrispitude
Hi Dan,
Try this testcase:
chemistry_figures_for_dan.zip
You will need to transform from the map, not the topic, so the CSS is applied:
image.png
Hi Syncro Soft,
Somehow the
@scale attribute does not seem to be working in the PDF Chemistry transformation. You might want to take a look.
Re: How to reduce the indent from the pictures - to the titles of them (the title is located at the bottom)?
Posted: Sun Dec 04, 2022 5:48 pm
by chrispitude
Dan, I just realized something. If you are already setting margins to zero and you still see spacing, then the whitespace might be a part of the image itself, and you will need to edit the image.
Re: How to reduce the indent from the pictures - to the titles of them (the title is located at the bottom)?
Posted: Tue Dec 06, 2022 6:01 pm
by DAN SEA
It hasn't worked yet - but after running your file - all my settings have been lost

)
I will try more...