aboutsummaryrefslogtreecommitdiffstats
path: root/subsurfacetemplate.tex
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2016-10-03 17:08:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-10-11 22:00:08 -0700
commit9b8a04089db640b835787ab1bb871298d47e89bf (patch)
tree239f75e7b95cb703439dc87cf2d1b96f63425b03 /subsurfacetemplate.tex
parent0d20344c901c697d109d2ac071293bcb47db039a (diff)
downloadsubsurface-9b8a04089db640b835787ab1bb871298d47e89bf.tar.gz
Export to TeX file initialized
This does the basic export as a TeX file including a template. It still lacks proper location parsing. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacetemplate.tex')
-rw-r--r--subsurfacetemplate.tex54
1 files changed, 54 insertions, 0 deletions
diff --git a/subsurfacetemplate.tex b/subsurfacetemplate.tex
new file mode 100644
index 000000000..9662d9068
--- /dev/null
+++ b/subsurfacetemplate.tex
@@ -0,0 +1,54 @@
+\input graphicx
+\nopagenumbers
+\font\breit=cmr10 scaled \magstep3
+\font\klein=cmr9
+\font\winzig=cmr5
+\def\slinie{\hrulefill\hskip 3em}
+\overfullrule=0pt
+\def\p{\hskip 0.5cm} % typical horizontal room
+\parindent=1cm
+%\offinterlineskip
+\long\def\page{
+$$\vbox{\hrule % upper cutting line
+\vskip 2.0cm % upper whitespace
+\vrule % left cutting line
+$\vbox to 15cm{ % height of box
+\vss\hbox to 3mm{\hrulefill}\vss}$ % middle line
+\hskip 4.0cm % left white space
+\vrule\vbox to 15cm{ % again height of box
+\hrule depth 2pt % upper box boundary
+\hbox to 10cm{ % width of box
+\strut\p\date\slinie\vrule$\vcenter to 1.5cm{\vfil\hbox to
+1.5cm{\hss\breit\strut\number\hss}\vfil\hrule}\vrule$}
+%
+\hbox{\p{\breit\strut\place} \country\hrulefill}
+\medskip
+\hbox{\p{\breit\strut\spot}\hrulefill}
+\medskip
+\hbox{\p\strut Entrance:\entrance\slinie}
+\bigskip
+\hbox to 10cm{\hss\breit\strut \time \p@\p\hbox to 1.5cm{\hss\depth}\hss}
+\bigskip
+\hbox to 10cm{\klein\p $\Delta p$:\hbox to 1cm{\hrulefill\gasuse}\hss
+SAC:\hbox to 1.5cm{\hrulefill\sac}\hss
+Type:\hbox to 1.2cm{\hrulefill\type}\hss Viz.:
+\hbox to 0.8cm{\hrulefill\viz}\p}
+\bigskip
+\hbox{\p\hsize = 9cm
+\vbox{\noindent
+\comment
+}\p\hss}
+\leaders\vbox to 0.55cm{\vss\hbox to 10cm{\p\hrulefill\p}}\vfill
+\hbox to 10cm{\hss\plot\hss}
+\vskip 0.5cm
+\hbox to 10cm{\p{\breit Buddy:} \buddy\hrulefill\p}
+
+\vskip 1ex % room above end of box
+\hrule depth 2pt % lower boundary
+}\vrule % right boundary
+\hskip 1.0cm\vrule % right white space
+\par
+\hbox{\hskip 6cm
+\winzig Subsurface dive log http://subsurface-divelog.org}
+\vskip 2.0cm % lower white space
+\hrule}$$}