OthersIPE error with itemize and pdfLaTeX

Information and discussion about other tools not listed above.
Post Reply
sparx
Posts: 6
Joined: Sat Aug 29, 2009 12:54 am

IPE error with itemize and pdfLaTeX

Post by sparx »

Hi!

I recently found IPE and wanted to try it out as OpenOffice.org presentation didn't run to smoothly on my machine. I wanted to make an itemized list and ran in to some problems of it not compiling properly.
I hope someone can give me some pointers!

It seems that IPE can do other latex code, e.g. equations, but for some reason not itemized list.
If i run the file directly with pdfLaTeX it gives the same errors.
Unfortunately I don't understand the error.
However there seems to be some error with the font OMS/cmss/m/n.
If that is the case where can i find these fonts on my system?

the tex file auto generated by IPE:

Code: Select all

\pdfcompresslevel0
\nonstopmode
\ifnum\the\pdftexversion<140\errmessage{Pdftex is too old. Set IPEANCIENTPDFTEX environment variable!}\fi
\documentclass{article}
\newcommand{\PageTitle}[1]{#1}
\newdimen\ipefs
\newcommand{\ipesymbol}[4]{\ipefs 1ex\pdfliteral{(#1) (\the\ipefs) (#2) (#3) (#4) sym}}
\usepackage{color}
\definecolor{red}{rgb}{1,0,0}
\definecolor{green}{rgb}{0,1,0}
\definecolor{blue}{rgb}{0,0,1}
\definecolor{yellow}{rgb}{1,1,0}
\definecolor{orange}{rgb}{1,0.647,0}
\definecolor{gold}{rgb}{1,0.843,0}
\definecolor{purple}{rgb}{0.627,0.125,0.941}
\definecolor{gray}{gray}{0.745}
\definecolor{brown}{rgb}{0.647,0.165,0.165}
\definecolor{navy}{rgb}{0,0,0.502}
\definecolor{pink}{rgb}{1,0.753,0.796}
\definecolor{seagreen}{rgb}{0.18,0.545,0.341}
\definecolor{turquoise}{rgb}{0.251,0.878,0.816}
\definecolor{violet}{rgb}{0.933,0.51,0.933}
\definecolor{darkblue}{rgb}{0,0,0.545}
\definecolor{darkcyan}{rgb}{0,0.545,0.545}
\definecolor{darkgray}{gray}{0.663}
\definecolor{darkgreen}{rgb}{0,0.392,0}
\definecolor{darkmagenta}{rgb}{0.545,0,0.545}
\definecolor{darkorange}{rgb}{1,0.549,0}
\definecolor{darkred}{rgb}{0.545,0,0}
\definecolor{lightblue}{rgb}{0.678,0.847,0.902}
\definecolor{lightcyan}{rgb}{0.878,1,1}
\definecolor{lightgray}{gray}{0.827}
\definecolor{lightgreen}{rgb}{0.565,0.933,0.565}
\definecolor{lightyellow}{rgb}{1,1,0.878}
\definecolor{title}{rgb}{0.4,0,0.4}
\definecolor{black}{gray}{0}
\definecolor{white}{gray}{1}
\def\ipesetcolor{\pdfcolorstack0 push{0 0 0 0 k 0 0 0 0 K}}
\def\iperesetcolor{\pdfcolorstack0 pop}


\renewcommand\rmdefault{cmss}
\makeatletter
\leftmargini 1.5em
\leftmargin \leftmargini
\leftmarginii  1.2em
\leftmarginiii 1em
\def\@listI{\leftmargin\leftmargini
            \parsep \z@
	    \partopsep 3pt
	    \topsep \z@
            \itemsep \z@}
\@listI
\def\@listii {\leftmargin\leftmarginii
              \labelwidth\leftmarginii
              \advance\labelwidth-\labelsep
              \topsep    \z@
              \parsep    \z@
              \itemsep   \parsep}
\def\@listiii{\leftmargin\leftmarginiii
              \labelwidth\leftmarginiii
              \advance\labelwidth-\labelsep
              \topsep    \z@
              \parsep    \z@
              \partopsep \z@
              \itemsep   \topsep}
\makeatother



\pagestyle{empty}
\newcount\bigpoint\dimen0=0.01bp\bigpoint=\dimen0
\begin{document}
\begin{picture}(500,500)
\setbox0=\hbox{\normalsize
\ipesetcolor
\begin{itemize}
\item hello
\end{itemize}%
\iperesetcolor}
\count0=\dp0\divide\count0 by \bigpoint
\pdfxform attr{/IpeId /0233b740 /IpeStretch 2.8 /IpeDepth \the\count0}0\put(0,0){\pdfrefxform\pdflastxform}
\end{picture}
\end{document}
the log file:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.1.31)  1 APR 2011 19:03
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**text.tex
(./text.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.

(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
\ipefs=\dimen103

(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)

(/etc/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 130.

(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2010/03/12 v0.04p Graphics/color for pdfTeX
\Gread@gobject=\count87
))
Package color Info: Redefining color red on input line 9.
Package color Info: Redefining color green on input line 10.
Package color Info: Redefining color blue on input line 11.
Package color Info: Redefining color yellow on input line 12.
Package color Info: Redefining color black on input line 36.
Package color Info: Redefining color white on input line 37.
\bigpoint=\count88

No file text.aux.
\openout1 = `text.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 73.
LaTeX Font Info:    ... okay on input line 73.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 73.
LaTeX Font Info:    ... okay on input line 73.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 73.
LaTeX Font Info:    ... okay on input line 73.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 73.
LaTeX Font Info:    ... okay on input line 73.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 73.
LaTeX Font Info:    ... okay on input line 73.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 73.
LaTeX Font Info:    ... okay on input line 73.
(/usr/share/texmf-texlive/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count89
\scratchdimen=\dimen104
\scratchbox=\box26
\nofMPsegments=\count90
\nofMParguments=\count91
\everyMPshowfont=\toks14
\MPscratchCnt=\count92
\MPscratchDim=\dimen105
\MPnumerator=\count93
\everyMPtoPDFconversion=\toks15
)

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.78 \item h
            ello
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.


! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.78 \item h
            ello
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.


! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.78 \item h
            ello
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

LaTeX Font Info:    Try loading font information for OMS+cmss on input line 78.

LaTeX Font Info:    No file OMScmss.fd. on input line 78.

LaTeX Font Warning: Font shape `OMS/cmss/m/n' undefined
(Font)              using `OMS/cmsy/m/n' instead
(Font)              for symbol `textbullet' on input line 78.


! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.79 \end{itemize}
                  %
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.


! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.79 \end{itemize}
                  %
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.


! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.79 \end{itemize}
                  %
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.


Overfull \hbox (170.0pt too wide) in paragraph at lines 83--84
[][] 
 []

[1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./text.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 ) 
Here is how much of TeX's memory you used:
 767 strings out of 495061
 9442 string characters out of 1182621
 56582 words of memory out of 3000000
 4012 multiletter control sequences out of 15000+50000
 3945 words of font info for 15 fonts, out of 3000000 for 9000
 28 hyphenation exceptions out of 8191
 23i,5n,17p,184b,200s stack positions out of 5000i,500n,10000p,200000b,50000s
</usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmss10.pfb>
Output written on text.pdf (1 page, 9798 bytes).
PDF statistics:
 12 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 7 words of extra memory for PDF output out of 10000 (max. 10000000)
any help appreciated.
Thanks!
Last edited by sparx on Sat Apr 02, 2011 6:09 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

IPE error with itemize and pdfLaTeX

Post by localghost »

It could help to know what you are after. Your code compiles smoothly after commenting the list related lines. But the result is exactly an empty page. So a visual example of the desired result could be very helpful.

In general lists like the itemize environment need a box where paragraphs are allowed, that is to say a \parbox or a minipage. And inside a picture environment objects can only be placed by the \put command.

You can create a presentation much easier directly with LaTeX by using the beamer or powerdot class. Perhaps these are useful alternatives to your previous efforts.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
sparx
Posts: 6
Joined: Sat Aug 29, 2009 12:54 am

IPE error with itemize and pdfLaTeX

Post by sparx »

Thanks for the quick reply!
Surrounding the itemize with a parabox or minipage did solve the problem!

What I'm after right now is just a feel for what ipe can do. That's when I came across this "problem" of environments. What I aimed for was the typical presentation layout with a list of topics/chapters with either a single or double column style for the page.

There seems to be at lest two different textbox options in ipe, one "label" and one "text box". In the "text box", the minipage environment is not needed, while in the label one, it is.

included for reference, functioning tex code:

Code: Select all

\pdfcompresslevel0
\nonstopmode
\ifnum\the\pdftexversion<140\errmessage{Pdftex is too old. Set IPEANCIENTPDFTEX environment variable!}\fi
\documentclass{article}
\newcommand{\PageTitle}[1]{#1}
\newdimen\ipefs
\newcommand{\ipesymbol}[4]{\ipefs 1ex\pdfliteral{(#1) (\the\ipefs) (#2) (#3) (#4) sym}}
\usepackage{color}
\definecolor{red}{rgb}{1,0,0}
\definecolor{green}{rgb}{0,1,0}
\definecolor{blue}{rgb}{0,0,1}
\definecolor{yellow}{rgb}{1,1,0}
\definecolor{orange}{rgb}{1,0.647,0}
\definecolor{gold}{rgb}{1,0.843,0}
\definecolor{purple}{rgb}{0.627,0.125,0.941}
\definecolor{gray}{gray}{0.745}
\definecolor{brown}{rgb}{0.647,0.165,0.165}
\definecolor{navy}{rgb}{0,0,0.502}
\definecolor{pink}{rgb}{1,0.753,0.796}
\definecolor{seagreen}{rgb}{0.18,0.545,0.341}
\definecolor{turquoise}{rgb}{0.251,0.878,0.816}
\definecolor{violet}{rgb}{0.933,0.51,0.933}
\definecolor{darkblue}{rgb}{0,0,0.545}
\definecolor{darkcyan}{rgb}{0,0.545,0.545}
\definecolor{darkgray}{gray}{0.663}
\definecolor{darkgreen}{rgb}{0,0.392,0}
\definecolor{darkmagenta}{rgb}{0.545,0,0.545}
\definecolor{darkorange}{rgb}{1,0.549,0}
\definecolor{darkred}{rgb}{0.545,0,0}
\definecolor{lightblue}{rgb}{0.678,0.847,0.902}
\definecolor{lightcyan}{rgb}{0.878,1,1}
\definecolor{lightgray}{gray}{0.827}
\definecolor{lightgreen}{rgb}{0.565,0.933,0.565}
\definecolor{lightyellow}{rgb}{1,1,0.878}
\definecolor{title}{rgb}{0.4,0,0.4}
\definecolor{black}{gray}{0}
\definecolor{white}{gray}{1}
\def\ipesetcolor{\pdfcolorstack0 push{0 0 0 0 k 0 0 0 0 K}}
\def\iperesetcolor{\pdfcolorstack0 pop}


\renewcommand\rmdefault{cmss}
\makeatletter
\leftmargini 1.5em
\leftmargin \leftmargini
\leftmarginii  1.2em
\leftmarginiii 1em
\def\@listI{\leftmargin\leftmargini
            \parsep \z@
	    \partopsep 3pt
	    \topsep \z@
            \itemsep \z@}
\@listI
\def\@listii {\leftmargin\leftmarginii
              \labelwidth\leftmarginii
              \advance\labelwidth-\labelsep
              \topsep    \z@
              \parsep    \z@
              \itemsep   \parsep}
\def\@listiii{\leftmargin\leftmarginiii
              \labelwidth\leftmarginiii
              \advance\labelwidth-\labelsep
              \topsep    \z@
              \parsep    \z@
              \partopsep \z@
              \itemsep   \topsep}
\makeatother



\pagestyle{empty}
\newcount\bigpoint\dimen0=0.01bp\bigpoint=\dimen0
\begin{document}
\begin{picture}(500,500)
\setbox0=\hbox{\large
\ipesetcolor
\PageTitle{Project}%
\iperesetcolor}
\count0=\dp0\divide\count0 by \bigpoint
\pdfxform attr{/IpeId /082bf374 /IpeStretch 2.8 /IpeDepth \the\count0}0\put(0,0){\pdfrefxform\pdflastxform}
\setbox0=\hbox{\normalsize
\ipesetcolor
\begin{minipage}{50bp}
\begin{itemize}
\item hello
\item goodbye
\end{itemize}
\end{minipage}%
\iperesetcolor}
\count0=\dp0\divide\count0 by \bigpoint
\pdfxform attr{/IpeId /0858b790 /IpeStretch 2.8 /IpeDepth \the\count0}0\put(0,0){\pdfrefxform\pdflastxform}
\end{picture}
\end{document}
I have some limited experience with beamer and it might be an idea to return to it. Thanks for the tip!

And thanks for the help!
Post Reply