Problems with Building and Viewing PDF Files from LaTeX

8,321 views
Skip to first unread message

Anja

unread,
Sep 12, 2010, 7:47:36 AM9/12/10
to LaTeX Users Group
Dear all,

I'm a SOAS PhD student working on the Nigerian language Uwu.

At the moment, I am trying to get started with LaTeX but encountered
some problem when trying to build and view my LaTeX file as a pdf.

The problem is as following: Since a while, the pdf does not change
anymore. Instead, it shows an older version of the LaTeX file. In
other words, any changes I do to the LaTeX file will not be reflected
in the pdf that is build from that same LaTeX file. Do you have any
idea how to fix that?

I would be very grateful for any help. Thanks,
Anja

Ieva

unread,
Sep 12, 2010, 11:48:43 AM9/12/10
to latexus...@googlegroups.com
Which pdf viewer you use? If it is Adobe Reader, you need close pdf file every time you build your file.

I prefer sumatraPDF, because its don't lock pdf file and I can rerun pdflatex (or xelatex) again and again without closing pdf file, and it reload pdf file automatically every time.

Ieva.

2010/9/12 Anja <anja...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.


Rafael Cotta

unread,
Sep 12, 2010, 11:53:01 AM9/12/10
to latexus...@googlegroups.com
I used an Eclipse plugin to write my LaTeX, and sometimes it got frozen, just like yours.

It was probably my misuse and not a bug, but deleting temporary files, or in some cases renaming the LaTeX file fixed it.

Regards,

Rafael Cotta

Peter Flynn

unread,
Sep 12, 2010, 1:29:04 PM9/12/10
to latexus...@googlegroups.com

Not unless you give us more information. We cannot guess.

What distribution of TeX?
What platform?
What operating system?
What document type?
What packages?
What editor?

1. Check the log file carefully. Possibly there is an error which is preventing it finishing the document correctly.

2. Check that you have write access to the directory (ie that someone else has not protected the file).

3. Copy the .tex document to another directory and process it there. Does it create a PDF file there?

///Peter

Anja

unread,
Sep 13, 2010, 8:44:00 AM9/13/10
to LaTeX Users Group
Thanks, I didn't know which other information you need.

I use MikTeX and GSview. It's a Philips laptop. The operating system
is Windows Vista Ultimate. The files are saved as .tex. I am not using
any packages yet but I have downloaded two packages and saved them in
the same folder as the .tex file: a package written by a friend for
autosegmental representations in phonology (another friend used it
without problems) and BibTeX (but I had the problem already before
adding BibTeX). The editor should be TeXmic Center.

Which one is the log file? The feedback after building says 0 errors,
0 warnings, 0 bad boxes and 0 pages.

I think that I do have access to the directory since I have build and
viewed the pdf files several times before it got stuck, which btw
happens all the time. Whenever I start a new file, I can build and
view the pdf file several times but at a certain point it always
freezes.

After copying the .tex file to another directory and processing it
from there, I got the error message "File C:\x.pdf does not exist" and
GSview remained empty. After adding the pdf file, this error message
disappeared and GSview showed the frozen version again.

I hope this describes the situation better. Please let me know if you
have any further questions. I would be really happy to solve this
problem.

Best, Anja

Peter Flynn

unread,
Sep 13, 2010, 5:47:38 PM9/13/10
to latexus...@googlegroups.com
On Mon, Sep 13, 2010 at 1:44 PM, Anja <anja...@gmail.com> wrote:
Thanks, I didn't know which other information you need.

I use MikTeX and GSview. It's a Philips laptop. The operating system
is Windows Vista Ultimate.

Upgrade the OS if possible. Vista's a turkey.
 
The files are saved as .tex. I am not using
any packages yet but I have downloaded two packages and saved them in
the same folder as the .tex file: a package written by a friend for
autosegmental representations in phonology (another friend used it
without problems) and BibTeX (but I had the problem already before
adding BibTeX). The editor should be TeXmic Center.

Which one is the log file?

The one with the same name as the .tex file, but it ends in .log
 
The feedback after building says 0 errors,
0 warnings, 0 bad boxes and 0 pages.

The log file has more information which may show why it failed to write the PDF file.
 
I think that I do have access to the directory since I have build and
viewed the pdf files several times before it got stuck, which btw
happens all the time. Whenever I start a new file, I can build and
view the pdf file several times but at a certain point it always
freezes.

This doesn't sound like a TeX problem to me. I think the problem is elsewhere.

After copying the .tex file to another directory and processing it
from there, I got the error message "File C:\x.pdf does not exist"

If this was the first time you processed it in that directory, why was LaTeX trying to open the PDF?
Where did this error message appear? In the log file? In TeXnicCenter? In Acrobat? In GSview?
 
