Matlab says 'PDFLATEX path unknown

1,056 views
Skip to first unread message

colka

unread,
Sep 19, 2012, 11:32:32 AM9/19/12
to iris-t...@googlegroups.com
I tried to launch very easy reporting script from tutorial section in iris-toolbox webpage (particulary "basic_report.m" script including in Petars_Reporting_20110527.zip) and I got this message

*** Error when compiling LaTeX and/or PDF files.
Matlab says 'PDFLATEX path unknown. Cannot compile PDF files.'

I have TeX Live 2007 version and it itself works well. Do you have some ideas what s wrong?

Thanks

Jaromir Benes

unread,
Sep 19, 2012, 11:41:32 AM9/19/12
to iris-t...@googlegroups.com
This sometimes happens (IRIS tries to automatically detect the location of your TeX, but sometimes simply fails). You can always do it manually. Please read the "LaTeX not found" post on the blog


Let me know if you still have difficulty...

Jaromir

Avraa

unread,
Jan 26, 2013, 6:56:00 PM1/26/13
to iris-t...@googlegroups.com
I am having the same difficulty. I read the blog. It is quite different. There is no LaTex, instead it is LaTexMk (I believe). I linked them but it did not work.

Jaromir Benes

unread,
Jan 26, 2013, 8:06:38 PM1/26/13
to Avraa, iris-t...@googlegroups.com
What distribution of tex/latex do you use? What operating system?
--
You received this message because you are subscribed to the Google Groups "iris-toolbox-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iris-toolbox...@googlegroups.com.
To post to this group, send email to iris-t...@googlegroups.com.
Visit this group at http://groups.google.com/group/iris-toolbox?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

ATTA

unread,
Jan 26, 2013, 9:07:49 PM1/26/13
to iris-t...@googlegroups.com, Avraa
I am using Mac OS X 10.8.2 and MacTex.
the following is the m file to configure it with the links that I thought might right.

function c = irisuserconfig(c)

c.latexpath ='/Users/username/Library/TeXShop/bin/tslatexmk/latexmk';

c.pdflatexpath ='/Users/username/Library/TeXShop/bin/pdflatexc';

c.epstopdfpath ='/Users/username/Library/TeXShop/bin/mpostc';

end

Jaromir Benes

unread,
Jan 27, 2013, 11:27:55 AM1/27/13
to ATTA, the-iris-toolbox [discussion forum]
The latex executable is actually not needed (it's just a legacy from previous versions). The reporting system uses pdflatex.

Could you try if pdflatex runs from the Matlab command window? (Mind the exclamation point at the beginning of the line:

    >> ! /Users/username/Library/TeXShop/bin/pdflatexc mytestfile.tex

where mytestfile.tex as any kind of simple latex file (if you're unsure what this is, let me know...)

J

Avralt-Od Purevjav

unread,
Jan 27, 2013, 1:25:19 PM1/27/13
to iris-t...@googlegroups.com
Yes. It is working. It convert it into pdf file.

I also use TexMaker to edit my tex files. 

Jaromir Benes

unread,
Jan 27, 2013, 1:43:32 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
Good. Now, test number two. Could you create a sub-directory (sub-folder) in you current working directory, and call it for example "testfolder". Then save the test latex file in that directory (use, say, the filename "testfile.tex"), and from the original working directory, try to run

>> ! "/Users/username/Library/TeXShop/bin/pdflatexc" --halt-on-error  -include-directory="testfolder"  -output-directory="testfolder" testfile

This should produce a PDF and the PDF should be saved in testfolder.

Let me know if this runs OK, too.


To unsubscribe from this group, send email to iris-toolbox...@googlegroups.com.

Jaromir Benes

unread,
Jan 27, 2013, 2:13:21 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
But if do 

>> dir testfolder

the testfile.tex does get listed, doesn't it? (In other words, it is correctly placed in that sub-folder, and you are in the correct working directory, right?)

J.


On Sun, Jan 27, 2013 at 2:00 PM, Avralt-Od Purevjav <avra...@gmail.com> wrote:
I got this results:

>> ! "/Users/Avraa/Library/TeXShop/bin/pdflatexc" --halt-on-error  -include-directory="testfolder"  -output-directory="testfolder" testfile
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 \write18 enabled.
**testfile.tex
entering extended mode
! I can't find file `testfile.tex'.
<*> testfile.tex
                
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 

Jaromir Benes

unread,
Jan 27, 2013, 2:17:09 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
Can you please display help on pdflatexc and copy-paste it here? You can do it from Matlab:

>> ! /Users/username/Library/TeXShop/bin/pdflatexc -help


On Sun, Jan 27, 2013 at 2:12 PM, Avralt-Od Purevjav <avra...@gmail.com> wrote:
It only works inside the sub folder but not in the current folder.




On Jan 27, 2013, at 11:43 AM, Jaromir Benes <jaromi...@gmail.com> wrote:

Jaromir Benes

unread,
Jan 27, 2013, 2:18:13 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
It looks as if the TeXShop version of pdflatex behaved differently than the other standard distributions...

Jaromir Benes

unread,
Jan 27, 2013, 2:25:38 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
Also, I've quickly googled texshop pdflatex and found out that pdflatex (not only pdflatexc) should be part of the texshop distribution. People who reported a missing pdflatex found out that they installed texshop incorrectly (my vague understanding is that you need to remove everything before upgrading to a later version).

Could you pls make sure your texshop is installed correctly? Try to google problems with pdflatex in texshop...


On Sun, Jan 27, 2013 at 2:22 PM, Avralt-Od Purevjav <avra...@gmail.com> wrote:
yes.

>> dir testfolder

.             testfile.aux  testfile.log  testfile.out  testfile.snm  testfile.toc  
..            testfile.dvi  testfile.nav  testfile.pdf  testfile.tex  

As you said, I am running it from my current folder.

Jaromir Benes

unread,
Jan 27, 2013, 2:31:39 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
Ok, the "input-directory" option is clearly missing...

Can you run (again from your current working directory)

>> ! "/Users/username/Library/TeXShop/bin/pdflatexc" --halt-on-error  -output-directory="testfolder" "testfolder/testfile"


On Sun, Jan 27, 2013 at 2:24 PM, Avralt-Od Purevjav <avra...@gmail.com> wrote:
>> ! /Users/Avraa/Library/TeXShop/bin/pdflatexc -help
Usage: pdftex [OPTION]... [TEXNAME[.tex]] [COMMANDS]
   or: pdftex [OPTION]... \FIRST-LINE
   or: pdftex [OPTION]... &FMT ARGS
  Run pdfTeX on TEXNAME, usually creating TEXNAME.pdf.
  Any remaining COMMANDS are processed as pdfTeX input, after TEXNAME is read.
  If the first line of TEXNAME is %&FMT, and FMT is an existing .fmt file,
  use it.  Else use `NAME.fmt', where NAME is the program invocation name,
  most commonly `pdftex'.

  Alternatively, if the first non-option argument begins with a backslash,
  interpret all non-option arguments as a line of pdfTeX input.

  Alternatively, if the first non-option argument begins with a &, the
  next word is taken as the FMT to read, overriding all else.  Any
  remaining arguments are processed as above.

  If no arguments or options are specified, prompt for input.

-draftmode              switch on draft mode (generates no output PDF)
-enc                    enable encTeX extensions such as \mubyte
-etex                   enable e-TeX extensions
[-no]-file-line-error   disable/enable file:line:error style messages
-fmt=FMTNAME            use FMTNAME instead of program name or a %& line
-halt-on-error          stop processing at the first error
-ini                    be pdfinitex, for dumping formats; this is implicitly
                          true if the program name is `pdfinitex'
-interaction=STRING     set interaction mode (STRING=batchmode/nonstopmode/
                          scrollmode/errorstopmode)
-ipc                    send DVI output to a socket as well as the usual
                          output file
-ipc-start              as -ipc, and also start the server at the other end
-jobname=STRING         set the job name to STRING
-kpathsea-debug=NUMBER  set path searching debugging flags according to
                          the bits of NUMBER
[-no]-mktex=FMT         disable/enable mktexFMT generation (FMT=tex/tfm/pk)
-mltex                  enable MLTeX extensions such as \charsubdef
-output-comment=STRING  use STRING for DVI file comment instead of date
                          (no effect for PDF)
-output-directory=DIR   use existing DIR as the directory to write files in
-output-format=FORMAT   use FORMAT for job output; FORMAT is `dvi' or `pdf'
[-no]-parse-first-line  disable/enable parsing of first line of input file
-progname=STRING        set program (and fmt) name to STRING
-recorder               enable filename recorder
[-no]-shell-escape      disable/enable \write18{SHELL COMMAND}
-shell-restricted       enable restricted \write18
-src-specials           insert source specials into the DVI file
-src-specials=WHERE     insert source specials in certain places of
                          the DVI file. WHERE is a comma-separated value
                          list: cr display hbox math par parend vbox
-synctex=NUMBER         generate SyncTeX data for previewers if nonzero
-translate-file=TCXNAME use the TCX file TCXNAME
-8bit                   make all characters printable by default
-help                   display this help and exit
-version                output version information and exit

Email bug reports to pdf...@tug.org.
>> 

Jaromir Benes

unread,
Jan 27, 2013, 2:58:41 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
Did you type the "testfile.mex" after the two stars (**)?


On Sun, Jan 27, 2013 at 2:49 PM, Avralt-Od Purevjav <avra...@gmail.com> wrote:
>> ! "/Users/Avraa/Library/TeXShop/bin/pdflatexc" --halt-on-error  -output-directory="testfolder" "testfolder/testfile"
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 \write18 enabled.
**testfile.mex
entering extended mode
! I can't find file `testfile.mex'.
<*> testfile.mex
                
(Press Enter to retry, or Control-D to exit)
Please type another input file name: ^D
! Emergency stop.
<*> testfile.mex
                
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.
>> 

Jaromir Benes

unread,
Jan 27, 2013, 3:02:23 PM1/27/13
to Avralt-Od Purevjav, the-iris-toolbox [discussion forum]
One more thing, can you try to run it with just one dash in front of "halt-on-error"?
Reply all
Reply to author
Forward
0 new messages