diff --git a/author/topics/blocks/images.adoc b/author/topics/blocks/images.adoc index de3e559b..6b1b88db 100644 --- a/author/topics/blocks/images.adoc +++ b/author/topics/blocks/images.adoc @@ -185,6 +185,26 @@ image::logo.jpg[height=150] -- ==== + +The `width` attribute, can also have the values `full-page-width`, `narrow`, +and `text-width`, which is used in PDF to indicate how wide an image is rendered +against text, particularly if the text is formatted in +multiple columns [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.8.6]. + +[source,asciidoc] +---- +[width=narrow] +image::abc.png[] +---- + +[source,asciidoc] +---- +[.figure,width=narrow] +==== +image::abc.png[] +==== +---- + NOTE: Treatment of image resizing may slightly differ across output formats. diff --git a/author/topics/blocks/tables.adoc b/author/topics/blocks/tables.adoc index b3c1d3de..42558e89 100644 --- a/author/topics/blocks/tables.adoc +++ b/author/topics/blocks/tables.adoc @@ -96,8 +96,9 @@ It could be either: * a percentage (e.g. `70%`); or * a pixel count (e.g. `500px`). +* `full-page-width` and `text-width`, used only in PDF [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.8.6] -NOTE: The `width` attribute value aligns with HTML CSS and HTML 4 behavior. +NOTE: The non-PDF `width` attribute values align with HTML CSS and HTML 4 behavior. [source,asciidoc] ---- @@ -113,6 +114,16 @@ NOTE: The `width` attribute value aligns with HTML CSS and HTML 4 behavior. Will result in the table width spanning 70% of the rendered output medium. +[source,asciidoc] +---- +[width=full-page-width] +|=== +|A |B + +|C |D +|=== +---- + NOTE: This feature is not supported in typical AsciiDoc. == Notes and footnotes