# [metapost] a problem of label when using metapost

Dan Luecking luecking at uark.edu
Tue Nov 15 18:40:51 CET 2011

At 08:54 PM 11/14/2011, you wrote:

>i comment the label line, it
>layout the exact figure i want to get(
>without text of course).
>
>1.  TeX
>when it comes to the first line of
>-------------------------------------------
>label.top(btex *somethinghere* etex, z1)
>-------------------------------------------
>
>it would be fine,  but the situation changes when a second similar
>label is invoking as above.
>
>the error message is always be something like , >> mpx file can't be create.
>
>2. LaTeX
>
>it is said that one can changed the defaut TeX system by placing
>%&latex at the beginning.
>
>yet, it is true, except for it works not the same as i found through
>the internet, which i found
>%&latex is after vebatimtex,
>
>such as
>-----------------------------------------
>vebatimtex
>    %&latex
>*something else here*
>
>etex
>-----------------------------------------

One often doesn't even need latex, but if it is needed, your
file should look something like this:

--------------------------------
% near the top of your .mp file:
verbatimtex
%&latex
\documentclass{article}
% \usepackage commands here
\begin{document}
etex
%...
% then later in your figure:
label.top(btex *something here* etex, z1);
label.bot(btex *something else* etex, z2);
%...
--------------------------------

If that doesn't work, prepare a short, but complete,
figure file that fails for you and include that in your
next email.

Regards,
Dan

Daniel H. Luecking
Department of Mathematical Sciences
Fayetteville, Arkansas
http://www-cs-faculty.stanford.edu/~knuth/iaq.html
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9741407632827759, "perplexity": 13203.168848836893}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-51/segments/1512948595858.79/warc/CC-MAIN-20171217113308-20171217135308-00718.warc.gz"}