6

I have to type some formulas of this kind very often $$\mathrm{e}^{\beta \varDelta t}$$

Is there a way I can create some shortcut with collection of such formulas that I can easily access per click so that I don't have to copy-paste them all the time? Something like a favorites bar?

I'm using TeXstudio

7

You can create a new command in your preamble like so:

\newcommand{\myFn}{\mathrm{e}^{\beta \varDelta t}}

Then you can simply use your short-hand command, in this case \myFn, in your document like so: $$\myFn$$.

  • 2
    The OP might find your macro more useful if you took out the display mode math (the $$). Then he could use it inside math mode as part of an equation or expression. Also: $$ is no longer the best way to display math. – Ethan Bolker Sep 11 '16 at 12:02
  • @EthanBolker Thanks for the hint. I updated my answer accordingly. – jaySon Sep 11 '16 at 12:37

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.