GeneralBlock diagrams in latex

LaTeX specific issues not fitting into one of the other forums of this category.
frey
Posts: 11
Joined: Thu Jan 10, 2008 8:26 pm

Block diagrams in latex

Post by frey »

Hello! What thing i may use for simple drawing block diagrams in latex documents? I think this is a some metapost macroses?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Block diagrams in latex

Post by localghost »

Take a look at pgf/tikZ or PSTricks (especially pstricks-add). To get familiar with those, some examples might be helpful [1,2]. You should find something useful for you in the archives or in the documentations of the packages.

[1] PSTricks examples
[2] PGF and TikZ examples gallery | fauskes.net


Best regards
Thorsten
frey
Posts: 11
Joined: Thu Jan 10, 2008 8:26 pm

Re: Block diagrams in latex

Post by frey »

Thanks. Oh may be i used not right english word for thing that i need. :) In wikipedia this name is flowchart, like this: http://upload.wikimedia.org/wikipedia/e ... xample.png. May be some special tool for drawing flowcharts exists?

It is possible that i need only to specify dependency between elements, not its position? Or big flowcharts automatic divided between pages?

Thanks!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Block diagrams in latex

Post by localghost »

My answer remains the same. Taking look at the examples reveals the packages to be the right ones [1,2]. You could have found these examples very easily by yourself. Reading the documentations will be of great help. That's what they are made for.

[1] PSTricks / psmatrix
[2] PGF and TikZ examples gallery | fauskes.net - Page 3
frey
Posts: 11
Joined: Thu Jan 10, 2008 8:26 pm

Re: Block diagrams in latex

Post by frey »

Pstricks are very usefull! But thete is no framed box for figure like this: http://upload.wikimedia.org/wikipedia/ru/f/ff/Loop.GIF
How i can create it?

Thanks!
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Block diagrams in latex

Post by gmedina »

frey wrote:Pstricks are very usefull! But thete is no framed box for figure like this: http://upload.wikimedia.org/wikipedia/ru/f/ff/Loop.GIF
How i can create it?

Thanks!
All I can see in your linked figure is a non-regular hexagon that can be easily produced with both PSTricks and PGF/TikZ, Maybe your link was not correct?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
frey
Posts: 11
Joined: Thu Jan 10, 2008 8:26 pm

Re: Block diagrams in latex

Post by frey »

Yes, but i need framed box, that changes size accordingly to text inside it. Or it easily produced too?
frey
Posts: 11
Joined: Thu Jan 10, 2008 8:26 pm

Re: Block diagrams in latex

Post by frey »

Oh, already found answer:
\pspolygonbox[PolyNbSides=6]{text}
frey
Posts: 11
Joined: Thu Jan 10, 2008 8:26 pm

Block diagrams in latex

Post by frey »

Hello! New question. :)

I make a flowchart with pspolygonbox and can't achieve right node connection with it, look like this:
Image

Code: Select all

Code, edit and compile here:
\begin{document}
\begin{frame}[shrink]
\psset{shadowcolor=black!70,blur=true}%
\frametitle{злгоритм вычиѷлениѷ поправок ѷкороѷти.}
\begin{center}
\begin{tabular}{p{2cm}c}
\begin{psmatrix}[rowsep=0.8,colsep=0.4]
% \begin{psmatrix}
& \\[-25pt]
& \rnode{N1}{\psovalbox[fillstyle=solid,fillcolor=yellow!30,shadow=true]{зачало}}\\[0pt]
[name=X1] & \\[-25pt]
& \rnode{N2}{\psframebox[fillstyle=solid,fillcolor=blue!30,shadow=true]{
\tabular{cccc}
some & long & text & here
\endtabular}}\\[0pt]
[name=X2] & \\[-25pt]
& \Rnode{N3}{\pspolygonbox[fillstyle=solid,fillcolor=green!30,shadow=true,PolyNbSides=6]{
\tabular{cc}
this & too
\endtabular}}\\[0pt]
[name=X3] & \\[-25pt]
& \rnode{N4}{\psframebox[fillstyle=solid,fillcolor=blue!30,shadow=true]{
\tabular{l}
and this
\endtabular}}\\[0pt]
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
How i can move pspolygonbox relative to the node center? I used \Rnode[vref=x], but this only affect to the right arrow.

Thanks!
frey
Posts: 11
Joined: Thu Jan 10, 2008 8:26 pm

Re: Block diagrams in latex

Post by frey »

Please help! Diploma defending are coming soon! :)
Post Reply