Parallel Lines between Two Blocks (Latex)

Click For Summary
SUMMARY

The discussion focuses on drawing multiple parallel lines between two blocks in LaTeX using the TikZ/PGF package. The user provided a basic LaTeX code snippet that defines two nodes, "S/P" and "FFT," but seeks guidance on adding specific parallel lines between them. The user requires two lines above the middle, three vertical lines, and one line at the bottom, indicating a need for precise control over line placement. Suggestions for implementing these requirements within the existing code structure were requested.

PREREQUISITES
  • Familiarity with LaTeX document structure
  • Understanding of TikZ/PGF package for graphics
  • Knowledge of node positioning and styling in TikZ
  • Basic experience with LaTeX control sequences
NEXT STEPS
  • Research TikZ node positioning techniques
  • Learn about TikZ drawing commands for parallel lines
  • Explore the TikZ library for advanced shapes and styles
  • Study examples of complex TikZ diagrams for inspiration
USEFUL FOR

This discussion is beneficial for LaTeX users, graphic designers, and researchers looking to create detailed diagrams using the TikZ/PGF package. It is particularly useful for those needing to control graphical elements in LaTeX documents.

EngWiPy
Messages
1,361
Reaction score
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
 
Physics news on Phys.org
How about
\hline{\textwidth}
\hline{\textwidth}
?
 
DrDu said:
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
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 0 ·
Replies
0
Views
6K
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
13K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K