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

1

1 Answer 1

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
  • 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. Sep 11, 2016 at 12:02
  • @EthanBolker Thanks for the hint. I updated my answer accordingly.
    – jaySon
    Sep 11, 2016 at 12:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .