Added cross references
1 parent c02a277 commit e36aa2ec920fbcb6891c69203c40cc1422a3cc5f
Nigel Stanger authored on 3 Mar 2019
Showing 1 changed file
View
56
quick-reference.markdown
## Document content
 
### Sections (`sectioning.xml`)
 
| Item | Element(s) | Attributes | Notes
| ---- | ---------- | ---------- | -----
| section | `section` | `label=`*`<string>`* |
| section title | `title` | | within `<section>`
| Item | Element(s) | Attributes | Notes
| ---- | ---------- | ---------- | -----
| section | `section` | `[label=`*`<string>`*`]` |
| section title | `title` | | within `<section>`
 
### Document title (`titling.xml`)
 
These all occur at the top level of the enclosing `<document>` element.
| Item | Element(s) | Attributes | Notes
| ---- | ---------- | ---------- | -----
| image | `image` | `basename=`*`<filename>`* | without suffix
| | | `format=`*`<string>`* | e.g., png”, pdf
| | | `inline=`**`no`**`|yes` | image will be scaled to line height
| | | `latex-options=`*`<string>`* | pass-through LaTeX options
| | | `location=`*`<path>`* |
| | | `[inline=`**`no`**`|yes]` | image will be scaled to line height
| | | `[latex-options=`*`<string>]`* | pass-through LaTeX options
| zoomable image | `provide-large-version` | | within `<image>`
 
### Floating elements (`floaters.xml`)
 
| Item | Element(s) | Attributes | Notes
| ---- | ---------- | ---------- | -----
| figure | `figure` | `border-placement=box|`**`none`**`|{bottom|left|right|top}` |
| | | `label=`*`<string>`* |
| | | `latex-placement=`*`<string>`* | LaTeX only; usually `b|h|p|t`
| table | `table` | `border-placement=box|`**`none`**`|{bottom|left|right|top}` |
| | | `label=`*`<string>`* |
| | | `latex-placement=`*`<string>`* |
| caption | `caption` | | within `<figure>` or `<table>`
| figure | `figure` | `[border-placement=box|`**`none`**`|{bottom|left|right|top}]` |
| | | `[label=`*`<string>]`* |
| | | `[latex-placement=`*`<string>]`* | LaTeX only; usually `b|h|p|t`
| multipart table | `part` | | within `<table>`
| caption | `caption` | | within `<figure>` or `<table>`
| table | `table` | `[border-placement=box|`**`none`**`|{bottom|left|right|top}]` |
| | | `[label=`*`<string>]`* |
| | | `[latex-placement=`*`<string>]`* |
 
### Cross references (`cross-references.xml`)
 
| Item | Element(s) | Attributes | Notes
| ---- | ---------- | ---------- | -----
| page label | `page` | `label=`*`<string>`* |
| reference | `reference` | `label=`*`<string>`* |
| | | `[include-pageref=`**`no`**`|yes]` |
 
### Bibliographies (`bibliography.xml`)
 
| Item | Element(s) | Attributes | Notes
| | | `[width=`*`<decimal>`*`]` | between `0` and **`1`**
| column | `column` | `[align=center|`**`left`**`|right]` |
| | | `[width=`*`<decimal>`*`]` | between `0` and `1`
 
modules/cross-references.xml: <template name="reference" match="reference[@label]">
modules/cross-references.xml: <template name="broken-reference" match="reference[not( @label )]">
modules/cross-references.xml: <template name="section-reference" match="section" mode="reference">
modules/cross-references.xml: <template name="figure-reference" match="figure" mode="reference">
modules/cross-references.xml: <template name="table-reference" match="table" mode="reference">
modules/cross-references.xml: <template name="exercise-reference" match="exercise" mode="reference">
modules/cross-references.xml: <template name="item-page-reference" match="section|figure|table" mode="page-reference">
modules/cross-references.xml: <template name="page" match="page[@label]">
modules/cross-references.xml: <template name="broken-page" match="page[not( @label )]">
modules/cross-references.xml: <template name="direct-page-reference" match="page[@label]" mode="reference">
modules/hyperlinks.xml: <template name="hyperlink-label" match="hyperlink[@label and node()]">
modules/hyperlinks.xml: <template name="hyperlink-url" match="hyperlink[@url and node()]">
modules/hyperlinks.xml: <template name="empty-hyperlink-url" match="hyperlink[@url and not( node() )]">
modules/hyperlinks.xml: <template name="empty-hyperlink-label" match="hyperlink[@label and not( node() )]">