General ⇒ Re-starting
Re-starting
dwjones1
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10361
- Joined: Mon Mar 10, 2008 9:44 pm
Re-starting
What is the error message? pst-arrow not found? Then it's just not installed. Some other error message? Maybe it's used in a wrong way. Or you need to update pst-arrow. Please always post error message and all available details. Otherwise it's hard to help.dwjones1 wrote:I get error messages in first figure using pst-arrow
And this means? Nobody can help if the problem description for the situation on the Mac is just, that it doesn't work. Tell us error messages.dwjones1 wrote:That doesn't work either.
I use a Mac with MacTeX 2016 and TeXworks as editor. MacTeX bases on TeX Live. Perhaps consider to use TeX Live on Windows too, or if you stick to MikTeX: update it to the latest version. It's MikTeX 2.9 still, but that version got partial updates.
Stefan
Re: Re-starting
\psline[linecolor=black]{-}(1.5,4)(12.5,4)
The error message said undefined control sequence. The error message for the next 50 lines or so was exactly the same. The output showed all the pages correctly including the caption to the figure but deleted the figure. It is the same story throughout the next 380 pages of text and figures so I guess this is the major problem. I am amazed that it all worked so well considering the big jump in computers and programming, but I do not know where to go from here. Any suggestion will be appreciated.
D. W. Jones
- Stefan Kottwitz
- Site Admin
- Posts: 10361
- Joined: Mon Mar 10, 2008 9:44 pm
Re-starting
\psline
is a command of the pstricks
package. If it's undefined, the package was not loaded. So, ensure that the preamble contains\usepackage{pstricks}
Stefan
Re: Re-starting
\begin{figure}[!h]
\psset{xunit=1cm,yunit=1cm}
\begin{picture}(0,2)(14,5)
%\psgrid[subgriddiv=0,griddots=5,gridlabels=7pt,xunit=1,yunit=1](14,8)
%\psaxes[linewidth=1pt,ticks=none,showorigin=false,Dx=1,Dy=1]{->}(14,8)
\psline[linecolor=black]{-}(1.5,4)(12.5,4)
\psline[linecolor=black,fillcolor=black,fillstyle=none]{-}(1.5,3)(12.5,3)
\psline[linecolor=black,linestyle=solid,linewidth=1pt]{-}(1.6,3)(1.6,3.3)
\psline[linecolor=black,linestyle=solid,linewidth=1pt]{-}(1.8,3)(1.8,3.3)
\psline[linecolor=black,fillcolor=black,fillstyle=none](2.0,3)(2.0,4)\rput(2,3.75){$15$}
\psline[linecolor=black,linestyle=solid,linewidth=1pt]{-}(2.2,3)(2.2,3.3)
\psline[linecolor=black,linestyle=solid,linewidth=1pt]{-}(2.4,3)(2.4,3.3)
D. W. Jones
- Stefan Kottwitz
- Site Admin
- Posts: 10361
- Joined: Mon Mar 10, 2008 9:44 pm
Re-starting
\psline
. I guess it's not \psline
, but another command that's undefined. The whole error message would show that.For example, if LaTeX would show:
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.9 \psline[linecolor=black]{-}
(1.5,4)(12.5,4)
then
\c@lor@to@ps
would be undefined. LaTeX error messages are sometimes hard to read, but these are things we know here. We just need the exact error message and the code.In that case I mentioned, I know that pdfLaTeX has been used for directly compiling to PDF. That's the most common use today. But PSTricks requires LaTeX in DVI mode (running LaTeX, dvips, and ps2pdf for producing PDF). Or use XeLaTeX in your editor.
So, just try switching to XeLaTeX in your editor settings.
Btw. can you show this example as complete picture? Maybe I can show how to draw that in a nice modern way, with pdfLaTeX and TikZ.
Stefan