Changeset c4f8170
- Timestamp:
- Feb 8, 2022, 5:05:49 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- a554e5f4
- Parents:
- 968f280 (diff), 7a15b7e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- doc/LaTeXmacros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.sty
r968f280 rc4f8170 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Mon May 31 09:08:37 202114 %% Update Count : 56 513 %% Last Modified On : Mon Feb 7 23:00:46 2022 14 %% Update Count : 569 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 43 43 \newcommand{\CCIcon}{\textrm{C}\kern-.1em\hbox{+\kern-.25em+}} % C++ icon 44 44 \newcommand{\CC}[1][]{\protect\CCIcon{#1}\xspace} % C++ symbolic name 45 \newcommand{\Cpp}[1][]{\CC{#1}} % C++ synonym 45 46 % numbers disallowed in latex variables names => use number names 46 47 \newcommand{\CCeleven}{\protect\CCIcon{11}\xspace} % C++11 symbolic name … … 51 52 52 53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 54 55 \usepackage{pslatex} % reduce size of san serif font 56 \usepackage{relsize} % must be after change to small or selects old size 57 \usepackage{rotating} 58 \usepackage{calc} % latex arithmetic 53 59 54 60 % remove special-character warning in PDF side-bar names … … 71 77 \newlength{\parindentlnth} 72 78 \setlength{\parindentlnth}{\parindent} 73 74 \usepackage{pslatex} % reduce size of san serif font75 \usepackage{relsize} % must be after change to small or selects old size76 \usepackage{rotating}77 \usepackage{calc} % latex arithmetic78 79 79 80 % reduce size of chapter/section titles … … 151 152 \newcommand{\@snewterm}[2][\@empty]{{\newtermFontInline{#2}}\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi} 152 153 154 % \snake{<identifier>} 155 % Improves writing of snake case (or any convention that uses _) by allowing 156 % line breaks after _. Disables commands inside the block and formats the 157 % identifier to look like code. 158 \newcommand*\snake[1]{\snakefont{\expandafter\snake@next\detokenize{#1}\@nil}} 159 160 % \snakefont{<text>} 161 % Command used by \snake, you may renew the command to change its formating. 162 \newcommand*\snakefont[1]{\LstBasicStyle{#1}} 163 164 % Thanks Manuel of TeX Stack exchange. (I got the base pattern from one of 165 % their answers.) Note: \@nil should never be defined. 166 \newcommand*\snake@next[1]{\ifx\@nil#1\else 167 \expandafter\ifx\string_#1\string_\allowbreak\else#1\fi 168 \expandafter\snake@next\fi 169 } 170 171 % \lang{<language>}{<code>} 172 % Use the listings package to format the snipit of <code> in <language>. 173 \newcommand{\lang}[2]{\lstinline[language=#1]{#2}} 174 153 175 % Latin abbreviation 154 176 \newcommand{\abbrevFont}{\textit} % set empty for no italics … … 263 285 extendedchars=true, % allow ASCII characters in the range 128-255 264 286 escapechar=\$, % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-' 265 mathescape=false, % LaTeX math escape in CFA code $...$287 mathescape=false, % disable LaTeX math escape in CFA code $...$ 266 288 keepspaces=true, % 267 289 showstringspaces=false, % do not show spaces with cup … … 308 330 }{} 309 331 % inline code @...@ (at symbol) 310 \makeatother311 332 \lstMakeShortInline@ % single-character for \lstinline 312 \makeatletter313 333 \fi% 314 334 -
doc/LaTeXmacros/common.tex
r968f280 rc4f8170 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Mon May 31 09:10:49 202114 %% Update Count : 5 4613 %% Last Modified On : Mon Feb 7 23:00:08 2022 14 %% Update Count : 552 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 43 43 \newcommand{\CCIcon}{\textrm{C}\kern-.1em\hbox{+\kern-.25em+}} % C++ icon 44 44 \newcommand{\CC}[1][]{\protect\CCIcon{#1}\xspace} % C++ symbolic name 45 \newcommand{\Cpp}[1][]{\CC{#1}} % C++ synonym 45 46 % numbers disallowed in latex variables names => use number names 46 47 \newcommand{\CCeleven}{\protect\CCIcon{11}\xspace} % C++11 symbolic name … … 51 52 52 53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 54 55 \usepackage{pslatex} % reduce size of san serif font 56 \usepackage{relsize} % must be after change to small or selects old size 57 \usepackage{rotating} 58 \usepackage{calc} % latex arithmetic 53 59 54 60 % remove special-character warning in PDF side-bar names … … 72 78 \newlength{\parindentlnth} 73 79 \setlength{\parindentlnth}{\parindent} 74 75 \usepackage{pslatex} % reduce size of san serif font76 \usepackage{relsize} % must be after change to small or selects old size77 \usepackage{rotating}78 \usepackage{calc} % latex arithmetic79 80 80 81 % reduce size of chapter/section titles … … 152 153 \newcommand{\@snewterm}[2][\@empty]{{\newtermFontInline{#2}}\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi} 153 154 155 % \snake{<identifier>} 156 % Improves writing of snake case (or any convention that uses _) by allowing 157 % line breaks after _. Disables commands inside the block and formats the 158 % identifier to look like code. 159 \newcommand*\snake[1]{\snakefont{\expandafter\snake@next\detokenize{#1}\@nil}} 160 161 % \snakefont{<text>} 162 % Command used by \snake, you may renew the command to change its formating. 163 \newcommand*\snakefont[1]{\LstBasicStyle{#1}} 164 165 % Thanks Manuel of TeX Stack exchange. (I got the base pattern from one of 166 % their answers.) Note: \@nil should never be defined. 167 \newcommand*\snake@next[1]{\ifx\@nil#1\else 168 \expandafter\ifx\string_#1\string_\allowbreak\else#1\fi 169 \expandafter\snake@next\fi 170 } 171 172 % \lang{<language>}{<code>} 173 % Use the listings package to format the snipit of <code> in <language>. 174 \newcommand{\lang}[2]{\lstinline[language=#1]{#2}} 175 154 176 % Latin abbreviation 155 177 \newcommand{\abbrevFont}{\textit} % set empty for no italics … … 268 290 extendedchars=true, % allow ASCII characters in the range 128-255 269 291 escapechar=\$, % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-' 270 mathescape=false, % LaTeX math escape in CFA code $...$292 mathescape=false, % disable LaTeX math escape in CFA code $...$ 271 293 keepspaces=true, % 272 294 showstringspaces=false, % do not show spaces with cup
Note: See TracChangeset
for help on using the changeset viewer.