From: Taylor R Campbell Date: Sat, 10 Aug 2019 15:18:49 +0000 (+0000) Subject: Allow hyphenation of log-probability, log-logistic, ill-conditioned. X-Git-Tag: mit-scheme-pucked-10.1.20~11^2~89 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=f70f68ac8fe5c1add78cf1b10910e72febbef6a9;p=mit-scheme.git Allow hyphenation of log-probability, log-logistic, ill-conditioned. Can't find a good way to make TeX hyphenate a word that already has a hyphen in it, so this'll have to do. --- diff --git a/doc/ref-manual/numbers.texi b/doc/ref-manual/numbers.texi index 750582c0d..ed0d6244d 100644 --- a/doc/ref-manual/numbers.texi +++ b/doc/ref-manual/numbers.texi @@ -1192,9 +1192,11 @@ one another. @itemize @bullet @item -The log-logistic function maps log-odds on the extended real line to -log-probability on the nonpositive half of the extended real line, and -is ill-conditioned for large positive @var{x}: +@cindex log-probability +@cindex log-odds +The log@hy{}logistic function maps log-odds on the extended real line +to log@hy{}probability on the nonpositive half of the extended real +line, and is ill@hy{}conditioned for large positive @var{x}: @iftex @tex \eqimage{fig/cn-loglogistic} @@ -1212,9 +1214,11 @@ x f'(x)/f(x) = (-x exp(-x))/[(1 + exp(-x)) log(1 + exp(-x))] @end ifnottex @item -The logit-exp function maps log-probability on the nonpositive half of -the extended real line to log-odds on the extended real line, and is -ill-conditioned near @math{\log(1/2)}: +@cindex log-probability +@cindex log-odds +The logit@hy{}exp function maps log-probability on the nonpositive +half of the extended real line to log-odds on the extended real line, +and is ill@hy{}conditioned near @math{\log(1/2)}: @iftex @tex \eqimage{fig/cn-logitexp} diff --git a/doc/ref-manual/scheme.texinfo b/doc/ref-manual/scheme.texinfo index 361e85a9c..6357ae7c2 100644 --- a/doc/ref-manual/scheme.texinfo +++ b/doc/ref-manual/scheme.texinfo @@ -108,8 +108,18 @@ Documentation License.'' \hfill% }% } + +% Explicit hyphen that doesn't block automatic hyphenation, in words +% like `log-probability'. +\gdef\hy{-\penalty0\hskip0pt\relax} @end tex +@ifnottex +@macro hy {n} +\n\ +@end macro +@end ifnottex + @ifnottex @node Top, Acknowledgements, (dir), (dir) @top MIT/GNU Scheme