Closed sschwarzer closed 1 year ago
This issue has been mentioned on Racket Discussions. There might be relevant details there:
https://racket.discourse.group/t/adding-html-attributes-to-scribble-subsubsection/1296/2
I described a workaround here, adding an alt-tag
to an elem
:
@(define entry-subsection-style
(make-style
#f
(list (alt-tag "h5")
(attributes '((style . "border: none;
padding-top: 0px;
margin-top: 1em;
font-size: 1.4rem;"))))))
@(define (entry-subsection text)
(elem #:style entry-subsection-style text)))
This isn't a "full" workaround though:
alt-tag
is HTML-specific, so the structure information gets lost when rendered with LaTeX.
The following Scribble file,
is supposed to display all the text in the
elem
and*section
s in red.However, the style isn't applied to the
*section
s. The HTML isThis problem might also occur for other functions apart from
*section
.