Changes in doc/LaTeXmacros/common.tex [79f64f1:ef3b335]
- File:
-
- 1 edited
-
doc/LaTeXmacros/common.tex (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
r79f64f1 ref3b335 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Mon Aug 1 09:11:20201614 %% Update Count : 2 2513 %% Last Modified On : Tue Jul 12 20:37:57 2016 14 %% Update Count : 206 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 18 17 19 \setlength{\textheight}{9in} 18 20 %\oddsidemargin 0.0in 19 \renewcommand{\topfraction}{0.8} % float must be greater than X of the page before it is forced onto its own page20 \renewcommand{\bottomfraction}{0.8} % float must be greater than X of the page before it is forced onto its own page21 \renewcommand{\topfraction}{0.8} % float must be greater than X of the page before it is forced onto its own page 22 \renewcommand{\bottomfraction}{0.8} % float must be greater than X of the page before it is forced onto its own page 21 23 \renewcommand{\floatpagefraction}{0.8} % float must be greater than X of the page before it is forced onto its own page 22 \renewcommand{\textfraction}{0.0} % the entire page maybe devoted to floats with no text on the page at all23 24 \lefthyphenmin=4 % hyphen only after 4 characters24 \renewcommand{\textfraction}{0.0} % the entire page maybe devoted to floats with no text on the page at all 25 26 \lefthyphenmin=4 25 27 \righthyphenmin=4 26 28 … … 36 38 % Names used in the document. 37 39 38 \newcommand{\CFA}{C$\mathbf\forall$\xspace} % set language symbolic name39 \newcommand{\CFL}{Cforall\xspace} % set language text name40 \newcommand{\CFA}{C$\mathbf\forall$\xspace} % set language symbolic name 41 \newcommand{\CFL}{Cforall\xspace} % set language text name 40 42 \newcommand{\CC}{\rm C\kern-.1em\hbox{+\kern-.25em+}\xspace} % CC symbolic name 41 43 \newcommand{\CCeleven}{\rm C\kern-.1em\hbox{+\kern-.25em+}11\xspace} % C++11 symbolic name 42 \def\c11{ISO/IEC C} % C11 name (cannot have numbers in latex command name)44 \def\c11{ISO/IEC C} % C11 name (cannot have numbers in latex command name) 43 45 44 46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 50 52 \setlength{\parindentlnth}{\parindent} 51 53 52 \newlength{\gcolumnposn} % temporary hack because lstlisting does handle tabs correctly54 \newlength{\gcolumnposn} 53 55 \newlength{\columnposn} 54 56 \setlength{\gcolumnposn}{2.5in} … … 61 63 %\patchcmd{\lsthk@TextStyle}{\let\lst@DefEsc\@empty}{}{}{\errmessage{failed to patch}} 62 64 63 \usepackage{pslatex} % reduce size of san serif font64 \usepackage{relsize} % must be after change to small or selects old size65 \usepackage{pslatex} % reduce size of san serif font 66 \usepackage{relsize} % must be after change to small or selects old size 65 67 66 68 % reduce size of chapter/section titles … … 118 120 119 121 % inline text and lowercase index: \Index{inline and lowercase index text} 122 % inline text and as-in index: \Index[as-is index text]{inline text} 123 % inline text but index with different as-is text: \Index[index text]{inline text} 120 124 \newcommand{\Index}{\@ifstar\@sIndex\@Index} 121 % inline text and as-in index: \Index[as-is index text]{inline text}122 125 \newcommand{\@Index}[2][\@empty]{\lowercase{\def\temp{#2}}#2\ifx#1\@empty\index{\temp}\else\index{#1@{\protect#2}}\fi} 123 % inline text but index with different as-is text: \Index[index text]{inline text}124 126 \newcommand{\@sIndex}[2][\@empty]{#2\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi} 125 127 126 % inline text and code index (cannot use ©)128 % cannot use © 127 129 \newcommand{\Indexc}[1]{\lstinline$#1$\index{#1@\lstinline$#1$}} 128 % code index (cannot use ©)129 130 \newcommand{\indexc}[1]{\index{#1@\lstinline$#1$}} 130 131 … … 136 137 \newcommand{\@newterm}[2][\@empty]{\lowercase{\def\temp{#2}}{\newtermFontInline{#2}}\ifx#1\@empty\index{\temp}\else\index{#1@{\protect#2}}\fi} 137 138 \newcommand{\@snewterm}[2][\@empty]{{\newtermFontInline{#2}}\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi} 138 139 % Latin abbreviation140 \newcommand{\abbrevFont}{\textit} % set empty for no italics141 \newcommand*{\eg}{%142 \@ifnextchar{,}{\abbrevFont{e}.\abbrevFont{g}.}%143 {\@ifnextchar{:}{\abbrevFont{e}.\abbrevFont{g}.}%144 {\abbrevFont{e}.\abbrevFont{g}.,\xspace}}%145 }%146 \newcommand*{\ie}{%147 \@ifnextchar{,}{\abbrevFont{i}.\abbrevFont{e}.}%148 {\@ifnextchar{:}{\abbrevFont{i}.\abbrevFont{e}.}%149 {\abbrevFont{i}.\abbrevFont{e}.,\xspace}}%150 }%151 \newcommand*{\etc}{%152 \@ifnextchar{.}{\abbrevFont{etc}}%153 {\abbrevFont{etc}.\xspace}%154 }%155 139 \makeatother 156 140 … … 161 145 \endlist 162 146 }% quote2 163 164 147 \newenvironment{rationale}{% 165 148 \begin{quote2}\noindent$\Box$\enspace … … 205 188 \newcommand{\VPageref}[2][page]{\ifx#1\@empty\else{#1}\nobreakspace\fi\pageref{#2}} 206 189 207 % Go programming language : https://github.com/julienc91/listings-golang/blob/master/listings-golang.sty190 % Go programming language 208 191 \lstdefinelanguage{Golang}{ 209 192 morekeywords=[1]{package,import,func,type,struct,return,defer,panic, recover,select,var,const,iota,},% … … 221 204 } 222 205 223 % CFA programming language, based on ANSI C (with some gcc additions)206 % CFA programming language, based on ANSI C 224 207 \lstdefinelanguage{CFA}[ANSI]{C}{ 225 208 morekeywords={_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto, 226 209 _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,disable,dtype,enable,__extension__, 227 fallthr ough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert,210 fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert, 228 211 _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__,}, 229 212 }% … … 232 215 language=CFA, 233 216 columns=fullflexible, 234 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use sanserif font235 stringstyle=\tt, % use typewriter font236 tabsize=4, % 4 space tabbing237 xleftmargin=\parindentlnth, % indent code to paragraph indentation238 extendedchars=true, % allow ASCII characters in the range 128-255239 escapechar=§, % escape to latex in CFA code240 mathescape=true, % allow $...$ LaTeX math escapes in code241 %keepspaces=true, % 242 showstringspaces=false, % do not show spaces with cup243 showlines=true, % show blank lines at end of code244 aboveskip=4pt, % spacing above/below code block217 basicstyle=\linespread{0.9}\sf, 218 stringstyle=\tt, 219 tabsize=4, 220 xleftmargin=\parindentlnth, 221 extendedchars=true, 222 escapechar=§, 223 mathescape=true, 224 keepspaces=true, 225 showstringspaces=false, 226 showlines=true, 227 aboveskip=4pt, 245 228 belowskip=3pt, 246 moredelim=**[is][\color{red}]{®}{®}, % red highlighting247 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting229 moredelim=**[is][\color{red}]{®}{®}, % red highlighting 230 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting 248 231 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting 249 232 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords … … 259 242 \renewcommand\thebibliography[1]{ 260 243 \Oldthebibliography{#1} 261 \setlength{\parskip}{0pt} % reduce vertical spacing between references244 \setlength{\parskip}{0pt} % reduce vertical spacing between references 262 245 \setlength{\itemsep}{5pt plus 0.3ex} 263 246 }% 247 248 \newcommand*{\eg}{\textit{e.g}.\@\xspace} 249 \newcommand*{\ie}{\textit{i.e}.\@\xspace} 250 251 \makeatletter 252 \newcommand*{\etc}{% 253 \@ifnextchar{.}% 254 {\textit{etc}}% 255 {\textit{etc}.\@\xspace}% 256 } 257 \makeatother 264 258 265 259 % Local Variables: %
Note:
See TracChangeset
for help on using the changeset viewer.