Changeset 9724df0 for doc/LaTeXmacros
- Timestamp:
- Jun 20, 2016, 10:52:40 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 1f17e07, a0dcd2e, f6d4204
- Parents:
- 1da317b
- Location:
- doc/LaTeXmacros
- Files:
-
- 25 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
r1da317b r9724df0 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Fri Jun 10 16:35:25201614 %% Update Count : 1 0113 %% Last Modified On : Mon Jun 20 09:35:20 2016 14 %% Update Count : 178 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=4 27 \righthyphenmin=4 28 25 29 \usepackage{pslatex} % reduce size of san serif font 30 31 \usepackage[ignoredisplayed]{enumitem} % do not affect trivlist 32 \setlist{labelsep=1ex}% global 33 \setlist[itemize]{topsep=0.5ex,parsep=0.25ex,itemsep=0.25ex,listparindent=\parindent,leftmargin=\parindent}% global 34 \setlist[itemize,1]{label=\textbullet}% local 35 %\renewcommand{\labelitemi}{{\raisebox{0.25ex}{\footnotesize$\bullet$}}} 36 \setlist[enumerate]{listparindent=\parindent}% global 37 \setlist[enumerate,2]{leftmargin=\parindent,labelsep=*,align=parleft,label=\alph*.}% local 38 \setlist[description]{listparindent=\parindent,leftmargin=\parindent,labelsep=*} 26 39 27 40 % Names used in the document. … … 29 42 \newcommand{\CFA}{C$\mathbf\forall$\xspace} % set language symbolic name 30 43 \newcommand{\CFL}{Cforall\xspace} % set language text name 31 \newcommand{\CC}{ C\kern-.1em\hbox{+\kern-.25em+}\xspace} % CC symbolic name44 \newcommand{\CC}{\rm C\kern-.1em\hbox{+\kern-.25em+}\xspace} % CC symbolic name 32 45 \def\c11{ISO/IEC C} % C11 name (cannot have numbers in latex command name) 33 46 … … 35 48 36 49 \makeatletter 37 % parindent is relative, i.e., toggled on/off in environments like itemize, 38 % so store the value foruse rather than use \parident directly.39 \newlength{\parindentl ength}40 \setlength{\parindentl ength}{\parindent}50 % parindent is relative, i.e., toggled on/off in environments like itemize, so store the value for 51 % use rather than use \parident directly. 52 \newlength{\parindentlnth} 53 \setlength{\parindentlnth}{\parindent} 41 54 42 55 % allow escape sequence in lstinline 43 56 %\usepackage{etoolbox} 44 57 %\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 code47 %\renewcommand\small{%48 % \@setfontsize\small{8.5}{11}%49 % \abovedisplayskip 8.5pt \@plus 3pt \@minus 4pt50 % \abovedisplayshortskip \z@ \@plus 2pt51 % \belowdisplayshortskip 4pt \@plus 2pt \@minus 2pt52 % \def\@listi{\leftmargin\leftmargini53 % \topsep 4pt \@plus 2pt \@minus 2pt54 % \parsep 2pt \@pluspt \@minuspt55 % \itemsep \parsep}%56 % \belowdisplayskip \abovedisplayskip57 %}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" macro94 \renewcommand{\labelitemi}{{\raisebox{0.25ex}{\footnotesize$\bullet$}}}95 \renewenvironment{itemize}{\begin{list}{\labelitemi}{\topsep=5pt\itemsep=5pt\parsep=0pt}}{\end{list}}96 97 93 % Define some commands that produce formatted index entries suitable for cross-references. 98 94 % ``\spec'' produces entries for specifications of entities. ``\impl'' produces entries for their … … 140 136 }% quote2 141 137 \newenvironment{rationale}{% 142 \begin{quot ation}\noindent$\Box$\enspace138 \begin{quote2}\noindent$\Box$\enspace 143 139 }{% 144 \hfill\enspace$\Box$\end{quot ation}140 \hfill\enspace$\Box$\end{quote2} 145 141 }% 146 142 … … 154 150 155 151 % BNF macros 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}} 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}} 162 166 \newcommand{\opt}{$_{opt}$\ } 163 167 … … 204 208 stringstyle=\tt, 205 209 tabsize=4, 206 xleftmargin=\parindentl ength,210 xleftmargin=\parindentlnth, 207 211 extendedchars=true, 208 212 escapechar=§,
Note: See TracChangeset
for help on using the changeset viewer.