13.07.2013 Views

Hagen - Pragma ADE

Hagen - Pragma ADE

Hagen - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

94<br />

Features<br />

In fact, in addition to already mentioned mapfiles and virtuals subtables, we can pass<br />

variables and overload parameters.<br />

return {<br />

name = "lm-math",<br />

...<br />

mathematics = {<br />

mapfiles = {<br />

...<br />

},<br />

virtuals = {<br />

...<br />

variables = {<br />

joinrelfactor = 3, -- default anyway<br />

},<br />

parameters = { -- test values<br />

-- FactorA = 123.456,<br />

-- FactorB = false,<br />

-- FactorC = function(value,target,original)<br />

-- return 7.89 * target.factor<br />

-- end,<br />

-- FactorD = "Hi There!",<br />

},<br />

}<br />

}<br />

This kind of goodie functionality is typical for the development of LuaT E X and experimental<br />

math fonts and no user should ever be bothered with it. However, it demonstrates<br />

that we’re not stuck with only features built in the fonts.<br />

It can be that a user is not satisfied by some aspects of a math font design. There is not<br />

much that we can do about the shapes, but we can manipulate for instance dimensions.<br />

For this there are two mechanism available: automatically applied dimensional fixes<br />

and a mathdimensions feature. Both work with the same goody specification.<br />

mathematics = {<br />

...<br />

dimensions = {<br />

},<br />

...<br />

}<br />

The entries in a dimensions table are tables themselves. There can be many of them so<br />

one can organize dimensional tweaks in groups. The default group is always applied,<br />

while others are applied on demand. Say that want to tweak all ± and ∓. 6<br />

6 In fact, this mechanism is a a response to a mail on the ConTE Xt mailing list.

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

Saved successfully!

Ooh no, something went wrong!