-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows and texlive error missing article.cls #1151
Comments
I would try, first, running mktexlsr then if that doesn't help, uninstall and reinstall texlive. A google search for similar problems shows that several people fixed +++ stephenll [Feb 10 14 09:22 ]:
|
OK, I see your setup works when you run pdflatex yourself. Try specifying the full path to pdflatex:
If this works, then the problem is with paths. By default pandoc will |
I tried searching for awhile and I could only find one related error about 5 months ago on this issue log. They were getting a different but similar error messge. I tried re-installing and I just ran mktexlsr and reopened my command window after that. That didn't work. I can see the texlive path in my path set in the environment settings. I tried specifying the full path to pdflatex and that did not work. I can compile using pdflatex from that same command line. This is the actual message I received:
|
Not sure what to suggest. You could try asking on the texlive mailing |
No responses from tex stackexchange. But I did get a colleague of mine try it on his win 7 x64 computer and he too received the same error message about article.cls missing. I don't think I have a choice but to swtich to MikTex. |
I have the same error with a Windows 7 x64 computer, pandoc 1.12.3 and TexLive 2013. |
Just so I can confirm a hunch, can you guys list both your miktex and texlive versions? |
I was using the latest and greatest version of both. I did a fresh install of both. TexLive: 2013 and whatever the latest version of MikTex as of 10 days of ago. I also tried this on another win 7 x74 laptop and had the same issue with TexLive and Pandoc. |
I haven't tried MikTex yet, but my Texlive version was a web-installed 2013. If it does, perhaps it uses an older version? I have Pandoc 1.12.3 now, but can't remember having this problem in the past. Perhaps others could try to reproduce this with other versions? The setup is very simple:
|
That is the command I am using too. Same version of pandoc. If I first convert from markdown to tex, then run the pdflatex command myself it works. |
Well, this rules out my initial working theory, which is |
Well, it could have been some problem in this area. I also checked
|
@jgm John, it looks like the I think this is the most likely candidate for the TeXLive problem. A little Google search shows that |
Wow, great! Thanks for tracking that down. Do you have any +++ Tim Lin [Feb 21 14 16:07 ]:
|
@jgm Yes, AFAIK they have entirely different mechanisms for managing texmf paths, and MiKTeX's kpathsea is just a compatibility layer for its own system (that's how it can pull packages on-the-fly, etc). Hard to know for sure though, haven't used MiKTeX (or Windows for work at all) since undergrad. |
Thank you all for these efforts. It would be great if the problem could be resolved like this. |
Same here. Thank you. I know others that this will eventually help. RStudio is switching to using pandoc for their markdown translation engine soon. In my circles, anyone who is using RStudio on windows is using texlive and not miktex. I can setup clean win 7 environments to test any changes. Not sure if that would help this if and when ready. |
I don't have the right setup to test this change, so please test it on your Windows/texlive systems, if you are able to compile pandoc from source. |
Ok, I will try to do it and post the results. |
I have tested it and I find it doesn't work (commit 19b127b):
|
Woah that's a crazy error message. Are you able to reproduce this message if you compile yourself the latest stable version of Pandoc? |
Yes, this was done by manually modifying src/Text/Pandoc/PDF.hs and pandoc.cabal files in the last stable release's (1.12.3.3) tar ball. |
Just to be clear: does it work if you remove the modification and compile again? |
this is what I get with the stable release (1.12.3.3) without any modification (install via cabal):
|
Hmm.. maybe Miktex doesn't like trailing separators after all. Do you currently have anything set for your |
If you don't have anything set, try changing line 157 of let texinputs = maybe (tmpDir ++ sep) ((tmpDir ++ sep) ++) to the following line let texinputs = maybe (tmpDir) ((tmpDir ++ sep) ++) |
With the suggested change, this is what I got:
|
Hmm that is indeed very strange. I've just setup my only Windows computer with Miktex and Pandoc 19b127b and it builds the pdf file perfectly, even when I set my command prompt to non-UTF8/ASCII encodings. Did pandoc successfully produce the |
I was using TexLive, and there was no tex2pdf.3156 directory |
My apologies, it was getting late here and I simply forgot which distro has the problem in the first place. Now that I've switched over to TexLive, I'm able to reproduce this. I'll look into it when I'm more awake. |
Oh... my... what ... So with TexLive on Windows, this give the above error message:
whereas this works perfectly
I should have guessed. Running kpsewhich actually shows:
Seems like TeXLive wants the forward-slash separator everywhere, whereas MikTex uses the back-slash like everyone else. |
After more testing, I can conclude that MikTeX understand both the |
Thanks eVITAERC, that's really a great catch |
Thanks for tracking this down! If you could test this latest version with both miktex and texlive, that would be great. |
works still for MikTeX which is hard to confuse, but not enough for TeXLive because the
Idea: bring back By the way, I've noticed the |
I've also noticed that this approach means that Pandoc won't properly clean up the tempDir after a successful build. Might want to remedy that somehow as well. |
This is needed for texlive. Note that the / is used only in the body of withTempDir, so when the directory is deleted, the original separators will be used. See #1151.
Try the latest. |
Fixes compile error on Windows for 5040f3e Reverted back to canonical file separators </> in all places except for arguments to the LaTeX builder and in TEXINPUTS See jgm#1151. Note: Temporary directories still fail to be removed in Windows due to call of ByteString.Lazy.readFile creating process ownership of the compiled pdf file.
There's a small typo in function declaration that prevents compiling, but otherwise it works great! Compiled correctly for both MikTeX and TeXLive. Please consider the pull request, which is also tested, and which I hope improves the localization of the problem in the code. There's a new separate issue where the use of |
Thanks John, for promptly resolving this. |
+++ Tim Lin [Mar 10 14 16:32 ]:
Thanks! I've merged your patch. Can you open a new issue for the |
@jgm The new issue is opened. Thanks very much for the responsiveness. For everyone originally involved in this issue, please report on whether it resolves your TeXLive rendering problem. I don't personally have a stake in rendering latex on Windows, so it's still possible that I missed something. |
I confirm that the last updated pandoc with the patch merged from Tim Lin now works perfectly with TexLive on Windows. |
Hi, I also managed to test the latest version of pandoc in the repository now. I used pandoc 1.12.3.3 on Windows 7 Professional x64, and Texlive 2013. There seemed to be no problem anymore, apart of the problem that folders which are temporarily created during conversion to PDF are not removed right now (these folders have names like: I did following tests:
Both commands gave me a correct PDF. |
Is there a binary I can test? Thx Stephen
|
The issue about temp directories is known: see #1192. |
On two different machines, win 8.1 and win 7 x64 with the latest and greatest pandoc and texlive, I get an error 43 that article.cls is missing when I try to convert a markdown document to pdf.
If I first convert to tex first then manually run pdflatex everything works.
If I switch to miktex everything works. For several reasons I would like to keep using texlive. The program I am using automatically invokes pandoc and I can not separate out convert from markdown to tex then tex to pdf.
Someone thought maybe my username was long. It is under 8 characters.
The text was updated successfully, but these errors were encountered: