Open main menu

Changes

636 bytes added ,  10:36, 14 September 2023
no edit summary
</cd:command>
</cd:variants>
<cd:description>The <code>userdata</code> environments provides provide a optional argument which let you unlike the the <code>\start ... \stop</code> environment pass your own values to the content of the environment.
New layouts for It is possible to define a rendering setup by use of the environment <code>\defineuserdataalternative</code> command. Within that rendering setup, the actual userdata content is saved as a buffer and can be created with the retrieved using <code>\defineuserdataalternativegetinlineuserdata</code> command.
</cd:description>
<cd:examples><cd:example title="Simple use"><context source="yes">\defineuserdata [epigraph] \startuserdata [epigraph] [author={Sean B. Carrol}] The fraction of fossil olfactory receptor genes is significantly higher in all species with full color vision. This suggests that the evolution of trichromatic vision --- which allows these primates to detect food, mates, and danger with visual cues --- has reduced their reliance on the sense of smell. \qquad \userdataparameter{author}\stopuserdata</context></cd:example><cd:example title="Using a rendering setup"><context source="yes">
\defineuserdataalternative [epigraph] [renderingsetup=userdata:epigraph]