<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I want one function to specify some amount of white space. Here's what I've come up with for my .sty file:</div><div><br></div><div><div>\newcommand{\indentLength}{3}</div><div>\newcommand{\indentUnit}{em}</div><div>\newcommand{\indentFull}{\indentLength\indentUnit}</div><div>\newcommand{\indents}[1]{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>\ifthenelse{\greaterthan{#1}{0}}{\hspace{\indentFull}\indents{#1-1}}{}</div><div>}</div><div><br></div><div>Then, I attempt to use \indent{1} on line 77 of my file. I get lots of repeats of the following output:</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(230, 226, 232); font-family: 'Trebuchet MS'; font-size: 13px; "><p class="error" style="color: red; margin-left: 20px; ">Latex Error: <a href="txmt://open?url=file:%2F%2F%2FUsers%2Fevanberkowitz%2FDesktop%2FBylaws%2F.%2Fpks.tex&line=77" style="color: red; margin-top: 0px; ">./pks.tex:77</a> Undefined control sequence.</p><p class="error" style="color: red; margin-left: 20px; ">Latex Error: <a href="txmt://open?url=file:%2F%2F%2FUsers%2Fevanberkowitz%2FDesktop%2FBylaws%2F.%2Fpks.tex&line=77" style="color: red; margin-top: 0px; ">./pks.tex:77</a> Missing number, treated as zero.</p><p class="error" style="color: red; margin-left: 20px; ">Latex Error: <a href="txmt://open?url=file:%2F%2F%2FUsers%2Fevanberkowitz%2FDesktop%2FBylaws%2F.%2Fpks.tex&line=77" style="color: red; margin-top: 0px; ">./pks.tex:77</a> Missing = inserted for \ifnum.</p><p class="error" style="color: red; margin-left: 20px; ">Latex Error: <a href="txmt://open?url=file:%2F%2F%2FUsers%2Fevanberkowitz%2FDesktop%2FBylaws%2F.%2Fpks.tex&line=77" style="color: red; margin-top: 0px; ">./pks.tex:77</a> Missing number, treated as zero.</p></span></div></div><div apple-content-edited="true"> <div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px">This repeats over and over again, until I get </p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: 'Trebuchet MS'; font-size: 13px; "><span class="Apple-tab-span" style="white-space:pre"> </span>Latex Error: <a href="txmt://open?url=file:%2F%2F%2FUsers%2Fevanberkowitz%2FDesktop%2FBylaws%2F.%2Fpks.tex&line=77" style="color: red; margin-top: 0px; ">./pks.tex:77</a> ==> Fatal error occurred, no output PDF file produced!</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px">Is doing this possible? I really don't feel like typing things out over and over again...</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px">Thanks a lot for the help.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px">Evan<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br class="khtml-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px">--------------------------------------------------<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">The dinosaurs became extinct because they didn't have a space program.</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><span class="Apple-converted-space"><span class="Apple-converted-tab"> <span class="Apple-converted-space"> </span></span></span>Larry Niven</font></p><br class="Apple-interchange-newline"></div> </div><br></body></html>