Changes in doc/LaTeXmacros/common.tex [9724df0:45576af9]
- File:
-
- 1 edited
-
doc/LaTeXmacros/common.tex (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
r9724df0 r45576af9 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Mon Jun 20 09:35:20201614 %% Update Count : 1 7813 %% Last Modified On : Fri Jun 10 16:35:25 2016 14 %% Update Count : 101 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 23 23 \renewcommand{\floatpagefraction}{0.8} % float must be greater than X of the page before it is forced onto its own page 24 24 \renewcommand{\textfraction}{0.0} % the entire page maybe devoted to floats with no text on the page at all 25 26 \lefthyphenmin=427 \righthyphenmin=428 29 25 \usepackage{pslatex} % reduce size of san serif font 30 31 \usepackage[ignoredisplayed]{enumitem} % do not affect trivlist32 \setlist{labelsep=1ex}% global33 \setlist[itemize]{topsep=0.5ex,parsep=0.25ex,itemsep=0.25ex,listparindent=\parindent,leftmargin=\parindent}% global34 \setlist[itemize,1]{label=\textbullet}% local35 %\renewcommand{\labelitemi}{{\raisebox{0.25ex}{\footnotesize$\bullet$}}}36 \setlist[enumerate]{listparindent=\parindent}% global37 \setlist[enumerate,2]{leftmargin=\parindent,labelsep=*,align=parleft,label=\alph*.}% local38 \setlist[description]{listparindent=\parindent,leftmargin=\parindent,labelsep=*}39 26 40 27 % Names used in the document. … … 42 29 \newcommand{\CFA}{C$\mathbf\forall$\xspace} % set language symbolic name 43 30 \newcommand{\CFL}{Cforall\xspace} % set language text name 44 \newcommand{\CC}{ \rmC\kern-.1em\hbox{+\kern-.25em+}\xspace} % CC symbolic name31 \newcommand{\CC}{C\kern-.1em\hbox{+\kern-.25em+}\xspace} % CC symbolic name 45 32 \def\c11{ISO/IEC C} % C11 name (cannot have numbers in latex command name) 46 33 … … 48 35 49 36 \makeatletter 50 % parindent is relative, i.e., toggled on/off in environments like itemize, so store the value for51 % use rather than use \parident directly.52 \newlength{\parindentl nth}53 \setlength{\parindentl nth}{\parindent}37 % parindent is relative, i.e., toggled on/off in environments like itemize, 38 % so store the value for use rather than use \parident directly. 39 \newlength{\parindentlength} 40 \setlength{\parindentlength}{\parindent} 54 41 55 42 % allow escape sequence in lstinline 56 43 %\usepackage{etoolbox} 57 44 %\patchcmd{\lsthk@TextStyle}{\let\lst@DefEsc\@empty}{}{}{\errmessage{failed to patch}} 45 46 % make fontsize "small" slightly larger, specifically for san serif (helvetica) in program code 47 %\renewcommand\small{% 48 % \@setfontsize\small{8.5}{11}% 49 % \abovedisplayskip 8.5pt \@plus 3pt \@minus 4pt 50 % \abovedisplayshortskip \z@ \@plus 2pt 51 % \belowdisplayshortskip 4pt \@plus 2pt \@minus 2pt 52 % \def\@listi{\leftmargin\leftmargini 53 % \topsep 4pt \@plus 2pt \@minus 2pt 54 % \parsep 2pt \@pluspt \@minuspt 55 % \itemsep \parsep}% 56 % \belowdisplayskip \abovedisplayskip 57 %} 58 58 59 59 \usepackage{pslatex} % reduce size of san serif font … … 91 91 \newcommand{\see}[1]{\emph{see} #1} 92 92 93 % reduce bullet size and spacing for "itemize" macro 94 \renewcommand{\labelitemi}{{\raisebox{0.25ex}{\footnotesize$\bullet$}}} 95 \renewenvironment{itemize}{\begin{list}{\labelitemi}{\topsep=5pt\itemsep=5pt\parsep=0pt}}{\end{list}} 96 93 97 % Define some commands that produce formatted index entries suitable for cross-references. 94 98 % ``\spec'' produces entries for specifications of entities. ``\impl'' produces entries for their … … 136 140 }% quote2 137 141 \newenvironment{rationale}{% 138 \begin{quot e2}\noindent$\Box$\enspace142 \begin{quotation}\noindent$\Box$\enspace 139 143 }{% 140 \hfill\enspace$\Box$\end{quot e2}144 \hfill\enspace$\Box$\end{quotation} 141 145 }% 142 146 … … 150 154 151 155 % BNF macros 152 \newenvironment{syntax}{ 153 \paragraph{Syntax} 154 \begin{quote2} 155 \begin{description}[noitemsep,leftmargin=\parindentlnth] 156 }{ 157 \end{description} 158 \end{quote2} 159 } 160 % \def\syntax{\paragraph{Syntax}\trivlist\parindent=.5in\item[\hskip.5in]} 161 %\let\endsyntax=\endtrivlist 162 \newcommand{\lhs}[1]{\item[\emph{#1:}\index{#1@{\emph{#1}}|italic}]~\ignorespaces} 163 \newcommand{\oldlhs}[1]{\item[\emph{#1:}\index{#1@{\emph{#1}}|italic}~\dots]~} 164 \newcommand{\rhs}{\hfil\newline} 165 \newcommand{\nonterm}[1]{\emph{#1}\index{#1@{\emph{#1}}|italic}} 156 \def\syntax{\paragraph{Syntax}\trivlist\parindent=.5in\item[\hskip.5in]} 157 \let\endsyntax=\endtrivlist 158 \newcommand{\lhs}[1]{\par{\emph{#1:}}\index{#1@{\emph{#1}}|italic}} 159 \newcommand{\rhs}{\hfil\break\hbox{\hskip1in}} 160 \newcommand{\oldlhs}[1]{\emph{#1: \dots}\index{#1@{\emph{#1}}|italic}} 161 \newcommand{\nonterm}[1]{\emph{#1\/}\index{#1@{\emph{#1}}|italic}} 166 162 \newcommand{\opt}{$_{opt}$\ } 167 163 … … 208 204 stringstyle=\tt, 209 205 tabsize=4, 210 xleftmargin=\parindentl nth,206 xleftmargin=\parindentlength, 211 207 extendedchars=true, 212 208 escapechar=§,
Note:
See TracChangeset
for help on using the changeset viewer.