| Ist es möglich, in  Open in Online-Editor \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line cap=round, line join=round, x=1cm, y=1cm, scale=1] \draw [->] (-1,0) -- (6,0) node[right] {$x$}; \foreach \x/\y in {0/$0$,1/$1$,sqrt(2)/$\sqrt{2}$,pi/$\pi$,5/$5$} \draw [shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[font=\tiny,below] {\y}; \end{tikzpicture} \end{document} Die  | 
| Wenn die x-Koordinate für die  Open in Online-Editor \documentclass[margin=10pt,tikz]{standalone} \begin{document} \begin{tikzpicture}[line cap=round, line join=round] \draw [->] (-1,0) -- (6,0) node[right] {$x$}; \draw [shift={({sqrt(2)},0)}] (0pt,2pt) -- (0pt,-2pt) node[font=\tiny,below] {$\sqrt{2}$}; \end{tikzpicture} \end{document} Wenn man im oben stehenden Beispiel  Verwende deshalb entweder  Also Open in Online-Editor \documentclass[margin=10pt,tikz]{standalone} \begin{document} \begin{tikzpicture}[line cap=round, line join=round] \draw [->] (-1,0) -- (6,0) node[right] {$x$}; \foreach \x/\y in {0/$0$,1/$1$,sqrt(2)/$\sqrt{2}$,pi/$\pi$,5/$5$} \draw [shift={({\x},0)}] (0pt,2pt) -- (0pt,-2pt) node[font=\tiny,below] {\y}; \end{tikzpicture} \end{document} oder Open in Online-Editor \documentclass[margin=10pt,tikz]{standalone} \begin{document} \begin{tikzpicture}[line cap=round, line join=round] \draw [->] (-1,0) -- (6,0) node[right] {$x$}; \foreach \x/\y in {0/$0$,1/$1$,{{sqrt(2)}}/$\sqrt{2}$,pi/$\pi$,5/$5$} \draw [shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[font=\tiny,below] {\y}; \end{tikzpicture} \end{document} 
 Auch wenn Du bei der Konstruktion von Pfaden Berechnungen für die Koordinaten durchführen lässt, die Klammern enthalten, musst Du diese durch geschweifte Klammern schützen. Hier ist dazu mal noch ein Beispiel: Open in Online-Editor \documentclass[margin=10pt,tikz]{standalone} \begin{document} \begin{tikzpicture} \draw[help lines,step=.5cm](0,0)grid(1.5,5); \draw (0,0)--({sqrt(2)},0)--({sqrt(2)},pi-.5)--(0,{sqrt(2)+pi})--cycle; \end{tikzpicture} \end{document} Vielen Dank, du erklärst das immer super gut! 
                
                
                
                
                
                (12 Feb '15, 14:59)
                tom75
                
             | 
 
			
