Text FormattingItemize inside of "Flow" flowchart

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
chamilton
Posts: 2
Joined: Wed Feb 02, 2011 8:09 pm

Itemize inside of "Flow" flowchart

Post by chamilton »

Hello Everyone
I am using the flow program to generate some flow charts.. for those unfamiliar, flow is a program written in C that takes in a markup language style file and generates from it some latex code that you paste into your latex document. The input file contains parameters for the flow chart and this is also where you place any writing that you want in the flowchart.

The problem is that using an itemize environment inside of the flowchart throws many errors when I compile the document, so I am assuming that there is some conflict between the picture environment and the itemize environment.

I have attached the markup file as well as the generated latex code.

Markup File:

Code: Select all

Oval
	Entry point
Down 1
Box 4 2
	\begin{itemize}
		\item Item 1
		\item Item 2
	\end{itemize}
Latex file:

Code: Select all

\begin{picture}(4.000000,6.000000)(0.000000,-6.000000)
% picture environment flowchart generated by flow 0.99f
\put(2.0000,-1.0000){\oval(4.0000,2.0000)}
\put(0.0000,-2.0000){\makebox(4.0000,2.0000)[c]{\shortstack[c]{
Entry point
}}}
\put(2.0000,-2.0000){\line(0,-1){1.0000}}
\put(2.0000,-3.0000){\vector(0,-1){1.0000}}
\put(0.0000,-6.0000){\framebox(4.0000,2.0000)[c]{\shortstack[c]{
\begin{itemize}\\
\item Item 1\\
\item Item 2\\
\end{itemize}
}}}
\end{picture}
Thanks
Chris
Last edited by chamilton on Thu Feb 03, 2011 4:06 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Itemize inside of "Flow" flowchart

Post by localghost »

For such charts you should take a look at packages like pgf/tikZ or pstricks with much more powerful capabilities in graphics. However, it will require a \parbox to get the list properly typeset.


Best regards and welcome to the board
Thorsten
chamilton
Posts: 2
Joined: Wed Feb 02, 2011 8:09 pm

Re: Itemize inside of "Flow" flowchart

Post by chamilton »

First of all, thank you for the kind welcome... And secondly, thank you for your suggestion, I looked at the information that you provided and those packages look to be a much better alternative to running the flow program (IMHO). THank you for your help!

Regards
Chris
Post Reply