[Therion] Increase size of legend
Bill Gee
bgee at campercaver.net
Fri Nov 10 20:23:39 CET 2017
Hi Torsten -
Thanks! There is enough here to keep me busy for several days. I need to
figure out how to integrate all this code into my thconfig, then fiddle with
the constants to get it to come out right.
--
Bill Gee
On Friday, November 10, 2017 1:46:55 AM CST Torsten Schnitter via Therion
wrote:
> Hi Bill
>
> I have done that. Somewhat complicated but it works (for me).
> Following just as an example to get an idea about it.
> I also seperated scalebar, northarrow, legendcontent and legendsymbols from
> each other to place them at different positions.
>
> You can input the attached .th files in your config file using:
> input .\filename.th
> (I put the code into files to use it with different caves. But you also can
> put the sourcecode directly into your config file)
>
> within layout command use following:
> - copy legendcontent (for input of new code for legendcontent into the
> layout definition) - copy legendsymbols (for input of new code for
> legendsymbols into the layout definition) - copy scalebar (for input of new
> code for scalebar into the layout definition) - copy northarrow_new (for
> input of new code for northarrow into the layout definition) - scale and
> base-scale (for sizing the map and size of symbols inside map) -
> legend-width xx cm (to size the width of legendsymbols-table)
> - legend-columns x (number of rows of legend-symbols)
>
> also within layout:
> code metapost
> % scale of legend symbols
> tmpscale:=2.0;
> % scale of north arrow
> tmpscalenarrow:=2.5;
> % scale of scalebar
> tmpscalebar:=2.0;
> endcode
>
> code tex-map
> % parameter legendcontent
> \def\thsizexl{60} %
> size of cave name in map \def\thsizel{48}
> % size of comment in map \def\thsizem{36}
> % size of text in map % parameter legend
> symbols
> \def\legendsymbolswidth1{60 cm} %
> width of legendcontent \legendtextsectionsize={\size[60]}
> % text size of legend symbols header
> \legendtextsize={\size[48]} % text
> size of legend symbols % map layout
> \def\maplayout{
> \legendbox{x}{y}{NW}{\the\legendcontent} %
> map header \legendbox{x}{y}{NW}{\legendsymbols}
> % legend symbols \legendbox{x}{y}{NW}{\northarrow}
> % north arrow \legendbox{x}{y}{NW}{\hsize=10 cm\centerline\scalebar}
> % scalebar endcode
>
>
> Some finetuning:
> within the file legendsymbols.th is a line
> % personal adjustments
> \advance\legendsymbolht by -4pt % align legendsymboltext from top of
> legendsymbolbox with adjusting the number you can adjust the text from each
> legendsymbol to the symbolbox.
>
> hth,
> Torsten
>
> > Bill Gee via Therion <therion at speleo.sk> hat am 9. November 2017 um
> > 14:45 geschrieben:
> >
> > Hello everyone -
> >
> > I need to make the legend on a map larger. The cave has grown to
> > nearly 3km of passage, and even when printed on 60cm x 100cm paper
> > the legend is too smal to read. Even a magnifying glass does not
> > help!
> >
> > I referred to a thread from about two years ago which discusses this
> > subject. Henry Bennett provided a combination of MetaPost and TeX
> > code that is supposed to make the legend larger. It works ... Sort
> > of! Much is left out.
> >
> > Here is the code I have in the layout section of my thconfig file:
> >
> > # Change the size of the legend
> > code metapost
> > def draw_legend_box =
> > %make the objects in the legend boxes bigger
> > currentpicture := currentpicture scaled 5.0;
> > clip currentpicture to unitsquare scaled 10u;
> > drawoptions();
> > pickup PenB;
> > draw unitsquare scaled 10u ;
> > enddef;
> >
> > %clear the background of the larger legend boxes
> > def clean_legend_box =
> > unfill unitsquare scaled 10u;
> > enddef;
> >
> > %change the value of inscale to fill the legend boxes
> > def inscale =
> > xscaled legend_scale yscaled (0.6*legend_scale)
> > %xscaled legend_scale yscaled legend_scale
> > enddef;
> > endcode
> >
> > code tex-map
> > \def\maplayout{
> > \legendbox{3}{65}{W}{
> > \legendwidth 80 cm
> > \legendtextsize={\size[74]}
> > \hsize=\legendwidth
> > \northarrow\bigskip
> > \the\cavename
> > \the\comment
> > \input th_legend
> > }
> > }
> > endcode
> >
> > The legend that results from this is about the right size. However,
> > only the symbol table is enlarged. The north arrow is still too small
> > and everything else that is supposed to be in the legend is missing.
> > The attached screen shot shows what I get.
> >
> > The Therion Book has a section describing the TeX macros that can be
> > used. It looks like the documentation is not complete. Some of the
> > macros are shown with options and parameters, but not all. There are
> > samples on the Wiki that show additional options. Is there a document
> > that describes ALL of the options and parameters for the TeX macros?
> >
> > How are the parameters in the MetaPost section of the code related?
> > Looking at the legend I get, I see that the boxes enclosing each
> > symbol are about the right size but the symbols drawn in them are (in
> > some cases) too small. Look at the symbols for pillar and stalagmite,
> > for example. Others, like the pendant (a user-defined symbol) are too
> > large. Which of the MetaPost lines control that?
> >
> > Does anyone have suggestions about what I am missing?
> >
> > If anyone wants to see the full map, let me know. It is nearly 3mb as
> > a PDF, so I don't want to send it to the entire group. Thanks!
> >
> > --
> > Bill Gee
> >
> > _______________________________________________
> >
> > Therion mailing list
> > Therion at speleo.sk
> > https://mailman.speleo.sk/listinfo/therion
More information about the Therion
mailing list