You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to extend the current meta data file (#4) to support variables.
Variables can be mentioned in the Metadata file:
title = "My document title"
authors = ["The authors name"]
version = 0.0.1
language = "de-de" # Language of the document - used for example for hyphenation when typesetting
[variables]
release-date = "2022-04-30"
and used
The release date of this document is <var name="release-date"/>.
<image label="image1" src="image.png">Image caption</image>
<paragraph>
Check out the Image on page <ref to="image1"><var name="TARGET_PAGE"/></ref>!
</paragraph>
The text was updated successfully, but these errors were encountered:
Basics
We need to extend the current meta data file (#4) to support variables.
Variables can be mentioned in the Metadata file:
and used
Predefined variables
Predefined variable names are written in caps.
Not all predefined variables are mentioned in the meta data file.
The
ref
element using the context of the image labelled withimage1
. The above is syntactic sugar for the following:We can do more cool tricks:
The text was updated successfully, but these errors were encountered: