LaTeX forum ⇒ Document Classeselsarticle | Document Class not working Topic is solved

Information and discussion about specific document classes and how to create your own document classes.
zomgbroken
Posts: 6
Joined: Sat Oct 04, 2008 2:06 pm

elsarticle | Document Class not working

Postby zomgbroken » Sat Nov 12, 2011 4:06 pm

I've been trying to use the Elsarticle document class, but it doesn't seem to be working.

You can download the document class here (http://www.elsevier.com/wps/find/author ... elsarticle), click "elsarticle.zip" in the "Obtaining elsarticle" section.

After downloading the zip, I unzipped it and compiled the "elsarticle-template-1a-num.tex" file.

Here's the error I get from TeXworks:

  1. This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
  2. entering extended mode
  3. (C:\Users\REMOVED\Downloads\elsarticle\elsarticle-template-1a-num.tex
  4. LaTeX2e <2011/06/27>
  5. Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
  6. abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
  7. croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
  8. lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
  9. ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
  10. vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
  11. an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
  12. romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
  13. sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
  14. senglishmax, welsh, loaded.
  15. (C:\Users\REMOVED\Downloads\elsarticle\elsarticle.cls
  16. Document Class: elsarticle 2009/09/17, 1.20b: Elsevier Ltd
  17. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\base\article.cls"
  18. Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
  19. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\base\size12.clo"))
  20. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
  21. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
  22. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
  23. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\graphics\trig.sty")
  24. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
  25. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
  26. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
  27. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"))))
  28. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\psnfss\pifont.sty"
  29. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\psnfss\upzd.fd")
  30. ("C:\Program Files (x86)\LaTeX\MiKTeX 2.9\tex\latex\psnfss\upsy.fd")
  31. ======================================================================
  32. miktex-pdftex.exe: Cannot start MiKTeX package manager.
  33. miktex-pdftex.exe: Data: Invalid syntax
  34.  
  35.  
  36. ======================================================================
  37. miktex-maketfm.exe: Cannot start MiKTeX package manager.
  38. miktex-maketfm.exe: Data: Invalid syntax
  39.  
  40. ======================================================================
  41. Running miktex-makemf.exe...
  42. miktex-makemf: The psyr source file could not be found.
  43.  
  44. Running hbf2gf.exe...
  45.  
  46.  
  47. hbf2gf (CJK ver. 4.8.0)
  48.  
  49.  
  50.  
  51. Couldn't find `ps.cfg'
  52.  
  53. miktex-maketfm: No creation rule for font psyr.
  54. ======================================================================
  55.  
  56. ! Font U/psy/m/n/12=psyr at 12.0pt not loadable: Metric (TFM) file not found.
  57. <to be read again>
  58. relax
  59. l.64 {\Pifont{psy}
  60. }
  61. ?


My experience with using document classes is nonexistent (apart from default document classes like article), so am I doing something wrong? Do I have to do more than just compile the tex file?

The part of the error message that says "Cannot start MiKTeX package manager." is curious. Is there some package that I should install?
Last edited by zomgbroken on Sun Nov 13, 2011 1:41 pm, edited 1 time in total.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sat Nov 12, 2011 4:09 pm

Why don't you just install the elsarticle class by the MiKTeX Package Manager (MPM)?


Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

zomgbroken
Posts: 6
Joined: Sat Oct 04, 2008 2:06 pm

Postby zomgbroken » Sat Nov 12, 2011 4:17 pm

localghost wrote:Why don't you just install the elsarticle class by the MiKTeX Package Manager (MPM)?


Thorsten

I just tried installing elsarticle through the MiKTeX Package Manager, and then I compiled the tex code again. Still getting the same error. I also tried adding the lines "\usepackage{elsarticle}", but that doesn't help either.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sat Nov 12, 2011 4:22 pm

This is the moment where you should provide a minimal example that exactly reproduces the error.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

zomgbroken
Posts: 6
Joined: Sat Oct 04, 2008 2:06 pm

Postby zomgbroken » Sat Nov 12, 2011 4:43 pm

localghost wrote:This is the moment where you should provide a minimal example that exactly reproduces the error.

There were steps to reproduce the error in the original post. However, here's the tex file from the download link with all the comments (and some other irrelevant stuff) removed. I added the "\documentclass{article}" line. I guess this can be considered a minimal working example.
  1. \documentclass{article}
  2. %\documentclass[preprint,12pt]{elsarticle}
  3.  
  4. %\journal{Nuclear Physics B}
  5.  
  6. \begin{document}
  7. %\begin{frontmatter}
  8. %\title{}
  9. %\author{}
  10. %\address{}
  11. %\begin{abstract}
  12. %\end{abstract}
  13. %\end{frontmatter}
  14.  
  15. Some text
  16. \end{document}


Switching from document class article to elsarticle causes the error.

The elsarticle.cls file is in the same folder as the above tex file. I've opened it and had a look, but I have no idea what the .cls file is doing.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sat Nov 12, 2011 7:41 pm

Somewhere in the MiKTEX settings you can select whether the compiler should install packages "on the fly". Set this to "Yes". If the problem persists, you might have a major problem with your MiKTeX installation. I don't know why, but I overlooked somehow a large passage in the log file.
  1. ======================================================================
  2. miktex-pdftex.exe: Cannot start MiKTeX package manager.
  3. miktex-pdftex.exe: Data: Invalid syntax
  4.  
  5.  
  6. ======================================================================
  7. miktex-maketfm.exe: Cannot start MiKTeX package manager.
  8. miktex-maketfm.exe: Data: Invalid syntax
  9.  
  10. ======================================================================
  11. Running miktex-makemf.exe...
  12. miktex-makemf: The psyr source file could not be found.
  13.  
  14. Running hbf2gf.exe...
  15.  
  16.  
  17. hbf2gf (CJK ver. 4.8.0)
  18.  
  19.  
  20.  
  21. Couldn't find `ps.cfg'
  22.  
  23. miktex-maketfm: No creation rule for font psyr.
  24. ======================================================================

Seems so as if the system tries to rebuild some formats. Open a command line a try an initialization.
  1. initexmf --dump

If that doesn't help, I'm out of the race.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

zomgbroken
Posts: 6
Joined: Sat Oct 04, 2008 2:06 pm

Postby zomgbroken » Sun Nov 13, 2011 9:42 am

I did have install on the fly turned on.

However, I have solved the problem by installing every package in MikTeX. It took a few hours but at least it's working now.

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

pkosovan
Posts: 1
Joined: Fri Aug 30, 2013 5:30 pm

Postby pkosovan » Fri Aug 30, 2013 5:35 pm

The package that needs to be installed is texlive-symbol which contains the missing font which the elsarticle requires.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Fri Aug 30, 2013 5:45 pm

pkosovan wrote:The package that needs to be installed is texlive-symbol which contains the missing font which the elsarticle requires.

How can a TeX Live package have to be installed when the concerned TeX system is MiKTeX?
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

kkgrandi
Posts: 1
Joined: Mon Jan 20, 2014 2:09 pm

Postby kkgrandi » Mon Jan 20, 2014 2:11 pm

The "symbol" package in MiKTeX seems to remove the error.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 4 guests