encoding  utf-8
source Goughs.th
# Change name to the main therion file


#Surveys to output
#-----------------
#Plan has to be produced first for combined to work

export map -proj plan -layout plan -o Goughs.pdf
#Produces plan of cave, on a single sheet

export map -proj plan -layout doublescale -o Goughs_sections.pdf

#export map -proj [elevation 0] -layout elev -o GoughsE000.pdf

#Plan and elevation on same sheet
export map -proj [elevation 0] -layout combined -o Goughs_combined.pdf


#export model -fmt survex -o Goughsth.3d
#Survex file showing centre line only

#export model -o Goughs.lox
#3d therion model to be viewed in the therion viewer

#export map -proj plan -o Goughs_Walls.3d
#Survex file showing walls only


select GoughsUpperM@Goughs -map-level 1
select GoughsDispM@Goughs
select ShowCaveSumpsM@sumps.Goughs

select GoughsME0@Goughs -map-level 1
select GoughsDispME0@Goughs
select ShowCaveSumpsME0@sumps.Goughs



layout elev
copy local
#colour map-bg transparent

endlayout

layout doublescale
copy plan
scale 1 250
symbol-hide group all
symbol-show  point section
endlayout

layout combined
copy local
map-image -2 100 sw Goughs.pdf
map-image 0 -5 nw Goughs_sections.pdf
map-header 100 -5 ne
map-comment "Drawn, using Therion, by Andrew Atkinson and Graham Mullan.<br>\
Survey UBSS and CDG.<br>\
Data available at www.cave-registry.org.uk<br>\
Models and updated surveys available at www.ubss.org.uk<br>\
With thanks to all the other cavers past and<br>\
present that have made information available.<br>\
Grade UISv1 6-4-BEF<br>\
Copyright 2010-2013 CC BY NC SA <br>\
 <br>\
Heights in metres AOD<br>\
Cross sections at the same scale as the maps."
endlayout

layout plan
copy local
code tex-map
  \def\maplayout{
    \legendbox{5}{90}{SW}{\northarrow}
  }
endcode
endlayout

layout local
copy common
debug off
map-header 0 0 off
#colour map-fg map
colour-legend off
symbol-hide group centreline
grid-size 100 100 20 m


#A1 (for combined)
scale 1 500
#base-scale 1 500

code tex-map
  \cavename={\size[50] Gough's Cave\medskip\size[20] up to and including Sump 1b}
   # \cavelength={} %empty
   #\cavedepth={}  %empty
   \legendtextsize={\size[16]}
    \colorlegendfalse
    \topodate={}  %empty


	

code metapost

#####################################
#Text sizes
#xs: features such as sumps
#s: point names such as rocks
#m: normal names
#l: major names
#xl: Area/cave names
#####################################

  #base 1:750 scale 1:2750 (A3 charterhouse,GB)
  #fonts_setup(8,16,24,40,60)

  #scale 1:1000 (A0 width charterhouse,GB)
  #fonts_setup(7,10,14,20,30)

  #base 1:500 scale 1:2750 
  fonts_setup(8,20,26,40,60)

endcode

endlayout

input ../common_layout.th