-
-
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
Pandoc failing to convert valid xelatex file #4698
Comments
It seems to be choking on this: {\normalsize{\skt ॐ कं क्षं कं कार्त्तिकेयाय फट् ॥\\
ॐ श्रीं ह्रीं क्लीम् ऐं सौं शरवनभवाय नमः ॥\\
ॐ वचद्भुवे नमः ॥\\
ॐ भुवे नमः स्वाहा ॥\\
ॐ षं षण्मुखाय नमः ॥\\
ॐ श्रीम् ए इ उ न श्रीं रीं कुमाराय नमः ॥
}\\ It looks like the |
Thank you! It was indeed so. However I found a separate problem:
is converted to
rather than
. |
This second problem isn't really a bug either.
In LaTeX you can leave off the image extension.
Pandoc isn't just going to guess what it should be.
However, you can use the --default-image-extension
option if you want these to all default to, say, jpg.
Vishvas Vasuki विश्वासः <notifications@github.com>
writes:
… Thank you! It was indeed so.
However I found a separate problem:
Images such as :
```
\graphicspath{ {images/} }
...
\includegraphics[width=0.5\textwidth]{kaumara_magic_square}
```
is converted to
```
<img src="kaumara_magic_square" alt="The magic square Kaumāra-yantra" style="width:50.0%" />
```
rather than
```
<img src="images/kaumara_magic_square.jpg" alt="The magic square Kaumāra-yantra" style="width:50.0%" />
```
.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#4698 (comment)
|
Thanks for the tip - that solves the image extension problem! However, it doesn't address pandoc ignoring: |
You don't mention your pandoc version. In recent pandoc, So,
However, there's still a small issue. I noticed that pandoc chokes on the spaces inside the argument of
I can fix this. |
When running
pandoc --from latex --pdf-engine=xelatex --to html5 skanda.tex -o skanda.tex.html
upon this file https://github.com/hindutva/tex-files/blob/master/skanda/skanda.tex (on whichxelatex skanda.tex
works perfectly, assuming that the siddhanta font is installed), I get the following error:The text was updated successfully, but these errors were encountered: