Hi I'm trying to set a length of a variable I've defined.
Note: I'm writing this in a class file, therefore you may need to use \makeatletter and \makeatother in the appropriated places.
\newcommand*{\@name}{}
\newcommand*{\name}[1]{\renewcommand*{\@name}{#1}}
\newlength{\nameLength ...
Search found 2 matches
- Tue May 08, 2012 11:54 pm
- Forum: Text Formatting
- Topic: Length of String Variable
- Replies: 1
- Views: 2928
- Sun Oct 16, 2011 6:39 pm
- Forum: General
- Topic: Conditional Branch in new Command
- Replies: 1
- Views: 1977
Conditional Branch in new Command
Hi, I was wondering if anyone can suggest a way to get \ifthenelse working within another command.
This segment is what I have at the moment, granted I know it doesn't work, but it should give you an idea what I mean.
\usepackage{xifthen}
\usepackage{minted}
\newcommand{\codesrc}[5 ...
This segment is what I have at the moment, granted I know it doesn't work, but it should give you an idea what I mean.
\usepackage{xifthen}
\usepackage{minted}
\newcommand{\codesrc}[5 ...