Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
4 posts
|
Hi,
I'm trying convert a document but have hit a problem with table numbering. When I assign a title to a table the HTML output automatically acquires a "Table <N>. " prefix. These automatic numbers don't match those of the source document (which behave more like section numbers, e.g. "Table 3.1" for the first table in the third section). So either I need a way to redefine the automatic numbering technique, or I need a way to turn off the automatic numbering and do it by hand. Are either of these possible? Thanks for any help! |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
4 posts
|
I've found I can use the "caption" attribute to replace the prefix. For example:
.Supported units [caption="Table 3.1 "] |=== ... some stuff ... |===renders in HTML5 and PDF as: Table 3.1 Supported units ... table here ... I don't know if that's the "correct" way to get this result, but at least it works. Any suggestions for improvement welcome! |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
4 posts
|
In the O’Reilly Getting Started with Atlas documentation the image labels seem to have exactly the kind of behaviour I'm after. Chapter 2 is a good example.
But I can't find anything in the AsciiDoc source which controls that behaviour. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
2681 posts
|
> I need a way to turn off the automatic numbering and do it by hand. We are discussing options for getting section-based numbering for objects like tables in the following issue:Just turn off the table-caption by adding the following to the document header. :table-caption!: https://github.com/asciidoctor/asciidoctor/issues/979 > In the O’Reilly Getting Started with Atlas documentation the image labels seem to have exactly the kind of behaviour I'm after. Chapter 2 is a good example. That's because O'Reilly uses a completed custom backend for Asciidoctor (which is perfectly acceptable and encouraged for maximum customization). See https://github.com/oreillymedia/asciidoctor-htmlbook Remember, you can output any HTML you want in Asciidoctor. You just have to create a custom template file for the node in the tree you want to customize (or write your own custom converter to override everything). Cheers, On Thu, Jan 15, 2015 at 5:37 AM, rhattersley [via Asciidoctor :: Discussion] <[hidden email]> wrote: In the O’Reilly Getting Started with Atlas documentation the image labels seem to have exactly the kind of behaviour I'm after. Chapter 2 is a good example. -- Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
4 posts
|
Thanks for clarifying my options. Depending on how long before I need this all working I might be better off waiting for the behaviour in that PR to be released, but at least I have a manual workaround for now. On 19 January 2015 at 07:50, mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
... [show rest of quote] |
Free forum by Nabble | Edit this page |