Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with preamble etc. needed

116 views
Skip to first unread message

Hack

unread,
Sep 29, 2012, 9:30:02 PM9/29/12
to
I've downloaded Elsevier's bundle of files for authors and I've got
problems. I hope someone can help me.
I've only added
\newtheorem{lemma}{Lemma}
and
\newtheorem{theorem}{Theorem}
to what the sample file gave in the preamble (much of it was commented,
though) and there are evidently other things I need to stuff in the preamble
that I'm not familiar with. Besides that, I've 'minimised' my document to

\documentclass[preprint,12pt]{elsarticle}
\newtheorem{lemma}{Lemma}
\newtheorem{theorem}{Theorem}
\usepackage{amssymb}
\begin{document}
\begin{frontmatter}
\markboth{text}
\title{text}

\author{text}

\address{text}

\begin{abstract}
text
\end{abstract}
\vspace{\baselineskip}

\begin{keyword}
text
\end{keyword}
\end{frontmatter}
\section{text}

\begin{theorem}
text
\end{theorem}
\begin{proof}
text
\end{proof}
\end{document}
-------------------
and I get the log file


This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded
format=pdflatex 2012.9.30) 30 SEP 2012 01:54
entering extended mode
**C:/Documents*and*Settings/User/Desktop/MATHS/TRIAL.tex
("C:/Documents and Settings/User/Desktop/MATHS/TRIAL.tex"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek,
ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan,
coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french,
ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian,
iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin,
lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek,
ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish,
portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian,
uppersorbian, u
senglishmax, welsh, loaded.
("C:\Documents and Settings\User\Desktop\MATHS\elsarticle.cls"
Document Class: elsarticle 2009/09/17, 1.20b: Elsevier Ltd
\@bls=\dimen102
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen103
)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

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

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.9\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.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2010/09/14 v0.05b Graphics/color for pdfTeX
\Gread@gobject=\count87
))
\Gin@req@height=\dimen104
\Gin@req@width=\dimen105
)
("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\pifont.sty"
Package: pifont 2005/04/12 PSNFSS-v9.2a Pi font support (SPQR)
LaTeX Font Info: Try loading font information for U+pzd on input line 63.

("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\upzd.fd"
File: upzd.fd 2001/06/04 font definitions for U/pzd.
)
LaTeX Font Info: Try loading font information for U+psy on input line 64.

("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\upsy.fd"
File: upsy.fd 2001/06/04 font definitions for U/psy.
)
! Font U/psy/m/n/12=psyr at 12.0pt not loadable: Metric (TFM) file not
found.
<to be read again>
relax
l.64 {\Pifont{psy}
}
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

)
\c@tnote=\count88
\c@fnote=\count89
\c@cnote=\count90
\c@ead=\count91
\c@author=\count92
\@eadauthor=\toks15
\c@affn=\count93
\absbox=\box26
\keybox=\box27
\Columnwidth=\dimen106
\space@left=\dimen107
\els@boxa=\box28
\els@boxb=\box29
\leftMargin=\dimen108
\@enLab=\toks16
\@sep=\skip43
\@@sep=\skip44
("C:\Program Files\MiKTeX 2.9\tex\latex\natbib\natbib.sty"
Package: natbib 2010/09/13 8.31b (PWD, AO)
\bibhang=\skip45
\bibsep=\skip46
LaTeX Info: Redefining \cite on input line 694.
\c@NAT@ctr=\count94
)
\splwrite=\write3
\appnamewidth=\dimen109
)
\c@lemma=\count95
\c@theorem=\count96

("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty"
Package: amssymb 2009/06/22 v3.00

("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty"
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\@emptytoks=\toks17
\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.
))
No file TRIAL.aux.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count97
\scratchdimen=\dimen110
\scratchbox=\box30
\nofMPsegments=\count98
\nofMParguments=\count99
\everyMPshowfont=\toks18
\MPscratchCnt=\count100
\MPscratchDim=\dimen111
\MPnumerator=\count101
\makeMPintoPDFobject=\count102
\everyMPtoPDFconversion=\toks19
)
! Argument of \title has an extra }.
<inserted text>
\par
l.8 \title
{text}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before \title was complete.
<to be read again>
\par
l.8 \title
{text}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

