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

  • Context: LaTeX 
  • Thread starter Thread starter DrWahoo
  • Start date Start date
  • Tags Tags
    Definitions Latex
Click For Summary
SUMMARY

This discussion provides a collection of essential LaTeX definitions and commands that streamline the process of writing mathematical documents. Key packages such as amsmath, amssymb, and amsthm are recommended for use. The user shares custom commands for common mathematical operations, including derivatives and integrals, enhancing efficiency in LaTeX document preparation. Examples of usage are also suggested to illustrate the practical application of these definitions.

PREREQUISITES
  • Familiarity with LaTeX syntax and document structure
  • Understanding of mathematical notation and terminology
  • Basic knowledge of LaTeX packages, specifically amsmath, amssymb, and amsthm
  • Experience with defining custom commands in LaTeX
NEXT STEPS
  • Explore advanced LaTeX packages for enhanced mathematical typesetting
  • Learn about LaTeX environments for theorems and proofs
  • Investigate the use of tikz for creating diagrams in LaTeX
  • Study the implementation of LaTeX in collaborative platforms like Overleaf
USEFUL FOR

Mathematicians, researchers, educators, and students who frequently use LaTeX for typesetting mathematical documents will benefit from this discussion.

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 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 766 ·
26
Replies
766
Views
742K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
2
Views
1K
  • · Replies 15 ·
Replies
15
Views
25K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
586