summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/asy-overview/src/asy_tut.tex
blob: fc88e07b2b2956b2d279d05aaa45bb1fa6747056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
\documentclass{book}
\usepackage{../asy_sty/asy_tut}

% For 3D PRC asymptote
% See: https://github.com/vectorgraphics/asymptote/blob/master/doc/externalprc.tex
% Compile .asy files with asy -inlineimage <fn>
\RequirePackage{asymptote}
\def\asydir{chapter4/asy/}
\graphicspath{{asy/}}
% uncomment for 3D graphics: 
\input chapter4/asy/vectors.pre
\input chapter4/asy/planes.pre
\input chapter4/asy/washer.pre
\usepackage[bigfiles]{media9}


\includeonly{
  cover/cover,
  preface/preface,
  chapter1/chapter1,
  chapter2/chapter2,
  chapter3/chapter3,
  chapter4/chapter4,
  appendix/appendix
}

\begin{document}
\frontmatter
\newcommand{\includefiledir}{cover}
\include{\includefiledir /cover}
\renewcommand{\includefiledir}{preface}
\include{\includefiledir /preface}
\mainmatter
\renewcommand{\includefiledir}{chapter1}
\include{\includefiledir /chapter1}
\renewcommand{\includefiledir}{chapter2}
\include{\includefiledir /chapter2}
\renewcommand{\includefiledir}{chapter3}
\include{\includefiledir /chapter3}
\renewcommand{\includefiledir}{chapter4}
\include{\includefiledir /chapter4}
\backmatter
\renewcommand{\includefiledir}{appendix}
\include{\includefiledir /appendix}
\end{document}

%
% These lines tells gnu-emacs to typeset with the default tex engine
% which requires Unicode encoding only (utf-8)
% ^c^t^s for toggling synctex. 
% ^-Shift-Click to move from pdf to source, Command-Shift-Click on OSX
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: default
%%% TeX-command-extra-options: " -shell-escape"
%%% TeX-source-correlate-method-active: synctex
%%% coding: utf-8
%%% End: