axf:float-x
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Category Float Extension Properties >> axf:float / CSS (-ah-)float
Specifies horizontal (or vertical if writing-mode is vertical) float alignment.
Value: | none | start | end | left | right | top | bottom | center | inside | outside |
Initial: | none |
Applies to: | fo:float / floated elements |
Inherited: | no |
Percentages: | N/A |
Values have the following meanings.
none | Not floated horizontally (or vertically if writing-mode is vertical). |
start | Floated to the start side. Same as left in horizontal left-to-right writing-mode. |
end | Floated to the end side. Same as right in horizontal left-to-right writing-mode. |
left | Floated to the left side. Used only for horizontal writing. It cannot be specified for vertical writing. |
right | Floated to the right side. Used only for horizontal writing. It cannot be specified for vertical writing. |
top | Floated to the top. Used only for vertical writing. It cannot be specified for horizontal writing. |
bottom | Floated to the bottom. Used only for vertical writing. It cannot be specified for horizontal writing. |
center | Floated to the center horizontally (or vertically if writing-mode is vertical). |
inside | Floated to the inside (left side on a right page, right side on a left page). Used only for horizontal writing. It cannot be specified for vertical writing. |
outside | Floated to the outside (right side on a right page, left side on a left page). Used only for horizontal writing. It cannot be specified for vertical writing. |
XSL-FO sample:
| <fo:root xml:lang="ja" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"> | |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| Antenna House, Inc. | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| 段組内フロートの自動配置の設定例 | |
| </fo:block> | |
| </fo:block> | |
| ||
| axf:float-x="alternate" で段組内に配置するフロートの水平(縦書きでは垂直)方向を自動調整できます。axf:float-x="alternate" 指定があると最初の段のときは end側、最後の段のときは start側、それ以外では center へ配置します。段組みでないときは center へ配置します。axf:float-x="alternate" の指定は AH Formatter V6.3 から利用いただけます。 | |
| </fo:block> | |
| ||
| <axf:float-x="alternate"> 指定 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco. | |
| ||
| ||
| <fo:block> | |
| Float-sample : width 50mm | |
| </fo:block> | |
| ||
| </fo:float> | |
| Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, | |
| ||
| ||
| <fo:block> | |
| Float-sample : width 30mm | |
| </fo:block> | |
| ||
| </fo:float> | |
| sunt in culpa qui officia deserunt mollit anim id est laborum. | |
| </fo:block> | |
| <fo:block> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | |
| ||
| ||
| <fo:block> | |
| Float-sample : width 50mm | |
| </fo:block> | |
| ||
| </fo:float> | |
| Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi reprehenderit. | |
| </fo:block> | |
| </fo:block> | |
| ||
| ||
| <axf:float-x="none"> 指定(既定値) | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco. | |
| ||
| ||
| <fo:block> | |
| Float-sample : width 50mm | |
| </fo:block> | |
| ||
| </fo:float> | |
| Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, | |
| ||
| ||
| <fo:block> | |
| Float-sample : width 30mm | |
| </fo:block> | |
| ||
| </fo:float> | |
| sunt in culpa qui officia deserunt mollit anim id est laborum. | |
| </fo:block> | |
| <fo:block> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | |
| ||
| ||
| <fo:block> | |
| Float-sample : width 50mm | |
| </fo:block> | |
| ||
| </fo:float> | |
| Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris. | |
| </fo:block> | |
| </fo:block> | |
| ||
| </fo:flow> | |
| ||
| </fo:root> |
Output:
Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |