Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 15, 2007, 09:26 AM   #1
adammcd
macrumors member
 
Join Date: Nov 2007
problem using texmaker (latex path trouble?)

I have a new mac, using os x leopard. I first installed texmaker, this seemed to go well. I next downloaded i-installer, and then followed the instructions from the guide (http://guides.macrumors.com/Installing_Latex_on_a_Mac) under the "second (more difficult) option" paragraph, which had me install & configure the package 'gwTeX based on TeX Live' and then install & configure 'Ghostscript 8'. All downloads & installations went smoothly.

At first, texmaker would not work at all. So, I changed the latex path (under preferences) from its default to my directory's 'pdftex' file (it would not let me choose the 'latex' file, since it is an alias pointing to the 'pdftex' file. So I chose the alias's target instead). Now when I hit the quickbuild button, something does happen. I get some errors (printed below) and it created a PDF file with the exact text that is in the .tex file (for example, the first line, "\documentclass[10pt,letterpaper]{article}" appears in my PDF)

Here are examples of the types of errors I get:
---------------------------------
line 1 -> ! Undefined control sequence. \documentclass
line 2 -> ! Undefined control sequence. \usepackage
...

! Undefined control sequence.
l.1 \documentclass
[10pt,letterpaper]{article}
The control sequence at the end of the top line
of your error message was never \def'ed
...
----------------------------------

I'm not sure what the problem is. Should I not be using pdftex? If not, what do I use ('latex' is an alias that points to 'pdftex'!) Any suggestions would be appreciated.
adammcd is offline   0 Reply With Quote
Old Nov 15, 2007, 01:01 PM   #2
MisterMe
macrumors G4
 
Join Date: Jul 2002
Location: USA
I am curious why you went with the second (more difficult) option rather than the first (easier) option for installing TeX. The real problem is not that Gerben's i-Installer is harder; it is that it is no longer supported. My recommendation to you is to download and install MacTeX, the first (easier) option. Then you won't have the issue of gwTeX and how and where to install it.
__________________
Neither a borrower nor a lender be
For loan oft loses both itself and friend
William Shakespeare from Hamlet
MisterMe is offline   0 Reply With Quote
Old Nov 15, 2007, 01:05 PM   #3
Am3822
macrumors 6502
 
Join Date: Aug 2006
Location: Groningen, The Netherlands
The problem is that you're trying to use 'pdftex' with a LaTeX file. You should be using pdflatex, and not pdftex. (pdf)LaTex adds a layer of macros (I think) on top of the more basic (pdf)TeX, so LaTeX commands, such as \documentclass, would not compile using TeX.

While you're at it, if you're planning to use pdfLaTeX, I think that you should add the parameter "pdftex" to \documentclass -- something like that:

\documentclass[pdftex,letterpaper,12pt]{article}

Also, as the previous poster had said -- it's easier to download TUG's MacTeX.dmg (the whole 741 megs of it..) and install from there.
Am3822 is offline   0 Reply With Quote
Old Nov 15, 2007, 06:33 PM   #4
adammcd
Thread Starter
macrumors member
 
Join Date: Nov 2007
Wow -- very helpful replies. I went with the "harder" option because it really didn't look very hard at all & also because the "easy" install is a huge download with lots of extra stuff I do not need. However, I will go ahead with the easy install this time... thanks!
adammcd is offline   0 Reply With Quote
Old Nov 15, 2007, 08:32 PM   #5
adammcd
Thread Starter
macrumors member
 
Join Date: Nov 2007
Here is the author of the original post saying, "everythings works fine now."

A note to future readers of this thread (or perhaps to the author of texmaker if he/she happens to read this):

In addition to downloading and installing the correct (up to date, supported) TeX package, one of my problems in getting texmaker to work properly was that, by default, none of the paths were set correctly under 'preferences'. In addition to this, it was not possible to navigate through folders (via clicking the folder icon) and select the 'latex' file because the file itself is an alias, and the program does not allow an alias to be selected. Instead one must type the path in correctly for each of the commands listed (there are a dozen of them). Only then will it correctly compile (is compile the right word to use for LaTeX?)
adammcd is offline   0 Reply With Quote
Old Nov 15, 2007, 10:59 PM   #6
MisterMe
macrumors G4
 
Join Date: Jul 2002
Location: USA
Quote:
Originally Posted by adammcd View Post
...

In addition to downloading and installing the correct (up to date, supported) TeX package, one of my problems in getting texmaker to work properly was that, by default, none of the paths were set correctly under 'preferences'. ...
I cannot account for your experience, but it is not the general experience of texmaker users. On my system, texmaker worked out-of-the-box.
__________________
Neither a borrower nor a lender be
For loan oft loses both itself and friend
William Shakespeare from Hamlet
MisterMe is offline   0 Reply With Quote
Old Dec 3, 2007, 03:27 PM   #7
ozsu
macrumors newbie
 
Join Date: Dec 2007
texmaker problem

I am using TexMaker on a Mac under Leopard. My TeX installation is done via MacTeX. I am having a problem that I cannot find a solution to:

- When I run ps2pdf, it quits with the message
Process started
/usr/local/bin/ps2pdf: line 5: exec: ps2pdfwr: not found
Process exited with errors


I have fixed the paths in the preferences as follows (and confirmed that
these are the right paths):

Latex, dvips, bibtex, makeindex, pdflatex, dvipdfm, and Metapost are
all in /usr/texbin/
ps2pdf and gs are in /usr/local/bin

In /usr/local/bin, there is the ps2pdfwr file as well. Therefore, I don't
really understand the "not found" error. I hope someone can shed some light on this.
ozsu is offline   0 Reply With Quote
Old Dec 3, 2007, 04:11 PM   #8
yeroen
macrumors 6502a
 
yeroen's Avatar
 
Join Date: Mar 2007
Location: Cambridge, MA
Quote:
Originally Posted by ozsu View Post
In /usr/local/bin, there is the ps2pdfwr file as well. Therefore, I don't really understand the "not found" error. I hope someone can shed some light on this.

You can try doing a systrace (or ktrace or whatever the mac os x equivalent is ..i've used it before but I forget what it's called) on the process and grepping the output for exec calls on ps2pdfwr. I hope it's not the case, but the path to ps2pdfwr may be hardcoded in the exec call (I've seen this happen before).

I remember having to jump through alot of hoops like this when I installed TeX on my mac (I wish I had written them down).
__________________
all Jarvis, all the time
yeroen is offline   0 Reply With Quote
Old Dec 3, 2007, 05:28 PM   #9
mperuffo
macrumors newbie
 
Join Date: Dec 2007
Hi, I have installed mactex 2007, and now I would like to try texmaker.

I installed it, but now I need to configure all the paths, considering I'm a newbie, is there anyone so nice to write down the correct entry I should put in the configuration panel?

Something like

Makeindex "/usr/texbin/makeindex" %.idx


I know to be a bit lazy, but I don't have the time right now, I need to start to write some stuff and I'm going to understand a bit better what's behind in the near future.


Thank's for any help
mperuffo is offline   0 Reply With Quote
Old Dec 3, 2007, 06:51 PM   #10
ozsu
macrumors newbie
 
Join Date: Dec 2007
Quote:
Originally Posted by yeroen View Post
You can try doing a systrace (or ktrace or whatever the mac os x equivalent is ..i've used it before but I forget what it's called) on the process and grepping the output for exec calls on ps2pdfwr. I hope it's not the case, but the path to ps2pdfwr may be hardcoded in the exec call (I've seen this happen before).

I remember having to jump through alot of hoops like this when I installed TeX on my mac (I wish I had written them down).
Thanks much. I can't find systrace or ktrace, but I'll keep looking. The interesting thing is that if I do a ps2pdf from the terminal window, it runs to completion without problem. However, running ps2pdf from within TexMaker causes problems. Annoying...

The call inside ps2pdf is as follows, in case this helps:

exec ps2pdfwr -dCompatibilityLevel=1.3 "$@"
ozsu is offline   0 Reply With Quote
Old Dec 3, 2007, 06:51 PM   #11
ozsu
macrumors newbie
 
Join Date: Dec 2007
Quote:
Originally Posted by mperuffo View Post
Hi, I have installed mactex 2007, and now I would like to try texmaker.

I installed it, but now I need to configure all the paths, considering I'm a newbie, is there anyone so nice to write down the correct entry I should put in the configuration panel?

Something like

Makeindex "/usr/texbin/makeindex" %.idx


I know to be a bit lazy, but I don't have the time right now, I need to start to write some stuff and I'm going to understand a bit better what's behind in the near future.


Thank's for any help
Open your terminal and type

which makeindex

and use the path that it reports back.
ozsu is offline   0 Reply With Quote
Old Dec 4, 2007, 04:40 PM   #12
mperuffo
macrumors newbie
 
Join Date: Dec 2007
Thanks for the quick answer.

Searching around I have found almost every commands and put the right path

