[Therion] Using smaller fonts
Jackson
jackson at fund-ev.de
Wed Apr 10 09:36:47 CEST 2013
Hi,
> Copy this code to a layout of your own, then add
> write "\def\thstationname{\size[3]}" to "mptexpre.tex";
> near the end of the block of code in the layout.
When i change "\def\thnormalsize{\size[8]}" to size[4]
then the stationsname appear smaller. But there is no
effect on changing only "thstationname".
I copied this piece of code out of mptexpre.tex from
a plain installation. thstationname there is definied
as "thsmallsize". But only when i change the size
in thnormalsize it affects on the output.. that
confuses me :(
thats my "test" layout definition:
#-----------------------------------------
layout metapost
code metapost
def fonts_setup (expr t,s,m,l,h) =
write
"\def\updown#1#2{\vbox{" &
"\offinterlineskip" &
"\setbox100=\hbox{#1}" &
"\setbox101=\hbox{#2}" &
"\ifnum\wd100>\wd101\hsize=\wd100\else\hsize=\wd101\fi" &
"\centerline{\box100}\vskip4pt" &
"\centerline{\box101}}}" &
"\def\thlabel{\thnormalsize}" &
"\def\thremark{\thsmallsize\si}" &
"\def\thcomment{\thsmallsize}" &
"\def\thentrance{\thsmallsize}" &
"\def\thaltitude{\thsmallsize}" &
"\def\thstationname{\thsmallsize}" &
"\def\thdate{\thsmallsize}" &
"\def\thheight{\thsmallsize}" &
"\def\thheightpos{+\ignorespaces}" &
"\def\thheightneg{-\ignorespaces}" &
"\def\thframed{\thsmallsize}" &
"\def\thwallaltitude{\thtinysize}"
to "mptexpre.tex";
write "\def\thtinysize{\size[6]}" &
"\def\thsmallsize{\size[7]}" &
"\def\thnormalsize{\size[8]}" &
"\def\thlargesize{\size[10]}" &
"\def\thhugesize{\size[14]}"
to "mptexpre.tex";
write "\def\thstationname{\size[2]}" to "mptexpre.tex";
write EOF to "mptexpre.tex";
enddef;
initialize(Scale);
endcode
endlayout
#---------------------------------------
Glück tief
Christian
--
+----------------------------------------------+
| FUND Freunde Unterwelt Dachstein e.V. |
| http://www.fund-ev.de |
+----------------------------------------------+
More information about the Therion
mailing list