diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/context/documents/general/manuals/nodes.pdf | bin | 304659 -> 315592 bytes | |||
-rw-r--r-- | doc/context/documents/general/qrcs/setup-cs.pdf | bin | 834284 -> 834275 bytes | |||
-rw-r--r-- | doc/context/documents/general/qrcs/setup-de.pdf | bin | 836080 -> 836081 bytes | |||
-rw-r--r-- | doc/context/documents/general/qrcs/setup-en.pdf | bin | 839408 -> 839412 bytes | |||
-rw-r--r-- | doc/context/documents/general/qrcs/setup-fr.pdf | bin | 832327 -> 832326 bytes | |||
-rw-r--r-- | doc/context/documents/general/qrcs/setup-it.pdf | bin | 836787 -> 836785 bytes | |||
-rw-r--r-- | doc/context/documents/general/qrcs/setup-nl.pdf | bin | 829670 -> 829668 bytes | |||
-rw-r--r-- | doc/context/documents/general/qrcs/setup-ro.pdf | bin | 830819 -> 830815 bytes | |||
-rw-r--r-- | doc/context/scripts/mkiv/mtx-youless.html | 2 | ||||
-rw-r--r-- | doc/context/scripts/mkiv/mtx-youless.man | 3 | ||||
-rw-r--r-- | doc/context/scripts/mkiv/mtx-youless.xml | 2 | ||||
-rw-r--r-- | doc/context/sources/general/manuals/nodes/nodes.tex | 177 |
12 files changed, 178 insertions, 6 deletions
diff --git a/doc/context/documents/general/manuals/nodes.pdf b/doc/context/documents/general/manuals/nodes.pdf Binary files differindex 18c564192..5162808ab 100644 --- a/doc/context/documents/general/manuals/nodes.pdf +++ b/doc/context/documents/general/manuals/nodes.pdf diff --git a/doc/context/documents/general/qrcs/setup-cs.pdf b/doc/context/documents/general/qrcs/setup-cs.pdf Binary files differindex 0d2a7dd74..4ffb8325a 100644 --- a/doc/context/documents/general/qrcs/setup-cs.pdf +++ b/doc/context/documents/general/qrcs/setup-cs.pdf diff --git a/doc/context/documents/general/qrcs/setup-de.pdf b/doc/context/documents/general/qrcs/setup-de.pdf Binary files differindex d9f5ca79d..5952c0c26 100644 --- a/doc/context/documents/general/qrcs/setup-de.pdf +++ b/doc/context/documents/general/qrcs/setup-de.pdf diff --git a/doc/context/documents/general/qrcs/setup-en.pdf b/doc/context/documents/general/qrcs/setup-en.pdf Binary files differindex 492576d86..50dc00a0c 100644 --- a/doc/context/documents/general/qrcs/setup-en.pdf +++ b/doc/context/documents/general/qrcs/setup-en.pdf diff --git a/doc/context/documents/general/qrcs/setup-fr.pdf b/doc/context/documents/general/qrcs/setup-fr.pdf Binary files differindex 66989e8a9..2f525c51d 100644 --- a/doc/context/documents/general/qrcs/setup-fr.pdf +++ b/doc/context/documents/general/qrcs/setup-fr.pdf diff --git a/doc/context/documents/general/qrcs/setup-it.pdf b/doc/context/documents/general/qrcs/setup-it.pdf Binary files differindex b4eddc61b..aca703e3c 100644 --- a/doc/context/documents/general/qrcs/setup-it.pdf +++ b/doc/context/documents/general/qrcs/setup-it.pdf diff --git a/doc/context/documents/general/qrcs/setup-nl.pdf b/doc/context/documents/general/qrcs/setup-nl.pdf Binary files differindex ded507879..98a8f8141 100644 --- a/doc/context/documents/general/qrcs/setup-nl.pdf +++ b/doc/context/documents/general/qrcs/setup-nl.pdf diff --git a/doc/context/documents/general/qrcs/setup-ro.pdf b/doc/context/documents/general/qrcs/setup-ro.pdf Binary files differindex c419e6e32..90fee7b25 100644 --- a/doc/context/documents/general/qrcs/setup-ro.pdf +++ b/doc/context/documents/general/qrcs/setup-ro.pdf diff --git a/doc/context/scripts/mkiv/mtx-youless.html b/doc/context/scripts/mkiv/mtx-youless.html index 726403371..d5678920b 100644 --- a/doc/context/scripts/mkiv/mtx-youless.html +++ b/doc/context/scripts/mkiv/mtx-youless.html @@ -45,11 +45,13 @@ <tr><th>--kwh</th><td></td><td>summative kwh data</td></tr> <tr><th>--watt</th><td></td><td>collected watt data</td></tr> <tr><th>--host</th><td></td><td>ip address of device</td></tr> + <tr><th>--auto</th><td></td><td>fetch kwh and watt data every hour</td></tr> </table> <br/> <h1>Example</h1> <tt>mtxrun --script youless --collect --host=192.168.2.50 --kwh</tt> <br/><tt>mtxrun --script youless --collect --host=192.168.2.50 --watt somefile.lua</tt> +<br/><tt>mtxrun --script youless --collect --host=192.168.2.50 --auto file-prefix</tt> <br/><br/> </div> </div> </body> diff --git a/doc/context/scripts/mkiv/mtx-youless.man b/doc/context/scripts/mkiv/mtx-youless.man index b48113381..64a108402 100644 --- a/doc/context/scripts/mkiv/mtx-youless.man +++ b/doc/context/scripts/mkiv/mtx-youless.man @@ -28,6 +28,9 @@ collected watt data .TP .B --host ip address of device +.TP +.B --auto +fetch kwh and watt data every hour .SH AUTHOR More information about ConTeXt and the tools that come with it can be found at: diff --git a/doc/context/scripts/mkiv/mtx-youless.xml b/doc/context/scripts/mkiv/mtx-youless.xml index cd402c3d0..888c34934 100644 --- a/doc/context/scripts/mkiv/mtx-youless.xml +++ b/doc/context/scripts/mkiv/mtx-youless.xml @@ -14,6 +14,7 @@ <flag name="kwh"><short>summative kwh data</short></flag> <flag name="watt"><short>collected watt data</short></flag> <flag name="host"><short>ip address of device</short></flag> + <flag name="auto"><short>fetch kwh and watt data every hour</short></flag> </subcategory> </category> </flags> @@ -23,6 +24,7 @@ <subcategory> <example><command>mtxrun --script youless --collect --host=192.168.2.50 --kwh</command></example> <example><command>mtxrun --script youless --collect --host=192.168.2.50 --watt somefile.lua</command></example> + <example><command>mtxrun --script youless --collect --host=192.168.2.50 --auto file-prefix</command></example> </subcategory> </category> </examples> diff --git a/doc/context/sources/general/manuals/nodes/nodes.tex b/doc/context/sources/general/manuals/nodes/nodes.tex index 190e654fc..7bf88302c 100644 --- a/doc/context/sources/general/manuals/nodes/nodes.tex +++ b/doc/context/sources/general/manuals/nodes/nodes.tex @@ -20,7 +20,7 @@ % comment : This manual orginates in an article by Alan so anything wrong in here is Hans % fault as he converted it. % -% comment : The conver images are form the NASA website. +% comment : The conver images are from the NASA website. \definemeasure [layout:margin] [\paperheight/20] @@ -179,6 +179,14 @@ [offset=1pt, foregroundcolor=white] +\startMPdefinitions + ahlength := 12pt ; + ahangle := 30 ; + ahvariant := 1 ; % dimpled +\stopMPdefinitions + +% Only here do we use the special nodes:: instance + \startreusableMPgraphic{nodes::krebs} % The Bethe cycle for energy production in stars (1939), following @@ -236,7 +244,7 @@ % Alan wanted a sun in the background combined somehow with the energy % harvesting molecule so here we go. The images that are used come from % the NASA website and I used them as screen saver for a while. The - % version that I generate use another variant than the one on the users + % version that I generate uses a variant from the one on the user's % machine. draw textext("\externalfigure[\framedparameter{imagename}]") @@ -292,10 +300,6 @@ figure} [fig:AB]. \startplacefigure [reference=fig:AB] \startMPcode - ahlength := 12pt ; - ahangle := 30 ; - ahvariant := 1 ; % dimpled - u := 1cm ; save nodepath ; path nodepath ; nodepath := (left -- right) scaled u ; @@ -673,6 +677,8 @@ located on the same path. \cite[authoryears] [Krebs1946] representation of a catalytic process.}] \startMPcode + % differs slightly from \reuseMPgraphic{nodes::krebs} + % The Bethe cycle for energy production in stars (1939), following Krebs (1946) save p ; path p[] ; @@ -1141,6 +1147,165 @@ the tree structure. \stopsubject +\startsubject [title=A 3D projection] + +% This special instance could become part of the base distribution... + +\defineMPinstance [three] [format=metafun,extensions=yes,initializations=yes,method=double] + +\startMPdefinitions{three} +% Simple 3D->2D projection +% Adapted from Urs Oswald, Dr.sc.math. ETH +% http://www.ursoswald.ch/metapost/tutorial.html +% and extended! + +transform t, Txy, Pxy ; +pair P[] ; +path p[] ; + +P0=origin ; % origin in MetaPost coordinates (bp) +P1=(left rotated 60) scaled (cosd 60) ; % x axis (in mathematical coordinates) + +% t: maps mathematical 2D coordinates onto MetaPost coordinates. + +t:=identity shifted P0 ; + +% Pxy is the projection of the 3D plane z=0 onto the mathematical 2D coordinates. +% Pxy is determined by 3 e q u a t i o n s describing +% how (1,0), (0,1), and (0,0) are mapped + + P1=(1,0)transformed Pxy ; % Pxy: (1,0) --> P1 +(1,0)=(0,1)transformed Pxy ; % (0,1) --> (1,0) +(0,0)=(0,0)transformed Pxy ; % (0,0) --> (0,0) + +% mathematical 2D coordinates --> MetaPost coordinates + +Txy:=Pxy transformed t ; + +let triplet=color ; +let Xpart=redpart ; +let Ypart=greenpart ; +let Zpart=bluepart ; +triplet Origin, Xunitvector, Yunitvector, Zunitvector ; +Origin = (0,0,0) ; +Xunitvector = (1,0,0) ; +Yunitvector = (0,1,0) ; +Zunitvector = (0,0,1) ; + +% overloads let abs=length ; from plain.mp + +vardef abs primary p = + if triplet p : sqrt((Xpart p)**2+(Ypart p)**2+(Zpart p)**2) else : length p fi +enddef ; + +vardef projection expr t = % returns MetaPost coordinates (bp) + if triplet t : + (Xpart t, Ypart t) transformed Txy shifted (0,Zpart t) + elseif pair t : + t transformed Txy + else : + origin transformed Txy + fi +enddef ; + +primarydef p dotproduct q = + ((Xpart p)*(Xpart q) + (Ypart p)*(Ypart q) + (Zpart p)*(Zpart q)) +enddef ; + +primarydef p crossproduct q = + ((Ypart p)*(Zpart q) - (Zpart p)*(Ypart q), + (Zpart p)*(Xpart q) - (Xpart p)*(Zpart q), + (Xpart p)*(Ypart q) - (Ypart p)*(Xpart q)) +enddef ; + +primarydef p rotatedaboutX q = + hide( + pair yz ; + yz:=(Ypart p, Zpart p) ; + yz:=yz rotated q ;) + (Xpart p, xpart yz, ypart yz) +enddef ; + +primarydef p rotatedaboutY q = + hide( + pair zx ; + zx:=(Zpart p, Xpart p) ; + zx:=zx rotated q ;) + (ypart zx, Ypart p, xpart zx) +enddef ; + +primarydef p rotatedaboutZ q = + hide( + pair xy ; + xy:=(Xpart p, Ypart p) ; + xy:=xy rotated q ;) + (xpart xy, ypart xy, Zpart p) +enddef ; + +vardef draw_vector@# (expr v, s) text t = + if triplet v : + drawarrow projection(Origin)--projection(v) t ; + if string s : + label@#(s, projection(v)) t ; + fi + fi +enddef ; + +\stopMPdefinitions + +\startMPcalculation{three} + ahlength := 12pt ; + ahangle := 30 ; + ahvariant := 1 ; % dimpled +\stopMPcalculation + +\startplacefigure [location=left] + \startMPcode{three} + + nodepath := ( + projection Origin -- + projection (1,0,0) -- + projection (1,1,0) -- + projection (0,1,0) -- + projection (0,1,1) -- + projection (1,1,1) -- + projection (1,0,1) -- + projection (0,0,1) -- + cycle + ) scaled 5cm ; + + draw node(0,"\node{${\cal C}_{i\cal P}^{\mathrm{nt}}$}") ; + draw node(1,"\node{${\cal C}_{i\cal G}^{\mathrm{nt}}$}") ; + draw node(2,"\node{${\cal C}_{j\cal P}^{\mathrm{nt}}$}") ; + draw node(3,"\node{${\cal C}_{j\cal G}^{\mathrm{nt}}$}") ; + draw node(4,"\node{${\cal C}_{j\cal G}$}") ; + draw node(5,"\node{${\cal C}_{j\cal P}$}") ; + draw node(6,"\node{${\cal C}_{i\cal G}$}") ; + draw node(7,"\node{${\cal C}_{i\cal P}$}") ; + + interim crossingscale := 30 ; + + drawdoublearrows fromto(0,0,1) ; + drawdoublearrows fromto(0,1,2) ; + drawdoublearrows fromto(0,2,3) ; + drawdoublearrows fromto(0,3,0) crossingunder fromto(0,2,5) ; + + drawdoublearrows fromto(0,7,6) ; + drawdoublearrows fromto(0,6,5) ; + drawdoublearrows fromto(0,5,4) ; label.lft("\node{$τ_j$~}", center fromto(0,5,4)) ; + drawdoublearrows fromto(0,7,4) ; label.top("\node{$σ$}", center fromto(0,7,4)) ; + + drawdoublearrows fromto(0,0,7) crossingunder fromto(0,6,5) ; + label.lrt("\node{$Ψ^{\mathrm{nt}}$}", center fromto(0,0,7)) ; + drawdoublearrows fromto(0,1,6) ; + drawdoublearrows fromto(0,2,5) ; + drawdoublearrows fromto(0,3,4) ; + + \stopMPcode +\stopplacefigure + +\stopsubject + \startsubject [title=Two final examples] \defineframed |