So, I've been trying to renewcommand \alpha by assigning it parameters in Latex. This is what I have for my preamble and the body...(seen below). On line 12, I attempted to create such a "function", but I continue to get the following errors
for line 14:
! TeX capacity exceeded, sorry [input stack size=5000].\alpha #1->\alpha (#1) ...\mathcal{C}^{\infty})\) is a map \(\alpha:
and for line 1: ! ==> Fatal error occurred, no output PDF file produced!
Can someone please help!?
\usepackage[utf8]{inputenc}
\usepackage{latexsym, braket, amsmath, amsfonts, amssymb,amsthm, mathtools, standalone, setspace, graphicx, tikz, pgfplots, nccmath}
\pgfplotsset{compat=newest}
\usepackage[english]{babel}
\newcommand{\Def}{\underline{\textbf{Definition:}}}
\renewcommand{\labelenumiii}{\roman{enumiii}}
\renewenvironment{proof}{\textbf{Proof:}\setlength{\parindent}{5em}
\setlength{\parskip}{1em} \renewcommand{\qedsymbol}{$\blacksquare$}}{\hfill \qedsymbol}
\DeclarePairedDelimiter\abs{\lvert}{\rvert}
\renewcommand{\sup}[1]{\mathrm{sup}(#1)}
\renewcommand{\inf}[1]{\mathrm{inf}(#1)}
\renewcommand{\alpha}[1]{\alpha(#1)}
\newcommand{\eps}{\epsilon}
\usepackage{anysize}\marginsize{.5in}{.5in}{.5in}{.5in}
\setlength{\parindent}{3em}
\setlength{\parskip}{1em}
\author{Dwight Dinkins}
\title{DIfferential Geometry ITCP: Lecture 1}
\date{March 19, 2020}
\setstretch{2}%
\begin{document}
\maketitle
\Def A differentiable curve \((\mathcal{C}^{\infty})\) is a map \(\alpha: I \longrightarrow \mathbb{R}^{3}\), \(I=(a,b)\subset\mathbb{R}\), such that \[\alpha{t}=( x(t), y(t),z(t))\), \(x,y,z\) are \(\mathcal{C}^{\infty}\) functions.
\end{document}```
\let\oldalpha=\alphaand then\renewcommand{\alpha}[1]{\oldalpha(#1)}. – campa Mar 19 '20 at 16:12\alphaas in the comments of @campa, but I don't believe this is what you want. First you call\alphaa differentiable curve and you don't want any kind of bracket here, then you want\alpha(...)and call both by the same name. You can do it any way with a optional parameter but I believe it is better to call the second one by other name, say\newcommand{\al}[1]{\alpha(#1)}or anything else. Same comments on\infand\sup. – Luis Turcio Mar 19 '20 at 16:21\hfillis ignored, that looks inconsistent and is annoying having to check by hand. – daleif Mar 19 '20 at 16:55\alphaloop the MWE cannot compile, there is no documentclass and you have a\[where you probably wanted\(– daleif Mar 19 '20 at 16:57articledoc class and remove thealphaloopthen\begin{proof} test \hspace{0.77\textwidth} test \end{proof}is enough to show the problem with thatproof` env. – daleif Mar 19 '20 at 17:02