Login  Register

Re: Format unknown number of columns

Posted by mojavelinux on Mar 28, 2020; 9:47pm
URL: https://discuss.asciidoctor.org/Format-unknown-number-of-columns-tp7801p7802.html

No, there is not. The column number has to be explicit.

Best,

-Dan

On Sat, Mar 28, 2020 at 3:23 PM kecai [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I would like to include a csv as table and center all columns, allowing the number of columns to change. From the examples I have seen in the Manual, the number of columns needs to be explicit when using "cols" attribute, for example "cols=3*^", for centering all 3 columns in the table. Is there a way to apply a style to all n columns, where n can vary? Something like this:

[%header, %autowidth.stretch, format=csv, align=center, cols="n*^"]
|===
include::data.csv[]
|===

Thanks!


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Format-unknown-number-of-columns-tp7801.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