Fix Makefile whitespace errors
[shapes.git] / examples / showcase / stereo.shape
blob82a5b819bc875acdd44cda64f572542b44c24404
1 /** This file is part of Shapes.
2  **
3  ** Shapes is free software: you can redistribute it and/or modify
4  ** it under the terms of the GNU General Public License as published by
5  ** the Free Software Foundation, either version 3 of the License, or
6  ** any later version.
7  **
8  ** Shapes is distributed in the hope that it will be useful,
9  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
10  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  ** GNU General Public License for more details.
12  **
13  ** You should have received a copy of the GNU General Public License
14  ** along with Shapes.  If not, see <http://www.gnu.org/licenses/>.
15  **
16  ** Copyright 2008, 2010, 2014 Henrik Tidefelt
17  **/
19 ##preamble \usepackage{amsmath}
20 ##preamble \usepackage{SIunits}
22 ##lookin ..Shapes
23 ##lookin ..Shapes..Geometry3D
25 pth: [[scale 2] (0cm,0cm,0cm)>(+3cm*(1,1,0))--(+3cm*(~1,1,0))<(1cm,0cm,1cm)]
27 eyew: 5cm
29 @eyez:25cm
33   IO..•page << [Graphics..stroke [view pth]] << [Graphics..stroke [[Geometry..shift (2*eyew,0cm)] [view [[shift (~eyew,0cm,0cm)] pth]]]]
34   IO..•page << [[Geometry..shift (5cm,9cm)] [Graphics..TeX `\begin{minipage}{4cm}\begin{align*}´ + [String..sprintf `w_{\mathrm{eye}} &= \unit{%g}{\centi\meter}\\´ eyew/1cm] + [String..sprintf `z_{\mathrm{eye}} &= \unit{%g}{\centi\meter}´ @eyez/1cm] + `\end{align*}\end{minipage}´]]