and GSview remained empty. After adding the pdf file,

I don't understand "adding the pdf file". Adding it from where?
 
this error message disappeared and GSview showed the frozen version again

Check your .tex file: have you specified an image or some other ancillary file with the same name as the output PDF file?

Check the log file, especially the end.

///Peter

Daniel

unread,
Sep 13, 2010, 10:39:01 PM9/13/10
to LaTeX Users Group
Just use Evince. If you have GNOME, is should already be installed, I
would think.

Anja

unread,
Sep 14, 2010, 3:10:13 AM9/14/10
to LaTeX Users Group
I would prefer not to install a new OS because it costs money (unless
it is Linux) and there is no guaranty that it will work in the end. In
fact, I do have another laptop with Linux and was not able to install
LaTeX at all on it (nor was my more computer-talented friend).

The log file is below. I had a look at it but unfortunately it's all
gibberish to me.

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded
format=pdflatex 2010.6.27) 13 SEP 2010 14:29
entering extended mode
**C:/Users/Anja/Documents/x/x.tex
("C:/Users/Anja/Documents/x/x.tex"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang,
nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french,
loaded.
("C:\Program Files\MiKTeX 2.8\tex\latex\base\book.cls"
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.8\tex\latex\base\bk10.clo"
File: bk10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsmath.sty"
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amstext.sty"
Package: amstext 2000/06/29 v2.01

("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks14
\ex@=\dimen103
))
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen104
)
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count88
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count89
\leftroot@=\count90
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count91
\DOTSCASE@=\count92
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen105
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\macc@depth=\count93
\c@MaxMatrixCols=\count94
\dotsspace@=\muskip10
\c@parentequation=\count95
\dspbrk@lvl=\count96
\tag@help=\toks15
\row@=\count97
\column@=\count98
\maxfields@=\count99
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
("C:\Program Files\MiKTeX 2.8\tex\latex\amsfonts\amsfonts.sty"
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version
`bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 96.
)
("C:\Program Files\MiKTeX 2.8\tex\latex\amsfonts\amssymb.sty"
Package: amssymb 2009/06/22 v3.00
)
("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks19
)
("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/
TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.

("C:\Program Files\MiKTeX 2.8\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2010/02/14 v0.04n Graphics/color for pdfTeX
\Gread@gobject=\count100
))
\Gin@req@height=\dimen112
\Gin@req@width=\dimen113
)

> If this was the first time you processed it in that directory, why was LaTeX trying to open the PDF?

Beats me.

> Where did this error message appear? In the log file? In TeXnicCenter? In Acrobat? In GSview?

In GSview.

> I don't understand "adding the pdf file". Adding it from *where*?

You suggested to move the tex file to a new folder. When GSview
complained that there was no pdf file, I also moved the pdf file from
the folder where the tex file was to the new folder.

>Check your .tex file: have you specified an image or some other ancillary file with the same name as the output PDF file?

No, I did not specify such a file.

Thanks for your help, Anja

Anja

unread,
Sep 14, 2010, 3:17:06 AM9/14/10
to LaTeX Users Group
On 14 Sep., 04:39, Daniel <djuatde...@gmail.com> wrote:
> Just use Evince.  If you have GNOME, is should already be installed, I would think.

How would a new pdf viewer help to get the right output from LaTeX?
Maybe the answer is quite simple but I don't have any clue ...

Best, Anja

"The free document viewer Evince is now available for Windows
operating systems. The developer team provided an msi installer file
together with the new release 2.28.0. Evince is the standard pdf
viewer for the GNOME desktop environment, beside pdf it’s able to show
postscript, djvu, tiff and dvi documents. Evince is popular as a
previewer among LaTeX users for instance on Ubuntu Linux where GNOME
is the default desktop environment." (http://texblog.net/latex-archive/
tools/evince-windows/)

Anja

unread,
Sep 14, 2010, 4:03:02 AM9/14/10
to LaTeX Users Group
I've googled a bit more and learned that LaTeX is already included in
some versions of Linux. Maybe, it would be a good idea to replace my
current Linux version with one that contains already LaTeX. What do
you think and can you could you recommend a Linux version?

Kalidoss Murugesan

unread,
Sep 14, 2010, 4:25:23 AM9/14/10
to latexus...@googlegroups.com
I use MikTeX and GSview. 
 
The operating system is Windows Vista Ultimate.

If you are using MikTeX, GSview, TeXniccenter combination:

You may have this problem if you have not properly
configured TeXniccenter.

Goto TeXniccenter | Build | Define Output Profiles | Wizard

Provide suitable inputs for the wizard as and when it demands.
Once you are finished, compilation will go on without a hitch.

Suppose, you have installed MikTeX from a DVD, you may have this
problem.  So first copy MikTeX from the DVD on to a partition of
your system and install MikTeX from there.  In that case, when
a new file is to be installed, the file is already available in the
system. Otherwise, you have to put the DVD every time such an
error occurs. 

You may have to

Start | Program Files | MikTeX | Package Manager | Repository
Change Repository | Install from a folder |  (Here browse and give
the correct folder).

Best

--
M. Kalidoss,

Peter Flynn

unread,
Sep 14, 2010, 10:42:39 AM9/14/10
to latexus...@googlegroups.com
On Tue, Sep 14, 2010 at 9:03 AM, Anja <anja...@gmail.com> wrote:
I've googled a bit more and learned that LaTeX is already included in
some versions of Linux.

No, not included. It's available. It's in the package manager lists for all modern Linux distributions (eg Synaptic for Ubuntu).
 
Maybe, it would be a good idea to replace my
current Linux version with one that contains already LaTeX.

What is your current distribution? Some old ones used teTeX, which is now obsolete.
Make sure you pick one that has TeXLive.
 
What do you think and can you could you recommend a Linux version

I use Ubuntu 10.4 and it's working fine.

The latest version of TeXLive (2010) was released two days ago, so it will not be in the Linux distributions for a few weeks. Until then, install TeXLive 2009.

///Peter

Peter Flynn

unread,
Sep 14, 2010, 10:44:33 AM9/14/10
to latexus...@googlegroups.com

Much easier is just to do it by installing ProTeXt from the TUG DVD or from  http://tug.org/protext/

///Peter


Stephan Ronald

unread,
Sep 14, 2010, 10:43:38 AM9/14/10
to latexus...@googlegroups.com
On Tue, Sep 14, 2010 at 12:40 PM, Anja <anja...@gmail.com> wrote:
I would prefer not to install a new OS because it costs money (unless
it is Linux) and there is no guaranty that it will work in the end. In
fact, I do have another laptop with Linux and was not able to install
LaTeX at all on it (nor was my more computer-talented friend).

The log file is below. I had a look at it but unfortunately it's all
gibberish to me.

Hi Anja,
The log file seems to be incomplete. Can you please paste the entire text of x.log, so that we can know what is happening.
--
Stepen Ronald

Peter Flynn

unread,
Sep 14, 2010, 10:57:29 AM9/14/10
to latexus...@googlegroups.com
On Tue, Sep 14, 2010 at 8:17 AM, Anja <anja...@gmail.com> wrote:
On 14 Sep., 04:39, Daniel <djuatde...@gmail.com> wrote:
> Just use Evince.  If you have GNOME, is should already be installed, I would think.

How would a new pdf viewer help to get the right output from LaTeX?

Adobe Acrobat does not conform to Adobe's own standard and is full of bugs.

///Peter
 

Peter Flynn

unread,
Sep 14, 2010, 11:03:37 AM9/14/10
to latexus...@googlegroups.com
On Tue, Sep 14, 2010 at 8:10 AM, Anja <anja...@gmail.com> wrote:
I would prefer not to install a new OS because it costs money (unless
it is Linux) and there is no guaranty that it will work in the end. In
fact, I do have another laptop with Linux and was not able to install
LaTeX at all on it (nor was my more computer-talented friend).

With a modern distribution of Linux, you run the Package Manager (under Ubuntu it is called Synaptic; under other distributions it has other names). Then you select texlive-full, kile, ghostscript, and kpdf (or xpdf, or evince). Then click Install.

If you have an old version of Linux, replace it.

The log file is below. I had a look at it but unfortunately it's all gibberish to me.

But not to others. This is why it's useful.

[snip]
\Gin@req@height=\dimen112
\Gin@req@width=\dimen113
)

This is all fine up to here but it's incomplete. The end of the file is missing, so we cannot see what is wrong.
 

> If this was the first time you processed it in that directory, why was LaTeX trying to open the PDF?

Beats me.

> Where did this error message appear? In the log file? In TeXnicCenter? In Acrobat? In GSview?

In GSview.

OK, so LaTeX was not trying to open the file. GSview was doing it. You should have said. 
 
> I don't understand "adding the pdf file". Adding it from *where*?

You suggested to move the tex file to a new folder. When GSview
complained that there was no pdf file, I also moved the pdf file from
the folder where the tex file was to the new folder.

That will not achieve anything at all. We want to see LaTeX create a new PDF, not use the old one.
 
If that log file has no more in it, then you have a corrupt disk. Or maybe run out of space...

///Peter

Anja

unread,
Sep 14, 2010, 1:05:52 PM9/14/10
to LaTeX Users Group
> Hi Anja, The log file seems to be incomplete. Can you please paste the entire text of x.log, so that we can know what is happening.

Hi Stephan, I pasted the entire log file. :(

Anja

unread,
Sep 14, 2010, 1:07:08 PM9/14/10
to LaTeX Users Group
> > How would a new pdf viewer help to get the right output from LaTeX?

> Adobe Acrobat does not conform to Adobe's own standard and is full of bugs.

I still don't understand it, especially since LaTeX tries to open the
pdf in GSview and not in Adobe Acrobat.

Stephan Ronald

unread,
Sep 14, 2010, 1:17:42 PM9/14/10
to latexus...@googlegroups.com
On Tue, Sep 14, 2010 at 10:35 PM, Anja <anja...@gmail.com> wrote:
> Hi Anja, The log file seems to be incomplete. Can you please paste the entire text of x.log, so that we can know what is happening.

Hi Stephan, I pasted the entire log file. :(

I dont think so. Can you please send the screenshot of what is happening when you try to execute pdflatex on the said x.tex.
--
Stepen Ronald

Stephan Ronald

unread,
Sep 14, 2010, 1:19:50 PM9/14/10
to latexus...@googlegroups.com

Here in this case LaTeX/pdfLaTeX has nothing to do with the output PDF's rendering in the viewer.  Can you please check where the PDF is write protected?
--
Stepen Ronald

Abel Siqueira

unread,
Sep 14, 2010, 1:29:28 PM9/14/10
to latexus...@googlegroups.com
Hi Anja,

what I see:

- Pdf is not generated
- No error occurred

I think that there must be something preventing the .tex to be compiled. In other words, the problem, in my opinion, must be in the .tex.
What modifications have you made since the last version of the pdf file (the frozen version).

Abel

2010/9/14 Stephan Ronald <s.rona...@gmail.com>

Peter Flynn

unread,
Sep 14, 2010, 3:49:51 PM9/14/10
to latexus...@googlegroups.com
On Tue, Sep 14, 2010 at 6:29 PM, Abel Siqueira <abel.s....@gmail.com> wrote:
Hi Anja,

what I see:

- Pdf is not generated
- No error occurred

I think that there must be something preventing the .tex to be compiled. In other words, the problem, in my opinion, must be in the .tex.

If the log file is incomplete (ie prematurely terminated; job never completes) this sounds more like an error at the system level, not in the .tex file.

///Peter

Peter Flynn

unread,
Sep 14, 2010, 3:54:05 PM9/14/10
to latexus...@googlegroups.com

LaTeX does not try to open anything at all.
Your editor (TeXnicCenter) tries to open the PDF file after the LaTeX processing has finished.

You said that when you copied the .tex file to a new directory and processed it, it did not create a PDF file at all.

What happens if you process this LaTeX document:

\documentclass{article}
\begin{document}
Hello, world!
\end{document}

Do you get a PDF file created correctly?

///Peter

Anja

unread,
Sep 15, 2010, 3:25:00 AM9/15/10
to LaTeX Users Group
Good morning. The tex file produces an updated pdf again. The easy but
strange solution was to copy the entire content of the tex file into a
new project, copy all the images to the new project folder and ...
voilà, it works again. :-/

Peter Flynn

unread,
Sep 15, 2010, 4:20:00 AM9/15/10
to latexus...@googlegroups.com

Excellent, but now do a compare on both directories and see what the difference is, so you can find out what caused it.

///Peter

Anja

unread,
Sep 15, 2010, 6:12:08 AM9/15/10
to LaTeX Users Group
I can't see any difference. The tex file in the new project even works
after copying all files from the old project into the folder of the
new project (besides the old tex file) and renaming the new tex file
so that its name matches the one of the old tex file.

Anja

unread,
Sep 14, 2010, 1:10:52 PM9/14/10
to LaTeX Users Group
> With a modern distribution of Linux, you run the Package Manager (under
> Ubuntu it is called Synaptic; under other distributions it has other names).
> Then you select texlive-full, kile, ghostscript, and kpdf (or xpdf, or
> evince). Then click Install.

Could you post a link to a distribution of Linux that has a package
manager list in which LaTeX is available? (I am using one that was
installed this summer.)

Peter Flynn

unread,
Sep 17, 2010, 4:41:05 AM9/17/10
to latexus...@googlegroups.com

All of them, I think. Which one did you install?

P

On 17 Sep 2010 09:36, "Anja" <anja...@gmail.com> wrote:

> With a modern distribution of Linux, you run the Package Manager (under

> Ubuntu it is called Syna...

Could you post a link to a distribution of Linux that has a package
manager list in which LaTeX is available? (I am using one that was
installed this summer.)


--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" g...

Reply all
Reply to author
Forward
0 new messages