Hello Thomas,
Sorry for late response, I was on a small vacation. Even with your latest suggestion it is still somehow reserving space.
Here are the DDLs:
Wanted layout: (No hidden paragraphs)
Code:
\document
{
\styles
{
Normal
{
Font
{
Name = "Times New Roman"
}
ParagraphFormat
{
LeftIndent = "0mm"
FirstLineIndent = "0mm"
RightIndent = "0mm"
SpaceBefore = "4mm"
SpaceAfter = "4mm"
LineSpacing = "0mm"
}
}
HiddenBookmark : Normal
{
Font
{
Size = 0.01
}
ParagraphFormat
{
SpaceBefore = "0mm"
SpaceAfter = "0mm"
LineSpacingRule = Exactly
LineSpacing = "0.001mm"
KeepTogether = false
KeepWithNext = false
}
}
Paragraph : Normal
{
}
}
\section
[
PageSetup
{
PageHeight = 842
PageWidth = 595
Orientation = Portrait
LeftMargin = "20mm"
RightMargin = "16mm"
TopMargin = "15mm"
BottomMargin = "20mm"
FooterDistance = "10mm"
HeaderDistance = "8mm"
OddAndEvenPagesHeaderFooter = false
DifferentFirstPageHeaderFooter = false
SectionStart = BreakNextPage
PageFormat = A4
MirrorMargins = false
HorizontalPageBreak = false
}
]
{
\paragraph
[
Style = "Paragraph"
Format
{
LeftIndent = 0
RightIndent = 0
}
]
{
\font("Normal"){asdasd}
}
\paragraph
[
Style = "Paragraph"
Format
{
LeftIndent = 0
RightIndent = 0
}
]
{
\font("Normal"){asdasda}
}
}
}
Actual layout:(with hidden paragraph)
Code:
\document
{
\styles
{
Normal
{
Font
{
Name = "Times New Roman"
}
ParagraphFormat
{
LeftIndent = "0mm"
FirstLineIndent = "0mm"
RightIndent = "0mm"
SpaceBefore = "4mm"
SpaceAfter = "4mm"
LineSpacing = "0mm"
}
}
HiddenBookmark : Normal
{
Font
{
Size = 0.01
}
ParagraphFormat
{
SpaceBefore = "0mm"
SpaceAfter = "0mm"
LineSpacingRule = Exactly
LineSpacing = "0.001mm"
KeepTogether = false
KeepWithNext = false
}
}
Paragraph : Normal
{
}
}
\section
[
PageSetup
{
PageHeight = 842
PageWidth = 595
Orientation = Portrait
LeftMargin = "20mm"
RightMargin = "16mm"
TopMargin = "15mm"
BottomMargin = "20mm"
FooterDistance = "10mm"
HeaderDistance = "8mm"
OddAndEvenPagesHeaderFooter = false
DifferentFirstPageHeaderFooter = false
SectionStart = BreakNextPage
PageFormat = A4
MirrorMargins = false
HorizontalPageBreak = false
}
]
{
\paragraph
[
Style = "HiddenBookmark"
]
{
| →ParagraphCommandxELEMENTxUNIQUExIDx1 |
}
\paragraph
[
Style = "Paragraph"
Format
{
LeftIndent = 0
RightIndent = 0
}
]
{
\font("Normal"){asdasd}
}
\paragraph
[
Style = "HiddenBookmark"
]
{
| →ParagraphCommandxELEMENTxUNIQUExIDx2 |
}
\paragraph
[
Style = "Paragraph"
Format
{
LeftIndent = 0
RightIndent = 0
}
]
{
\font("Normal"){asdasds}
}
}
}
Changing the space before and space after for style Paragraph to 0 creates the correct layout, but when any other value is used (in my case is inherited from NORMAL style) then the space after and before doubles.