mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
doc: fix colors
The original Texinfo macros introducing colors were made for diagnostics, which are printed in bold. So by copy-paste accident the styles we introduced for counterexamples were also in bold. They should not. * doc/bison.texi: Separate the styling of diagnostics from the styling for counterexamples. Don't use bold in the latter case.
This commit is contained in:
@@ -57,44 +57,57 @@
|
|||||||
\gdef\colorPurple{%
|
\gdef\colorPurple{%
|
||||||
\setcolor{\rgbPurple}%
|
\setcolor{\rgbPurple}%
|
||||||
}
|
}
|
||||||
|
\gdef\colorOff{%
|
||||||
|
\setcolor{\maincolor}%
|
||||||
|
}
|
||||||
|
|
||||||
\gdef\rgbError{0.80 0 0}
|
\gdef\rgbError{0.80 0 0}
|
||||||
\gdef\colorError{%
|
\gdef\diagError{%
|
||||||
\setcolor{\rgbError}%
|
\setcolor{\rgbError}%
|
||||||
}
|
}
|
||||||
\gdef\rgbNotice{0 0 0.80}
|
\gdef\rgbNotice{0 0 0.80}
|
||||||
\gdef\colorNotice{%
|
\gdef\diagNotice{%
|
||||||
\setcolor{\rgbNotice}%
|
\setcolor{\rgbNotice}%
|
||||||
}
|
}
|
||||||
\gdef\colorOff{%
|
\gdef\rgbWarning{0.50 0 0.50}
|
||||||
|
\gdef\diagWarning{%
|
||||||
|
\setcolor{\rgbWarning}%
|
||||||
|
}
|
||||||
|
\gdef\diagOff{%
|
||||||
\setcolor{\maincolor}%
|
\setcolor{\maincolor}%
|
||||||
}
|
}
|
||||||
@end tex
|
@end tex
|
||||||
|
|
||||||
@ifnottex
|
@ifnottex
|
||||||
@macro colorGreen
|
@macro colorGreen
|
||||||
@inlineraw{html, <b style="color:green">}
|
@inlineraw{html, <span style="color:green">}
|
||||||
@end macro
|
@end macro
|
||||||
@macro colorYellow
|
@macro colorYellow
|
||||||
@inlineraw{html, <b style="color:#ff8000">}
|
@inlineraw{html, <span style="color:#ff8000">}
|
||||||
@end macro
|
@end macro
|
||||||
@macro colorRed
|
@macro colorRed
|
||||||
@inlineraw{html, <b style="color:red">}
|
@inlineraw{html, <span style="color:red">}
|
||||||
@end macro
|
@end macro
|
||||||
@macro colorBlue
|
@macro colorBlue
|
||||||
@inlineraw{html, <b style="color:blue">}
|
@inlineraw{html, <span style="color:blue">}
|
||||||
@end macro
|
@end macro
|
||||||
@macro colorPurple
|
@macro colorPurple
|
||||||
@inlineraw{html, <b style="color:darkviolet">}
|
@inlineraw{html, <span 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
|
@end macro
|
||||||
@macro colorOff
|
@macro colorOff
|
||||||
|
@inlineraw{html, </span>}
|
||||||
|
@end macro
|
||||||
|
|
||||||
|
@macro diagError
|
||||||
|
@inlineraw{html, <b style="color:red">}
|
||||||
|
@end macro
|
||||||
|
@macro diagNotice
|
||||||
|
@inlineraw{html, <b style="color:darkcyan">}
|
||||||
|
@end macro
|
||||||
|
@macro diagWarning
|
||||||
|
@inlineraw{html, <b style="color:darkviolet">}
|
||||||
|
@end macro
|
||||||
|
@macro diagOff
|
||||||
@inlineraw{html, </b>}
|
@inlineraw{html, </b>}
|
||||||
@end macro
|
@end macro
|
||||||
@end ifnottex
|
@end ifnottex
|
||||||
@@ -120,15 +133,15 @@
|
|||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
@macro dwarning{text}
|
@macro dwarning{text}
|
||||||
@purple{\text\}
|
@diagWarning{}\text\@diagOff{}
|
||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
@macro derror{text}
|
@macro derror{text}
|
||||||
@colorError{}\text\@colorOff{}
|
@diagError{}\text\@diagOff{}
|
||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
@macro dnotice{text}
|
@macro dnotice{text}
|
||||||
@colorNotice{}\text\@colorOff{}
|
@diagNotice{}\text\@diagOff{}
|
||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
@finalout
|
@finalout
|
||||||
|
|||||||
Reference in New Issue
Block a user