On 26/08/12 13:20, Lex Trotman wrote:
On 26 August 2012 06:03, Martin Horauer <[email protected]> wrote:
Using the LaTeX backend I try to mimic the latex-tufte style. To that end I
want to place admonitions in the margins which can be quite easily
accomplished by editing the latex.conf configuration file. What's tricky,
however, is to control the vertical placement of individual admonitions
within the margin. One idea that came to my mind is to add an additional
option in the asciidoc markup and process this information within the
configuration file. For example in my tufte.txt asciidoc source file I'd
like to write:
[Note, -10mm]
Shift this note in the margin upwards by 10mm.
And in the latex.conf backend I'd like to process this with something
similar like:
[admonitionblock]
\marginnote[{offset}]\{\raisebox\{-0.2\height\}\{\includegraphics[width=5mm]\{{icon={iconsdir}/{name}.pdf}\}\}|\}
Here {offset} should be substituted with -10mm. Is this somehow possible?
Need I edit asciidoc.conf and add a posattrs=style,offset somewhere?
Hi,
You can refer to the positional attribute as {1} without any special
handling, or you could make it a named attribute, say vertical-offset,
and use it like
[Note, vertical-offset=-10mm]
minor typos: ["Note", vertical_offset="-10mm"]
The advantage of the latter is that it is self documenting of your
special handling when someone else reads your file.
Cheers
Lex
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/asciidoc/-/IX4fU3NdlHMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.