Hi 
On Sun, 2020-04-05 at 15:56 +0200, Christoph Hintermüller wrote:
> Hi
> I'm helping to make t-vim module fully usable in xhtml and futher
> epub
> export. Getting a distingct tag for the individual lines was quiet
> easy
> to do using \dostarttagged and \dostoptagged internal macros.
> What i'm not able to figure are the following things:
> 1) How can i set/modify the display attribute of the resulting
> div.myclass section in the generated *_templates.css file.
> Per default the display attribute is set to "inline" while i need
> "block" or "flex" (not jet decided" which).
> 2) How can i predefine the white-space css attribute to pre-wrap 
> 3) Is there a way to tell context to include the resulting class
> inside
> the *.default.css or *.styles.css or should that be done via the css
> parameter of the \setupbackend macro only?
> 


I figured so far that 
with the command 
\setelementnature[<mytagid>][block]

I can change the css 'displayÄ attribute of my <mytag> to display=block
in the *_templates.css output

But i did not manage so far to in addition set the 'white-space' css
attribute of mytag to 'pre-wrap' 

I tried `\dosettagproperty` and `\setelementexporttag` commands but
none of the gave me the expected result in the *_templates.css output
for the xhtm export.

What other commands do i have to call first, after `\dostarttagged` to
be able to use eg `dosettagproperty` to also set the 'white-space' css
attribute accordingly and/or how is the related context/lua property
called which will be than translated into `white-space=pre-wrap`. The
css 'display' attribute is to be changed by changing the 'nature'
property of the tag.

Is there anybody who can provide at least some hints which *.tex and
*.lua source files to look at to figure myself. At least some
orientation would already help.

Best 
Xristoph



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to