I didn't find a command for latex and Pdflatex, and i'm not sure about ghostscript


I write down all I have done

LaTeX -> "Latex" -interaction=nonstopmode %.tex
dvips -> "/usr/local/texlive/2007/bin/powerpc-darwin/dvips" -o %.ps %.dvi
Bibtex -> "/usr/local/texlive/2007/bin/powerpc-darwin/bibtex" %.aux
Makeindex -> "/usr/local/texlive/2007/bin/powerpc-darwin/makeindex" %.idx
Dvi Viewer -> open %.dvi
PS Viewer -> open %.ps
PdfLaTeX -> "pdflatex" -interaction=nonstopmode %.tex
Dvipdfm -> "dvipdfm" %.dvi
ps2pdf -> "/usr/local/bin/ps2pdf" %.ps
Pdf Viewer -> open %.pdf
metapost -> "/usr/local/texlive/2007/bin/powerpc-darwin/mpost" --interaction nonstopmode
ghostscript -> "/usr/local/bin/gs-noX11"

If I click on quick build I get: Log File not found !

If I start latex from terminal something append, but I'm not able to find were the "latex" command is.

Please could you have a check at my config. and give me any help to get it right?
mperuffo is offline   0 Reply With Quote
Old Dec 4, 2007, 06:34 PM   #13
ozsu
macrumors newbie
 
Join Date: Dec 2007
Quote:
Originally Posted by mperuffo View Post
Thanks for the quick answer.

Searching around I have found almost every commands and put the right path

I didn't find a command for latex and Pdflatex, and i'm not sure about ghostscript

...
Please could you have a check at my config. and give me any help to get it right?
If nothing is returned when you do "which latex" from the terminal, then you probably do not have a latex system installed. "which latex" and "which pdflatex" should return a path if they are installed.
ozsu is offline   0 Reply With Quote
Old Jan 3, 2008, 05:42 PM   #14
mperuffo
macrumors newbie
 
Join Date: Dec 2007
After a while

I try different things, starting from the beginning I installed MacTeX and texmaker.
I use TexShop without any problem.

When I try to use TexMaker with the most simple document

Quote:
\documentclass{article}
\begin{document}
fghfghfghf
\end{document}
I obtain this


