[NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

Verhaag, G.C.H.M. verhaaggchm at ziggo.nl
Mon Jan 3 10:39:08 CET 2011


Wolfgang Schuster wrote:

>Am 31.12.2010 um 10:36 schrieb Verhaag, G.C.H.M.:
>
>  
>
>>So I understand that both statements:
>>
>>\loadmarkfile{m-graph}
>>
>>\usemodule[graph]
>>
>>are actually the same thing!
>>    
>>
>
>Both work but they are not the same thing.
>
>\loadmarkfile loads only the given file with the extension “mkii” MkII and “mkiv” for MkIV and only used in modules.
>
>\usemodule does a lot more than this, the first is that it checks for the given module with different prefixes (the graph module has a “m-” prefix which means it’s a core module) and it also looks for file with different extension, this means it doesn’t matter if the module is called m-graph.tex, m-graph.mkiv or even t-graph.mkiv, \usemodule will always load the module while \loadmarkfile will only load m-graph.mkiv
>
>When you load a file with \loadmarkfile and the file is not present you will get a message on the terminal to give a different file name which aborts the tex run while \usemodule will only give a message on the terminal but the processing isn’t stopped, as a last thing \usemodule loads a module only once while \loadmarkfile will always read the file.
>
>Wolfgang
>
>
>  
>
Thanks for explaining the differences of the two statements!

Regards,
Gerard


More information about the ntg-context mailing list