Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

you will see two problems on the example below

1) how to make the plot line is not under the terminal markings

2) Why is it the text in bold

\documentclass{article}
\usepackage[latin1]{inputenc}                 
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}

\begin{document}

\begin{tikzpicture}
\draw[decoration={markings,
mark connection node=my node,
mark=at position 0  with {\node [draw,blue,transform shape,inner sep=0,minimum size=1em,fill=white] (my node) {->};},
mark=at position 0.5  with {\arrow{stealth}},
mark=at position 1  with {\node [draw,blue,transform shape,inner sep=0,minimum size=1em,fill=white] (my node) {->};},
},decorate,green](0,0) --(3,1)node[pos=0.5,below,black,text width =5em,align=center]{signal amplifie};
\end{tikzpicture}

\end{document}

merci

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The connection node is meant to be connecting so first a path is drawn to the west anchor and then path is continued. Anchoring the connection nodes again is innocent enough to hide those zero length paths.

\documentclass{article}
\usepackage[latin1]{inputenc}                 
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}

\begin{document}

\begin{tikzpicture}
\draw[decoration={markings,
mark connection node=my node,
mark=at position 0  with {\node [draw,blue,transform shape,inner sep=0,minimum size=1em,fill=white,anchor=east] (my node) {->};},
mark=at position 0.5  with {\arrow{stealth}},
mark=at position 1  with {\node [draw,blue,transform shape,inner sep=0,minimum size=1em,fill=white,anchor=west] (my node) {->};},
},decorate,green](0,0) --(3,1)node[pos=0.5,below,black,text width =5em,align=center]{signal amplifie};
\end{tikzpicture}

\end{document}

enter image description here

share|improve this answer
    
thancks, what about the second pb –  rpapa May 30 '13 at 20:56
    
@rpapa The screenshot shows that it is not in bold. If I make it bold it really becomes bold so I can't reproduce that. –  percusse May 30 '13 at 21:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.