LaTeX LaTex definitions (very common ones) which are very simple to use.

  • Thread starter Thread starter DrWahoo
  • Start date Start date
  • Tags Tags
    Definitions Latex
AI Thread Summary
The discussion focuses on commonly used LaTeX definitions that simplify coding by avoiding lengthy commands. Key packages such as amsmath, amssymb, and amsthm are highlighted for their utility in mathematical documents. Custom commands are provided for operations, domains, integrals, and boldface characters, enhancing efficiency in document preparation. Users are encouraged to test the code and can request examples to better understand its application. Overall, these definitions aim to streamline the LaTeX writing process for users.
DrWahoo
Messages
45
Reaction score
0
Feel free to test out the code. I use these nearly anytime I load up a new file in LaTex. They are very simple and easy to use versus typing out the full latex command. \usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\newtheorem{definition}{Definition}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
%

% THIS IS THE PLACE FOR YOUR OWN DEFINITIONS
\newcommand{\oper}[3]{[#1#2](#3)}
\newcommand{\domain}[1]{\mathcal{D}(#1) \equiv H^1_0(0,1) \cap H^2(0,1)}
\newcommand{\R}{{\rm I\! R^3_+}}
\newcommand{\Rn}{{\rm I\! R^n}}
\newcommand{\Rtwo}{{\rm I\! R^2}}
\newcommand{\Rfour}{{\rm I\! R^4_+}}
\newcommand{\e}[1]{e^{-(#1-\,\gamma)^2}}
\newcommand{\iprod}[2]{\langle#1,#2\rangle}
\newcommand{\innprod}[3]{\langle#1,#2\rangle _#3}
\newcommand{\sD}{\mathcal{D}}
\newcommand{\rint}[2]{\int^{1}_{0}{#1} \,d{#2}}
\newcommand{\rrint}[3]{\int^{1}_{0}\int^{1}_{0}{#1} \,d{#2}\,d{#3}}
\newcommand{\der}[1]{\frac{d #1}{dt}}
\newcommand{\pder}[2]{ \frac{\partial#1}{\partial #2} }
\newcommand{\secpder}[2]{\frac{\partial^2 #1}{\partial #2^2}}
\newcommand{\rrrrint}[5]{\int^{1}_{0}\int^{1}_{0}\int^{1}_{0}\int^{1}_{0}{#1} \,d{#2}\,d{#3}\,d{#4}\,d{#5}}
\newcommand{\p}{p(x,\xi)}
\newcommand{\Sum}[2]{\sum^N_{j=1}#1#2}
\newcommand{\norm}[1]{\parallel #1 \parallel}
%
% boldface characters in mathematical formulas
\newcommand{\bff}{\mbox{\boldmath $f$}}
\newcommand{\bfc}{\mbox{\boldmath $c$}}
\newcommand{\bfl}{\mbox{\boldmath $l$}}
\newcommand{\bfn}{\mbox{\boldmath $n$}}
\newcommand{\bfu}{\mbox{\boldmath $u$}}
\newcommand{\bfx}{\mbox{\boldmath $x$}}
\newcommand{\bfy}{\mbox{\boldmath $y$}}
\newcommand{\bfa}{\mbox{\boldmath $\alpha$}}
\newcommand{\bfzero}{\mbox{\boldmath $0$}}
\newcommand{\bfcurl}{{\bf curl}} % curl of a vector field
\newcommand{\rmdiv}{{\rm div}} % divergence of a vector field
\newcommand{\eop}{\hfill $\sqcap\!\!\!\!\sqcup$} % end of proof

- - - Updated - - -

I can include examples of the code and output if any users fine the definitions helpful.
 
Physics news on Phys.org
An example for the commands below are as follows:

will edit tomorrow, to tired tonight.\begin{document}
$\pder{x}{t} = \frac{x}{t}$
$\der{x} = \frac{dx}{dt}$
\end{document}
 
Last edited:

Similar threads

Replies
4
Views
3K
Replies
3
Views
2K
Replies
766
Views
737K
Replies
15
Views
25K
Replies
4
Views
4K
Back
Top