<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 16, 2019 at 3:37 PM Densing Martin (PSI) <<a href="mailto:martin.densing@psi.ch">martin.densing@psi.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear metapost experts,<br>
<br>
Many thanks to the metapost-coders for the introduction of the new numbersystems!<br>
<br>
How can we ensure that the new numbersystems work with the existing, very helpful macros that are available with the usual TeX-disitributions? Most relevant would be the graph macros of John Hobby. Hence: Would it be possible to make the graph macros (and all the auxiliary macros, e.g. format etc.) work with all numbersystems?<br>
<br>
Example: <br>
<br>
"mpost -numbersystem=decimal <a href="http://test.mp" rel="noreferrer" target="_blank">test.mp</a>" gives an error on the following file "<a href="http://test.mp" rel="noreferrer" target="_blank">test.mp</a>", whereas just "mpost <a href="http://test.mp" rel="noreferrer" target="_blank">test.mp</a>" runs smoothly. Version: MetaPost 2.000 (TeX Live 2017/W32TeX) on MS Windows.<br>
<br>
File: <a href="http://test.mp" rel="noreferrer" target="_blank">test.mp</a><br>
% 0  1.4<br>
% 1  3.2<br>
% 2  -4.5<br>
% 3  8.0<br>
% 4  9.0<br>
% 5  4.0<br>
<br>
% Data-file for graph can be included at beginning of source-file,<br>
% because %<space>0 1.4 etc. is read by gdata marco until empty line<br>
<br>
input graph<br>
<br>
prologues := 3;<br>
outputtemplate := "%j-%c.mps";<br>
<br>
beginfig(1)  <br>
  draw begingraph(10cm,10cm);<br>
    path p;<br>
    gdata("<a href="http://test.mp" rel="noreferrer" target="_blank">test.mp</a>", $, augment.p(i, scantokens $2););<br>
    gdraw p;<br>
  endgraph;<br>
endfig;<br>
<br>
end<br>
-----------------end file<br>
<br>
Metapost's log (if numbersystem=decimal):<br>
-----------------------------------------------------------<br>
<br>
! Logarithm of -7000.000523787821841175847573036896 has been replaced by 0.<br>
Gipick_->...i=1upto.mlog(xpart.Gmhh_-xpart.Gmll_)/<br>
....<br>
<br>
This is just one of several issues, for example the auxiliary "format" macro has also problems with the new numbersystems.<br></blockquote></div><div>confirmed , looking into it.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>