2

I am playing and exploring the renewcommand and newcommand right now, and I tried to do:

\renewcommand{\rightarrow}{\mathlarger{\mathlarger{\rightarrow}}}

I get it to work with the newcommand like this:

\newcommand{\largerightarrow}{\mathlarger{\mathlarger{\rightarrow}}}

However, the newcommand would require longer name, and it would be nicer in this case to use the standard command rightarrow.

I've noticed that I haven't used the original size of the $\rightarrow$ once yet, therefor I'd like to have that renewcommand in my template for my math documents.

2
  • 1
    \let\RightArrow\rightarrow\renewcommand\rightarrow{\mathlarger{\mathlarger{\RightArrow}}?
    – 1010011010
    Oct 16, 2014 at 22:05
  • Related Question: In case you need further customization of the arrow, in Defining custom direct and inverse limits I define a \MyTo arrows which uses tikz to draw it. Oct 16, 2014 at 22:23

1 Answer 1

3

Renewing a command with the command itself in its definition won't work because TeX doesn't remember what the command was previously as you're redefining it.

The code you're looking for is something along the lines of:

\documentclass[12pt, letterpaper]{article}
\usepackage{relsize}

\let\RightArrow\rightarrow
\renewcommand\rightarrow{\mathlarger{\mathlarger{\RightArrow}}}

\begin{document}
    4 colours + 13card/colour $\rightarrow$ 52 cards
\end{document}
3
  • I get Undefined Control Sequence when I do that command.
    – Ahana
    Oct 16, 2014 at 22:14
  • It was missing a brace. Fixed that now!
    – 1010011010
    Oct 16, 2014 at 22:18
  • @1010011010: Can you post a complete MWE including \documentclass and appropriate packages. Oct 16, 2014 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.