Graphics, Figures & TablesDraw line in a Matrix Equation

Information and discussion about graphics, figures & tables in LaTeX documents.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Draw line in a Matrix Equation

Post by CrazyHorse »

wolfrain wrote: Actually the error message is something like this

Code: Select all

! No room for a new \dimen .
\ch@ck ...\else \errmessage {No room for a new #3}
                                                 \fi
1.297 \newdimen\pshooklength
And all 8 errors have different last lines saying:

Code: Select all

1.298  \newdimen\pshookwidth
1.1546 \newdimen\chart@ColorIndex
1.1547 \newdimen\chart@ColorStep
1.1548 \newdimen\pst@chartHeight
1.1549 \newdimen\pst@chartStackDepth
1.1550 \newdimen\pst@chartStackWidth
Unfortunately, it doesn't work even though I include this 'etex' package...
put the \usepackage{etex} _immediately_ after the \documentclass
statement.

Herbert

Recommended reading 2024:

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

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

achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Re: Draw line in a Matrix Equation

Post by achim »

Do you have all the packages on your system that are imported in the preamble? And, do you compile over dvi-ps?

I don't get any error messages.
\hbox warnings yes, but no errors.
OS: Kubuntu
Distribution: TexLive
Editor: Kile
wolfrain
Posts: 20
Joined: Wed Aug 25, 2010 2:42 am

Draw line in a Matrix Equation

Post by wolfrain »

CrazyHorse wrote:
wolfrain wrote: Actually the error message is something like this

Code: Select all

! No room for a new \dimen .
\ch@ck ...\else \errmessage {No room for a new #3}
                                                 \fi
1.297 \newdimen\pshooklength
And all 8 errors have different last lines saying:

Code: Select all

1.298  \newdimen\pshookwidth
1.1546 \newdimen\chart@ColorIndex
1.1547 \newdimen\chart@ColorStep
1.1548 \newdimen\pst@chartHeight
1.1549 \newdimen\pst@chartStackDepth
1.1550 \newdimen\pst@chartStackWidth
Unfortunately, it doesn't work even though I include this 'etex' package...
put the \usepackage{etex} _immediately_ after the \documentclass
statement.

Herbert
Sorry, but this command doesn't work. I also tried \usepackage{etex}_immediately and \usepackage[immediately]{etex}, the error are still there.
wolfrain
Posts: 20
Joined: Wed Aug 25, 2010 2:42 am

Draw line in a Matrix Equation

Post by wolfrain »

achim wrote:Do you have all the packages on your system that are imported in the preamble? And, do you compile over dvi-ps?

I don't get any error messages.
\hbox warnings yes, but no errors.
I think I have already included the packages I need to draw the lines on the matrix equation.

Actually when I commented the packages you introduced in your code example, i.e.

Code: Select all

\usepackage{pstricks}			
\usepackage{pst-all}			
\usepackage{pstricks-add}	
those errors have gone. And I think the errors are from these packages.

=============

I think so. I use TeXnicCenter and I have selected the option 'LaTeX => PS => PDF' in the tool bar to compile the file.
achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Re: Draw line in a Matrix Equation

Post by achim »

Do you mean the code works fine without the \includepackage{...}?

Errrmm...?
OS: Kubuntu
Distribution: TexLive
Editor: Kile
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Draw line in a Matrix Equation

Post by torbjorn t. »

wolfrain wrote:Sorry, but this command doesn't work. I also tried \usepackage{etex}_immediately and \usepackage[immediately]{etex}, the error are still there.
I believe you may have misunderstood him. Using underscores at each end of a word is a way of emphasizing it, so what he wrote was «put the \usepackage{etex} immediately after the \documentclass statement.»

In other words:

Code: Select all

\documentclass[10pt,a4paper]{scrartcl}
\usepackage{etex}

% rest of preamble
\begin{document}
% document
\end{document}
wolfrain
Posts: 20
Joined: Wed Aug 25, 2010 2:42 am

Draw line in a Matrix Equation

Post by wolfrain »

achim wrote:Do you mean the code works fine without the \includepackage{...}?

Errrmm...?

Sorry... I haven't specified correctly...



In order to draw the line on the matrix equation, I use those three packages, which also introduce the errors I gave here. Of course, without these packages, I would not be able to draw anything on the equation. :roll:
achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Draw line in a Matrix Equation

Post by achim »

So, just including the packages without even using them produces the error?

Code: Select all

\documentclass{article}
\usepackage{etex}

\usepackage{pstricks}         
\usepackage{pst-all}         
\usepackage{pstricks-add}   

\begin{document}
test
\end{document}
Try to remove and reinstall the three packages. There could have been a problem with the installation.
OS: Kubuntu
Distribution: TexLive
Editor: Kile
wolfrain
Posts: 20
Joined: Wed Aug 25, 2010 2:42 am

Draw line in a Matrix Equation

Post by wolfrain »

I believe you may have misunderstood him. Using underscores at each end of a word is a way of emphasizing it, so what he wrote was «put the \usepackage{etex} immediately after the \documentclass statement.»
Thank you for correcting me. :D

achim wrote:So, just including the packages without even using them produces the error?

Code: Select all

\documentclass{article}
\usepackage{etex}

\usepackage{pstricks}         
\usepackage{pst-all}         
\usepackage{pstricks-add}   

\begin{document}
test
\end{document}
Try to remove and reinstall the three packages. There could have been a problem with the installation.
Hmm...
Sorry, maybe I am new to LaTex just a few days, but do we need to install these packages?? What do you mean by install them??

Actually what I did is just simply download these three .sty (only .sty) from ctan.org and use \usepackage{} command...

Correct me if I am wrong. :oops:
achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Re: Draw line in a Matrix Equation

Post by achim »

Where did you put them and on what system are you on? Are you using Miktex?

You need to update the file name database after installing new packages in order for LaTeX to know about them. If you're using Miktex, installing new packages is easy. You won't need to download them form the website, just use the package manager from MikTex. After that go to Start/Programs/Miktex/Maintainance/Settings (might be slightly different) and press 'Refresh FNDB' and 'Update Formats' in the General tab.
If you're lucky and you are using linux the packages in question should already be included in texlive.
OS: Kubuntu
Distribution: TexLive
Editor: Kile
Post Reply