diff options
Diffstat (limited to 'info/asy-overview/src/appendix/appendix.tex')
-rw-r--r-- | info/asy-overview/src/appendix/appendix.tex | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/info/asy-overview/src/appendix/appendix.tex b/info/asy-overview/src/appendix/appendix.tex index f4016f9cd6..1c21dc0bfa 100644 --- a/info/asy-overview/src/appendix/appendix.tex +++ b/info/asy-overview/src/appendix/appendix.tex @@ -4,19 +4,20 @@ Rather than copy and paste code common across graphics, we can put them in a separate file and import them. In the earlier \Asy{} sources the lines \begin{minted}{Asymptote} -cd("../../../asy"); import jh; cd(""); define_texpreamble(); +import "../../../asy/jh.asy" as jh; \end{minted} -will first run the commands in the file \path{../../../asy/jh.asy}, -and then run the function defined in that file. +will run the commands in the file \path{../../../asy/jh.asy} +and also make available the routines and data defined there. -Here is the file. -Its first few lines define the command to set the fonts, +Here is the file's contents. +First, it sets the fonts and changes the default font size. -(This change leaves more room for graphic elements and -also helps the graphics have a visually cohesive identity.) +(The smaller size leaves more room for graphic elements and +also helps the graphics have a visually cohesive identity distinct from +the document's body.) Then it defines a color scheme.\footnote{% - Thank you to \protect\texttt{color.adobe.com} user Michelle Delapenha.} -Lastly, it defines the + Credit to \protect\texttt{color.adobe.com} user Michelle Delapenha for this scheme.} +Last, it gives the \mintinline{Asymptote}{material} defaults for 3D graphics. \begin{center} |