On 19 March 2015 at 10:08, Ken McGlothlen <[email protected]> wrote:
> Thank you, Lex; that was helpful.
>
> On Wednesday, March 18, 2015 at 4:28:07 PM UTC-7, Lex Trotman wrote:
>>
>> On 19 March 2015 at 08:59, Ken McGlothlen <[email protected]> wrote:
>> > Problem one: I'm not sure how posattrs works here. I'd like to be able
>> > to
>> > say (to typeset this somewhat larger, and to prepend a special prologue
>> > file
>> > that defines the \meta and \isdefinedas macros):
>> >
>> > [tex, meta-example.png, magstep="2", prologue="prologue.tex"]
>>
>> Note that if you quote *any* values you should quote them all,
>> including the positional ones.
>> [...]
>> If you don't want the positional attributes don't use posattrs then :)
>
>
> See? I said I was misunderstanding something. :)
>
>>
>> You have to test if the attribute is defined where you use it, and if
>>
>> its not, use a default value instead, using {attr=default}
>
>
> I understood that bit, but was under the impression that i couldn't do
> something like
>
> {prologue,tex-prologue? --prologue="{prologue=tex-prologue}"}
>
>
> (if prologue or tex-prologue, write out a --prologue option with the
> appropriate value.
>
> Correct me if I'm wrong, of course; that would solve several issues.
>
The docs I linked suggest thats right, just try it (I can't test ATM).
>
>> No. In the example you show above the output of the filter is
>> obviously supposed to go into the file textest.png since thats what
>> the img tag is loading.
>
>
> Hm. So how can I create the appropriate HTML output here? Where do the
> {width} and {height} attributes get read, for example? How can I insert an
> optional imagemap?
In your attributes list, but that only applies to the embedded data-uri IIUC.
Looking back at your OP, it looks like you copied the [tex-block] from
the [image-blockmacro] not from the graphviz filter. The filter does
not have an embedded version. To embed the image you need to have the
output of the encoder base64 encoded, probably best if your filter
program took an extra option to do that and print the result to its
stdout so you can delete lots of the crap from [image-blockmacro].
I'm not sure what HTML tags imagemaps use (I use ASCIIDOC to *avoid*
using HTML :) so I'm not sure what you actually want to do, but if it
includes extra tags then you need to define your configuration to
provide them.
Cheers
Lex
>
> —Ken
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.