Created
August 30, 2013 23:51
-
-
Save khaledmdiab/6395336 to your computer and use it in GitHub Desktop.
some commands in Latex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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