I am almost a complete beginner in this area of document-writing, so I have a few questions.

In a period of less than a day I downloaded MiKTeX 2.9 and TeXstudio and wrote a document with some mathematical formulae but also I am facing some problems.

I do it like this:

1) I am writing a text file in Notepad

2) Then I save the file as .txt file with given name ch.tex

3) Then I open that file in either TeXstudio or MiKTeX and, if in MiKTeX then I press the green button that has "Typeset" function and when I press that button after a few moments a new window appears in which I see how my document will look in .pdf format when opened in Adobe Acrobat Reader, and if in TeXstudio I press also green button that has "Compile" function

4) After that, I save my file in .pdf format

But, after all of that, sometimes my document does not want to be opened in Adobe Acrobat Reader

Am I doing something completely wrong?

Is there any faster and safer and better way to write a document than this way of mine?

Why sometimes documents, after being written and saved as .txt file, and then opened and "Typesetted" or "Compiled" and then saved as a .pdf file, do not want to be opened in Adobe Acrobat Reader but they want to be opened (after pressing the "Typeset button") in MiKTeX window where it is shown how they will look like in Adobe Acrobat Reader?

  • 2
    Welcome to TeX.SE. You mention you've installed TeXstudio (as well as MikTeX). If so, why do you edit files in Notepad instead of directly in TeXstudio? (If nothing else, by skipping this step, you'll save yourself the hassle of having to override the default file name extension .txt and having to choose .tex instead.) By the way, have you checked that the full file name is maybe ch.tex.txt? If so, that would easily explain why the file isn't being compiled... – Mico Oct 21 '17 at 6:59
  • @Mico It is being compiled, but it is not always being able to be opened in AAR. – user145076 Oct 21 '17 at 7:06
  • 1
    @AntoinedePaladin Just to clarify, after compiling your .tex file, the ouput .pdf file cannot be opened in AAR?If and when the pdf file does not open, is there any error message and what is it? – Troy Oct 21 '17 at 7:26
  • 2
    Please be more specific as to the context of the claim that "sometimes my [pdf] document does not want to be opened". Do the times the tex file doesn't compile correctly maybe correspond to the times the pdf file cannot be opened successfully in Acrobat Reader? – Mico Oct 21 '17 at 7:26
  • 3
    You shouldn't do step 4. The compilation already creates a pdf. It is in your document folder. Don't overwrite it by saving another file on top of it. (Step 1 and 2 are unnecessary. You can write your files directly in texstudio or texworks.) – Ulrike Fischer Oct 21 '17 at 9:23

Your Answer

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