aboutsummaryrefslogtreecommitdiff
path: root/src/Lecture2/live/commands.tex
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-05-25 17:10:49 +0200
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-05-25 17:10:49 +0200
commitd6c61d988bfa4255baf9cdae42db59ebee38363f (patch)
tree118ff3c2424e735149c145524965a4a337e50beb /src/Lecture2/live/commands.tex
parent46eef66b1e1571c77dc828d7e950b129b4c8bfd0 (diff)
downloadmathsoftware-d6c61d988bfa4255baf9cdae42db59ebee38363f.tar.gz
mathsoftware-d6c61d988bfa4255baf9cdae42db59ebee38363f.zip
Added files
Diffstat (limited to '')
-rw-r--r--src/Lecture2/live/commands.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Lecture2/live/commands.tex b/src/Lecture2/live/commands.tex
new file mode 100644
index 0000000..25a0a78
--- /dev/null
+++ b/src/Lecture2/live/commands.tex
@@ -0,0 +1,27 @@
1\documentclass[10pt,a5paper]{article}
2\usepackage[utf8]{inputenc}
3\usepackage{amsmath}
4\usepackage{amsfonts}
5\usepackage{amssymb}
6\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
7
8
9\newcommand{\myvec}[2]{({#1}_1,{#1}_2,\dots,{#1}_{#2})}
10\newcommand{\myvecn}[1]{\myvec{#1}{n}}
11
12\newcommand{\myvecopt}[2][n]{({#2}_1,{#2}_2,\dots,{#2}_{#1})}
13\providecommand{\vec}[1]{\overleftarrow{#1}}
14
15\begin{document}
16
17\[
18 \vec{v}=\myvecopt{v}
19\]
20
21later...
22
23\[
24 \vec{w}=\myvecopt[10]{w}
25\]
26
27\end{document} \ No newline at end of file

Generated with cgit - Back to sebastiano.tronto.net