I want to install the class found at this git repository: LaTeX homework
I see some questions asked in the past on installing packages in LaTeX but this sounds like a different kind of file than a .cls file. My impression is that packages come in either a .ins or a .dtx file which I would assume you don't use the same way as a .cls file.
I believe I'm using TeXlive, and although I often compile through Sublime Text 2 I also have TeXWorks which can often be simpler to install packages I don't already have. A couple months ago I installed the latest version of TeXlive, though in my local directories (C:/users/Me/...
) I have no folder for texlive2015. I have a folder, /.texlive2013
and another one, /TeXWorks
. In my shared directories (C:/texlive/...
) I do have a folder, 2015
. My operating system is Windows 10.
In trying to figure this out on my own I've seen reference to a "texmf" structure, and I've tried googling and learning about it but I'm still not getting a very clear picture of it since my directories don't seem to make a lot of what I see in those pages. What I do have are things like C:/texlive/2015/texmf-dist/
and C:/users/Me/.texlive2013/texmf-config
.
So anyway, back to my question, can anyone tell me how I go about installing the class file?
[Update: Due to a recommendation in the comments I followed another question and made the directory C:/Users/Me/texlive/texmf/tex/latex/commonstuff/
and put the .cls file in there. Then I made the minimal example .tex file as follows
\documentclass{homework}
\begin{document}
Text
\end{document}
and in Sublime Text 2 it gave me the error 4: LaTeX Error: Missing \begin{document}. [<]
. In TeXWorks it gave basically the same error.]
.sty
or.cls
files, to make them available to all my.tex
files?C:/users/Me/texmf/tex/latex/commonstuff
and put the file in there. I tried compiling and it nearly worked except that I got the error4: LaTeX Error: Missing \begin{document}. [<]
even though I have the begin and end document lines. When I try to run the same thing in TeXWorks it says basically the same thing.article
so maybe it's the latter.<Your home folder>/texmf/tex/latex/local/
. This is known as your local texmf tree, which is distinct from any other folders withtexmf
in their names. LaTeX should find any file you put in your local tree. You can debug this most easily if you run pdflatex in the terminal (not in an editor) and then read the .log file.