summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Cochrane <paul@liekut.de>2015-09-20 22:35:59 +0200
committerPaul Cochrane <paul@liekut.de>2015-09-20 22:35:59 +0200
commita830858d6296d23e6bb56842745c7237cee7469c (patch)
tree09caa23cba6223a7127f89f8f3303af627ca662b
parent729e263f879aa9dd3378021af8582322d884a2f5 (diff)
Replace \def with \newcommand
The TeX \def command is better written in LaTeX as \newcommand. At least, this is what the advice about best practices say...
-rw-r--r--example.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/example.tex b/example.tex
index 682f303..09547d6 100644
--- a/example.tex
+++ b/example.tex
@@ -1,11 +1,11 @@
\documentclass[letterpaper]{dapper-invoice}
-\def\invoiceNo{101}
-\def\balance{137.50}
-\def\duein{15}% days
+\newcommand{\invoiceNo}{101}
+\newcommand{\balance}{137.50}
+\newcommand{\duein}{15}% days
-\def\me{Your~Name}
-\def\clientName{Sample~Client}
+\newcommand{\me}{Your~Name}
+\newcommand{\clientName}{Sample~Client}
\setmetadata{\me}{Your Biz}{\invoiceNo}{\clientName}