Login  Register

can i masquerade literal/codeblock as image/figure

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

can i masquerade literal/codeblock as image/figure

hjwp

I occasionally want to use ascii-art diagrams as illustrations, but i'd like the captions for them to say "figure 1-1" instead of "example 1-1", is that possible using masquerading somehow?

here's the kind of thing i've been trying:

[[a_diagram]]
[figure]
.A diagram
--
....

   +=====================+
   | ascii diagrams ftw  |
   +---------------------+
   | hello               |
   | there               |
   +---------------------+ 

....
--
I've tried "figure" and "image" but no luck so far?