mercoledì 27 maggio 2009

Latex: disegnare le convenzioni di segno con Tikz

Il seguente codice genera una figura attraverso il pacchetto tikz che rappresenta le convenzioni di segno per un sistema meccanico:



\documentclass{minimal}

\usepackage{tikz}

\usetikzlibrary{%
decorations.pathmorphing%
}

\begin{document}

\begin{tikzpicture}[%
molla/.style={decorate,decoration={snake,post length=5,amplitude=5,pre length=5,segment length=5}, thick},
thick%
]
\draw[<->] (0,1) |- (1,0);
\draw (45:0.6) node {$+$};
\draw[->] (10:1) arc (10:80:1);
\draw[molla,<->] (-0.5,-1) -- node[above=0.2cm] {$+$} (1.5,-1);
\end{tikzpicture}

\end{document}

Nessun commento:

Google

in tutto il web in 16marzo
Per scrivere con caratteri a spaziatura fissa
  questo è il codice 
And what about this one?