mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
doc: use colors for diagnostics in TeX too
Thanks to Gavin Smith and Patrice Dumas. http://lists.gnu.org/archive/html/help-texinfo/2019-04/msg00015.html * doc/bison.texi (@colorWarning, @colorError, @colorNotice) (@colorOff): Define for TeX and HTML. (@dwarning, @derror, @dnotice): Use them.
This commit is contained in:
2
THANKS
2
THANKS
@@ -66,6 +66,7 @@ Frank Heckenbach frank@g-n-u.de
|
|||||||
Frans Englich frans.englich@telia.com
|
Frans Englich frans.englich@telia.com
|
||||||
Gabriel Rassoul gabriel.rassoul@epita.fr
|
Gabriel Rassoul gabriel.rassoul@epita.fr
|
||||||
Gary L Peskin garyp@firstech.com
|
Gary L Peskin garyp@firstech.com
|
||||||
|
Gavin Smith gavinsmith0123@gmail.com
|
||||||
Georg Sauthoff gsauthof@TechFak.Uni-Bielefeld.DE
|
Georg Sauthoff gsauthof@TechFak.Uni-Bielefeld.DE
|
||||||
George Neuner gneuner2@comcast.net
|
George Neuner gneuner2@comcast.net
|
||||||
Gilles Espinasse g.esp@free.fr
|
Gilles Espinasse g.esp@free.fr
|
||||||
@@ -128,6 +129,7 @@ Oliver Mangold o.mangold@gmail.com
|
|||||||
Paolo Bonzini bonzini@gnu.org
|
Paolo Bonzini bonzini@gnu.org
|
||||||
Paolo Simone Gasparello djgaspa@gmail.com
|
Paolo Simone Gasparello djgaspa@gmail.com
|
||||||
Pascal Bart pascal.bart@epita.fr
|
Pascal Bart pascal.bart@epita.fr
|
||||||
|
Patrice Dumas pertusus@free.fr
|
||||||
Paul Eggert eggert@cs.ucla.edu
|
Paul Eggert eggert@cs.ucla.edu
|
||||||
Paul Hilfinger Hilfinger@CS.Berkeley.EDU
|
Paul Hilfinger Hilfinger@CS.Berkeley.EDU
|
||||||
Per Allansson per@appgate.com
|
Per Allansson per@appgate.com
|
||||||
|
|||||||
@@ -7,16 +7,49 @@
|
|||||||
@settitle Bison @value{VERSION}
|
@settitle Bison @value{VERSION}
|
||||||
@setchapternewpage odd
|
@setchapternewpage odd
|
||||||
|
|
||||||
|
@tex
|
||||||
|
\gdef\rgbWarning{0.50 0 0.50}
|
||||||
|
\gdef\colorWarning{%
|
||||||
|
\setcolor{\rgbWarning}%
|
||||||
|
}
|
||||||
|
\gdef\rgbError{0.80 0 0}
|
||||||
|
\gdef\colorError{%
|
||||||
|
\setcolor{\rgbError}%
|
||||||
|
}
|
||||||
|
\gdef\rgbNotice{0 0 0.80}
|
||||||
|
\gdef\colorNotice{%
|
||||||
|
\setcolor{\rgbNotice}%
|
||||||
|
}
|
||||||
|
\gdef\colorOff{%
|
||||||
|
\setcolor{\maincolor}%
|
||||||
|
}
|
||||||
|
@end tex
|
||||||
|
|
||||||
|
@ifnottex
|
||||||
|
@macro colorWarning
|
||||||
|
@inlineraw{html, <b style="color:darkviolet">}
|
||||||
|
@end macro
|
||||||
|
@macro colorError
|
||||||
|
@inlineraw{html, <b style="color:red">}
|
||||||
|
@end macro
|
||||||
|
@macro colorNotice
|
||||||
|
@inlineraw{html, <b style="color:darkcyan">}
|
||||||
|
@end macro
|
||||||
|
@macro colorOff
|
||||||
|
@inlineraw{html, </b>}
|
||||||
|
@end macro
|
||||||
|
@end ifnottex
|
||||||
|
|
||||||
@macro dwarning{text}
|
@macro dwarning{text}
|
||||||
@inlineraw{html, <b style="color:darkviolet">} \text\ @inlineraw{html, </b>}
|
@colorWarning{}\text\@colorOff{}
|
||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
@macro derror{text}
|
@macro derror{text}
|
||||||
@inlineraw{html, <b style="color:red">} \text\ @inlineraw{html, </b>}
|
@colorError{}\text\@colorOff{}
|
||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
@macro dnotice{text}
|
@macro dnotice{text}
|
||||||
@inlineraw{html, <b style="color:darkcyan">} \text\ @inlineraw{html, </b>}
|
@colorNotice{}\text\@colorOff{}
|
||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
@finalout
|
@finalout
|
||||||
|
|||||||
Reference in New Issue
Block a user