-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
! LaTeX Error: Missing \begin{document} #4017
Comments
Why did you try to build such an old version? Version 2.0 was released this week. |
This could be a problem with the templates. |
@agusmba, tried pandoc 2.0, it failed the same.
|
@jgm , It looks no problem with "pandoc -D latex", and "echo "hi" | pandoc -t latex -s", but I am not sure for latex is new to me. What does pandoc -D latex do? Does it spit out a latex template?
What about echo "hi" | pandoc -t latex -s? does this give you a full latex document with a header and \begin{document}?
|
@jgm
|
See http://pandoc.org/MANUAL.html for a few explanations... Can you post the exact output of Also, in |
Example 13. From markdown to PDF: |
This part is revealing:
This seems to indicate that you have some HTML in the intermediate latex file. This could perhaps be a template issue. Hard to say, though -- you didn't include the top part of the intermediate latex file when you quoted output from the run with PS. Use this format to quote code:
Also, do you happen to have a |
Oh, also, can you quote the first 10 lines or so of your file |
No such a dirctory of ``~/.pandoc/templates```
The log of the above line code is linked here. pandoc.org/demo/MANUAL.txt starts with the follows:
|
OK, the intermediate latex file looks fine. What's puzzling, then, is why you're getting this error:
I suspect something is messed up in your latex distribution. PS. The log suggests that maybe it comes from |
@jgm yours last comment saved me days. Thanks all of you. Fixed as the follows. 1 install texlive following the instrction at link TeX Live - Quick install
|
Hi, pandoc test.tex -f latex -t html -s -o test.html --mathjax=https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML -H mathjax-header-include.txt with in the test.tex file\begin{abstract} The above abstract is missing in the output html file. |
@Saravanan407 Please use the pandoc-discuss group for this sort of question, this is not an issue report or feature request so it doesn't need tracking in the issue tracker. Even more, it has nothing to do with this particular old resolved issue. |
Tried whatever I could, however I couldn't figure it out.
Tried example 13. From markdown to PDF: https://pandoc.org/demos.html#examples. Here is the log:
Can anyone help?
The text was updated successfully, but these errors were encountered: