summaryrefslogtreecommitdiffstats
path: root/common/rtemsstyle.sty
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2016-02-29 22:46:08 -0500
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:26 -0400
commit1ea5fb72936af0e4a4d6a2f01f291ce9e2fbd16f (patch)
tree50baeb9fdeee8ef03749f0fc96a48bcc392156df /common/rtemsstyle.sty
parentfa70fd20878e402610c263f129266593d31a0376 (diff)
downloadrtems-docs-1ea5fb72936af0e4a4d6a2f01f291ce9e2fbd16f.tar.bz2
Wrap \tabulary environment to allow breaking underscores.
* This \discretionary to avoid language issues.
Diffstat (limited to 'common/rtemsstyle.sty')
-rw-r--r--common/rtemsstyle.sty9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/rtemsstyle.sty b/common/rtemsstyle.sty
index 71c0635..6761b96 100644
--- a/common/rtemsstyle.sty
+++ b/common/rtemsstyle.sty
@@ -2,6 +2,15 @@
\definecolor{InnerLinkColor}{rgb}{0,0,0}
\definecolor{OuterLinkColor}{rgb}{1.0,0.5,0.0}
+\newenvironment{underscoresplit}{\let\underscore\_
+ \renewcommand{\_}{\discretionary{\underscore}{}{\underscore}}}{}
+
+\let\oldtabulary\tabulary
+\let\endoldtabulary\endtabulary
+
+\renewenvironment{tabulary}{\underscoresplit\oldtabulary}{\endoldtabulary\endunderscoresplit}
+
+
\renewcommand{\maketitle}{%
\begin{titlepage}%
\let\footnotesize\small