[1

{C:/Documents and Settings/All Users/Application
Data/MiKTeX/2.9/pdftex/config/
pdftex.map}]
LaTeX Font Info: Try loading font information for U+msa on input line 22.
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd"
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
)
LaTeX Font Info: Try loading font information for U+msb on input line 22.

("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd"
File: umsb.fd 2009/06/22 v3.00 AMS symbols B
)

! LaTeX Error: Environment proof undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.28 \begin{proof}

Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.


! LaTeX Error: \begin{document} ended by \end{proof}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.30 \end{proof}

Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.

[2

] ("C:\Documents and Settings\User\Desktop\MATHS\TRIAL.aux") )
Here is how much of TeX's memory you used:
1855 strings out of 494019
21933 string characters out of 3146447
73258 words of memory out of 3000000
5155 multiletter control sequences out of 15000+200000
9944 words of font info for 37 fonts, out of 3000000 for 9000
714 hyphenation exceptions out of 8191
32i,4n,30p,272b,188s stack positions out of
5000i,500n,10000p,200000b,50000s
<C:/Program Fil
es/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmbx12.pfb><C:/Program
Files/MiKTe
X 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb><C:/Program Files/MiKTeX
2.9/fon
ts/type1/public/amsfonts/cm/cmti10.pfb><C:/Program Files/MiKTeX
2.9/fonts/type1
/public/amsfonts/cm/cmti12.pfb>
Output written on TRIAL.pdf (2 pages, 44389 bytes).
PDF statistics:
25 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
-------------------------------
I notice that the first error shown in my tex editor -- something about a
Metric (TFM) file -- is one that appears when I try to compile the journal's
sample file.

With thanks to anyone who helps.



Dan

unread,
Sep 30, 2012, 2:08:59 AM9/30/12
to
On Saturday, September 29, 2012 8:30:03 PM UTC-5, Hack wrote:
> I've downloaded Elsevier's bundle of files for authors and I've got
>
> problems. I hope someone can help me.
>
> \documentclass[preprint,12pt]{elsarticle}
> \newtheorem{lemma}{Lemma}
> \newtheorem{theorem}{Theorem}
> \usepackage{amssymb}

The proof environment is defined in amsthm.sty
Add
\usepackage{amsthm}
and put your \newtheorem
commands after that. If you are writing a lot of math,
then
\usepackage{amsmath}
is also useful.

>
> \begin{document}
> \begin{frontmatter}
> \markboth{text}
> \title{text}

\markboth takes two arguments. It is therefore
reading the command \title as its second argument.
This causes the "argument of \title has an extra }"
error message, because LaTeX has become confused.
Use
\markboth{text}{text}
or
\markboth{text}{}
Or leave it out entirely. A normal user doesn't really
need it unless the editors of the journal require it.
A LaTeX class normally issues all necessary \mark
commands behind the scenes.

