Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{tikz}
- usetikzlibrary{decorations}
- begin{document}
- pgfdeclaredecoration{discontinuity}{start}{
- state{start}[width=0.5pgfdecoratedinputsegmentremainingdistance-0.5pgfdecorationsegmentlength,next state=first wave]{}
- state{first wave}[width=pgfdecorationsegmentlength, next state=second wave]
- {
- pgfpathlineto{pgfpointorigin}
- pgfpathmoveto{pgfqpoint{0pt}{pgfdecorationsegmentamplitude}}
- pgfpathcurveto
- {pgfpoint{-0.25*pgfmetadecorationsegmentlength}{0.75pgfdecorationsegmentamplitude}}
- {pgfpoint{-0.25*pgfmetadecorationsegmentlength}{0.25pgfdecorationsegmentamplitude}}
- {pgfpoint{0pt}{0pt}}
- pgfpathcurveto
- {pgfpoint{0.25*pgfmetadecorationsegmentlength}{-0.25pgfdecorationsegmentamplitude}}
- {pgfpoint{0.25*pgfmetadecorationsegmentlength}{-0.75pgfdecorationsegmentamplitude}}
- {pgfpoint{0pt}{-pgfdecorationsegmentamplitude}}
- }
- state{second wave}[width=0pt, next state=do nothing]
- {
- pgfpathmoveto{pgfqpoint{0pt}{pgfdecorationsegmentamplitude}}
- pgfpathcurveto
- {pgfpoint{-0.25*pgfmetadecorationsegmentlength}{0.75pgfdecorationsegmentamplitude}}
- {pgfpoint{-0.25*pgfmetadecorationsegmentlength}{0.25pgfdecorationsegmentamplitude}}
- {pgfpoint{0pt}{0pt}}
- pgfpathcurveto
- {pgfpoint{0.25*pgfmetadecorationsegmentlength}{-0.25pgfdecorationsegmentamplitude}}
- {pgfpoint{0.25*pgfmetadecorationsegmentlength}{-0.75pgfdecorationsegmentamplitude}}
- {pgfpoint{0pt}{-pgfdecorationsegmentamplitude}}
- pgfpathmoveto{pgfpointorigin}
- }
- state{do nothing}[width=pgfdecorationsegmentlength,next state=do nothing]{
- pgfpathlineto{pgfpointdecoratedinputsegmentlast}
- }
- state{final}
- {
- pgfpathlineto{pgfpointdecoratedpathlast}
- }
- }
- begin{tikzpicture}
- node[](S0){includegraphics[width=.12textwidth]{./_Images/Latex.png}};
- node[above right = 26mm and 18mm of S0](S1){includegraphics[width=.12textwidth]{./_Images/Latex.png}};
- defmyshift#1{raisebox{1ex}}
- draw [decoration={discontinuity,amplitude=0.5cm,segment length=0.25cm,meta-segment length=0.5cm},decorate,<->,dotted,ultra thick,postaction={decorate,decoration={discontinuity,amplitude=0.5cm,segment length=0.25cm,meta-segment length=0.5cm,text along path,text align=center,text={|sffamilymyshift|TEXTTEXT}}}](S0) -- (S1);
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement