1

Having this problem for a while now while using TexStudio: I write a paper in TeXstudio and use the "Build & View" button, no problems, code works and example view appears on the right side. However, as soon as I save my .tex-file, I can no longer watch the example view, nor will it create a .pdf. When I look into the folder, there isn't even a .pdf-file there. When clicking on the error it brings me to a pgflibraryfadings.code.tex file, giving me a red line at:

\pgfdeclarehorizontalshading{pgf@lib@fade@east}{100bp}
{color(0bp)=(pgftransparent!0); color(25bp)=(pgftransparent!0);
    color(75bp)=(pgftransparent!100); color(100bp)=(pgftransparent!100)}

Anyone got any ideas? This issue turned up out of nowhere and happens with literally every file I have.

error
(source: fbcdn.net)

As you can see the only error i get is about writing on the pdf, which is not opened at the time and actually does not exist: here is a picture of the folder: folder
(source: fbcdn.net)

  • 10
    I suppose you viewed the pdf with the Adobe Reader? It locks the pdf to prevent overwriting –  May 20 '18 at 16:38
  • Not really, texstudio doesnt seem to be creating a pdf file at all (anymore), i usually just watch the pdf on the right halve of texstudio after "Build and View". when i look into the folder of the file, there is no pdf there. i also tried creating a new file, saving right away and then compile, still got an error even though there shouldnt have been a pdf file to begin with since all i did was save the .tex file – Morieris May 20 '18 at 16:55
  • compile your document on the command line to check if it contains errors. – Ulrike Fischer May 20 '18 at 17:09
  • I suspect that some other file was set up as root file and so txs compile that file instead of the new one. In Option menu you can find the root options. – Sigur May 20 '18 at 19:09
  • I am not sure what either of you mean or how to do it... sorry, im quite new to this – Morieris May 21 '18 at 17:12
  • Which TeXstudio version are you using? And on what OS? – Troy Jun 27 '18 at 17:52
  • Windows 8.1, Texstudio 2.8.4 – Morieris Jun 27 '18 at 17:57
  • That's extremely old.. any reason why you're still on 2.8.4? Also try compiling on command line: Open command prompt, cd to the folder containing the problematic document.tex file and run pdflatex document.tex, do you get a pdf? Any error messages? – Troy Jun 27 '18 at 17:59
  • I installed it when i started college and never had any issues so i also never updated. How exactly do i "cd" to the folder? I don't really understand what you're asking me to do – Morieris Jun 27 '18 at 18:06
  • While the folder is open, do the keyboard shortcut Alt+D, copy the folder path with Ctrl+C. Open command prompt, type cd "<path>" including the quotes, where <path> should be replaced with the one you copied earlier. Click enter. Then type pdflatex document.tex and pressEnter. – Troy Jun 27 '18 at 18:10
  • In the meantime, can you also try updating your TeXstudio? "... never had any issues...", well now you do. – Troy Jun 27 '18 at 18:13
  • Ok weird thing just happened, i was getting syntax erros concerning not putting in the right name of the folder. I assumed it was because of a space in one of the folder-names, so i made a new folder, saved my file into that one, compiled, and now it compiles just fine... – Morieris Jun 27 '18 at 18:15
  • Is it possible that was the cause of all this mess? – Morieris Jun 27 '18 at 18:20
  • I'm guessing maybe some write access issues with that particular folder then. – Troy Jun 27 '18 at 18:23
  • 5
    I'm voting to close this question as solved in comments. – Troy Jul 05 '18 at 02:19

0 Answers0