I'm trying to compile some TEX files into a readable format (preferably PDF), but the problem is I've never used LaTeX before in my life. For some context: I was looking for solutions to a theoretical comp-sci book (Sipser's "Introduction to Theory of Computation") and the only complete and up-to-date version that I've found is in TEX format. Knowing absolutely nothing about TEX or anything LaTeX-related, I looked it up on the internet and as per the suggestions online downloaded the latest version of MiKTeX. Now for the last hour I've been trying to compile a single file (I've tried TeX/LaTeX and pdftex/pdflatex, nothing seems to work), but the compiler keeps encountering "Undefined control sequence" errors. First it was for the \begin tag so I deleted it. Now it's for \enumerate and I can't delete those. What should I do? Are the files corrupted or am I doing something wrong? Any help is much appreciated!

Here's the link if anyone wants to give it a try: https://github.com/ryandougherty/Introduction-to-the-Theory-of-Computation-Solutions

  • 1drv.ms/b/s!Agqxp-srwFySktsEybkLgQP2Ryg8GQ you should be able to download it here... easier that way. – Shade Apr 3 '18 at 19:38
  • Does the tex file contain a \documentclass command? If so, then you have LaTeX. Otherwise, you have plain TeX. Once you have that figured out, first try to get a small document to compile. Then work up to compiling the full document. – Teepeemm Apr 3 '18 at 19:51
  • Running latexmk Solutions.tex should do the trick – DG' Apr 3 '18 at 20:03
  • @Teepeemm -- it has to be latex. \begin and \enumerate don't exist in plain tex. but the file must begin with \documentclass or it won't work. – barbara beeton Apr 3 '18 at 20:03
  • 1
    I experience no problems if I (a) download all files in the github repository as a zip file, (b) unzip the files into a directory (likely called Introduction-to-the-Theory-of-Computation-Solutions-master, (c) switch into this directory, (d) open the driver file, which is Solutions.tex, and (e) compile this file with pdfLaTeX. All other .tex files, i.e., chapter1.tex thru chapter10.tex, are loaded by the driver file. Do not attempt to compile any of the chapter<n>.tex files directly. – Mico Apr 3 '18 at 21:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.