From 8679042c34f173d28553741cc68006ffb3e97057 Mon Sep 17 00:00:00 2001 From: Alex38Lyon <55714436+Alex38Lyon@users.noreply.github.com> Date: Tue, 21 Jul 2026 10:29:37 +0200 Subject: [PATCH] Template update --- Scripts/pyCreateTh/Template/config.thc | 1803 +++++++++-------- Scripts/pyCreateTh/Template/template.thconfig | 81 +- Scripts/pyCreateTh/config.ini | 13 + Scripts/pyCreateTh/pyCreateTh.py | 2 +- 4 files changed, 1074 insertions(+), 825 deletions(-) diff --git a/Scripts/pyCreateTh/Template/config.thc b/Scripts/pyCreateTh/Template/config.thc index 5f9bbcd..0960a6f 100644 --- a/Scripts/pyCreateTh/Template/config.thc +++ b/Scripts/pyCreateTh/Template/config.thc @@ -1,10 +1,9 @@ encoding utf-8 ###################################################################################################################################### -# Version ARSIP By Alex 2025 11 17 +# Version France/Chine By Alex 2026 06 29 ###################################################################################################################################### - ###################################################################################################################################### # Licence ###################################################################################################################################### @@ -28,9 +27,9 @@ encoding utf-8 # # Lots of definition comes from (or are deeply inspired by) the excellent Therion Wiki # Beaucoup de définitions proviennent (ou sont fortement inspirées) de l'excellent Wiki Therion -# https://therion.speleo.sk/wiki/doku.php -# https://therion.speleo.sk/wiki/tbe:wiki6 -# https://therion.speleo.sk/wiki/metapost +# https://therion.speleo.sk/wiki/doku.php +# https://therion.speleo.sk/wiki/tbe:wiki6 +# https://therion.speleo.sk/wiki/metapost # https://thomas-holder.de/projects/therion/ # # @@ -42,13 +41,15 @@ encoding utf-8 # - layout langue-fr # - layout langue-es # - layout langue-en +# - layout langue-zh # - layout drawingconfig +# - layout drawingconfig_China # - layout scalebar_horiz # - layout scalebar_vert-Halama # - layout scalebar_vert # - layout headerl # - layout headerl_LT -# - layout headerl_XXLT # Layout to change the header (plan projection with minimum info) +# - layout headerl_XXLT # Layout to change the header (plan projection with minimum info) # - layout header_coupe_vert-to-place # - layout header_coupe_vert-auto # - layout header_coupe @@ -63,9 +64,11 @@ encoding utf-8 # - layout northarrowMG # - layout test # - layout depth +# - layout fonts_5000 # - layout fonts_2000 # - layout fonts_1000 # - layout fonts_500 +# - layout fonts_200 # - layout Survey_No_Scrap ############## Point, line and area in layout drawingconfig @@ -104,15 +107,19 @@ encoding utf-8 # - deviation (u:deviation) # - rock border # - shot_Survey line (u:Shot_Survey) -# - treetrunk line (u -subtype treetrunk -clip off) -# - bush line (u -subtype bush -attr bulgesize 1 -attr bulges 20 -clip off) +# - treetrunk line (u:treetrunk -clip off) +# - bush line (u:bush -attr bulgesize 1 -attr bulges 20 -clip off) # - chimeney # - slope # - flowstone # - wall unsurveyed # - wall debris (u:wall_debris) # - wall presumed +# - wall flowstone +# - wall blocks # - survey cave +# - overhang +# - pit ############## Existing user areas: # - boue/mud (u:boue) @@ -121,15 +128,19 @@ encoding utf-8 # - tronc/tree-trunk (u:tronc) # - feuilles/tree-leaves (u:feuilles) # - Tunnel initiation/Départ de galerie (u:galerie) +# - Sol sec/dry floor (u:dryfloor) // China style +# - Sol humidesec/wet floor (u:wetfloor) // China style # - blocks # - clay # - mudcrack # - sand -# - pebbles +# - pebbles +# - flowstone # - sump # - water + ###################################################################################################################################### # change the names for the legend # change les descriptions des symboles pour la légende @@ -166,6 +177,14 @@ text fr "area u:galerie" "départ de galerie" text en "area u:galerie" "tunnel departure" text es "area u:galerie" "salida de galeria" +text fr "area u:dryfloor" "sol sec" +text en "area u:dryfloor" "dry floor" +text es "area u:dryfloor" "sol seco" + +text fr "area u:wetfloor" "sol humide" +text en "area u:wetfloor" "wet floor" +text es "area u:wetfloor" "sol húmedo" + text en "point u:guacharos" "guacharos" text fr "point u:guacharos" "guacharos" text es "point u:guacharos" "guacharos" @@ -229,14 +248,18 @@ text es "line water-flow:permanent" "riachuelo" text es "point water-flow:intermittent" "riachuelo intermitente" text es "line water-flow:intermittent" "riachuelo intermitente" text es "line water-flow:conjectural" "riachuelo supuesto" + text es "line rock-edge" "arista de bloque" text es "point cave-pearl" "perlas de cavernas" + text es "point rimstone-dam" "travertino" text es "point rimstone-pool" "travertino" + text es "point stalactite" "estalactita" text es "point stalactites" "estalactitas" text es "point stalagmite" "estalagmita" text es "point stalagmites" "estalagmitas" + text es "point pillars" "pilares" text es "point pillar" "pilare" @@ -275,7 +298,6 @@ text fr "line u:bush" "buisson" text es "line u:bush" "arbusto" - ###################################################################################################################################### ### Layouts Languages/langues ###################################################################################################################################### @@ -309,37 +331,53 @@ layout langue-fr language fr code tex-map - #% Definition of variables for the tuned headers : - \newtoks\thversiontitleB \thversiontitleB={Therion } - - \newtoks\thversiontitleA \thversiontitleA={Compilation} + #% Definition of variables for the tuned headers : + \newtoks\thversiontitleB \thversiontitleB={Therion } + \newtoks\thversiontitleA \thversiontitleA={Compilation } \newtoks\datetitle \datetitle={le } - \newtoks\thproj \thproj={Projection} - \newtoks\thclub \thclub={Réalisation} - \newtoks\thsynth \thsynth={Synthèse} - \newtoks\thwpage \thwpage={Web} - \newtoks\thexpe \thexpe={Expedition} - \newtoks\thguide \thguide={Guide(s)} - \newtoks\thdatat \thdatat={Données} - \newtoks\thdatabase \thdatabase={Base de données} - \newtoks\depthrangetitle \depthrangetitle={Profondeurs depuis} - \newtoks\ththanksto \ththanksto{Remerciements} - \newtoks\thcoords \thcoords{Coordonnées} - \newtoks\explolengthtitle \explolengthtitle{Longueur explorée} + \newtoks\thproj \thproj={Projection } + \newtoks\explotitle \explotitle={Exploration } + \newtoks\thclub \thclub={Réalisation } + \newtoks\thsynth \thsynth={Synthèse } + \newtoks\thwpage \thwpage={Web } + \newtoks\thexpe \thexpe={Expedition } + \newtoks\thguide \thguide={Guide(s) } + \newtoks\thdatat \thdatat={Données } + \newtoks\thdatabase \thdatabase={Base de données } + \newtoks\depthrangetitle \depthrangetitle={Profondeurs depuis } + \newtoks\ththanksto \ththanksto{Remerciements } + \newtoks\thcoords \thcoords{Coordonnées } + \newtoks\explolengthtitle \explolengthtitle{Longueur explorée } \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Profondeur explorée } - - # Initiate variables - \newtoks\club \club={} - \newtoks\synth \synth={} - \newtoks\wpage \wpage={} - \newtoks\expe \expe={} - \newtoks\guide \guide={} - \newtoks\datat \datat={} - \newtoks\database \database={} - \newtoks\thanksto \thanksto={} - \newtoks\ECoordinates \ECoordinates={} + \newtoks\cavelengthtitle \cavelengthtitle{Développement } + \newtoks\cavedepthtitle \cavedepthtitle{dénivellation } + \newtoks\depthrangetitle \depthrangetitle{altitudes } endcode + + code tex-atlas + #% Definition of variables for the tuned headers : + \newtoks\thversiontitleB \thversiontitleB={Therion } + \newtoks\thversiontitleA \thversiontitleA={Compilation } + \newtoks\datetitle \datetitle={le } + \newtoks\thproj \thproj={Projection } + \newtoks\thclub \thclub={Réalisation } + \newtoks\thsynth \thsynth={Synthèse } + \newtoks\thwpage \thwpage={Web } + \newtoks\thexpe \thexpe={Expedition } + \newtoks\thguide \thguide={Guide(s) } + \newtoks\thdatat \thdatat={Données } + \newtoks\thdatabase \thdatabase={Base de données } + \newtoks\depthrangetitle \depthrangetitle={Profondeurs depuis } + \newtoks\ththanksto \ththanksto{Remerciements } + \newtoks\thcoords \thcoords{Coordonnées } + \newtoks\explolengthtitle \explolengthtitle{Longueur explorée } + \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Profondeur explorée } + \newtoks\cavelengthtitle \cavelengthtitle{Développement } + \newtoks\cavedepthtitle \cavedepthtitle{dénivellation } + \newtoks\depthrangetitle \depthrangetitle{altitudes } + endcode + endlayout ###################################################################################################################################### @@ -352,34 +390,47 @@ layout langue-es #% Definition of variables for the tuned headers : \newtoks\thversiontitleB \thversiontitleB={Therion } - \newtoks\thversiontitleA \thversiontitleA={Compilación} + \newtoks\thversiontitleA \thversiontitleA={Compilación } \newtoks\datetitle \datetitle={el } - \newtoks\thproj \thproj={Proyección} - \newtoks\thclub \thclub={Realización} - \newtoks\thsynth \thsynth={Síntesis} - \newtoks\thwpage \thwpage={Web} - \newtoks\thexpe \thexpe={Expedición} + \newtoks\thproj \thproj={Proyección } + \newtoks\thclub \thclub={Realización } + \newtoks\thsynth \thsynth={Síntesis } + \newtoks\thwpage \thwpage={Web } + \newtoks\thexpe \thexpe={Expedición } \newtoks\depthrangetitle \depthrangetitle={Depth range from } - \newtoks\thguide \thguide={Guia(s)} - \newtoks\thdatat \thdatat={Datos topograficas} - \newtoks\thdatabase \thdatabase={Dase de datos} + \newtoks\thguide \thguide={Guia(s) } + \newtoks\thdatat \thdatat={Datos topograficas } + \newtoks\thdatabase \thdatabase={Dase de datos } \newtoks\ththanksto \ththanksto{Nuestros agradecimientos } - \newtoks\thcoords \thcoords{Coordinadas GPS (WGS84) } - \newtoks\explolengthtitle \explolengthtitle{Longitud explorada} + \newtoks\thcoords \thcoords{Coordinadas GPS } + \newtoks\explolengthtitle \explolengthtitle{Longitud explorada } \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Profondidad explorada} \cartotitle={Dibujo} - # Initiate variables - \newtoks\club \club={} - \newtoks\synth \synth={} - \newtoks\wpage \wpage={} - \newtoks\expe \expe={} - \newtoks\guide \guide={} - \newtoks\datat \datat={} - \newtoks\database \database={} - \newtoks\thanksto \thanksto={} - \newtoks\ECoordinates \ECoordinates={} + endcode + + code tex-atlas + #% Definition of variables for the tuned headers : + \newtoks\thversiontitleB \thversiontitleB={Therion } + + \newtoks\thversiontitleA \thversiontitleA={Compilación } + \newtoks\datetitle \datetitle={el } + \newtoks\thproj \thproj={Proyección } + \newtoks\thclub \thclub={Realización } + \newtoks\thsynth \thsynth={Síntesis } + \newtoks\thwpage \thwpage={Web } + \newtoks\thexpe \thexpe={Expedición } + \newtoks\depthrangetitle \depthrangetitle={Depth range from } + \newtoks\thguide \thguide={Guia(s)} + \newtoks\thdatat \thdatat={Datos topograficas } + \newtoks\thdatabase \thdatabase={Dase de datos } + \newtoks\ththanksto \ththanksto{Nuestros agradecimientos } + \newtoks\thcoords \thcoords{Coordinadas GPS } + \newtoks\explolengthtitle \explolengthtitle{Longitud explorada } + \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Profondidad explorada} + + \cartotitle={Dibujo} endcode @@ -395,32 +446,96 @@ layout langue-en #% Definition of variables for the tuned headers : \newtoks\thversiontitleB \thversiontitleB={Therion } - \newtoks\thversiontitleA \thversiontitleA={Compiled} + \newtoks\thversiontitleA \thversiontitleA={Compiled } \newtoks\datetitle \datetitle={on } - \newtoks\thproj \thproj={Projection} - \newtoks\thclub \thclub={Realisation} - \newtoks\thsynth \thsynth={Synthesys} - \newtoks\thwpage \thwpage={Web page} + \newtoks\thproj \thproj={Projection } + \newtoks\thclub \thclub={Realisation } + \newtoks\thsynth \thsynth={Synthesys } + \newtoks\thwpage \thwpage={Web page } + \newtoks\thexpe \thexpe={Expedition } + \newtoks\depthrangetitle \depthrangetitle={Depth range from } + \newtoks\thguide \thguide={Guide(s)} + \newtoks\thdatat \thdatat={Survey's data } + \newtoks\thdatabase \thdatabase={Data base } + \newtoks\ththanksto \ththanksto{Acknowledgments } + \newtoks\thcoords \thcoords{GPS coordinates } + \newtoks\explolengthtitle \explolengthtitle{Explored length } + \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Explored depth} + + endcode + + code tex-atlas + #% Definition of variables for the tuned headers : + \newtoks\thversiontitleB \thversiontitleB={Therion } + + \newtoks\thversiontitleA \thversiontitleA={Compiled } + \newtoks\datetitle \datetitle={on } + \newtoks\thproj \thproj={Projection } + \newtoks\thclub \thclub={Realisation } + \newtoks\thsynth \thsynth={Synthesys } + \newtoks\thwpage \thwpage={Web page } \newtoks\thexpe \thexpe={Expedition} \newtoks\depthrangetitle \depthrangetitle={Depth range from } \newtoks\thguide \thguide={Guide(s)} - \newtoks\thdatat \thdatat={Survey's data} - \newtoks\thdatabase \thdatabase={Data base} - \newtoks\ththanksto \ththanksto{Acknowledgments} - \newtoks\thcoords \thcoords{GPS coordinates (WGS84) } - \newtoks\explolengthtitle \explolengthtitle{Explored length} + \newtoks\thdatat \thdatat={Survey's data } + \newtoks\thdatabase \thdatabase={Data base } + \newtoks\ththanksto \ththanksto{Acknowledgments } + \newtoks\thcoords \thcoords{GPS coordinates } + \newtoks\explolengthtitle \explolengthtitle{Explored length } \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Explored depth} - # Initiate variables - \newtoks\club \club={} - \newtoks\synth \synth={} - \newtoks\wpage \wpage={} - \newtoks\expe \expe={} - \newtoks\guide \guide={} - \newtoks\datat \datat={} - \newtoks\database \database={} - \newtoks\thanksto \thanksto={} - \newtoks\ECoordinates \ECoordinates={} + endcode + +endlayout + + +###################################################################################################################################### +# Set the language chines +###################################################################################################################################### +layout langue-zh + language zh + + code tex-map + #% Definition of variables for the tuned headers : + \newtoks\thversiontitleB \thversiontitleB={Therion } + + \newtoks\thversiontitleA \thversiontitleA={Compiled } + \newtoks\datetitle \datetitle={on } + \newtoks\thproj \thproj={Projection } + \newtoks\thclub \thclub={Realisation } + \newtoks\thsynth \thsynth={Synthesys } + \newtoks\thwpage \thwpage={Web page } + \newtoks\thexpe \thexpe={Expedition } + \newtoks\depthrangetitle \depthrangetitle={Depth range from } + \newtoks\thguide \thguide={Guide(s)} + \newtoks\thdatat \thdatat={Survey's data } + \newtoks\thdatabase \thdatabase={Data base } + \newtoks\ththanksto \ththanksto{Acknowledgments } + \newtoks\thcoords \thcoords{GPS coordinates } + \newtoks\explolengthtitle \explolengthtitle{Explored length } + \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Explored depth} + + endcode + + code tex-atlas + #% Definition of variables for the tuned headers : + \newtoks\thversiontitleB \thversiontitleB={Therion } + + \newtoks\thversiontitleA \thversiontitleA={Compiled } + \newtoks\datetitle \datetitle={on } + \newtoks\thproj \thproj={Projection } + \newtoks\thclub \thclub={Realisation } + \newtoks\thsynth \thsynth={Synthesys } + \newtoks\thwpage \thwpage={Web page } + \newtoks\thexpe \thexpe={Expedition} + \newtoks\depthrangetitle \depthrangetitle={Depth range from } + \newtoks\thguide \thguide={Guide(s)} + \newtoks\thdatat \thdatat={Survey's data } + \newtoks\thdatabase \thdatabase={Data base } + \newtoks\ththanksto \ththanksto{Acknowledgments } + \newtoks\thcoords \thcoords{GPS coordinates } + \newtoks\explolengthtitle \explolengthtitle{Explored length } + \newtoks\explodepthtitle \explodepthtitle{\thinspace{}---\thinspace{}\thinspace{}\thinspace{}\thinspace{}Explored depth} endcode @@ -435,12 +550,10 @@ endlayout # Layout principal pour dessiner les plans et les coupes développées. ###################################################################################################################################### layout drawingconfig - - - # pdf-Author - # Auteur du pdf - doc-author "Xavier Robert" + # default pdf-Author + # Auteur du par defaut du pdf + doc-author "Alexandre Pont" # Set the symology you want to use: UIS, ASF (Australie) CCNP (Etats Units), SKB (tchecoslovakia) # Définit la banque de symboles que nous voulons utiliser : @@ -453,15 +566,21 @@ layout drawingconfig symbol-assign area clay AUT symbol-assign area mudcrack SBE symbol-assign area pebbles AUT + symbol-assign area ice AUT + symbol-assign area snow AUT + symbol-assign line pit AUT + symbol-assign line overhang AUT # symbol-assign line wall:blocks AUT symbol-assign point camp UIS symbol-assign point pillar AUT symbol-assign point station:temporary SKBB symbol-assign point entrance MY + symbol-assign point gradient AUT symbol-color area clay [52 33 6] # Color to verify + symbol-color area pebbles [52 33 6] symbol-color area flowstone [100 60 20] symbol-color area ice [0 0 100] symbol-color area moonmilk [100 60 20] # Change the color ? @@ -546,7 +665,7 @@ layout drawingconfig symbol-color point station-name [80 80 80] # light grey symbol-color point vegetable-debris [13 47 6] symbol-color point volcano [52 33 6] # Color to verify - symbol-color point wall-altitude [100 50 0] + symbol-color point wall-altitude [20 20 20] # Gris symbol-color point wall-calcite [100 60 20] symbol-color point water [17 46 100] symbol-color point water-drip [17 46 100] @@ -554,11 +673,44 @@ layout drawingconfig symbol-color point water-flow:intermittent [17 46 100] symbol-color point water-flow:paleo [17 46 100] + + code tex-map + ####### Initiate variables ####### + \newtoks\club \club={} + \newtoks\synth \synth={} + \newtoks\wpage \wpage={} + \newtoks\expe \expe={} + \newtoks\guide \guide={} + \newtoks\datat \datat={} + \newtoks\database \database={} + \newtoks\thanksto \thanksto={} + \newtoks\ECoordinates \ECoordinates={} + \newtoks\legendtextlicencesize \legendtextlicencesize={\the\legendtextsize} + \newtoks\thversiontitleB \thversiontitleB={Therion } + endcode + + code tex-atlas + ####### Initiate variables ####### + \newtoks\club \club={} + \newtoks\synth \synth={} + \newtoks\wpage \wpage={} + \newtoks\expe \expe={} + \newtoks\guide \guide={} + \newtoks\datat \datat={} + \newtoks\database \database={} + \newtoks\thanksto \thanksto={} + \newtoks\ECoordinates \ECoordinates={} + \newtoks\legendtextlicencesize \legendtextlicencesize={\the\legendtextsize} + \newtoks\thversiontitleB \thversiontitleB={Therion } + + \def\testpath{./Logos/Logo-ARSIP-Synthese-Topo.jpg} % Fichier par defaut (non affiché) si vide NOK + \def\atlasheaderlogo{./Logos/Logo-ARSIP-Synthese-Topo.jpg} % Fichier par defaut (non affiché) si vide NOK + \def\atlaslogo{./Logos/Logo-ARSIP-Synthese-Topo.jpg} % Fichier par defaut (non affiché) si vide NOK + + endcode ####### Metapost-changes ############ code metapost - - #fonts_setup( 12, 16, 32, 64, 96 ); # Modify length/depth statistics to print # Modifier l'aspect et les données des statistiques de longueur affichées si besoin @@ -568,6 +720,40 @@ layout drawingconfig # \cavedepth{243\thinspace{}m} #endcode + ######################################################## + # Change the ligne pit_AUT with l_overhang_SKBB + # Changer la ligne pit_AUT avec l_overhang_SKBB + ######################################################## + let l_pit_AUT = l_overhang_SKBB; + + ######################################################## + # Change the ligne wall:blocks (from l_wall_flowstone_AUT) + # Changer le symbole ligne wall:blocks (d'après l_wall_flowstone_AUT) + ######################################################## + def l_wall_flowstone (expr P) = + T:=identity; + laenge:= arclength P; + symsize:=adjust_step(laenge,0.8u); + circle_width:=symsize/2; + cur:=(symsize-circle_width)/2; + pickup PenC; + forever: + t1 := arctime (cur) of P; + t2 := arctime (cur + circle_width) of P; + thdraw (point t1 of P){dir (angle(thdir(P,t1)) + 90)} .. + {dir (angle(thdir(P,t2)) - 90)}(point t2 of P) withcolor (1, 0.60, 0.20) ; + thfill (point t1 of P){dir (angle(thdir(P,t1)) + 90)} .. + {dir (angle(thdir(P,t2)) - 90)}(point t2 of P) -- + (point t1 of P)--cycle withcolor (1, 0.60, 0.20) ; + cur := cur + symsize; + exitif cur > laenge + (symsize / 3); % for rounding errors + endfor; + pickup PenA; + thdraw P withcolor black; + enddef; + + + ######################################################## # Change the ligne wall:blocks (from l_wall_blocks_AUT) @@ -1117,36 +1303,38 @@ layout drawingconfig T:=identity; % Fond beige clair (20 % « sable ») thfill Path withcolor (0.49, 0.20, 0.00) withalpha 0.2; - thfill Path withpattern pattern_clay_AUT ; + thfill Path withpattern pattern_clay_AUT; enddef; - ######################################################## - # To change pebbles aspects + # To change pebbles AUT aspects # Pour modifier l'aspects de l'aire pebbles (galets) ######################################################## - def a_pebbles_SKBB (expr p) = - T:=identity; - pickup PenC; - path q, qq; q = bbox p; - picture tmp_pic; - tmp_pic := image( - for i = xpart llcorner q step .1u until xpart urcorner q: - for j = ypart llcorner q step .5u until ypart urcorner q: - qq := (superellipse((.07u,0),(0,.03u), (-.07u,0),(0,.-.03u),.75)) - %randomized (u/25) - rotated uniformdeviate(360) - shifted ((i,j) randomized 0.27u); - if xpart (p intersectiontimes qq) < 0: - thdraw qq; - fi; - endfor; - endfor; - ); - clip tmp_pic to p; - draw tmp_pic; + + beginpattern(pattern_pebbles_PERSO); + pickup PenC; + path qq; + for i=0.0u step 0.3u until 5.1u: + for j=0.0u step 0.3u until 5.1u: + qq := (superellipse((.1u,0),(0,.05u),(-.1u,0),(0,.-.05u),.75)) + randomized (u/45) + scaled (uniformdeviate(0.4)+.55) + rotated uniformdeviate(360) + shifted ((i,j) randomized 0.15u); + fill qq; + endfor; + endfor; + patternstep(5.1u,5.1u); + endpattern; + + + def a_pebbles_AUT (expr Path) = + T:=identity; + thfill Path withcolor (0.49, 0.20, 0.00) withalpha 0.2; + thfill Path withpattern pattern_pebbles_PERSO; enddef; + ######################################################## # To change slopes aspects # Pour modifier la ligne aspects @@ -1293,7 +1481,7 @@ layout drawingconfig ######################################################## def a_u_guano (expr p) = T:=identity; - thfill p withcolor (0.53, 0.26, 0.11); + thfill p withcolor (0.53, 0.26, 0.11) withalpha 0.25; enddef; ######################################################## @@ -1327,6 +1515,15 @@ layout drawingconfig #thfill p withcolor (0.60, 0.8, 1); thfill p withcolor (0.17, 0.46, 1); enddef; + + ######################################################## + # To change color of flowstone + # Pour modifier la couleur de l'aire calcite + ######################################################## + def a_flowstone (expr p) = + T:=identity; + thfill p withcolor (1, 0.6, 0.2) withalpha 0.4; + enddef; ######################################################## # Northarrow more funnier ! @@ -1551,48 +1748,48 @@ layout drawingconfig # Si c'est le cas, commenter toute la redéfinition du point p_wallaltitude. ######################################################## - #def p_wallaltitude (expr pprev,pos,pnext,txt) = - # rot:=angle(unitvector(pnext-pos)+unitvector(pos-pprev)) - 90; - # pickup PenD; - # pair zz; - # %zz:=(pos + 3*unitvector(dir rot)); - # zz:=(pos + (u/4)*unitvector(dir rot)); - # %draw (pos)--zz withcolor (0.78, 0.08, 0.52); % tic in black - # draw (pos)--zz withcolor (0.78, 0.08, 0.52); % tic in color - # % add the unit (here, meters as m) - # txtm:=image( - # %draw txt; % altitude in black - # draw txt withcolor (0.78, 0.08, 0.52); % altitude in color - # %interim labeloffset:=0; - # %label.urt(btex \thaltitude { m} etex, lrcorner txt); % unit in black - # label.urt(btex \thaltitude { m} etex, lrcorner txt) withcolor (0.78, 0.08, 0.52); % unit in color - # ); - # begingroup - # % interim labeloffset:=2pt; - # interim labeloffset:=(u/12); - # if horiz_labels: - # rot:=rot mod 360; - # if rot<=22.5: lab:=thelabel.rt(txtm, zz); - # elseif rot<=67.5: lab:=thelabel.urt(txtm, zz); - # elseif rot<=112.5: lab:=thelabel.top(txtm, zz); - # elseif rot<=157.5: lab:=thelabel.ulft(txtm, zz); - # elseif rot<=202.5: lab:=thelabel.lft(txtm, zz); - # elseif rot<=247.5: lab:=thelabel.llft(txtm, zz); - # elseif rot<=292.5: lab:=thelabel.bot(txtm, zz); - # elseif rot<=337.5: lab:=thelabel.lrt(txtm, zz); - # else: lab:=thelabel.rt(txtm, zz); - # fi; - # else: - # if (abs rot>90) and (abs rot <=270): - # rot:=rot-180; - # lab:=thelabel.lft(txtm, pos); - # else: - # lab:=thelabel.rt(txtm, pos); - # fi; - # fi; - # process_label(pos, if horiz_labels: 0 else: rot fi); - # endgroup; - #enddef; + # def p_wallaltitude (expr pprev,pos,pnext,txt) = + # rot:=angle(unitvector(pnext-pos)+unitvector(pos-pprev)) - 90; + # pickup PenD; + # pair zz; + # %zz:=(pos + 3*unitvector(dir rot)); + # zz:=(pos + (u/4)*unitvector(dir rot)); + # %draw (pos)--zz withcolor (0.78, 0.08, 0.52); % tic in black + # draw (pos)--zz withcolor (0.78, 0.08, 0.52); % tic in color + # % add the unit (here, meters as m) + # txtm:=image( + # %draw txt; % altitude in black + # draw txt withcolor (0.78, 0.08, 0.52); % altitude in color + # %interim labeloffset:=0; + # %label.urt(btex \thaltitude { m} etex, lrcorner txt); % unit in black + # label.urt(btex \thaltitude { m} etex, lrcorner txt) withcolor (0.78, 0.08, 0.52); % unit in color + # ); + # begingroup + # % interim labeloffset:=2pt; + # interim labeloffset:=(u/12); + # if horiz_labels: + # rot:=rot mod 360; + # if rot<=22.5: lab:=thelabel.rt(txtm, zz); + # elseif rot<=67.5: lab:=thelabel.urt(txtm, zz); + # elseif rot<=112.5: lab:=thelabel.top(txtm, zz); + # elseif rot<=157.5: lab:=thelabel.ulft(txtm, zz); + # elseif rot<=202.5: lab:=thelabel.lft(txtm, zz); + # elseif rot<=247.5: lab:=thelabel.llft(txtm, zz); + # elseif rot<=292.5: lab:=thelabel.bot(txtm, zz); + # elseif rot<=337.5: lab:=thelabel.lrt(txtm, zz); + # else: lab:=thelabel.rt(txtm, zz); + # fi; + # else: + # if (abs rot>90) and (abs rot <=270): + # rot:=rot-180; + # lab:=thelabel.lft(txtm, pos); + # else: + # lab:=thelabel.rt(txtm, pos); + # fi; + # fi; + # process_label(pos, if horiz_labels: 0 else: rot fi); + # endgroup; + # enddef; ######################################################## @@ -1751,7 +1948,7 @@ layout drawingconfig thdraw (-.4u, 0u) -- (.4u, 0u); enddef; initsymbol ("p_gradient_XA"); - symbol-assign point gradient XA + # symbol-assign point gradient XA ######################################################## # Section to define the bat symbol (point, line, area) @@ -1977,10 +2174,10 @@ layout drawingconfig ######################################################## # Change fig Flowstone, increase the number of arcs - # Modifier le symbole flowstone en augmentant le nombr d'arc + # Modifier le symbole flowstone en augmentant le nombre d'arc ######################################################## def l_flowstone (expr p) = - #draw p withpen PenC withcolor (0.0, 0.5, 1.0); + # draw p withpen PenC withcolor (0.0, 0.5, 1.0); T:=identity; cas := 0; dlzka := arclength p; @@ -2227,8 +2424,268 @@ layout drawingconfig endcode - code tex-map - \newtoks\thversiontitleB \thversiontitleB={Therion } +endlayout + + +###################################################################################################################################### +# Main layout to draw the map and extended view with chines styles by Jean Bottazzi. +# Layout principal pour dessiner les plans et les coupes développées avec les styles "Chinois" / Jean Bottazzi +###################################################################################################################################### + +layout drawingconfig_China + copy drawingconfig + + + # Set the symology you want to use: UIS, ASF (Australie) CCNP (Etats Units), SKB (tchecoslovakia) + # Définit la banque de symboles que nous voulons utiliser : + # UIS, ASF (Australie) CCNP (Etats Units) ou SKB (tchecoslovakia) + # symbol-set UIS + # Change the type or colors of specific symbols: + # Changer le type ou la couleur de symboles spécifiques: + + symbol-assign point entrance UIS + + # symbol-color area clay [52 33 6] # Color to verify + # symbol-color area pebbles [52 33 6] + # symbol-color area flowstone [59 100 53] + # symbol-color area ice [0 0 100] + symbol-color area moonmilk [59 100 53] # Change the color ? + # symbol-color area mudcrack [52 33 6] # Color to verify ; Maybe to darken + symbol-color area pillar [59 100 53] + symbol-color area pillar-with-curtains [59 100 53] + # symbol-color area sand [67 49 1] # Color to verify + # symbol-color area snow [0 0 100] + # symbol-color area stalactite [100 60 20] + symbol-color area stalactite-stalagmite [59 100 53] + symbol-color area stalagmite [59 100 53] + + # symbol-color line contour [34 21 3] # Marron : (87, 56, 8) + # symbol-color line ceiling-meander [34 21 3] # Marron : (87, 56, 8) + + symbol-color line flowstone [59 100 53] + # symbol-color line floor-meander [34 21 3] # Marron : (87, 56, 8) + symbol-color line floor-step [0 0 0] # Marron : (87, 56, 8) + #symbol-color line map-connection [69 69 69] # Gris acier (175, 175, 175) + symbol-color line rimstone-dam [59 100 53] + symbol-color line rimstone-pool [59 100 53] + # symbol-color line rock-border [34 21 3] # Marron : (87, 56, 8) + # symbol-color line rock-edge [34 21 3] # Marron : (87, 56, 8) + # symbol-color line slope [34 21 3] # Marron : (87, 56, 8) + # symbol-color line rope [58 44 25] + # symbol-color line survey [46 46 46] # Gris foncé (117, 117, 117) / acier (175, 175, 175) + # symbol-color line wall:clay [52 33 6] # Color to verify + # symbol-color line wall:flowstone [0 0 0] + # symbol-color line wall:ice [0 0 100] + #symbol-color line wall:moonmilk [100 60 20] # Change the color ? + symbol-color line water-flow [0 0 0] + symbol-color line water-flow:conjectural [0 0 0] + symbol-color line water-flow:intermittent [0 0 0] + + symbol-color point altitude [45 11 14] + # symbol-color point aragonite [100 60 20] + # symbol-color point blocks [34 21 3] # Marron : (87, 56, 8) + # symbol-color point breakdown-choke [34 21 3] # Marron : (87, 56, 8) + symbol-color point cave-pearl [0 0 0] + # symbol-color point clay [52 33 6] # Color to verify + # symbol-color point clay-choke [52 33 6] # Color to verify + symbol-color point curtain [0 0 0] + symbol-color point curtains [0 0 0] + symbol-color point disc-pillar [0 0 0] + symbol-color point disc-pillars [0 0 0] + symbol-color point disc-stalactite [0 0 0] + symbol-color point disc-stalactites [0 0 0] + symbol-color point disc-stalagmite [0 0 0] + symbol-color point disc-stalagmites [0 0 0] + symbol-color point disk [0 0 0] + symbol-color point flowstone [0 0 0] + symbol-color point flowstone-choke [0 0 0] + symbol-color point helictite [0 0 0] + symbol-color point helictites [0 0 0] + # symbol-color point ice [0 0 100] + # symbol-color point ice-pillar [0 0 100] + # symbol-color point ice-stalactite [0 0 100] + # symbol-color point ice-stalagmite [0 0 100] + # symbol-color point moonmilk [100 60 20] # Change the color ? + # symbol-color point mud [52 33 6] # Color to verify + # symbol-color point mudcrack [52 33 6] # Color to verify + symbol-color point pillar [0 0 0] + symbol-color point pillar-with-curtains [0 0 0] + symbol-color point pillars [0 0 0] + symbol-color point pillars-with-curtains [0 0 0] + symbol-color point popcorn [0 0 0] + symbol-color point rimstone-dam [0 0 0] + symbol-color point rimstone-pool [0 0 0] + # symbol-color point root [52 33 6] + # symbol-color point seed-germination [13 47 6] + symbol-color point snow [0 0 100] + symbol-color point soda-straw [0 0 0] + symbol-color point spring [0 0 0] + symbol-color point stalactite [0 0 0] + symbol-color point stalactite-stalagmite [0 0 0] + symbol-color point stalactite-stalagmite [0 0 0] + symbol-color point stalactites [0 0 0] + symbol-color point stalactites-stalagmites [0 0 0] + symbol-color point stalactites-stalagmites [0 0 0] + symbol-color point stalagmite [0 0 0] + symbol-color point stalagmites [0 0 0] + # symbol-color point station [54 7 60] + # symbol-color point station-name [80 80 80] # light grey + # symbol-color point vegetable-debris [13 47 6] + # symbol-color point volcano [52 33 6] # Color to verify + symbol-color point wall-altitude [45 11 14] + symbol-color point wall-calcite [0 0 0] + symbol-color point water [0 0 0] + symbol-color point water-drip [0 0 0] + symbol-color point water-flow [0 0 0] + symbol-color point water-flow:intermittent [0 0 0] + symbol-color point water-flow:paleo [0 0 0] + + + + + ####### Metapost-changes for China styles ############ + code metapost + + ######################################################## + # To change color of Mud area + # Pour modifier la couleur de l'aire Boue + ######################################################## + def a_u_boue (expr p) = + T:=identity; + thfill p withcolor (0.78, 0.79, 0.62) withalpha 0.4; + enddef; + + ######################################################## + # To change color of dry floor + # Pour modifier la couleur de l'aire sol sec + ######################################################## + def a_u_dryfloor (expr p) = + T:=identity; + #thfill p withcolor (0.22, 0.22, 0.95); + #126, 51, 0 + thfill p withcolor (0.89, 0.95, 0.75) withalpha 0.4; + enddef; + + ######################################################## + # To change color of wet floor + # Pour modifier la couleur de l'aire sol humide + ######################################################## + def a_u_wetfloor (expr p) = + T:=identity; + #thfill p withcolor (0.22, 0.22, 0.95); + #126, 51, 0 + thfill p withcolor (0.84, 0.87, 0.67) withalpha 0.6; + enddef; + + ######################################################## + # To change clay AUT aspects + # Pour modifier les aspects de l' argile AUT dans l'aire associée + ######################################################## + beginpattern(pattern_clay_AUT); + pickup PenC; + + p := origin -- (0.15u,0.15u); + + % Boucles avec densité réduite de 30% + for i=0.0u step 0.40u until 2.4u: + for j=0.0u step 0.40u until 2.4u: + draw p rotated -45 + shifted ((i,j) randomized 0.4u); + endfor; + endfor; + + if BaseScale<=2.5: + my_step := 2.4u; + else: + my_step := 2.6u; + fi; + patternstep(my_step,my_step); + endpattern; + + def a_clay_AUT (expr Path) = + T:=identity; + thfill Path withcolor (0.84, 0.87, 0.67) withalpha 0.4; + thfill Path withpattern pattern_clay_AUT; + enddef; + + ######################################################## + # To change color of Sump + # Pour modifier la couleur de l'aire siphon + ######################################################## + def a_sump (expr p) = + T:=identity; + thfill p withcolor (0.20, 0.23, 0.60) ; + enddef; + + ######################################################## + # To change color of flowstone + # Pour modifier la couleur de l'aire calcite + ######################################################## + def a_flowstone (expr p) = + T:=identity; + thfill p withcolor (0.60, 0.85, 0.63) withalpha 0.4; + enddef; + + ######################################################## + # To change color of Water area + # Pour modifier la couleur de l'aire eau + ######################################################## + def a_water (expr p) = + T:=identity; + thfill p withcolor (0.49, 0.84, 0.97); + enddef; + + ######################################################## + # Change the ligne wall:blocks (from l_wall_flowstone_AUT) + # Changer le symbole ligne wall:blocks (d'après l_wall_flowstone_AUT) + ######################################################## + def l_wall_flowstone (expr P) = + T:=identity; + laenge:= arclength P; + symsize:=adjust_step(laenge,0.8u); + circle_width:=symsize/2; + cur:=(symsize-circle_width)/2; + pickup PenC; + forever: + t1 := arctime (cur) of P; + t2 := arctime (cur + circle_width) of P; + thdraw (point t1 of P){dir (angle(thdir(P,t1)) + 90)} .. + {dir (angle(thdir(P,t2)) - 90)}(point t2 of P) withcolor (0.60, 0.85, 0.63) ; + + thfill (point t1 of P){dir (angle(thdir(P,t1)) + 90)} .. + {dir (angle(thdir(P,t2)) - 90)}(point t2 of P) -- + (point t1 of P)--cycle withcolor (0.60, 0.85, 0.63) ; + + cur := cur + symsize; + exitif cur > laenge + (symsize / 3); % for rounding errors + endfor; + pickup PenA; + thdraw P withcolor black; + enddef; + + ######################################################## + # Definition of a stalagmite boss symbol + # Définition du point stalagmite boss + ######################################################## + def p_u_boss (expr pos,theta,sc,al)= + T:=identity aligned al rotated theta scaled sc shifted pos; + pickup PenD; + p := (0.08u,0.25u)..(0,0.29u)..(-0.08u,0.25u); + q := (0.16u,0.5u)..(0u,0.58u)..(-0.16u,0.5u); + for i=0 upto 9: + # braun color + thdraw p rotated 36i withcolor (0.60, 0.85, 0.63); + thdraw q rotated 36i withcolor (0.60, 0.85, 0.63); + % black color + %thdraw p rotated 36i; + %thdraw q rotated 36i; + endfor + p := fullcircle scaled 0.15u; + thdraw p withcolor (0.60, 0.85, 0.63); + % black color + %thdraw p withcolor; + enddef; + endcode endlayout @@ -2304,6 +2761,7 @@ layout scalebar_horiz endgroup; enddef; endcode + endlayout ###################################################################################################################################### @@ -2373,9 +2831,9 @@ layout scalebar_vert-Halama endgroup enddef; endcode + endlayout - ###################################################################################################################################### # Layout to define a vertical Scale bar # Layout pour définir une barre d'échelle verticale @@ -2417,20 +2875,18 @@ layout scalebar_vert endgroup; enddef; endcode + endlayout - + ###################################################################################################################################### -# Layout to change the header (plan projection) +# Layout to change the header # This code is experimental redefinition of map header and based on the work of # Bruce Mutton Therion 5.3.15 make use of new variables -# Layout pour modifier le cartouche (header) de la projection en plan +# Layout pour modifier le cartouche (header) # Ce code de redéfinition est expérimental experimental et basé sur le travail de # Bruce Mutton Therion 5.3.15 fait appel à de nouvelles variables ###################################################################################################################################### -layout headerl - - - copy scalebar_horiz +layout header # This one affects maps only # Ceci ne touche que les maps (plans) @@ -2438,28 +2894,34 @@ layout headerl \def\loadpicture #1{\pdfximage{#1}\pdfrefximage\pdflastximage} \legendcontent={% \hsize=\legendwidth - \color[0 0 0]\the\legendtextcolor + %\back + #%\color[0 0 0]\the\legendtextcolor \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi + # %print cave map name \edef\tmp{\the\cavename} \ifx\tmp\empty \else - {\the\legendtextheadersize\the\cavename}\vskip0.5cm + {\the\legendtextheadersize\the\cavename}\vskip0.2cm \fi + # %print comment {\rightskip=0pt plus 3em\parskip=3bp \edef\tmp{\the\comment} \ifx\tmp\empty \else - {\the\legendtextsize\the\comment} \par\medskip\vskip1cm - \fi} + {\the\legendtextsectionsize\the\comment} \par + \fi\medskip\vskip0.5cm} + # %print scalebar - \ifscalebar\scalebar\vskip1cm\fi - %print entrances coordinates (Lat-Long/WGS84) if defined - \edef\tmp{\the\ECoordinates} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thcoords \the\ECoordinates\par} - \vskip0.5cm + \ifscalebar\scalebar\vskip0.5cm\fi + +%print entrances coordinates if defined + \edef\tmp{\the\ECoordinates} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\thcoords (\the\outcsname) :\par \begingroup\obeylines\the\ECoordinates\endgroup\par} + \vskip0.2cm \fi + # % start bruces addition # % CS - \edef\tmp{\the\outcsname} \ifx\tmp\empty \else + %\edef\tmp{\the\outcsname} \ifx\tmp\empty \else %{\the\legendtextsize\si\the\thproj: \ss\the\outcsname\par} %\fi %\edef\tmp{\the\northdir} \ifx\tmp\empty \else @@ -2468,31 +2930,31 @@ layout headerl %\edef\tmp{\the\magdecl} \ifx\tmp\empty \else %{\the\legendtextsize\ss\the\magdecl { deg.} \par} %\fi - \vskip0.5cm + %\vskip0.5cm # % end bruces addition + #%print comment { #\rightskip=0pt plus 3em\parskip=3bp #\edef\tmp{\the\comment} \ifx\tmp\empty \else # {\the\legendtextsize\the\comment} \par\medskip #\fi + # %print cavelength and depth \everypar{\hangindent=2em\hangafter=1} \edef\tmp{\the\cavelength} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength\par} + {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength, } \fi \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth\par} + {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth} \fi + # % start bruces addition -## % altitude - #\edef\tmp{\the\cavemaxz} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\depthrangetitle \ss\the\cavemaxz m to} - #\fi - #\edef\tmp{\the\caveminz} \ifx\tmp\empty \else - # {\the\legendtextsize\ss\the\caveminz m \par} %above mean sea level - #\fi -# % end bruces addition +## % altitude max and min + \edef\tmp{\the\cavemaxz} \ifx\tmp\empty \else + {\the\legendtextsize\si (\the\depthrangetitle : \ss\the\cavemaxz\ m - \ss\the\caveminz\ m)} + \fi\par +% end bruces addition # %print explorers names \edef\tmp{\the\exploteam} \ifx\tmp\empty \else @@ -2517,34 +2979,34 @@ layout headerl \edef\tmp{\the\club} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thclub: \ss\the\club\par} \fi + # %%print the expedition \edef\tmp{\the\expe} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thexpe: \ss\the\expe\par} \fi + # %%print the web page \edef\tmp{\the\wpage} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thwpage: \ss\the\wpage\par} \fi + # %%print the survey's data web page \edef\tmp{\the\datat} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thdatat: \ss\the\datat\par} \fi + # %%print the survey's database web page \edef\tmp{\the\database} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thdatabase: \ss\the\database\par} \fi -# % start bruces addition (compilation version and date modified to use built-in 5.3.15 variables) - \edef\tmp{\the\thversion} \ifx\tmp\empty \else %only write version and date if version is not emplty - {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB \ss\the\thversion} - % \fi - % \edef\tmp{\the\currentdate} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\datetitle \ss\the\currentdate\par} - \fi + + + # % end bruces addition # %print copyrights - \edef\tmp{\the\copyrights} \ifx\tmp\empty \else - {\the\legendtextsize\ss\the\copyrights\par} - \fi + # \edef\tmp{\the\copyrights} \ifx\tmp\empty \else + # {\the\legendtextlicencesize\ss\the\copyrights\par} + # \fi \edef\tmp{\the\thanksto} \ifx\tmp\empty \else \bigskip {\the\legendtextsize\si\the\ththanksto: \ss\the\thanksto\par} @@ -2553,20 +3015,50 @@ layout headerl %\size[\thsizem]\si\ththankstotitle \ss\ththanksto\par} \fi } + # %print synthesys name !!! !!! with newtoks\synth \synth={Synth Name} in the thconfig - \vskip0.3cm + \vskip0.2cm \edef\tmp{\the\synth} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thsynth: \ss\the\synth\par} \fi + +# %print legende \formattedlegend - \color[0 0 0] + + %\color[0 0 0] + +# %print copyrights + \edef\tmp{\the\copyrights} \ifx\tmp\empty \else + \vskip0.3cm + {\the\legendtextlicencesize\ss\the\copyrights\par} + \fi + + # % start bruces addition (compilation version and date modified to use built-in 5.3.15 variables) + \edef\tmp{\the\thversion} \ifx\tmp\empty \else %only write version and date if version is not emplty + {\the\legendtextlicencesize\si\the\thversiontitleA: \ss\the\thversiontitleB \ss\the\thversion} + % \fi + % \edef\tmp{\the\currentdate} \ifx\tmp\empty \else + {\the\legendtextlicencesize\si\the\datetitle \ss\the\currentdate\par} + \fi } -# % Add Logos - #\legendbox{50}{60}{NW}{\loadpicture{Logos/Logo_FFS_small.jpg}} + endcode endlayout + +###################################################################################################################################### +# Layout to change the header (plan projection) +# This code is experimental redefinition of map header and based on the work of +# Bruce Mutton Therion 5.3.15 make use of new variables +# Layout pour modifier le cartouche (header) de la projection en plan +# Ce code de redéfinition est expérimental experimental et basé sur le travail de +# Bruce Mutton Therion 5.3.15 fait appel à de nouvelles variables +###################################################################################################################################### +layout headerl + copy scalebar_horiz + copy header +endlayout ###################################################################################################################################### # Layout to change the header (plan projection) @@ -2579,144 +3071,12 @@ endlayout # header without surveyors names ###################################################################################################################################### layout headerl_LT - - - copy scalebar_horiz - - # This one affects maps only - # Ceci ne touche que les maps (plans) code tex-map - \def\loadpicture #1{\pdfximage{#1}\pdfrefximage\pdflastximage} - \legendcontent={% - \hsize=\legendwidth - \color[0 0 0]\the\legendtextcolor - \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi -# %print cave map name - \edef\tmp{\the\cavename} \ifx\tmp\empty \else - {\the\legendtextheadersize\the\cavename}\vskip0.5cm - \fi -# %print comment - {\rightskip=0pt plus 3em\parskip=3bp - \edef\tmp{\the\comment} \ifx\tmp\empty \else - {\the\legendtextsize\the\comment} \par\medskip\vskip1cm - \fi} -# %print scalebar - \ifscalebar\scalebar\vskip1cm\fi - %print entrances coordinates (Lat-Long/WGS84) if defined - \edef\tmp{\the\ECoordinates} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thcoords \the\ECoordinates\par} - \vskip0.5cm - \fi - -# % start bruces addition -# % CS - \edef\tmp{\the\outcsname} \ifx\tmp\empty \else - %{\the\legendtextsize\si\the\thproj: \ss\the\outcsname\par} - %\fi - %\edef\tmp{\the\northdir} \ifx\tmp\empty \else - %{\the\legendtextsize\ss\the\northdir north } - %\fi - %\edef\tmp{\the\magdecl} \ifx\tmp\empty \else - %{\the\legendtextsize\ss\the\magdecl { deg.} \par} - %\fi - \vskip0.5cm -# % end bruces addition -#%print comment - { - #\rightskip=0pt plus 3em\parskip=3bp - #\edef\tmp{\the\comment} \ifx\tmp\empty \else - # {\the\legendtextsize\the\comment} \par\medskip - #\fi -# %print cavelength and depth - \everypar{\hangindent=2em\hangafter=1} - \edef\tmp{\the\cavelength} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength\par} - \fi - \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth\par} - \fi -# % start bruces addition -## % altitude - #\edef\tmp{\the\cavemaxz} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\depthrangetitle \ss\the\cavemaxz m to} - #\fi - #\edef\tmp{\the\caveminz} \ifx\tmp\empty \else - # {\the\legendtextsize\ss\the\caveminz m \par} %above mean sea level - #\fi -# % end bruces addition - -# %print explorers names - \edef\tmp{\the\exploteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\explotitle: \ss\the\exploteam\quad\si\the\explodate\par} - \fi - -# %print surveyors names - # \edef\tmp{\the\topoteam} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par} - # \fi - -# %%print the guides - \edef\tmp{\the\guide} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thguide: \ss\the\guide\par} - \fi -# %print cartographers names - \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cartotitle: \ss\the\cartoteam\quad\si\the\cartodate\par} - \fi - -# %print the club - \edef\tmp{\the\club} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thclub: \ss\the\club\par} - \fi -# %%print the expedition - \edef\tmp{\the\expe} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thexpe: \ss\the\expe\par} - \fi -# %%print the web page - \edef\tmp{\the\wpage} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thwpage: \ss\the\wpage\par} - \fi -# %%print the survey's data web page - \edef\tmp{\the\datat} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thdatat: \ss\the\datat\par} - \fi -# %%print the survey's database web page - \edef\tmp{\the\database} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thdatabase: \ss\the\database\par} - \fi -# % start bruces addition (compilation version and date modified to use built-in 5.3.15 variables) - \edef\tmp{\the\thversion} \ifx\tmp\empty \else %only write version and date if version is not emplty - {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB \ss\the\thversion} - % \fi - % \edef\tmp{\the\currentdate} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\datetitle \ss\the\currentdate\par} - \fi -# % end bruces addition -# %print copyrights - \edef\tmp{\the\copyrights} \ifx\tmp\empty \else - {\the\legendtextsize\ss\the\copyrights\par} - \fi - \edef\tmp{\the\thanksto} \ifx\tmp\empty \else - \bigskip - {\the\legendtextsize\si\the\ththanksto: \ss\the\thanksto\par} - %\def\ththankstotitle{Nos remerciements : } - %{\everypar{\hangindent=7.2em\hangafter=1} - %\size[\thsizem]\si\ththankstotitle \ss\ththanksto\par} - \fi - } -# %print synthesys name !!! !!! with newtoks\synth \synth={Synth Name} in the thconfig - \vskip0.3cm - \edef\tmp{\the\synth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thsynth: \ss\the\synth\par} - \fi - \formattedlegend - \color[0 0 0] - } -# % Add Logos - #\legendbox{50}{60}{NW}{\loadpicture{Logos/Logo_FFS_small.jpg}} - + \topoteam={} + \cavemaxz={} endcode - + copy scalebar_horiz + copy header endlayout ###################################################################################################################################### @@ -2724,142 +3084,15 @@ endlayout # Layout pour modifier le cartouche (header) de la projection en plan avec le minimun info ###################################################################################################################################### layout headerl_XXLT - copy scalebar_horiz - - # This one affects maps only - # Ceci ne touche que les maps (plans) code tex-map - \def\loadpicture #1{\pdfximage{#1}\pdfrefximage\pdflastximage} - \legendcontent={% - \hsize=\legendwidth - \color[0 0 0]\the\legendtextcolor - \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi -# %print cave map name - \edef\tmp{\the\cavename} \ifx\tmp\empty \else - {\the\legendtextheadersize\the\cavename}\vskip0.5cm - \fi -# %print comment - {\rightskip=0pt plus 3em\parskip=3bp - \edef\tmp{\the\comment} \ifx\tmp\empty \else - {\the\legendtextsize\the\comment} \par\medskip\vskip1cm - \fi} -# %print scalebar - \ifscalebar\scalebar\vskip1cm\fi - %print entrances coordinates (Lat-Long/WGS84) if defined - \edef\tmp{\the\ECoordinates} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thcoords \the\ECoordinates\par} - \vskip0.5cm - \fi - -# % start bruces addition -# % CS - \edef\tmp{\the\outcsname} \ifx\tmp\empty \else - %{\the\legendtextsize\si\the\thproj: \ss\the\outcsname\par} - %\fi - %\edef\tmp{\the\northdir} \ifx\tmp\empty \else - %{\the\legendtextsize\ss\the\northdir north } - %\fi - %\edef\tmp{\the\magdecl} \ifx\tmp\empty \else - %{\the\legendtextsize\ss\the\magdecl { deg.} \par} - %\fi - \vskip0.5cm -# % end bruces addition -#%print comment - { - #\rightskip=0pt plus 3em\parskip=3bp - #\edef\tmp{\the\comment} \ifx\tmp\empty \else - # {\the\legendtextsize\the\comment} \par\medskip - #\fi -# %print cavelength and depth - # \everypar{\hangindent=2em\hangafter=1} - # \edef\tmp{\the\cavelength} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength\par} - # \fi - # \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth\par} - # \fi -# % start bruces addition -## % altitude - #\edef\tmp{\the\cavemaxz} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\depthrangetitle \ss\the\cavemaxz m to} - #\fi - #\edef\tmp{\the\caveminz} \ifx\tmp\empty \else - # {\the\legendtextsize\ss\the\caveminz m \par} %above mean sea level - #\fi -# % end bruces addition - -# %print explorers names - # \edef\tmp{\the\exploteam} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\explotitle: \ss\the\exploteam\quad\si\the\explodate\par} - # \fi - -# %print surveyors names - # \edef\tmp{\the\topoteam} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par} - # \fi - -# %%print the guides - \edef\tmp{\the\guide} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thguide: \ss\the\guide\par} - \fi -# %print cartographers names - # \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\cartotitle: \ss\the\cartoteam\quad\si\the\cartodate\par} - # \fi - -# %print the club - \edef\tmp{\the\club} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thclub: \ss\the\club\par} - \fi -# %%print the expedition - \edef\tmp{\the\expe} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thexpe: \ss\the\expe\par} - \fi -# %%print the web page - \edef\tmp{\the\wpage} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thwpage: \ss\the\wpage\par} - \fi -# %%print the survey's data web page - \edef\tmp{\the\datat} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thdatat: \ss\the\datat\par} - \fi -# %%print the survey's database web page - \edef\tmp{\the\database} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thdatabase: \ss\the\database\par} - \fi -# % start bruces addition (compilation version and date modified to use built-in 5.3.15 variables) - # \edef\tmp{\the\thversion} \ifx\tmp\empty \else %only write version and date if version is not emplty - # {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB \ss\the\thversion} - # % \fi - # % \edef\tmp{\the\currentdate} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\datetitle \ss\the\currentdate\par} - # \fi -# % end bruces addition -# %print copyrights - \edef\tmp{\the\copyrights} \ifx\tmp\empty \else - {\the\legendtextsize\ss\the\copyrights\par} - \fi - \edef\tmp{\the\thanksto} \ifx\tmp\empty \else - \bigskip - {\the\legendtextsize\si\the\ththanksto: \ss\the\thanksto\par} - %\def\ththankstotitle{Nos remerciements : } - %{\everypar{\hangindent=7.2em\hangafter=1} - %\size[\thsizem]\si\ththankstotitle \ss\ththanksto\par} - \fi - } -# %print synthesys name !!! !!! with newtoks\synth \synth={Synth Name} in the thconfig - \vskip0.3cm - \edef\tmp{\the\synth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thsynth: \ss\the\synth\par} - \fi - \formattedlegend - \color[0 0 0] - } -# % Add Logos - #\legendbox{50}{60}{NW}{\loadpicture{Logos/Logo_FFS_small.jpg}} - + \ECoordinates={} + \topoteam={} + \exploteam={} + \cartoteam={} + \cavemaxz={} endcode - + copy scalebar_horiz + copy header endlayout ###################################################################################################################################### @@ -3121,105 +3354,8 @@ layout header_coupe # Layout pour modifier le cartouche (header) de la projection en coupe développée # Ce code de redéfinition est expérimental experimental et basé sur le travail de # Bruce Mutton Therion 5.3.15 fait appel à de nouvelles variables - copy scalebar_horiz - - # This one affects maps only (extended view) - # Ceci ne touche que les maps (coupes développées) - code tex-map - \legendcontent={% - \hsize=\legendwidth - \color[0 0 0]\the\legendtextcolor - %\ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi - %print cave map name - \edef\tmp{\the\cavename} \ifx\tmp\empty \else - {\the\legendtextheadersize\the\cavename}\vskip0.5cm - \fi - %print comment - {\rightskip=0pt plus 3em\parskip=3bp - \edef\tmp{\the\comment} \ifx\tmp\empty \else - {\the\legendtextsize\the\comment} \par\medskip\vskip1cm - \fi} - %print scalebar - \ifscalebar\scalebar\vskip1cm\fi - { - %print the coordinates of the entrance. It is associated with the entrances_coordinates.th file - \edef\tmp{\the\ECoordinates} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thcoords: \ss\the\ECoordinates\par} - \vskip0.5cm - \fi - %print cavelength and depth - \everypar{\hangindent=2em\hangafter=1} - \edef\tmp{\the\cavelength} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength\par} - \fi - \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth\par} - \fi - # % end bruces addition - - %print explorers names - \edef\tmp{\the\exploteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\explotitle: \ss\the\exploteam\quad\si\the\explodate\par} - \fi - %print surveyors names - \edef\tmp{\the\topoteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par} - \fi - %%print the guides - \edef\tmp{\the\guide} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thguide: \ss\the\guide\par} - \fi - %print cartographers names - \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cartotitle: \ss\the\cartoteam\quad\si\the\cartodate\par} - \fi - %print synthesys name !!! !!! with newtoks\synth \synth={Synth Name} in the thconfig - \edef\tmp{\the\synth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thsynth: \ss\the\synth\par} - \fi - %print the club - \edef\tmp{\the\club} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thclub: \ss\the\club\par} - \fi - %%print the expedition - \edef\tmp{\the\expe} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thexpe: \ss\the\expe\par} - \fi - %%print the web page - \edef\tmp{\the\wpage} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thwpage: \ss\the\wpage\par} - \fi - %%print the survey's data web page - \edef\tmp{\the\datat} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thdatat: \ss\the\datat\par} - \fi - # % start bruces addition (compilation version and date modified to use built-in 5.3.15 variables) - \edef\tmp{\the\thversion} \ifx\tmp\empty \else %only write version and date if version is not emplty - {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB \ss\the\thversion} - % \fi - % \edef\tmp{\the\currentdate} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\datetitle \ss\the\currentdate\par} - \fi - - # % end bruces addition - %print copyrights - \edef\tmp{\the\copyrights} \ifx\tmp\empty \else - {\the\legendtextsize\ss\the\copyrights\par} - \fi - - \edef\tmp{\the\thanksto} \ifx\tmp\empty \else - \bigskip - {\the\legendtextsize\si\the\ththanksto: \ss\the\thanksto\par} - %\def\ththankstotitle{Nos remerciements : } - %{\everypar{\hangindent=7.2em\hangafter=1} - %\size[\thsizem]\si\ththankstotitle \ss\ththanksto\par} - \fi - } - \formattedlegend - \color[0 0 0] - } - endcode + copy header endlayout @@ -3232,7 +3368,6 @@ endlayout # Bruce Mutton Therion 5.3.15 fait appel à de nouvelles variables ###################################################################################################################################### layout header-plan-schema - copy scalebar_horiz # This one affects maps only @@ -3340,23 +3475,28 @@ layout header_coupe-schema \legendcontent={% \hsize=\legendwidth \color[0 0 0]\the\legendtextcolor + %print cave map name \edef\tmp{\the\cavename} \ifx\tmp\empty \else {\the\legendtextheadersize\the\cavename}\vskip0.5cm \fi + %print comment {\rightskip=0pt plus 3em\parskip=3bp \edef\tmp{\the\comment} \ifx\tmp\empty \else {\the\legendtextsize\the\comment} \par\medskip\vskip1cm \fi} + %print scalebar \ifscalebar\scalebar\vskip1cm\fi { + %print the coordinates of the entrance. It is associated with the entrances_coordinates.th file \edef\tmp{\the\ECoordinates} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thcoords: \ss\the\ECoordinates\par} \vskip0.5cm \fi + %%print cavelength and depth ; they need to be defined in the layout in the thconfig \everypar{\hangindent=2em\hangafter=1} \edef\tmp{\the\cavelength} \ifx\tmp\empty \else @@ -3370,34 +3510,42 @@ layout header_coupe-schema \edef\tmp{\the\exploteam} \ifx\tmp\empty \else {\the\legendtextsize\si\the\explotitle: \ss\the\exploteam\quad\si\the\explodate\par} \fi + %print surveyors names \edef\tmp{\the\topoteam} \ifx\tmp\empty \else {\the\legendtextsize\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par} \fi + %%print the guides \edef\tmp{\the\guide} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thguide: \ss\the\guide\par} \fi + %print cartographers names \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else {\the\legendtextsize\si\the\cartotitle: \ss\the\cartoteam\quad\si\the\cartodate\par} \fi + %print synthesys name !!! !!! with newtoks\synth \synth={Synth Name} in the thconfig \edef\tmp{\the\synth} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thsynth: \ss\the\synth\par} \fi + %print the club \edef\tmp{\the\club} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thclub: \ss\the\club\par} \fi + %%print the expedition \edef\tmp{\the\expe} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thexpe: \ss\the\expe\par} \fi + %%print the web page \edef\tmp{\the\wpage} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thwpage: \ss\the\wpage\par} \fi + %%print the survey's data web page \edef\tmp{\the\datat} \ifx\tmp\empty \else {\the\legendtextsize\si\the\thdatat: \ss\the\datat\par} @@ -3423,209 +3571,6 @@ layout header_coupe-schema endlayout -###################################################################################################################################### -# Layout to change the header (plan projection) -# This code is experimental redefinition of map header and based on the work of -# Bruce Mutton Therion 5.3.15 make use of new variables -# Layout pour modifier le cartouche (header) de la projection en plan -# Ce code de redéfinition est expérimental experimental et basé sur le travail de -# Bruce Mutton Therion 5.3.15 fait appel à de nouvelles variables -###################################################################################################################################### -layout headeratlas - copy scalebar_horiz - - # This one affects maps only - # Ceci ne touche que les maps (plans) - code tex-map - \legendcontent={% - \hsize=\legendwidth - \color[0 0 0]\the\legendtextcolor - \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi - %print cave map name - \edef\tmp{\the\cavename} \ifx\tmp\empty \else - {\the\legendtextheadersize\the\cavename}\vskip0.5cm - \fi - %print comment - {\rightskip=0pt plus 3em\parskip=3bp - \edef\tmp{\the\comment} \ifx\tmp\empty \else - {\the\legendtextsize\the\comment} \par\medskip\vskip1cm - \fi} - %print scalebar - \ifscalebar\scalebar\vskip1cm\fi - %print entrances coordinates (Lat-Long/WGS84) if defined - \edef\tmp{\the\ECoordinates} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thcoords: \ss\the\ECoordinates\par} - \vskip0.5cm - \fi - - % start bruces addition - # % CS - \edef\tmp{\the\outcsname} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thproj: \ss\the\outcsname\par} - \fi - \edef\tmp{\the\northdir} \ifx\tmp\empty \else - {\the\legendtextsize\ss\the\northdir north } - \fi - \edef\tmp{\the\magdecl} \ifx\tmp\empty \else - {\the\legendtextsize\ss\the\magdecl deg \par} - \fi - \vskip0.5cm - % end bruces addition - #%print comment - { - #\rightskip=0pt plus 3em\parskip=3bp - #\edef\tmp{\the\comment} \ifx\tmp\empty \else - # {\the\legendtextsize\the\comment} \par\medskip - #\fi - %print cavelength and depth - \everypar{\hangindent=2em\hangafter=1} - \edef\tmp{\the\cavelength} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength\par} - \fi - \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth\par} - \fi - # % start bruces addition - ## % altitude - #\edef\tmp{\the\cavemaxz} \ifx\tmp\empty \else - # {\the\legendtextsize\si\the\depthrangetitle \ss\the\cavemaxz m to} - #\fi - #\edef\tmp{\the\caveminz} \ifx\tmp\empty \else - # {\the\legendtextsize\ss\the\caveminz m \par} %above mean sea level - #\fi - # % end bruces addition - - %print explorers names - \edef\tmp{\the\exploteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\explotitle: \ss\the\exploteam\quad\si\the\explodate\par} - \fi - %print surveyors names - \edef\tmp{\the\topoteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par} - \fi - %%print the guides - \edef\tmp{\the\guide} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thguide: \ss\the\guide\par} - \fi - %print cartographers names - \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\cartotitle: \ss\the\cartoteam\quad\si\the\cartodate\par} - \fi - %print synthesys name !!! !!! with newtoks\synth \synth={Synth Name} in the thconfig - \edef\tmp{\the\synth} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thsynth: \ss\the\synth\par} - \fi - %print the club - \edef\tmp{\the\club} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thclub: \ss\the\club\par} - \fi - %%print the expedition - \edef\tmp{\the\expe} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thexpe: \ss\the\expe\par} - \fi - %%print the web page - \edef\tmp{\the\wpage} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thwpage: \ss\the\wpage\par} - \fi - %%print the survey's data web page - \edef\tmp{\the\datat} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\thdatat: \ss\the\datat\par} - \fi - # % start bruces addition (compilation version and date modified to use built-in 5.3.15 variables) - \edef\tmp{\the\thversion} \ifx\tmp\empty \else %only write version and date if version is not emplty - {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB \ss\the\thversion} - % \fi - % \edef\tmp{\the\currentdate} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\datetitle \ss\the\currentdate\par} - \fi - - # % end bruces addition - %print copyrights - \edef\tmp{\the\copyrights} \ifx\tmp\empty \else - {\the\legendtextsize\ss\the\copyrights\par} - \fi - - \bigskip - \edef\tmp{\the\thanksto} \ifx\tmp\empty \else - {\the\legendtextsize\si\the\ththanksto: \ss\the\thanksto\par} - %\def\ththankstotitle{Nos remerciements : } - %{\everypar{\hangindent=7.2em\hangafter=1} - %\size[\thsizem]\si\ththankstotitle \ss\ththanksto\par} - \fi - } - \formattedlegend - \color[0 0 0] - } - - endcode -endlayout - -###################################################################################################################################### -# If you want to draw a frame around the map -# Si vous voulez un cadre autour de votre topographie -###################################################################################################################################### -layout layoutmapborder - code tex-map - \framethickness=0.5mm - endcode -endlayout - -###################################################################################################################################### -# CODE TO CUSTOMISE ATLAS OUTPUT -# CODE POUR CUSTOMISER L'ATLAS - -# This code is a redefinition of the default atlas definition -# that includes both north arrow & scale bar beside the navigation pane -# from Bruce Mutton (2019/08) -# Ce code est une redéfinition de la définition par défaut de l'Altlas -# Cela inclus à la fois la flèche du nord et la barre d'échelle du panneau de navigation. -# from Bruce Mutton (2019/08) -###################################################################################################################################### -layout LayoutAtlasNorthArrow2 - code tex-atlas - \def\dopage{% - \vbox{\centerline{\framed{\mapbox}} - \bigskip - \line{% - \vbox to \ht\navbox{ - \hbox{\size[20]\the\pagelabel - \ifpagenumbering\space(\the\pagenum)\fi - \space\size[16]\the\pagename} - \ifpagenumbering - \medskip - \hbox{\qquad\qquad - \vtop{% - \hbox to 0pt{\hss\showpointer\pointerN\hss} - \hbox to 0pt{\llap{\showpointer\pointerW\hskip0.7em}% - \raise1pt\hbox to 0pt{\hss$\updownarrow$\hss}% - \raise1pt\hbox to 0pt{\hss$\leftrightarrow$\hss}% - \rlap{\hskip0.7em\showpointer\pointerE}} - \hbox to 0pt{\hss\showpointer\pointerS\hss} - }\qquad\qquad - \vtop{ - \def\arr{$\uparrow$} - \showpointerlist\pointerU - \def\arr{$\downarrow$} - \showpointerlist\pointerD - } - } - \fi - \vss - } - \hss - \vbox to \ht\navbox{ - \ifnortharrow\hbox to 0pt{\hss\northarrow\qquad}\fi - \vss - \ifscalebar\hbox to 0pt{\hss\scalebar\qquad}\fi - } - \box\navbox - } - } - } - endcode - -endlayout - ###################################################################################################################################### # Layout for the set of the Atlas North Arrow to override # the north arrow definition of the layout drawingconfig @@ -3655,26 +3600,16 @@ layout LayoutAtlasNorthArrow label.rt(thTEX("mg") scaled 1.6, (.6cm,-1.6cm)) transformed T; endgroup; enddef; - endcode + endcode + endlayout ###################################################################################################################################### # Layout for the set of the Atlas # Layout pour définir le set up de l'Atlas ###################################################################################################################################### -layout AtlasSetUp - # "size" are the dimensions of the square/rectangle which will be - # occupied by part of the survey corresponding to each smal inset. - # 15 x 20, is good to print with an A4-paper. - # "size", c'est pour l'atlas. Ce sont les dimensions du carré dont - # l'interieur sera occupé par la partie de la topo correspondante à - # chaque une des pagines. 15 x 20, ça va bien pour imprimer A4. - size 15 20 cm - - # In the atlas, we choose an overlap of 1 cm with the neibourghood pages - # Dans l'atlas, on va superposer 1 cm de chaque page voisine - overlap 1 cm - + +layout Atlas # "page-setup". # We specify 1) the dimensions of the paper: 21 X 29.7 (A4) # 2) the surface usable to print, here 17 X 28.2 @@ -3686,11 +3621,29 @@ layout AtlasSetUp # Alors, on peut indiquer une marge à gauche de 3 (21-17-1=3) # et une marge en haut de 1,5 (29,7-27,2-1=1,5) # en centimetres - page-setup 21 29.7 17 27.2 3 1.5 cm + + # page-setup 21 29.7 17 27.2 3 1.5 cm # A4 Portrait + # page-setup 29.7 21 27.2 17 0.5 0.5 cm # A4 Paysage + page-setup 42 29.7 40 27.2 1 1 cm # A3 Paysage + + # "size" are the dimensions of the square/rectangle which will be + # occupied by part of the survey corresponding to each smal inset. + # 15 x 20, is good to print with an A4-paper. + # "size", c'est pour l'atlas. Ce sont les dimensions du carré dont + # l'interieur sera occupé par la partie de la topo correspondante à + # chaque une des pagines. 15 x 20, ça va bien pour imprimer A4. + + # size 15 20 cm # A4 Portrait + # size 20 15 cm # A4 Paysage + size 38 21 cm # A3 Paysage + + # In the atlas, we choose an overlap of 1 cm with the neibourghood pages + # Dans l'atlas, on va superposer 1 cm de chaque page voisine + overlap 1 cm # Print (or not) the title of the pages before each capter of the Atlas # Affiche (ou non) le titre des pages avant chaque chapitre de l’atlas - title-pages on + title-pages off # Zoom factor of the navigation pannel; by default, 30 # Facteur de zoom du panneau de navigation ; Par défault, 30 @@ -3700,13 +3653,243 @@ layout AtlasSetUp # Définir le nombre de pages de l'atlas dans les 2 directions du panneau de navigation nav-size 2 2 + copy scalebar_horiz + copy headeratlas +endlayout + +###################################################################################################################################### +# Layout to change the header (plan projection) +# This code is experimental redefinition of map header and based on the work of +# Bruce Mutton Therion 5.3.15 make use of new variables +# Layout pour modifier le cartouche (header) de la projection en plan +# Ce code de redéfinition est expérimental experimental et basé sur le travail de +# Bruce Mutton Therion 5.3.15 fait appel à de nouvelles variables +###################################################################################################################################### +layout headeratlas code tex-atlas - \atlastitlepages - \insertmaps - \formattedlegend + + \newbox\atlasheaderlogobox + %\ifx\atlasheaderlogo\testpath + \setbox\atlasheaderlogobox=\hbox{\loadpicture{\atlasheaderlogo}} + %\fi + + \newbox\atlaslogobox + \ifx\atlaslogo\testpath \else + \setbox\atlaslogobox=\hbox{\loadpicture{\atlaslogo}} + \fi + + ##################################################################################### + # Page de titre personnalisée # + ##################################################################################### + \def\atlastitlepages{% + \vbox{% + + # %print logo + \ifx\atlasheaderlogo\testpath + \vfill\vskip1cm\centerline{} + \else + \vfill\vskip1cm\centerline{\copy\atlasheaderlogobox} + \fi + \vskip2cm\vfill + + # %print cave map name + \edef\tmp{\the\cavename} \ifx\tmp\empty \else + \centerline{\the\legendtextheadersize\the\cavename}\vskip1cm + \fi + + # %print comment + {\rightskip=0pt plus 3em\parskip=3bp + \edef\tmp{\the\comment} \ifx\tmp\empty \else + {\the\legendtextsize\the\comment} \par\medskip\vskip1cm + \fi} + + # % CS + \edef\tmp{\the\outcsname} \ifx\tmp\empty \else + \vskip0.5cm + + + # %print cavelength and depth + \everypar{\hangindent=2em\hangafter=1} + \edef\tmp{\the\cavelength} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength, } + \fi + \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth} + \fi + + # % start bruces addition + ## % altitude max and min + \edef\tmp{\the\cavemaxz} \ifx\tmp\empty \else + {\the\legendtextsize\si (\the\depthrangetitle : \ss\the\cavemaxz m - \ss\the\caveminz m)} + \fi + \par\vskip0.5cm + % end bruces addition + + # %print explorers names + \edef\tmp{\the\exploteam} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\explotitle: \ss\the\exploteam\quad\si\the\explodate\par\vskip0.5cm} + \fi + + # %print surveyors names + \edef\tmp{\the\topoteam} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par\vskip0.5cm} + \fi + + # %%print the guides + # \edef\tmp{\the\guide} \ifx\tmp\empty \else + # {\the\legendtextsize\si\the\thguide: \ss\the\guide\par\vskip0.5cm} + # \fi + + # %print cartographers names + \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\cartotitle: \ss\the\cartoteam\quad\si\the\cartodate\par\vskip0.5cm} + \fi + + # %%print club + \edef\tmp{\the\club} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\thclub: \ss\the\club\par} + \fi + + %%print the web page + \edef\tmp{\the\wpage} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\thwpage: \ss\the\wpage\par} + \fi + + # %%print the survey's data web page + \edef\tmp{\the\datat} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\thdatat: \ss\the\datat\par} + \fi + + # %%print the survey's database web page + \edef\tmp{\the\database} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\thdatabase: \ss\the\database\par} + \fi + + # %print synthesys name !!! !!! with newtoks\synth \synth={Synth Name} in the thconfig + \edef\tmp{\the\synth} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\thsynth: \ss\the\synth\par} + \fi + + # % start bruces addition (compilation version and date modified to use built-in 5.3.15 variables) + \edef\tmp{\the\thversion} \ifx\tmp\empty \else %only write version and date if version is not emplty + {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB \ss\the\thversion} + % \fi + % \edef\tmp{\the\currentdate} \ifx\tmp\empty \else + {\the\legendtextsize\si\the\datetitle \ss\the\currentdate\par} + \fi + \vskip1cm + + + + # %print copyrights + \edef\tmp{\the\copyrights} \ifx\tmp\empty \else + {\the\legendtextsize\ss\the\copyrights\par} + \fi + \edef\tmp{\the\thanksto} \ifx\tmp\empty \else + \bigskip + {\the\legendtextsize\si\the\ththanksto: \ss\the\thanksto\par} + %\def\ththankstotitle{Nos remerciements : } + %{\everypar{\hangindent=7.2em\hangafter=1} + %\size[\thsizem]\si\ththankstotitle \ss\ththanksto\par} + \fi + + }% + } + + ##################################################################################### + # Redéfinition de \dopage pour les pages de carte # + ##################################################################################### + \def\dopage{% + \vbox{% + % Cadre de la carte + \centerline{\framed{\mapbox}} + \bigskip + % Ligne avec informations et navigateur + \line{ % + # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \vbox{ + \hbox{% + \vbox{% + \hbox{\size[24]\the\pagename} % ligne 1 : nom de page + \ifpagenumbering + \medskip + \hbox{% % ligne 2 + lignes 3-4 côte à côte + \vbox{ + \hbox{\size[18]Page : \the\pagenum % bloc gauche : numéro de page + \space(\the\pagelabel)\hskip1em} + }\hskip1.5em + \vbox{ % bloc droit : pointeurs + scalebar + \hbox{% + \vtop{% + \hbox to 0pt{\hss\showpointer\pointerN\hss} + \hbox to 0pt{% + \llap{\showpointer\pointerW\hskip0.8em}% + \hss\vbox{ + \hbox{\hfil$\updownarrow$\hfil} + \nointerlineskip + \hbox{\hfil$\leftrightarrow$\hfil} + } + \hss\rlap{\hskip0.8em\showpointer\pointerE}% + } + \hbox to 0pt{\hss\showpointer\pointerS\hss} + } + } + \ifscalebar\hbox{\hskip1.5cm\scalebar}\fi + } + } + \fi + } + } + } + \hss + # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ifx\atlaslogo\testpath \else + \vbox to \ht\navbox{\vss\centerline{\copy\atlaslogobox}\vss}\hss % Cadre 2 : Bloc central + \fi + + # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \vbox to \ht\navbox{\ifnortharrow\hbox to 0pt{\hss\northarrow\qquad}\fi\vss} % Cadre 3 : bas droit flèche nord + + # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \box\navbox}}} % Cadre zoom général + + ##################################################################################### + # Insertion des pages # + ##################################################################################### + \atlastitlepages % page de titre + \insertmaps % pages de cartes + \formattedlegend % légende à la fin + + \vfill\eject + % print entrances coordinates if defined + \edef\tmp{\the\ECoordinates}% + \ifx\tmp\empty + \else + {\the\legendtextsize\si\the\thcoords (\the\outcsname) :\par + \begingroup + \catcode`\_=12 + \obeylines + \the\ECoordinates + \endgroup + \par} + \vskip0.2cm + \fi + + endcode + +endlayout + +###################################################################################################################################### +# If you want to draw a frame around the map +# Si vous voulez un cadre autour de votre topographie +###################################################################################################################################### +layout layoutmapborder + code tex-map + \framethickness=0.5mm endcode endlayout + ###################################################################################################################################### # If you want to write all the texts that go with continuations marks @@ -3897,6 +4080,21 @@ layout depth endcode endlayout +###################################################################################################################################### +# If you want to change font size +# Si vous voulez changer la police +# fonts for 1/5000 scale drawing +# fonts pour dessin à 1/5000 +###################################################################################################################################### +layout fonts_5000 + + code metapost + #fonts_setup(,,,,); + fonts_setup(3, 5, 7, 12, 24); + endcode + +endlayout + ###################################################################################################################################### # If you want to change font size # Si vous voulez changer la police @@ -3904,11 +4102,13 @@ endlayout # fonts pour dessin à 1/2000 ###################################################################################################################################### layout fonts_2000 + code metapost #fonts_setup(,,,,); # Old: (6, 8, 12, 16, 18) fonts_setup(5, 8, 12, 20, 34); endcode + endlayout ###################################################################################################################################### @@ -3917,13 +4117,15 @@ endlayout # fonts for 1/1000 scale drawing # fonts pour dessin à 1/1000 ###################################################################################################################################### -layout fonts_1000 +layout fonts_1000 + code metapost #fonts_setup(,,,,); # Old: (10, 14, 20, 28, 32) # Old: (8, 12, 20, 28, 34) fonts_setup(8, 12, 20, 32, 52); endcode + endlayout ###################################################################################################################################### @@ -3933,11 +4135,28 @@ endlayout # fonts pour dessin à 1/500 ###################################################################################################################################### layout fonts_500 + code metapost #fonts_setup(,,,,); # Old: (6, 10, 12, 14, 18) fonts_setup(12, 20, 32, 52, 84); endcode + +endlayout + +###################################################################################################################################### +# If you want to change font size +# Si vous voulez changer la police +# fonts for 1/500 scale drawing +# fonts pour dessin à 1/200 +###################################################################################################################################### +layout fonts_200 + + code metapost + #fonts_setup(,,,,); + fonts_setup(20, 32, 52, 84, 110); + endcode + endlayout ###################################################################################################################################### diff --git a/Scripts/pyCreateTh/Template/template.thconfig b/Scripts/pyCreateTh/Template/template.thconfig index e45d7d1..d9526bd 100644 --- a/Scripts/pyCreateTh/Template/template.thconfig +++ b/Scripts/pyCreateTh/Template/template.thconfig @@ -12,10 +12,10 @@ encoding utf-8 ## Le signe "#" en début de ligne signifie que la ligne est commentée. Elle ne ## sera donc pas lue lors de la compilation. -## Dans ce fichier on met les specifications generales, à savoir -## dans quel fichier sont les donnees topo, l'aspect que l'on veut +## Dans ce fichier on met les specifications générales, à savoir +## dans quel fichier sont les données topo, l'aspect que l'on veut ## donner aux topos imprimées (layout) et ce que l'on -## veut comme résultat : map, ou atlas ou 3D ou donnees en format SQL +## veut comme résultat : map, ou atlas ou 3D ou données en format SQL ## Alors, on peut fractionner ce fichier en trois parts: ## - source, pour specifier les fichiers ou sont les données topo/dessin @@ -23,12 +23,12 @@ encoding utf-8 ## - export: map, atlas, etc ############################################################################################### -## 1-SOURCES +## 1-SOURCES ## ############################################################################################### -## La ligne source spécifie le fichier ou sont les donnees topo +## La ligne source spécifie le fichier ou sont les données topo ## jb.th". (Au fichier "jb.th" il faudra avoir une ligne ## "input "nomcavite.th2" pour spécifier le fichier ou se trouvent -## les donnees du dessin, comme ça, ce fichier thconfig appellera +## les données du dessin, comme ça, ce fichier thconfig appellera ## "jb.th" et a leur tour, "jb.th" appellera ## "jb-dessin.th2") @@ -41,13 +41,13 @@ source {fileName}-tot.th ############################################################################################### -## 2-LAYOUT +## 2-LAYOUT ## ############################################################################################### -## Ici, on peut specifier des choses comme les symboles à utiliser (UIS, etc) +## Ici, on peut spécifier des choses comme les symboles à utiliser (UIS, etc) ## ou imprimer des explications des symboles ############################################################################################### -## Début de la définition du layout "Layout-Plan" +## 2.1 Début de la définition du layout "Layout-Plan" ## ############################################################################################### layout layout-Plan ## Call the config settings (Layout config inside the config.thc file) @@ -71,11 +71,11 @@ layout layout-Plan ## Maintenant on va mettre une ligne "scale" pour specifier l'échelle pour imprimer la topo. ## La combination entre scale et base-scale contrôle l'épaisseur des lignes, rotation, etc, convenable ## pour faire l'ampliation-réduction entre dessin et le résultat de l'imprimante - ## C'est tres important s'assurer que la configuration de l'imprimante ne spécifie pas l'option "Fit in page" + ## C'est très important s'assurer que la configuration de l'imprimante ne spécifie pas l'option "Fit in page" ## ou similaire, sinon, l'échelle sera changée pendant l'impression! scale 1 {Scale} - ## Echelle graphique 100 m ampleur (Généralement, le choix scale/10 est plutôt pas mal) + ## Échelle graphique 100 m ampleur (Généralement, le choix scale/10 est plutôt pas mal) scale-bar 100 m ## Voici une ligne pour specifier qu'il faut imprimer une grille au dessous de la topo @@ -108,9 +108,8 @@ layout layout-Plan #surface bottom #surface-opacity 100 - ## Auteur + ## Auteur, titre du pdf doc-author "{Author}" - ## Titre doc-title "{caveName} Plan - 1:{Scale}" doc-subject "{caveName}, topographie en plan" doc-keywords "Cave, Survey, {caveName}, {mapComment}" @@ -126,13 +125,16 @@ layout layout-Plan ## arrière plan de la manchette map-header-bg on + ## Légende pour expliciter les symboles. "on" imprimera seulement la légende des symboles dessinés ## sur la topo. Si l'on veut pour tous les symboles, utilisés ou pas, il faut indiquer "all". ## "legend off" = pas de légende legend on + ## Par défaut, la légende est de 14 cm de largeur - legend-width 15 cm + # legend-width 15 cm legend-columns 2 + ## Un commentaire à ajouter au titre, on pourrait indiquer ici la mairie où est placée la cavité ## dont le nom est probablement le titre de la topo. map-comment "{mapComment}" @@ -190,13 +192,18 @@ layout layout-Plan overlap 2 cm code tex-map - \legendwidth=15cm %%% Largeur de la légende - \legendtextsize={\size[10]} %%% Taille des polices - \legendtextheadersize={\size[20]} %%% Taille du titre - \legendtextsectionsize={\size[14]} %%% Taille des sections - \legendtextlicencesize={\size[8]} %%% Taille de la licence + \legendwidth=15cm %%% Largeur de la légende + \legendtextsize={\size[10]} %%% Taille des polices + \legendtextheadersize={\size[20]} %%% Taille du titre + \legendtextsectionsize={\size[14]} %%% Taille des sections + \legendtextlicencesize={\size[8]} %%% Taille de la licence \cavename={{caveName}, Plan 1:{Scale}} %%% Note Alex : Bug avec certains fichiers ? \newtoks\club \club={{club}} + %\cavelength={} + %\cavedepth={} + %\cavemaxz={} + %\cartoteam={} + %\ECoordinates={\inputrel{Outputs/{fileName}_Cave-list.txt}} %\thanksto={{thanksto}} \wpage={{wpage}} \datat={{datat}} @@ -210,7 +217,7 @@ layout layout-Plan endlayout ############################################################################################### -##debut de la definition du layout "layout-Extended" +## 2.2 Début de la définition du layout "layout-Extended" ## ############################################################################################### layout layout-Extended ## Call the config settings (Layout config inside the config.thc file) @@ -236,16 +243,17 @@ layout layout-Extended ## Maintenant on va mettre une ligne "scale" pour specifier l'échelle pour imprimer la topo. ## La combination entre scale et base-scale contrôle l'épaisseur des lignes, rotation, etc, convenable ## pour faire l'ampliation-réduction entre dessin et le résultat de l'imprimante - ## C'est tres important s'assurer que la configuration de l'imprimante ne spécifie pas l'option "Fit in page" + ## C'est très important s'assurer que la configuration de l'imprimante ne spécifie pas l'option "Fit in page" ## ou similaire, sinon, l'échelle sera changée pendant l'impression! scale 1 {Scale} - ## Echelle graphique 100 m ampleur (Généralement, le choix scale/10 est plutôt pas mal) + ## Échelle graphique 100 m ampleur (Généralement, le choix scale/10 est plutôt pas mal) scale-bar 40 m ## Voici une ligne pour specifier qu'il faut imprimer une grille au dessous de la topo #grid bottom grid off + ## Une ligne pour specifier que la grille est 1000x1000x1000 m ## (Trois dimensions, oui, ça sert pour la coupe aussi) #grid-size 250 250 250 m @@ -270,11 +278,9 @@ layout layout-Extended #surface bottom #surface-opacity 100 - ## Auteur + ## Auteur, titre du pdf doc-author "{Author}" - ## Titre doc-title "{caveName} Coupe développée - 1:{Scale}" - doc-subject "{caveName}, topographie en coupe développée" doc-keywords "Cave, Survey, {caveName}, {mapComment}" @@ -286,14 +292,17 @@ layout layout-Extended ## Alors nous pouvons specifier que le sud-ouest de la manchette soit placé en bas, a gauche, ## ou une autre combination... map-header 98 98 ne + ## arrière plan de la manchette map-header-bg on + ## Légende pour expliciter les symboles. "on" imprimera seulement la légende des symboles dessinés ## sur la topo. Si l'on veut pour tous les symboles, utilisés ou pas, il faut indiquer "all". ## "legend off" = pas de légende legend on + ## Par défaut, la légende est de 14 cm de largeur - legend-width 15 cm + # legend-width 15 cm legend-columns 2 ## Un commentaire à ajouter au titre, on pourrait indiquer ici la mairie où est placée la cavité ## dont le nom est probablement le titre de la topo. @@ -330,6 +339,11 @@ layout layout-Extended \legendtextlicencesize={\size[8]} %%% Taille de la licence \cavename={{caveName}, Coupe développée 1:{Scale}} \club={{club}} + %\cavelength={} + %\cavedepth={} + %\cavemaxz={} + %\cartoteam={} + %\ECoordinates={\inputrel{Outputs/{fileName}_Cave-list.txt}} %\thanksto={{thanksto}} \wpage={{wpage}} \datat={{datat}} @@ -341,7 +355,7 @@ endlayout ############################################################################################### -## Début de la définition du Layout "layout-kml" +## 2.3 Début de la définition du Layout "layout-kml" ## ############################################################################################### layout layout-kml ## Définition du système de projection du plan @@ -355,22 +369,24 @@ layout layout-kml endlayout ############################################################################################### -## Début de la définition du Layout "xviexport" +## 2.4 Début de la définition du Layout "xviexport" ## ############################################################################################### layout xviexport # cs {cs} - ## echelle à laquelle on veut dessiner la topo + ## Échelle à laquelle on veut dessiner la topo scale 1 {XVIscale} # scale 1 1000 ## taille de la grille grid-size 2 2 2 m + ## mettre la grille en arrière plan grid bottom endlayout + ## fin de la définition du layout ############################################################################################### -# 3-EXPORT +## 3-EXPORT ## ############################################################################################### ## Export des xvi pour le dessin si besoin @@ -399,7 +415,8 @@ endlayout # export map -proj plan -fmt kml -o Outputs/{fileName}.kml -layout layout-kml # export model -fmt kml -o Outputs/{fileName}-model.kml -enable all # export model -enable all -o Outputs/{fileName}-3D.kml - export cave-list -surveys off -location on -o Outputs/{fileName}-Cave-list.html + export cave-list -surveys off -location on -o Outputs/{fileName}_Cave-list.html + export cave-list -surveys off -location on -o Outputs/{fileName}_Cave-list.txt export survey-list -location on -o Outputs/{fileName}-Surveys.html # export database -fmt sql -o Outputs/{fileName}-Database.sql # export continuation-list -o Outputs/{fileName}-Continuations.html @@ -407,5 +424,5 @@ endlayout ############################################################################################### -## END FILE +## END FILE ## ############################################################################################### \ No newline at end of file diff --git a/Scripts/pyCreateTh/config.ini b/Scripts/pyCreateTh/config.ini index 86c22f5..7dbbb21 100644 --- a/Scripts/pyCreateTh/config.ini +++ b/Scripts/pyCreateTh/config.ini @@ -44,6 +44,19 @@ datat = https://github.com/Alex38Lyon/Synthese-PSM_LARRA wpage = https://www.arsip.fr/ cs = UTM30 +[Survey_Data:Flaine] +Author = Alexandre Pont +Copyright1 = # Copyright (C) Interclubs Flaine-Platé {YEAR} +Copyright2 = # This work is under the Creative Commons Attribution-NonCommercial-NoDerivatives License: +Copyright3 = # +Copyright_Short = License CC by-nc-sa : http://creativecommons.org/licenses/by-nc-sa/4.0/ +map_comment = Massif de Flaine-Platé +club = Interclubs Flaine-Platé +thanksto = Merci à tout le monde +datat = https://github.com/Alex38Lyon/Synthese-Flaine-Plate +wpage = http://cesame.ardeche.free.fr +cs = UTM32 + [Survey_Data:Xichou] Author = Alexandre Pont Copyright1 = # Copyright (C) XIchou {YEAR} diff --git a/Scripts/pyCreateTh/pyCreateTh.py b/Scripts/pyCreateTh/pyCreateTh.py index 5a8bb2e..6ca0658 100644 --- a/Scripts/pyCreateTh/pyCreateTh.py +++ b/Scripts/pyCreateTh/pyCreateTh.py @@ -2204,7 +2204,7 @@ if __name__ == u'__main__': parser.add_argument("--file", help="the file (*.th, *.mak, *.dat, *.tro) to perform e.g. './Therion_file.th'", default="") parser.add_argument("--proj", choices=['All', 'Plan', 'Extended', 'None'], help="the th2 files scrap projection to produce, default: All", default="All") parser.add_argument("--scale", help="scale for the pdf layout exports, default value: 1000 (i.e. xvi files scale is 100)", default="1000") - parser.add_argument("--update", help=f"th2 files update mode (only for th input files, no folders created), {Colors.RED}Attention : save your old th2 files", action="store_true", default=False) + parser.add_argument("--update", help=f"th2 files update mode (only for th input files, no folders created), {Colors.RED}attention : save your old th2 files", action="store_true", default=False) parser.epilog = ( f"{Colors.GREEN}Please, complete {Colors.BLUE}config.ini{Colors.GREEN} in {Colors.BLUE}FILE{Colors.GREEN} folder or in script folder for personal configuration{Colors.ENDC}\n"