0

I´m new to Latex. I use Texmaker with Miktex and Texworks. I have to submit an article to the American Mathematical Monthly. I´d like to know, step-by-step how to download and where to save the files I need to use a new package that is not stored. Concretely, I have to use a template from:

https://www.maa.org/sites/default/files/pdf/pubs/monthly-template.tex

and from

https://www.maa.org/sites/default/files/pdf/pubs/maa-monthly.sty

I go to both urls but I don´t know what do after that. Both are the urls to which The Amercian MAthematical Monbthly send me to be able to use their template.

Thanks a lot.

  • Welcome to TeX.SE! Just open first url with a text editor and save it in a folder that you will use as "monthly-template.tex" (use save as after creating the folder). Then open the second url again with a text editor and save it as "maa-monthly.sty" in the same folder. When you will run pdflatex on the first file (from inside the TeXmaker or the TeXworks or from a command line like "pdflatex monthly-template.tex") a pdf file with the name "monthly-template.pdf" will be created as an example of the template. You can use it as a base of your work and change its contents on your needs – koleygr Oct 16 '17 at 17:49
  • 1
    @Werner I don't think the OP asks about this... She just wants to use once this template and had more general questions. I am sure that there are similar questions and it is probably a duplicate, but not of that question you mentioned – koleygr Oct 16 '17 at 19:07
  • 1
    @koleygr: The question asks where to put a .sty (that is available online) in order to compile a document, which has the same suggested solutions as in the linked duplicate. Your point (2) even references this. Of course, I'm ignoring here the "How to download?" question, as this should be straight-forward for anyone using the Internet. – Werner Oct 16 '17 at 19:20
  • Ok @Werner... but the part "to make them available to all my .tex files" (and so the whole answer of the linked question) has nothing to do with this question. This changes all the question. She just wanted to know which of the files have to change... where to save them, how to use them... etc. – koleygr Oct 16 '17 at 19:44

1 Answers1

1

Semi-Short answer:

  1. What you need to know as a beginer:

LaTeX is a typesetting system that can be considered a "programming language for pdf (and not only) production". You can use many variations of this language like pdflatex, XeLaTeX, lualatex etc. In your case the file "monthly-template-1.tex" of the first link is a file that can be compiled with pdflatex and so you dont really care at this moment on XeLaTeX or other variations.

  1. What files you need for your project.

The most of the files that you will use in your project are already installed on your PC during your MikTeX instalation. You don't have to worry of where they are stored or of their content. MikTeX will find them and use them as needed.

There are some additional files that used often. These have the extension

a. "cls" and are used in documentclass command [The first command of a latex document that determines the basic structure of the document (like book, or article or whatever... but in many cases an article or a book is already defined by TeX core and you don't need such a file)]. This file (if you don't use a standard document class) have to be stored in your project's folder (the folder that contains your main file).

b. "sty" and are often called packages that been included in your code via the command \usepackage{example} (This will require an "example.sty" file in your project folder). The "maa-monthly.sty" file that contained in your second link is such a file and called by your main document file (monthly-template-1.tex) in its second row. These files has to be included where our installation takes care to store them (if they are standard packages that comes with our installation) or we have to save them in the folder of our project. (Our project will generate many files during compilation [even if we start with just one "main" file ] and it is better to enclose it in a folder). (In case you want to use again and again a sty file in several projects, you could save it inside your texmf folred -See @AlanMunn comment below- [But if you want later to sent the project to a friend don't forget to include this sty file too])

  1. Compiling your project.

This is a procedure that is depended on your editor (if you use a GUI editor interface for your compilation and your editing). For miktex I don't know to tell you, but I suppose there is a button that you press to compile your code using pdflatex or other miktex specific command. The thing you have to know is that independed of your editor, if you run from a command line

pdflatex main.tex

where "main.tex" is your main project file (the one that contains \documentclass command) the compilation will start, and if no errors or conflicts are in the files used, a file named "main.pdf" will be produced independed of the editor you used.

Hope that helped.

koleygr
  • 20,105