click the 'Documents' header to see previous entries
https://rainbowstampsandcoins.blogspot.com/search/label/documents
4.4.2 Bettter aligning headers on multiple boxes
For the next exercise, we start with a new page, add it to Test Design 7
Copy-paste the following codes:
# ------------------------------------------------------------------------------
# a second page
#
------------------------------------------------------------------------------
PAGE_START
PAGE_RULE_H (0.1 0 5)PAGE_TEXT_CENTRE (HB 12 "\nExamples of STAMP_HEADING_PADDING.\n")
PAGE_RULE_H
(0.1 0 5)
With this command, we will see how we can get better headings to our boxes.
In Module 1 D, we saw how to add a heading on top of a box, by using the command STAMP_HEADING right after the ‘STAMP_ADD’-command.
On the second page, we add 3 boxes, like we did in the first
page, and now we add the command ‘STAMP_HEADING’ after the first, and the third
box.
STAMP_HEADING has 3 pm’s:
font and size – “header placed
between double straight quotes”
Copy-paste also the following codes :
PAGE_TEXT (HN 10 "Default settings:")
ROW_START_FS (HN 6 0.1 6.0)
STAMP_ADD (25.0 28.0 "1/2d \n green" "sg 3" "" "sacc 2")
STAMP_HEADING(HN 14 "Heading on\nfirst box")
STAMP_ADD (25.0 28.0 "1d \n rose red" "sg 4" "" "sacc 3")
STAMP_ADD (25.0 28.0 "1 1/2d \n chesnut" "sg 5" "" "sacc 4")
STAMP_HEADING(HN 14 "Heading on \nthird
box ")
For the purpose of this exercise, the header font is set on 14 pt, which is quite large, seen the size of the boxes. Generate the PDF, and close again.
Just like we were able to adjust all boxes at once (see 4.4.1), we can also use one code to put the headers closer to, or further away from the boxes.
In both cases, this command needs to be placed before the command to make boxes.
Add the codes below, to your program:
# Example 1 putting the distance on 6 mm extra:
STAMP_HEADING_PADDING (6.0)
PAGE_TEXT (HN 10 "Heading padding on 6.0mm:")ROW_START_FS (HN 6 0.1 6.0)
STAMP_ADD (25.0 28.0 "1/2d \n green" "sg 3" "" "sacc 2")
STAMP_HEADING(HN 14 "Heading on \nfirst box")
STAMP_ADD (25.0 28.0 "1d \n rose red" "sg 4" "" "sacc 3")
STAMP_ADD (25.0 28.0 "1 1/2d \n chesnut" "sg 5" "" "sacc 4")
STAMP_HEADING(HN 14 "Heading on\nthird box ")
# Example 2 putting the distance 3 mm closer than default.
STAMP_HEADING_PADDING (-3.0)
PAGE_TEXT (HN 10 "Heading padding on -3.0mm:")
ROW_START_FS (HN 6 0.1 6.0)
STAMP_ADD (25.0 28.0 "1/2d \n green"
"sg 3" "" "sacc 2")
STAMP_HEADING(HN 14 "Heading on \nfirst box")
STAMP_ADD (25.0 28.0 "1d \n rose red"
"sg 4" "" "sacc 3")
STAMP_ADD (25.0 28.0 "1 1/2d \n chesnut"
"sg 5" "" "sacc 4")
STAMP_HEADING(HN
14 "Heading on\nthird box ")
Create the PDF and close afterwards:
Similar to the box adjustment-command, this command
can be undone by adding:
STAMP_HEADING_PADDING (0)
This will set the padding back to 0 (default setting).
to be continued....
previous part : https://rainbowstampsandcoins.blogspot.com/2021/04/making-your-own-album-18.html
next part : https://rainbowstampsandcoins.blogspot.com/2021/04/making-your-own-album-20.html
No comments:
Post a Comment