[texworks] texworks Digest, Vol 42, Issue 13

Gou, Bei Bei.Gou at ndsu.edu
Wed Jan 18 18:13:45 CET 2012

Dear Vladimir,

Thank you very much for your prompt reply and assistance. 

I do not know if I can send the files to you and you can help me to correct it. I really do not know how to perform several steps, like how to get the 'graphicx' package, how to the figure in .ps format to PDF format, etc. Our school has a very strict rules for installing external programs. We have to apply for the permit first, which is time-consuming.

Thanks a lot again.


-----Original Message-----
From: texworks-bounces at tug.org [mailto:texworks-bounces at tug.org] On Behalf Of texworks-request at tug.org
Sent: Wednesday, January 18, 2012 5:00 AM
To: texworks at tug.org
Subject: texworks Digest, Vol 42, Issue 13

Send texworks mailing list submissions to
	texworks at tug.org

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
	texworks-request at tug.org

You can reach the person managing the list at
	texworks-owner at tug.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of texworks digest..."

Today's Topics:

   1. Re: log file you requested (Vladimir Lomov)


Message: 1
Date: Wed, 18 Jan 2012 09:59:56 +0900
From: Vladimir Lomov <lomov.vl at gmail.com>
To: texworks at tug.org
Subject: Re: [texworks] log file you requested
Message-ID: <20120118005956.GH972 at smoon>
Content-Type: text/plain; charset=utf-8

** Gou, Bei [2012-01-17 14:10:02 -0800]:

> Dear Reinhard,

> Would you please check the attached log file for another format? This 
> is the right format I will use for this paper. I have the same
> problem: cannot include the figures in the paper.

I'm not a Reinhard but could help a little.

1. This mailing list is intended to discuss TeXworks ? the TeX front end. Please see 'http://www.tug.org/mailman/listinfo' page, you need texhax ML.

2. Make a minimal [not]working example, see 'http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl'

3. Read information about LaTeX, see for example 'http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tutbitslatex'

4. There are two graphic packages for LaTeX: 'graphics' and 'graphicx'.
In most cases the second is preferable (read documentation about them).
Both are distributed by modern TeX distributions (MiKTeX and TeX Live).

5. LaTeX format is supported by several engines: latex, pdflatex, xelatex and lualatex. First one support images only in EPS format, pdflatex support images in formats: PDF, JPEG, PNG (may be other raster formats).
The most suitable way to include images is following:
If you want to set explicitly height of an image use 'height' key, <example> \includegraphics[height=2.0in]{6bus}
(I take file name from your log file).

There are at least two problems with your document:

1. you use "old" command to insert images, Reinhard suggest to use 'graphicx' package (as would I), you change the document preamble but don't change commands therefore one error message about 'Undefined control sequence'; change all '\psfig' commands like below:
(taken from log file)
  \includegraphics{6bus} %%% don't specify height if image is inserted correctly

To work with both latex and pdflatex and don't bother what engine do you use convert your PS images also to PDF format with the help of 'epstopdf' program (should be available in MiKTeX, if not install apropriate package) like C:\> epstopdf 6bus.ps This command will create file '6bus.pdf'. After that above command '\includegraphics'
will work correctly with latex and pdflatex. Another option is to use 'epstopdf' _package_, just add it to your document preamble.

2. The second problem with math. From log file follows that on line 94, environment 'eqnarray', the '\left{' should have the paired '\right'
command on the same 'line' (i.e. '\left' and '\right' shouldn't be separated by '\\'). Without real document it is hard to say what exactly is wrong. Also consider to switch to 'amsmath' package with more convenient environments 'multline', 'gather', '[fl]align', 'slpit' (see documentation).

> Thanks  a lot,
> Bei
You are welcome.

WBR, Vladimir Lomov

Everything you know is wrong!


texworks mailing list
texworks at tug.org

End of texworks Digest, Vol 42, Issue 13

More information about the texworks mailing list