I am trying to use a particular template (given in the 2nd link below). Before I apply this to my own Tex file for my paper, I'd like to learn how to actually compile the given template. I am having trouble with the following steps:
1) For file prepared in AMS-LATEX format: Download the class file “AIMS.cls” from the following link and place it to the local folder where your tex file resides. http://aimsciences.org/journals/tex-sample/AIMS.cls.
Question: The link isn't a download but rather leads to a page with some code. What exactly should I be adding to my folder and how do I do this?
2) For file prepared in AMS-LATEX format: Download the AMS-LATEX template by clicking the following link and use it as a template to prepare your tex file. http://aimsciences.org/journals/tex-sample/Template_1.tex
How do I put these two together to compile the corresponding PDF for the given template? I've never done this before. I've tried (using TeXworks) to (i) compile the Template_1.tex file, (ii) insert the .cls code into a blank template and then compile, and (iii) insert the .cls code into the Template_1.tex code (does it matter where I insert the code?).
In each case, I receive an error.
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9) entering extended mode (C:/Users/Joseph/Desktop/cls.tex LaTeX2e <2015/10/01> patch level 2 Babel <3.9m> and hyphenation patterns for 69 languages loaded.LaTeX Warning: You have requested package
', but the package providesdcds'.! Use of @ doesn't match its definition. @tempa#1#2@nil->\edef @classname{#1}
l.14 \expandafter@tempa@currnamestack{}{}{}@nil
? "
I see that part of the problem is that I should not use class AMS article nor \amsart but use class \dcds, so how should I make this change in the template? Is it as simple as replacing every occurrence of "amsart" with "dcds"?
.clsfile. (how you use a specific class in lyx I don't know, I don't have lyx). – David Carlisle May 17 '17 at 08:07\documentclass{....}and in your case it should be\documentclass{AIMS}but as I say I have no idea if it is possible to make lyx write such a file. – David Carlisle May 17 '17 at 08:26amsartbut classdcds. – Schweinebacke May 17 '17 at 13:07layoutfile, if you want to use it with LyX. To test the template file either import it into LyX or open it with Texworks after installation of the class (or copying to the same directory as theTemplate_1.texfile). You can runpdflatexin Texworks. You will indeed get warnings (see note above). – Schweinebacke May 17 '17 at 20:11