Default CSS?
Raymond Toy <[email protected]> Mon, 21 Jul 2025 07:07:04 -0700
| Newsgroups | gmane.comp.tex.texinfo.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------40We62JpUe4S10EvEu7iSaJ0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Using this very simple example:
|\input texinfo @node Top @top @example C #include <stdio.h> int main
(void) @{ printf ("Hello world!\n"); @} @end example @example C #include
src-hl.c @end example @bye |
I ran |makeinfo --html file.texi|. When I look at the html, I see:
|<style type="text/css"> <!-- div.example {margin-left: 3.2em} --> </style> |
Why is this style included? With my limited HTML knowledge, I think that
does nothing because of the HTML comment which is an error in a CSS
style block. The contents also seem to vary depending on what I texi
file. For example, when building the Maxima user manual, it contains
|ul.toc-numbered-mark {list-style: none}| instead.
​
--------------40We62JpUe4S10EvEu7iSaJ0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8">
<title></title>
<meta charset=3D"utf-8">
</head>
<body>
<div class=3D"markdown-here-wrapper">
<p style=3D"margin-bottom: 19.2px; margin-top: 0px;">Using this ver=
y
simple example:</p>
<pre
style=3D"font-family: Consolas, Inconsolata, Courier, monospace; font-siz=
e: 16px; line-height: 19.2px; margin-bottom: 19.2px; margin-top: 19.2px;"=
><code
style=3D"background-color: rgba(175, 184, 193, 0.2); border-block: 1px so=
lid rgb(204, 204, 204); border-bottom: 1px solid rgb(204, 204, 204); bord=
er-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-end-e=
nd-radius: 3px; border-end-start-radius: 3px; border-inline: 1px solid rg=
b(204, 204, 204); border-left: 1px solid rgb(204, 204, 204); border-right=
: 1px solid rgb(204, 204, 204); border-start-end-radius: 3px; border-star=
t-start-radius: 3px; border-top: 1px solid rgb(204, 204, 204); border-top=
-left-radius: 3px; border-top-right-radius: 3px; display: block; font-fam=
ily: Consolas, Inconsolata, Courier, monospace; font-size: 16px; font-wei=
ght: 550; line-height: 19.2px; margin-left: 2.4px; margin-right: 2.4px; o=
verflow-block: auto; overflow-inline: auto; overflow: auto; padding-block=
: 8px; padding-bottom: 8px; padding-inline: 11.2px; padding-left: 11.2px;=
padding-right: 11.2px; padding-top: 8px;">
\input texinfo
@node Top
@top
@example C
#include <stdio.h>
int
main (void)
@{
printf ("Hello world!\n");
@}
@end example
@example C
#include src-hl.c
@end example
@bye
</code></pre>
<p style=3D"margin-bottom: 19.2px; margin-top: 0px;">I ran <code
style=3D"background-color: rgba(175, 184, 193, 0.2); border-bottom-left-r=
adius: 3px; border-bottom-right-radius: 3px; border-end-end-radius: 3px; =
border-end-start-radius: 3px; border-start-end-radius: 3px; border-start-=
start-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: =
3px; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 1=
6px; font-weight: 550; margin-left: 2.4px; margin-right: 2.4px; padding-i=
nline: 4.8px; padding-left: 4.8px; padding-right: 4.8px; text-wrap-mode: =
wrap;">makeinfo
--html file.texi</code>. When I look at the html, I see:</p>
<pre
style=3D"font-family: Consolas, Inconsolata, Courier, monospace; font-siz=
e: 16px; line-height: 19.2px; margin-bottom: 19.2px; margin-top: 19.2px;"=
><code
style=3D"background-color: rgba(175, 184, 193, 0.2); border-block: 1px so=
lid rgb(204, 204, 204); border-bottom: 1px solid rgb(204, 204, 204); bord=
er-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-end-e=
nd-radius: 3px; border-end-start-radius: 3px; border-inline: 1px solid rg=
b(204, 204, 204); border-left: 1px solid rgb(204, 204, 204); border-right=
: 1px solid rgb(204, 204, 204); border-start-end-radius: 3px; border-star=
t-start-radius: 3px; border-top: 1px solid rgb(204, 204, 204); border-top=
-left-radius: 3px; border-top-right-radius: 3px; display: block; font-fam=
ily: Consolas, Inconsolata, Courier, monospace; font-size: 16px; font-wei=
ght: 550; line-height: 19.2px; margin-left: 2.4px; margin-right: 2.4px; o=
verflow-block: auto; overflow-inline: auto; overflow: auto; padding-block=
: 8px; padding-bottom: 8px; padding-inline: 11.2px; padding-left: 11.2px;=
padding-right: 11.2px; padding-top: 8px;">
<style type=3D"text/css">
<!--
div.example {margin-left: 3.2em}
-->
</style>
</code></pre>
<p style=3D"margin-bottom: 19.2px; margin-top: 0px;">Why is this
style included? With my limited HTML knowledge, I think that
does nothing because of the HTML comment which is an error in a
CSS style block. The contents also seem to vary depending on
what I texi file. For example, when building the Maxima user
manual, it contains <code
style=3D"background-color: rgba(175, 184, 193, 0.2); border-bottom-left-r=
adius: 3px; border-bottom-right-radius: 3px; border-end-end-radius: 3px; =
border-end-start-radius: 3px; border-start-end-radius: 3px; border-start-=
start-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: =
3px; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 1=
6px; font-weight: 550; margin-left: 2.4px; margin-right: 2.4px; padding-i=
nline: 4.8px; padding-left: 4.8px; padding-right: 4.8px; text-wrap-mode: =
wrap;">ul.toc-numbered-mark
{list-style: none}</code> instead.</p>
</div>
<div class=3D"mdhr-raw"
style=3D"height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-s=
ize:0;padding:0;margin:0;"
aria-hidden=3D"true"
title=3D"MDH:PHA+VXNpbmcgdGhpcyB2ZXJ5IHNpbXBsZSBleGFtcGxlOjwvcD48cD5gYGA8=
L3A+PHA+XGlucHV0IHRleGluZm88YnI+PGJyPkBub2RlIFRvcDxicj5AdG9wPGJyPjxicj5AZ=
XhhbXBsZSBDPGJyPiNpbmNsdWRlICZsdDtzdGRpby5oJmd0Ozxicj48YnI+aW50PGJyPm1haW=
4gKHZvaWQpPGJyPkB7PGJyPiZuYnNwOyBwcmludGYgKCJIZWxsbyB3b3JsZCFcbiIpOzxicj5=
AfTxicj5AZW5kIGV4YW1wbGU8YnI+PGJyPkBleGFtcGxlIEM8YnI+I2luY2x1ZGUgc3JjLWhs=
LmM8YnI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