09.07.2015 Views

piechartMP Manual

piechartMP Manual

piechartMP Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3 <strong>piechartMP</strong> Setup"" empty string; default"%&latex" some systems support this"?????" any other string, depending on your systemthis the current valueTeXSettings [Type: string] a string including T E X commands which will be written afterthe T E X format in the external file."" empty string; default"?????" any string including T E X and L A T E Xpreamble commandsthis the current valueIf you set the text mode to 0 the string based typesetting is active. That means youcannot use T E X commands in the strings. You have only the posibility to change the fontand its size using the METAPOST variables defaultfont and defaultscale.Text mode 1 is the most general setting. Here you have the full control and you can doanything required for your system.Text mode 2 gives you control over the T E X format as mode 1, but it saves you fromthe L A T E X specification, since it loads a minimal L A T E X setup. This does not mean that theparameter TeXSettings is useless, since the content of this parameter is written between\documentclass and \begin{document}.Suppose the setup:SetupText(2, "%&latex", "\usepackage[latin1]{inputenc}")The verbatimtex block written based on these settings will be:verbatimtex%&latex\documentclass{minimal}\usepackage[latin1]{inputenc}\begin{document}etexIf you need more packages or in general a long setup it makes no sence to give all in theparameter TeXSettings. It is easier to write everything in an extra T E X file and input them.If you need for example Latin-1 input encoding, the labels shall be written in Times andyou need some symbols from Martin Vogel’s symbol font, you can write this T E X file namedpcset.tex:\usepackage[latin1]{inputenc}\usepackage{times}\usepackage{marvosym}and use the following <strong>piechartMP</strong> text setup:SetupText(2, "%&latex", "\input{pcset}")The following descriptions of the label setup commands correspond to the text setup,therefore examples can be found in section 3.4.23.4 Labels18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!