Yogeshwarsing Calleecharan | 9 Jun 2012 12:53
Picon
Favicon

bullet placement: document mpgraph.pdf

Hi,
     I am looking at the document mpgraph.pdf:

http://www.tug.org/docs/metapost/mpgraph.pdf

and on page 3 it is shown how to just have bullets instead of lines in a 
graph. In particular, for proper placement of the bullets at the 
coordinates centre the following command is given:

def MPbullet =
btex \lower\fontdimen22\cmsy \hbox to 0pt{\hss\cmsy\char15\hss} etex
enddef;

and then followed on the top of page 4 by:

gdraw "agepop91.d" plot MPbullet

However this is not working. I have the lates TexLive and Metapost 
1.504. Here is the error message:

This is MetaPost, version 1.504 (kpathsea version 6.0.1)  9 JUN 2012 11:43
**plot.mp
(mpost.mp (c:/texlive/2011/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.004)) (./plot.mp
(c:/texlive/2011/texmf-dist/metapost/base/graph.mp
(c:/texlive/2011/texmf-dist/metapost/base/marith.mp
(c:/texlive/2011/texmf-dist/metapost/base/string.mp))
(c:/texlive/2011/texmf-dist/metapost/base/format.mp
(c:/texlive/2011/texmf-dist/metapost/base/string.mp)
(c:/texlive/2011/texmf-dist/metapost/base/texnum.mp)))
(Continue reading)

Dan Luecking | 10 Jun 2012 04:50
Picon
Favicon

Re: bullet placement: document mpgraph.pdf

At 05:53 AM 6/9/2012, you wrote:
>Hi,
>     I am looking at the document mpgraph.pdf:
>
>http://www.tug.org/docs/metapost/mpgraph.pdf
>
>and on page 3 it is shown how to just have bullets instead of lines 
>in a graph. In particular, for proper placement of the bullets at 
>the coordinates centre the following command is given:
>
>def MPbullet =
>btex \lower\fontdimen22\cmsy \hbox to 0pt{\hss\cmsy\char15\hss} etex
>enddef;

This is an error in mpgraph.pdf. Replace \cmsy with \tensy
in both occurances. Make sure plain tex is used to make the
labels. For smaller bullets, you can use \sevensy or \fivesy.

>However this is not working. I have the lates TexLive and Metapost 
>1.504. Here is the error message:

Mpost by default does not provide much information on problems
with TeX labels. You might want to give it the --debug option:
   mpost --debug  plot.mp
This leaves behind the temporary tex-related files and you
can find (as I did) from the .log file, that \cmsy is undefined.

Note: When reporting problems, you should include in your email
a short (but complete) file that gives you the problem. The file
that works for me is:
(Continue reading)

Yogeshwarsing Calleecharan | 10 Jun 2012 09:49
Picon
Favicon

Re: bullet placement: document mpgraph.pdf

Yes it works fine now. Ok, I shall give a full example next time.

Thank you for the answer.

With Best Regards,
Y.Calleecharan

On 6/10/2012 3:50 AM, Dan Luecking wrote:
> At 05:53 AM 6/9/2012, you wrote:
>> Hi,
>>     I am looking at the document mpgraph.pdf:
>>
>> http://www.tug.org/docs/metapost/mpgraph.pdf
>>
>> and on page 3 it is shown how to just have bullets instead of lines 
>> in a graph. In particular, for proper placement of the bullets at the 
>> coordinates centre the following command is given:
>>
>> def MPbullet =
>> btex \lower\fontdimen22\cmsy \hbox to 0pt{\hss\cmsy\char15\hss} etex
>> enddef;
>
> This is an error in mpgraph.pdf. Replace \cmsy with \tensy
> in both occurances. Make sure plain tex is used to make the
> labels. For smaller bullets, you can use \sevensy or \fivesy.
>
>> However this is not working. I have the lates TexLive and Metapost 
>> 1.504. Here is the error message:
>
> Mpost by default does not provide much information on problems
(Continue reading)


Gmane