Skip to content

Instantly share code, notes, and snippets.

@khaledmdiab
Created August 30, 2013 23:51
Show Gist options
  • Save khaledmdiab/6395336 to your computer and use it in GitHub Desktop.
Save khaledmdiab/6395336 to your computer and use it in GitHub Desktop.
some commands in Latex
% replace Require and Ensure with Input and Output, in algorithmic package
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
% superscript and subscript commands
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
% command to generate inline red comment
\newcommand{\RedComment}[1]{{\bf \color{red}{Comment: #1}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment