- Questo topic ha 6 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 17 anni, 6 mesi fa da .
-
Topic
-
Ciao a tutti,
Sto componendo un’immagine in metapost in quanto asymptote ha alcuni problemi di dipendenza in linux con TeXlive 2008.
Ad ogni modo, l’immagine è:`filenametemplate “%j-%3c.mps”;verbatimtex
\documentclass{article}
\usepackage{lmodern}
\usepackage{amsmath,amsthm,amssymb,amsfonts}
\usepackage{mathtools}
\begin{document}
etexbeginfig(1);
pickup pencircle scaled 1bp;numeric u, ang, res, nres;
u=1.5cm;
ang=150;
nres=4;
res=(ang-90)/nres;path p[];
z0 = origin;
z1 – z0 = 1.5u* left;
z2 – z0 = 1.5u* right;
z3 – z0 = 4u* dir(ang);
z4 – z1 = .5u* left;
z5 – z2 = .5u* right;
z6 – z0 = .5u* down;
z7 – z0 = 2u* up;
z8 – z0 = .5u* up;
z9 – z0 = .5u* dir(ang);p0 = z5–z4;
p1 = z3–z1;
p2 = z3–z2;
p3 = z3–z0;
p4 = z7–z6;draw p0 withgreyscale 0.75;
draw p1 withpen pencircle scaled 3bp;
draw p2 withpen pencircle scaled 3bp;
draw p3 withpen pencircle scaled 0.5bp dashed evenly;
draw p4 withgreyscale 0.75;
draw z8
for i=1 upto (nres-2): .. (.5u*dir(90+i*res)) endfor
.. z9 withpen pencircle scaled 0.5bp;dotlabel.bot(“sx”, z1);
dotlabel.bot(“dx”, z2);
dotlabel.ulft(“S”, z3);
label.llft(btex $l_\mathrm{sx}$ etex, .3[z1,z3]);
label.urt(btex $l_\mathrm{dx}$ etex, .2[z2,z3]);
label.llft(btex $\rho$ etex, .3[z0,z3]);
label.rt(btex $n$ etex, .2[z7,z6]);
label.ulft(btex $\theta$ etex, .5[z8,z9]);
dotlabel.llft(“O”, z0);
endfig;end`decisamente semplice. Il mio problema sorge dal fatto che non riesco a fargli usare il \mathrm.
Se apro il log vedo una serie di errori, tutti uguali, che si riferiscono ad ogni macro LaTeX. Ho`This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) (format=etex 2009.2.16) 23 FEB 2009 14:30
entering extended mode
%&-line parsing enabled.
**mp71Xuc0.tex
(./mp71Xuc0.tex`all’inizio, e per ogni errore un`!Undefined control sequence.
MACRO
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.`dove per macro qualsiasi comando \.
Sapete aiutarmi?Altra domanda… come vedete, sia sx e dx non sono allineati sulla loro linea di base. Questo è antiestetico, come lo si sitema?
Grazie a tutti,
Buona giornata,
- Devi essere connesso per rispondere a questo topic.