diff options
Diffstat (limited to 'Master/texmf-dist/metapost/metauml/metauml_class_assoc.mp')
-rw-r--r-- | Master/texmf-dist/metapost/metauml/metauml_class_assoc.mp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Master/texmf-dist/metapost/metauml/metauml_class_assoc.mp b/Master/texmf-dist/metapost/metauml/metauml_class_assoc.mp index 457e3015d3a..fb7786b8794 100644 --- a/Master/texmf-dist/metapost/metauml/metauml_class_assoc.mp +++ b/Master/texmf-dist/metapost/metauml/metauml_class_assoc.mp @@ -20,8 +20,20 @@ if known _metauml_class_assoc_mp: fi; _metauml_class_assoc_mp:=1; -input util_log; -input metauml_defaults; +% Sadly, this copy of the macro is needed to prevent multiple file loads being shown by MetaPost. +% The guard values (such as _metauml_mp) do ensure that the file isn't loaded multiple times, +% but this macro makes sure that MetaPost won't try to load the file and display a message for that. +def inputonce text libraryFile= + if not known scantokens ("_" & str libraryFile & "_mp"): + %includeonce% show "Loading " & str libraryFile; + scantokens ("input " & str libraryFile); + else: + %includeonce% show str libraryFile & " already loaded."; + fi; +enddef; + +inputonce util_log; +inputonce metauml_defaults; FontInfo.assocFont(metauml_defaultFont, .7); PictureInfo.iAssoc(2, 2, 2, 2)(assocFont); |