mynotation.sty 1.3 KB

123456789101112131415161718192021222324252627282930
  1. % Define some abbreviations
  2. \RequirePackage{xspace}
  3. \let\textabbr\textsc
  4. \newcommand{\abbrPID}{\texorpdfstring{\textabbr{pid}}{PID}\xspace}
  5. \newcommand{\abbrARMA}{\texorpdfstring{\textabbr{arma}}{ARMA}\xspace}
  6. \newcommand{\abbrDUT}{\texorpdfstring{\textabbr{dut}}{DUT}\xspace}
  7. % Common sets
  8. \newcommand{\reals}{\mathbb{R}}
  9. \newcommand{\complexes}{\mathbb{C}}
  10. \newcommand{\rationals}{\mathbb{Q}}
  11. \newcommand{\naturals}{\mathbb{N}}
  12. \newcommand{\integers}{\mathbb{Z}}
  13. % Text style for different kinds of words.
  14. \newcommand{\textfilename}[1]{\mbox{\emph{#1}}}% The command \filename is already used by some other package.
  15. \newcommand{\styname}[1]{\texorpdfstring{{\fontsize{0.9em}{1\baselineskip}\selectfont\mbox{\textsf{#1}}}}{#1}}
  16. \newcommand{\classoption}[1]{\mbox{\texttt{#1}}}
  17. \newcommand{\texcommand}[1]{\mbox{\texttt{\textbackslash #1}}}
  18. \newcommand{\envname}[1]{\mbox{\texttt{#1}}}
  19. % Miscellaneous strings with special formatting
  20. \newcommand{\rtthesis}{\emph{\styname{rtthesis}}\xspace}% It's not really a style file (package), but it is close enough.
  21. % It's hard to get good-looking underscores in filenames. This is one attempt...
  22. \newcommand{\usc}{\hspace{0.1ex}\rule{1ex}{0.1ex}\hspace{0.1ex}}%\raisebox{2.5pt}{\_}
  23. %c sharp as \cs
  24. \newcommand{\CS}{C\nolinebreak\hspace{-.05em}\raisebox{.6ex}{\tiny\bf \#}}