>
> ! Font U/psy/m/n/12=psyr at 12.0pt not loadable: Metric
> (TFM) file not found.
> <to be read again>
> relax
> l.64 {\Pifont{psy}

This error indicates that the TeX support for the
Adobe standard symbol font is missing. Try firing
up the MiKTeX installer and see if a package named
"symbol" is available for installation.


Dan

Enrico Gregorio

unread,
Sep 30, 2012, 5:31:14 AM9/30/12
to
Dan <luec...@uark.edu> wrote:

> On Saturday, September 29, 2012 8:30:03 PM UTC-5, Hack wrote:
[...]
> >
> > ! Font U/psy/m/n/12=psyr at 12.0pt not loadable: Metric
> > (TFM) file not found.
> > <to be read again>
> > relax
> > l.64 {\Pifont{psy}
>
> This error indicates that the TeX support for the
> Adobe standard symbol font is missing. Try firing
> up the MiKTeX installer and see if a package named
> "symbol" is available for installation.

The needed package is

\usepackage{pifont}

which should be available even in basic installations.

Ciao
Enrico

Hack

unread,
Sep 30, 2012, 6:02:36 AM9/30/12
to

"Enrico Gregorio" <Facile.d...@in.rete.it> wrote in message
news:300920121131146371%Facile.d...@in.rete.it...
Thankyou and thanks also to Dan, but it still produces an error. I know how
to get into Miktex package manager but not what to do after I've got that
far.


Hack

unread,
Sep 30, 2012, 6:04:13 AM9/30/12
to

"Dan" <luec...@uark.edu> wrote in message
news:9527558d-07ce-4e1c...@googlegroups.com...
> On Saturday, September 29, 2012 8:30:03 PM UTC-5, Hack wrote:
>> I've downloaded Elsevier's bundle of files for authors and I've got
>>
>> problems. I hope someone can help me.
>>
>> \documentclass[preprint,12pt]{elsarticle}
>> \newtheorem{lemma}{Lemma}
>> \newtheorem{theorem}{Theorem}
>> \usepackage{amssymb}
>
> The proof environment is defined in amsthm.sty
> Add
> \usepackage{amsthm}
> and put your \newtheorem
> commands after that.

It seems I need something more than this to stop it from choking on the
\begin{proof} and \end{proof}.


Enrico Gregorio

unread,
Sep 30, 2012, 9:49:02 AM9/30/12
to
Indeed! The error is that the font metric file can't be found;
it seems you're missing the MiKTeX package "psnfss".

Ciao
Enrico

Hack

unread,
Sep 30, 2012, 5:34:41 PM9/30/12
to

"Enrico Gregorio" <Facile.d...@in.rete.it> wrote in message
news:300920121549024394%Facile.d...@in.rete.it...
Thanks but how do I get it (and install it)?


Dan

unread,
Sep 30, 2012, 11:36:14 PM9/30/12
to
On Sep 30, 4:31 am, Enrico Gregorio <Facile.da.trov...@in.rete.it>
wrote:
The pifont package merely provides latex support, and the OP likely
has it.
The error message says the TFM file can't be found. That belongs to
the
MiKTeX symbol package (symbol.cab in systems/win32/miktex/tpm/
packages).
The best way to install it, of course, is with the MPM.


Dan

Dan

unread,
Sep 30, 2012, 11:38:38 PM9/30/12
to
On Sep 30, 5:04 am, "Hack" <usel...@hotmail.com> wrote:
> "Dan" <lueck...@uark.edu> wrote in message
I ran your file axactly as posted and got the error about the proof
environment being undefined. Adding \usepackage{amsthm}
corrected it. So something else must be wrong. Any other error
messages?


Dan

Dan

unread,
Sep 30, 2012, 11:43:34 PM9/30/12
to
On Sep 30, 8:49 am, Enrico Gregorio <Facile.da.trov...@in.rete.it>
wrote:
> Hack <usel...@hotmail.com> wrote:
> > "Enrico Gregorio" <Facile.da.trov...@in.rete.it> wrote in message
> >news:300920121131146371%Facile.d...@in.rete.it...
> > > Dan <lueck...@uark.edu> wrote:
>
> > >> On Saturday, September 29, 2012 8:30:03 PM UTC-5, Hack wrote:
> > > [...]
>
> > >> > ! Font U/psy/m/n/12=psyr at 12.0pt not loadable: Metric
> > >> > (TFM) file not found.
> > >> > <to be read again>
> > >> >                    relax
> > >> > l.64 {\Pifont{psy}
>
> > >> This error indicates that the TeX support for the
> > >> Adobe standard symbol font is missing. Try firing
> > >> up the MiKTeX installer and see if a package named
> > >> "symbol" is available for installation.
>
> > > The needed package is
>
> > >  \usepackage{pifont}
>
> > > which should be available even in basic installations.
>
> > Thankyou and thanks also to Dan, but it still produces an error. I know how
> > to get into Miktex package manager but not what to do after I've got that
> > far.
>
> Indeed! The error is that the font metric file can't be found;
> it seems you're missing the MiKTeX package "psnfss".

Come on, every TeX system has that! It's part of latex-required.
And it doesn't contain any TFM files. Those are distributed
separately, one package per font family. The symbol package,
the courier package, the times package, etc.


Dan
0 new messages