Quote:
************** SUMMARY ************** :
line 1 -> ! Undefined control sequence. \documentclass
line 2 -> ! Undefined control sequence. \begin
************** LOG FILE *************** :
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdftex 2007.5.18) 3 JAN 2008 23:35
entering extended mode
%&-line parsing enabled.
**1.tex
(./1.tex
! Undefined control sequence.
l.1 \documentclass
{article}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.2 \begin
{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
[1{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] )</us
r/local/texlive/2007/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb>
Output written on 1.pdf (1 page, 6882 bytes).
PDF statistics:
10 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 131072)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
The PDF file is created and if I open it there is all I write in the tex file

I have configured the preferences of texmakare as follow:

Quote:
LaTeX -> "/usr/local/texlive/2007/bin/powerpc-darwin/pdftex" -interaction=nonstopmode %.tex
dvips -> "/usr/local/texlive/2007/bin/powerpc-darwin/dvips" -o %.ps %.dvi
Bibtex -> "/usr/local/texlive/2007/bin/powerpc-darwin/bibtex" %.aux
Makeindex -> "/usr/local/texlive/2007/bin/powerpc-darwin/makeindex" %.idx
Dvi Viewer -> open %.dvi
PS Viewer -> open %.ps
PdfLaTeX -> "/usr/local/texlive/2007/bin/powerpc-darwin/pdftex" -interaction=nonstopmode %.tex
Dvipdfm -> "dvipdfm" %.dvi
ps2pdf -> "/usr/local/bin/ps2pdf" %.ps
Pdf Viewer -> open %.pdf
metapost -> "/usr/local/texlive/2007/bin/powerpc-darwin/mpost" --interaction nonstopmode
ghostscript -> "/usr/local/bin/gs-noX11"

I tried all the combinations for the "Quick build command"

I don't have installed aspell.



The Latex and pdflatex commands are just alias that point to pdftex

I try to write

Quote:
\documentclass[pdftex,letterpaper,12pt]{article}
but nothing changes

I installed all this in two different macs (a Powermac G5 and an ibook G4 both with Leopard) having the same problem.

If I start the commands "latex" and "pdflatex" from the terminal it seems to be all fine


Please every things is welcome.

Last edited by mperuffo; Jan 3, 2008 at 06:02 PM.
mperuffo is offline   0 Reply With Quote
Old Mar 12, 2008, 08:02 AM   #15
fidelpardussi
macrumors newbie
 
Join Date: Mar 2008
Same problem with Texmaker configuration

I have the same problem as "mperuffo"

I installed MacTeX 2007 and everything works with TeXShop, however since I do a lot of mathematical proofs and I prefer to have a more "advance-looking" (use colors for different sections of the document) editor I installed Texmaker, but it does not seem to be well-configured.

I think it cannot find the TeX commands. The Texmaker website says to type in the correct paths in the "Preferences" -- but a newbie like me does not have any idea what these could be.

I would really appreciate if anyone could help.
fidelpardussi is offline   0 Reply With Quote
Old Mar 12, 2008, 08:43 AM   #16
MisterMe
macrumors G4
 
Join Date: Jul 2002
Location: USA
Quote:
Originally Posted by fidelpardussi View Post
... I installed Texmaker, but it does not seem to be well-configured.

I think it cannot find the TeX commands. ...
Why do you think that MacTeX was improperly configured and that texmaker cannot find the TeX commands? For me--and I presume--most users, it just works. texmaker also just works. Did you do a custom installation or something?
__________________
Neither a borrower nor a lender be
For loan oft loses both itself and friend
William Shakespeare from Hamlet
MisterMe is offline   0 Reply With Quote
Old Mar 12, 2008, 09:33 AM   #17
fidelpardussi
macrumors newbie
 
Join Date: Mar 2008
Quote:
Originally Posted by MisterMe View Post
Why do you think that MacTeX was improperly configured and that texmaker cannot find the TeX commands? For me--and I presume--most users, it just works. texmaker also just works. Did you do a custom installation or something?
Hi MisterMe, many thanks for your prompt reply!

I don't think that MacTeX was improperly configured.

I do think that texmaker was not configured correctly because I cannot "texify" my saved files that work with TeXShop.

So, I guess my question would be what are the correct configurations (under "Preferences") for texmaker knowing that I have correctly configured MacTeX 2007?

Many, many thanks once again for your time and kindness.
fidelpardussi is offline   0 Reply With Quote
Old Apr 28, 2008, 12:32 PM   #18
Indiana Mac
macrumors member
 
Join Date: Dec 2003
Location: Athens, Georgia
Found something that worked for me!

After about a week of searching, I found something that works for me.

From the macuser.de forum
http://www.macuser.de/forum/showthread.php?t=255416


LaTeX: "/usr/local/texlive/2007/bin/i386-darwin/latex" -interaction=nonstopmode %.tex
dvips: "/usr/local/texlive/2007/bin/i386-darwin/dvips" -o %.ps %.dvi
Bibtex: "/usr/local/texlive/2007/bin/i386-darwin/bibtex" %.aux
Makeindex: "/usr/local/texlive/2007/bin/i386-darwin/makeindex" %.idx
DVI Betrachter: open %.dvi
PS Betrachter: open %.ps
PdfLateX: "/usr/local/texlive/2007/bin/i386-darwin/pdflatex" -interaction=nonstopmode %.tex
Dvipdfm: "/usr/local/texlive/2007/bin/i386-darwin/dvipdfm" %.dvi
ps2pdf: "/usr/local/texlive/2007/bin/i386-darwin/ps2pdf" %.ps
PDF Betrachter: open %.pdf
metapost: "/usr/local/texlive/2007/bin/i386-darwin/mpost" --interaction nonstopmode
ghostscript: /usr/local/bin/gs


I hope this helps!
Indiana Mac is offline   0 Reply With Quote
Old May 8, 2008, 01:54 PM   #19
fidelpardussi
macrumors newbie
 
Join Date: Mar 2008
^^^^^^^^^^
Yep, this works!

Perfect, thanks a million Indiana Mac and wish you the best for the future.
fidelpardussi is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Musique or Music: iTunes path problem misscosmic OS X 10.8 Mountain Lion 0 Dec 4, 2013 11:20 AM
Is there a good latex for iPad? hajime iPad Apps 0 Nov 15, 2013 08:14 AM
Latex wysiwyg? zombrero Mac Applications and Mac App Store 1 Feb 3, 2013 12:52 AM
problem with LaTex pj123 OS X 10.8 Mountain Lion 5 Jan 25, 2013 03:57 PM
New to LaTeX - Like it so far. BentwoodBlue Mac Applications and Mac App Store 2 Sep 30, 2012 06:14 PM

Forum Jump

All times are GMT -5. The time now is 02:06 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC