texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[5372] add bright-colors.css from Jaako Hollmen, bug-texinfo 13 Sep 2010


From: karl
Subject: [5372] add bright-colors.css from Jaako Hollmen, bug-texinfo 13 Sep 2010 09 :14:22
Date: Wed, 11 Sep 2013 18:19:31 +0000

Revision: 5372
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5372
Author:   karl
Date:     2013-09-11 18:19:31 +0000 (Wed, 11 Sep 2013)
Log Message:
-----------
add bright-colors.css from Jaako Hollmen, bug-texinfo 13 Sep 2010 09:14:22

Modified Paths:
--------------
    trunk/build-aux/texinfo.tex
    trunk/doc/texinfo.tex

Added Paths:
-----------
    trunk/contrib/bright-colors.css

Modified: trunk/build-aux/texinfo.tex
===================================================================
--- trunk/build-aux/texinfo.tex 2013-09-11 16:27:36 UTC (rev 5371)
+++ trunk/build-aux/texinfo.tex 2013-09-11 18:19:31 UTC (rev 5372)
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2013-08-09.09}
+\def\texinfoversion{2013-09-11.09}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -281,9 +281,9 @@
   \toks6=\expandafter{\prevsectiondefs}%
   \toks8=\expandafter{\lastcolordefs}%
   \mark{%
-                   \the\toks0 \the\toks2
-      \noexpand\or \the\toks4 \the\toks6
-    \noexpand\else \the\toks8
+                   \the\toks0 \the\toks2  % 0: top marks (\last...)
+      \noexpand\or \the\toks4 \the\toks6  % 1: bottom marks (default, \prev...)
+    \noexpand\else \the\toks8             % 2: color marks
   }%
 }
 % \topmark doesn't work for the very first chapter (after the title
@@ -322,10 +322,13 @@
   %
   % Do this outside of the \shipout so @code etc. will be expanded in
   % the headline as they should be, not taken literally (outputting ''code).
+  \def\commmonheadfootline{\let\hsize=\pagewidth \texinfochars}
+  %
   \ifodd\pageno \getoddheadingmarks \else \getevenheadingmarks \fi
-  \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}%
+  \global\setbox\headlinebox = \vbox{\commmonheadfootline \makeheadline}%
+  %
   \ifodd\pageno \getoddfootingmarks \else \getevenfootingmarks \fi
-  \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}%
+  \global\setbox\footlinebox = \vbox{\commmonheadfootline \makefootline}%
   %
   {%
     % Have to do this stuff outside the \shipout because we want it to
@@ -4222,7 +4225,12 @@
 % variable's value contains other Texinfo commands, it's almost certain
 % it will fail (although perhaps we could fix that with sufficient work
 % to do a one-level expansion on the result, instead of complete).
-%
+% 
+% Unfortunately, this has the consequence that when _ is in the *value*
+% of an @set, it does not print properly in the roman fonts (get the cmr
+% dot accent at position 126 instead).  No fix comes to mind, and it's
+% been this way since 2003 or earlier, so just ignore it.
+% 
 \def\expandablevalue#1{%
   \expandafter\ifx\csname SET#1\endcsname\relax
     {[No value for ``#1'']}%
@@ -5909,7 +5917,7 @@
     %
     % Now the second mark, after the heading break.  No break points
     % between here and the heading.
-    \let\prevsectiondefs=\lastsectiondefs
+    \global\let\prevsectiondefs=\lastsectiondefs
     \domark
     %
     % Only insert the space after the number if we have a section number.
@@ -6276,8 +6284,8 @@
   \catcode `\|=\other
   \catcode `\<=\other
   \catcode `\>=\other
-  \catcode`\`=\other
-  \catcode`\'=\other
+  \catcode `\`=\other
+  \catcode `\'=\other
   \escapechar=`\\
   %
   % ' is active in math mode (mathcode"8000).  So reset it, and all our
@@ -6301,7 +6309,7 @@
   \let\/=\ptexslash
   \let\*=\ptexstar
   \let\t=\ptext
-  \expandafter \let\csname top\endcsname=\ptextop  % outer
+  \expandafter \let\csname top\endcsname=\ptextop  % we've made it outer
   \let\frenchspacing=\plainfrenchspacing
   %
   \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}%
@@ -9944,11 +9952,9 @@
 \catcode`\"=\active
 \def\activedoublequote{{\tt\char34}}
 \let"=\activedoublequote
-\catcode`\~=\active
-\def~{{\tt\char126}}
+\catcode`\~=\active \def\activetilde{{\tt\char126}} \let~ = \activetilde
 \chardef\hat=`\^
-\catcode`\^=\active
-\def^{{\tt \hat}}
+\catcode`\^=\active \def\activehat{{\tt \hat}} \let^ = \activehat
 
 \catcode`\_=\active
 \def_{\ifusingtt\normalunderscore\_}
@@ -9958,17 +9964,27 @@
 
 \catcode`\|=\active
 \def|{{\tt\char124}}
+
 \chardef \less=`\<
-\catcode`\<=\active
-\def<{{\tt \less}}
+\catcode`\<=\active \def\activeless{{\tt \less}}\let< = \activeless
 \chardef \gtr=`\>
-\catcode`\>=\active
-\def>{{\tt \gtr}}
-\catcode`\+=\active
-\def+{{\tt \char 43}}
-\catcode`\$=\active
-\def${\ifusingit{{\sl\$}}\normaldollar}%$ font-lock fix
+\catcode`\>=\active \def\activegtr{{\tt \gtr}}\let> = \activegtr
+\catcode`\+=\active \def+{{\tt \char 43}}
+\catcode`\$=\active \def${\ifusingit{{\sl\$}}\normaldollar}%$ font-lock fix
 
+% used for headline/footline in the output routine, in case the page
+% breaks in the middle of an @tex block.
+\def\texinfochars{%
+  \let< = \activeless
+  \let> = \activegtr
+  \let~ = \activetilde 
+  \let^ = \activehat
+  \markupsetuplqdefault \markupsetuprqdefault 
+  \let\b = \strong
+  \let\i = \smartitalic
+  % in principle, all other definitions in \tex have to be undone too.
+}
+
 % If a .fmt file is being used, characters that might appear in a file
 % name cannot be active until we have parsed the command line.
 % So turn them off again, and have \everyjob (or @setfilename) turn them on.

Added: trunk/contrib/bright-colors.css
===================================================================
--- trunk/contrib/bright-colors.css                             (rev 0)
+++ trunk/contrib/bright-colors.css     2013-09-11 18:19:31 UTC (rev 5372)
@@ -0,0 +1,212 @@
+/* === === === === === === === === === === === === === === === === ===
+
+    This file: texinfo_bright_colors.css
+    Version:   1.0
+    Date:      September 13, 2010
+    Author:    Jaakko Hollm@'en, e-mail: address@hidden
+
+    The purpose of this cascading style sheet (CSS) style file named
+    "texinfo_bright_colors.css" is to introduce several bright and
+    contrasting colors for the structural elements of an HTML file.
+    The primary focus of the CSS style is to observe the sturucture
+    of HTML files created with Texinfo documentation system, more
+    specifically texi2html.
+
+    This is NOT a presentation style but a visualization of the
+    structure of an HTML file through coloring of the elements.
+    The style file may turn out to be useful for both developers of the
+    HTML outputting tools and the Texinfo documentation writers who
+    are interested to observe the outputted HTML structure.
+
+    The coloring has been achieved by associating a background-color
+    to important HTML elements. Minimal formatting has been done,
+    although the body font and the headers h1 to h5 have been given
+    absolute sizes, and some expanded space has been introduced to
+    horizontal rulers hr in order to make them more visible. There
+    are margins around the document resembling a book-like presentation
+    in the browser.
+
+    This Cascading Style Sheet (CSS) confroms to the CSS standard,
+    level 2.1. You can validate the correctness of your own
+    creation or modification of the current CSS style at the Web
+    address: http://jigsaw.w3.org/css-validator/ by one the three
+    input methods available.
+
+    If you edit your already produced HTML file generated by hand,
+    change the section <style>...</style> with
+
+    <link rel="stylesheet" href="./texinfo_bright_colors.css">
+
+    and put the CSS file in the same directory, or simply by
+    inclusion of the css file when compiling:
+
+    texi2dvi --css-include=texinfo_bright_colors.css my_doc.texi
+
+    Note: The output will be very "colorful", with very, very bright
+          colors. You have been warned.
+
+    --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
+
+    (c) Copyright, Jaakko Hollm@'en, Finland, address@hidden
+        September, 2010
+
+    The current file "texinfo_bright_colors.css" is free software:
+    you can redistribute it and/or modify it under the terms of the
+    GNU General Public License as published by the Free Software
+    Foundation, either version 3 of the License, or (at your option)
+    any later version.
+
+    The current file "texinfo_bright_colors.css" is distributed in
+    the hope that it will be useful, but WITHOUT ANY WARRANTY;
+    without even the implied warranty of MERCHANTABILITY or FITNESS
+    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+    more details.
+
+    === === === === === === === === === === === === === === === === */
+
+body {
+margin: 30px 10% 30px 8%;
+background-color: white;
+font-family: serif;
+font-size: 1.0em;
+}
+
+h1 {
+font-size: 2.4em;
+background-color: #FF0000;
+}
+
+h2 {
+font-size: 2.0em;
+background-color: #FF0066;
+}
+
+h3 {
+font-size: 1.8em;
+background-color: #FF00CC;
+}
+
+h4 {
+font-size: 1.6em;
+background-color: #FF33FF;
+;
+}
+
+h5 {
+font-size: 1.4em;
+background-color: #FF99FF;
+}
+
+p {
+background-color: #B0B0B0;
+}
+
+blockquote {
+background-color: #FFCCFF;
+}
+
+div.shortcontents {
+background-color: #FF9900;
+}
+
+div.contents {
+background-color: #FF9900;
+}
+
+div.defun {
+background-color: #FF9900;
+}
+
+div.float {
+background-color: #FF9900;
+}
+
+div.footnote {
+background-color: #FF9900;
+}
+
+div.node {
+background-color: #FF9900;
+}
+
+ul {
+background-color: #FF9900;
+}
+
+ol {
+background-color: #CCFF33;
+}
+
+table {
+background-color: #FFFF00;
+}
+
+tr {
+background-color: #66FF00;
+}
+
+td {
+background-color: #66CC00;
+}
+
+dl {
+background-color: #00FF00;
+}
+
+dt {
+background-color: #66CC00;
+}
+
+dd {
+background-color: #00FFFF;
+}
+
+pre.display {
+background-color: #33CCFF;
+}
+
+pre.smalldisplay {
+background-color: #33CCFF;
+}
+
+pre.example {
+background-color: #33CCFF;
+}
+
+pre.smallexample {
+background-color: #33CCFF;
+}
+
+pre.format {
+background-color: #33CCFF;
+}
+
+pre.smallformat {
+background-color: #33CCFF;
+}
+
+pre.lisp {
+background-color: #33CCFF;
+}
+
+pre.smalllisp {
+background-color: #33CCFF;
+}
+
+pre.sp {
+background-color: #33CCFF;
+}
+
+pre.verbatim {
+background-color: #33CCFF;
+}
+
+code {
+background-color: #00FF00;
+}
+
+hr {
+background-color: #0000FF;
+margin: 0.5em;
+padding: 0.5em;
+}


Property changes on: trunk/contrib/bright-colors.css
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2013-09-11 16:27:36 UTC (rev 5371)
+++ trunk/doc/texinfo.tex       2013-09-11 18:19:31 UTC (rev 5372)
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2013-09-11.09}
+\def\texinfoversion{2013-09-11.11}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -4205,7 +4205,7 @@
 \def\value{\begingroup\makevalueexpandable\valuexxx}
 \def\valuexxx#1{\expandablevalue{#1}\endgroup}
 {
-  \catcode`\- = \active \catcode`\_ = \active
+  \catcode`\-=\active \catcode`\_=\active
   %
   \gdef\makevalueexpandable{%
     \let\value = \expandablevalue




reply via email to

[Prev in Thread] Current Thread [Next in Thread]