ordered list in a table cell and image align - Asciidoctor to Docbook

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ordered list in a table cell and image align - Asciidoctor to Docbook

rogerpt
Hi,

There is any possibility to include an ordered list inside a table cell? As an example i have the following text in asciidoctor:

[cols="2*" options="header"]
[grid="none"]
|===
|Col1
|Col2

|Col1
|Col2
[loweralpha]
. Item1
. Item2

I would expect to get something like:

<row>
<entry>col1</entry>
<entry><orderedlist numeration="loweralpha">
<listitem>
<simpara>Item1</simpara>
</listitem>
<listitem>
<simpara>Item2</simpara>
</listitem>
</orderedlist>
</entry>
 </row>

But what I get is something like this:

<row>
<entry align="left" valign="top"><simpara>Col1</simpara></entry>
<entry align="left" valign="top"><simpara>. Item1 . Item2</simpara></entry>
</row>

Regarding the image align, I have tried like it is described in the user's guide, however I didn't manage to have an image with align="center" property in docbook. There is any trick for this?
Reply | Threaded
Open this post in threaded view
|

Re: ordered list in a table cell and image align - Asciidoctor to Docbook

mojavelinux
Administrator
By default, table cells only process inline AsciiDoc markup. If you want it to process block-level content, then you need to set the style of the cell to "a" (for AsciiDoc).

See the following section in the user manual for details and examples:



On Fri, Feb 14, 2014 at 5:01 AM, rogerpt [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

There is any possibility to include an ordered list inside a table cell? As an example i have the following text in asciidoctor:

[cols="2*" options="header"]
[grid="none"]
|===
|Col1
|Col2

|Col1
|Col2
[loweralpha]
. Item1
. Item2

I would expect to get something like:

<row>
<entry>col1</entry>
<entry><orderedlist numeration="loweralpha">
<listitem>
<simpara>Item1</simpara>
</listitem>
<listitem>
<simpara>Item2</simpara>
</listitem>
</orderedlist>
</entry>
 </row>

But what I get is something like this:

<row>
<entry align="left" valign="top"><simpara>Col1</simpara></entry>
<entry align="left" valign="top"><simpara>. Item1 . Item2</simpara></entry>
</row>

Regarding the image align, I have tried like it is described in the user's guide, however I didn't manage to have an image with align="center" property in docbook. There is any trick for this?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/ordered-list-in-a-table-cell-and-image-align-Asciidoctor-to-Docbook-tp1473.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: ordered list in a table cell and image align - Asciidoctor to Docbook

rogerpt
Thanks Dan. It worked, my fault I  haven't read that part in the user manual.

By the way, can you enlighten me about the position of the images?

For instance, I tried (among other option attempts) to do, but I can't manage to have the image centered in docbook.
[[system_overview]]
.System Overview
image::images/system_overview.pdf[,85%, 100%,align="center"]

I expect to have something like:

<imagedata fileref="images/system_overview.pdf" contentwidth="85%" align="center"/>

Thanks in advance.


Reply | Threaded
Open this post in threaded view
|

Re: ordered list in a table cell and image align - Asciidoctor to Docbook

mojavelinux
Administrator

I'm glad to hear you got the AsciiDoc table cell working.

The image align issue was recently fixed and that fix is available in 1.5.0.preview.2. Perhaps you can try it out and see if it works for you. I'll be posting shortly with a summary of the 1.5.0.preview.2 release and how to get it.

-Dan

On Feb 17, 2014 8:04 AM, "rogerpt [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
Thanks Dan. It worked, my fault I  haven't read that part in the user manual.

By the way, can you enlighten me about the position of the images?

For instance, I tried (among other option attempts) to do, but I can't manage to have the image centered in docbook.
[[system_overview]]
.System Overview
image::images/system_overview.pdf[,85%, 100%,align="center"]

I expect to have something like:

<imagedata fileref="images/system_overview.pdf" contentwidth="85%" align="center"/>

Thanks in advance.





If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/ordered-list-in-a-table-cell-and-image-align-Asciidoctor-to-Docbook-tp1473p1494.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML