On 21/01/12 20:21, Lex Trotman wrote:
On Fri, Jan 20, 2012 at 4:38 AM, dahinds <[email protected]> wrote:
I found a solution/workaround: use a global attribute, i.e.:

  [attributes]
  autowidth-option=""

It does seem odd, though, that setting options("autowidth",) in the
table style does not work.


Hi Dave,

Having had a chance to look at it, here goes, deep breath ...

In a style definition the options=("xxx",) sets *options* xxx, not
*attributes* "xxx-option", subtle and I had to read 23.3 several times
before it sank in.

Mostly these options are the same as the option attributes so the
options section of 23.3 points to the attributes table in Appendix F.
Probably they were originally all the same but autowidth has been
added since (I havn't checked the history to be sure), but autowidth
is only an attribute, not an option, so it makes no difference setting
it in the styles options=.

Header however is an option so setting it in the options= will work
(unlucky choice which led you astray, but the fact that there is not
header-option in the config files is a hint).

The only way of setting the attributes is, as you found, either
globally or in the block attribute list.

@Stuart, I noticed that User Guide 32 says that block-def options=
parameters are made available as -option attributes as well as
parameters.  This does not seem to happen (additionally verified by a
strategically placed print).  Not sure where to add it.

I've applied a patch which should fix the problem:

https://code.google.com/p/asciidoc/source/detail?r=7ba1674c5a9ddb64688612550c71afe693bc22b1


Cheers, Stuart



Cheers
Lex

-- Dave


On Jan 18, 2:40 pm, dahinds <[email protected]> wrote:
Yes the missing 'e' was a typo.  And no options("autowidth-option",)
has no effect.

options("header-option",) also has no effect.

-- Dave

On Jan 18, 1:27 pm, Lex Trotman <[email protected]> wrote:







On Thu, Jan 19, 2012 at 7:56 AM, dahinds <[email protected]> wrote:
I'd like to change the default table style to include "autowidth".  I
currently have a .conf file containing:

[tabledef-default]
style=topbot
topbot-style=frame="topbot",grid="none",options=("header",)

which works, but

[tabledef-default]
style=topbot
topbot-style=fram="topbot",grid="none",options=("autowidth",)

Assuming the missing 'e' is a transcription error :) try
options=("autowidth-option",)

Note I havn't had a chance to try it.

Cheers
Lex

has no effect on column widths.  It does work (for HTML output) if I
add [options="autowidth"] before the table definitions.  Am I doing
something wrong?

-- Dave

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group 
athttp://groups.google.com/group/asciidoc?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.



--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to