Re: Images as part of ex/implicitly numbered list

Posted by LightGuardjp on
URL: https://discuss.asciidoctor.org/Images-as-part-of-ex-implicitly-numbered-list-tp1161p1164.html

Are you using a block image or inline list? You can also use blocks by using a + at that start of the block. 

[source,asciidoc]
====
1. You could try to have
+
More blocks in a list like this

image::pic.gif
+
2. Another item
====

Have you tried something like the above?

Sent from Mailbox for iPhone


On Sat, Nov 30, 2013 at 9:05 AM, adam820 [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Hey folks,

Using Asciidoctor (and liking it ), to convert some of our Publican/Docbook powered documents. One thing I haven't been able to figure out if it's possible is how to include an image as part of a numbered list (either implicit or explicit). In Docbook, it was pretty simple, as below, just including the mediaobject and then it picked up on the numbering right after (i.e. 1, 2, image, 3, 4). This also worked with admonitions, as well.

		<orderedlist>
			<listitem><para>First ensure that you are both on the <guilabel>Home</guilabel> page, and you are viewing the correct <guilabel>Dashboard</guilabel>. </para></listitem>
			<listitem><para>Now locate the button called <guibutton>Add Widgets</guibutton> and select it.</para></listitem>
			<listitem><para>A dropdown of available <guilabel>Widgets</guilabel> should appear.  Checkmark the Widgets that you would like to have added to your dashboard.</para>
				<mediaobject>
				<imageobject>
					<imagedata fileref="images/General/General-Add_Widget.jpg" format="JPG" width="50%" scalefit="1" align="center" valign="middle" />
				</imageobject>
			</mediaobject>
			</listitem>
			<listitem>
				<para>Now you must choose which column your newly selected <guilabel>Widgets</guilabel> will appear in.  The columns correspond with the layout of the Dashboard, which was selected when the Dashboard was created.</para>
				<note>
					<para>The default Home Dashboard is a 3-column layout unless it has been edited.</para>
				</note>
			</listitem>
		</orderedlist>

In Asciidoc/tor, this seems to break the numbering scheme. Implicit starts over, Explicit starts over with a complaint on the terminal (i.e. 1, 2, image, 1 , 2) . Is there any way to do this? I thought, perhaps, putting the whole list in a block might do it, but no dice. This is pretty helpful if you're trying to show pictoral examples as part of a numbered process.

Thanks in advance!




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Images-as-part-of-ex-implicitly-numbered-list-tp1161.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML