Indent a table?

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

Indent a table?

Ams627
Is there a way to indent a table so that the left border of the table is, for example, 1cm to the right of "normal" text?

Preferably I would be able to set this for all tables in a document.

Thanks

A.
Reply | Threaded
Open this post in threaded view
|

Re: Indent a table?

mojavelinux
Administrator
How you would do it depends on the output format. It's a presentation concern. If it's HTML, the way I would go about it is to add a role to the table, then use CSS to shift the table.

[.indent-me]
|===
| a | b | c
|===

Cheers,

-Dan

On Fri, Sep 21, 2018 at 12:03 PM, Ams627 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Is there a way to indent a table so that the left border of the table is, for example, 1cm to the right of "normal" text?

Thanks

A.



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Indent-a-table-tp6478.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Indent a table?

Ams627
Thank you Dan but could you also give me a hint as to how I might do it when the output is PDF?

I regularly use HTML for preview purposes but always my final output is PDF.

Many thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Indent a table?

mojavelinux
Administrator
What tool are you using to create PDF?

-Dan

On Sat, Sep 22, 2018 at 4:00 AM, Ams627 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thank you Dan but could you also give me a hint as to how I might do it when the output is PDF?

I regularly use HTML for preview purposes but always my final output is PDF.

Many thanks.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Indent-a-table-tp6478p6480.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Indent a table?

Ams627
Currently asciidoctor-pdf, but I am happy to use anything else you recommend. Unfortunately, I am restricted to Windows at the moment.

Thanks

A.