Parallel Lines between Two Blocks (Latex)

  • #1
EngWiPy
1,368
61
Hello all,

I have two blocks, and I want to draw multiple parallel lines between them. This is the Latex code I have

Code:
\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes,arrows,fadings, shadows}

\usepackage{amsmath,bm,times}

\begin{document}
\pagestyle{empty}

\tikzstyle{sensor}=[draw, fill=blue!20, text width=5em, 
    text centered, minimum height=2.5em]
\tikzstyle{naveqs} = [sensor, text width=4em, fill=gray!40, 
    minimum height=12em, rounded corners, shade, drop shadow]

\begin{tikzpicture}
\node (naveq) [naveqs, name=S2P] {S/P};
\node (naveq) [naveqs, name=FFT, right of=S2P,node distance=3cm] {FFT};
		
\end{tikzpicture}


\end{document}

What is the best way to do so?


Thanks in advance
 

Answers and Replies

  • #2
DrDu
Science Advisor
6,256
906
How about
\hline{\textwidth}
\hline{\textwidth}
?
 
  • #3
EngWiPy
1,368
61
How about
\hline{\textwidth}
\hline{\textwidth}
?

I am using Tikz/PGF package. I am not sure if the above control sequences work within. Besides, I need to control the positions of those horizontally parallel lines. In particular, I need two lines above the middle, three vertical lines, and then one line at the bottom.

I appreciate if you can integrate the suggestion into the code to see how it will work.

Thanks
 

Suggested for: Parallel Lines between Two Blocks (Latex)

  • Last Post
Replies
0
Views
181
  • Last Post
Replies
10
Views
210
  • Last Post
Replies
3
Views
224
  • Last Post
Replies
23
Views
319
Replies
7
Views
202
  • Last Post
Replies
13
Views
599
  • Last Post
Replies
3
Views
300
  • Last Post
Replies
3
Views
1K
Replies
8
Views
243
  • Last Post
Replies
1
Views
269
Top