aboutsummaryrefslogtreecommitdiffstats
path: root/tex
diff options
context:
space:
mode:
authorNaoki Pross <np@0hm.ch>2021-10-04 10:17:44 +0200
committerNaoki Pross <np@0hm.ch>2021-10-04 10:17:44 +0200
commit333aee8cd9b3d230d7c4f736c5a4c4b832ed32f7 (patch)
tree09adab2c273cbbfdd8a0c47b65730448ec640f57 /tex
parentSet up template (diff)
downloadDigME-333aee8cd9b3d230d7c4f736c5a4c4b832ed32f7.tar.gz
DigME-333aee8cd9b3d230d7c4f736c5a4c4b832ed32f7.zip
Notes from lecture on system level VHDL
Diffstat (limited to '')
-rw-r--r--tex/docmacros.sty7
1 files changed, 7 insertions, 0 deletions
diff --git a/tex/docmacros.sty b/tex/docmacros.sty
new file mode 100644
index 0000000..9fc0325
--- /dev/null
+++ b/tex/docmacros.sty
@@ -0,0 +1,7 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{docmacros}[2021/05/22 v0.1 Document Macros]
+
+\newcommand{\ph}[1]{\textrm{\textit{#1}}}
+\newcommand{\reqph}[1]{\textrm{\textlangle\,\ph{#1}\,\textrangle}}
+\newcommand{\optionalph}[1]{\textrm{[\,\ph{#1}\,]}}
+\newcommand{\vhdl}[1]{\lstinline[language=vhdl]{#1}}