Comments (15)
Could you describe which format you tried to export?
Also, could you show what line is appeared in "Message" buffer
when export is done?
Something like
Running pandoc with args: (-f org -t markdown -o /Users/kawabata/test.md
--parse-raw --mathjax --standalone /Users/hogehoge/test.tmp956MeQ.org)
should be appeared in "Message" buffer.
On Tue, Aug 25, 2015 at 6:39 AM, stvharman [email protected] wrote:
export via pandoc inserts "file:" whenever there is a link to a file. For
examplefile:images/tree.jpg
This creates problems in an import to pelican and results in broken links.
If this phrase is left out, then there is no problem.When I try pandoc from command line, it does not insert "file:". Would it
be possible to remove this behavior from ox-pandoc.—
Reply to this email directly or view it on GitHub
#8.
川幡 太一 (KAWABATA, Taichi) E-mail: [email protected]
from ox-pandoc.
Thanks. Mine is exactly the same as you posted. The only difference is that I am exporting to html
If I use ox-pandoc, I get
if I use pandoc from the command line, I get
<img src="../images/figure.jpg"
The second one is what I want.
from ox-pandoc.
I can confirm this error. I'm exporting from org to latex/pdf. Is there any workaround?
from ox-pandoc.
Is this problem coming from pandoc or ox-pandoc? Can we expect a fix soon?
from ox-pandoc.
I could not grasp exactly what would be the problem.
The argument passwd to "pandoc" command is displayed to Messages buffer,
so I think by reproducing the problem with standalone "pandoc" command with
arguments, I think you could identify where the problem is.
If you execute the pandoc command by yourself and the problem is reproduced,
then this is a problem of "pandoc" command.
If your desired command arguments and what "ox-pandoc" passed to
"pandoc" command differ, then it may be a problem of "ox-pandoc".
In that case, please send me an ideal arguments that should be passed to
"pandoc" command from "ox-pandoc", to see if it can be fixed.
Regards,
from ox-pandoc.
The error message is
l.106 \includegraphics{file:./images/test.png}
pandoc: Could not find image file:./images/test.png', skipping...
! Package pdftex.def Error: File file:./images/test.png' not found.
but file:
shouldn't be part of the path, guess it's coming from org-mode?
the image has been included with [[.//images/test.png]]
I'm I doing some wrong?
from ox-pandoc.
I think that this part is not related to ox-pandoc.
As I've test with simple file, I got the output of "\includegraphics{./test.png}" instead of
"\includegraphics{file:./test.png}" where the original text is "[[./test.png]]".
Could you check the version of pandoc you are using?
I'm currently using 1.13.2.
from ox-pandoc.
pandoc 1.15.1.1
org-mode 8.3.1
from ox-pandoc.
I've updated to 1.15. When I convert the following text to latex format
with `org-pandoc-export-to-latex',
#+TITLE: test
* head
this is [[img.png]] test.
then the output is as follows:
\begin{document}
\maketitle
\section{head}\label{head}
this is \includegraphics{img.png} test.
\end{document}
I still don't quite understand why "file:' is inserted.
Could you try following command to see if it occurs without ox-pandoc?
pandoc -f org -t latex -o ~/test.tex --parse-raw --standalone ~/test.org
from ox-pandoc.
Suddenly it works and I don't know why...
Is it possible to add a caption to an image?
from ox-pandoc.
something like this?
http://orgmode.org/manual/Images-and-tables.html
from ox-pandoc.
Ok, I had #+CAPTION:
after the image, which didn't work.
How is it possible to cite the image: [@fig:name]
doesn't seem to do the trick?
from ox-pandoc.
It seems your problem concerns with the contents of org document,
and that the problem is about "pandoc", but not "ox-pandoc".
`ox-pandoc' is merely a wrapper of "pandoc" software, and it does not
interfere with the contents (unless you specify preprocessor), including
bibliographic citations.
Could you check to see if
you couldn't reproduce the problem with plain "pandoc" command?
e.g.
pandoc -f org -t latex -o ~/test.tex --parse-raw --standalone ~/test.org
Regards,
from ox-pandoc.
Using the plain "pandoc" command I've found that
#+CAPTION: insert figure caption here
#+NAME: fig:1
#+LABEL: fig:1
[[img.png]]
does create
\begin{figure}[htbp]
\centering
\includegraphics{img.png}
\caption{insert figure caption here}
\end{figure}
and the reference [@fig:1]
gets correctly translated to fig.~\ref{fig:1}
(using pandoc-citeproc), but it doesn't work because \label{fig:1}
is missing in the Latex output? Where is the problem org-mode or pandoc?
edit: exporting with standard org-mode export to latex gives:
\caption{\label{fig:orgparagraph1} insert figure caption here}
still not the right label, but at least it is in the latex code
from ox-pandoc.
coming back to the real issue, which is solved now, I know where it comes from.
by adding ./
to e.g. [[./path/img.png]]
this will be translated to \includegraphics{fig:./path/img.png}', whereas just using
[[path/img.png]]is fine and leads to
\includegraphics{path/img.png}`.
this kind of reference [[./path/img.png]]
is however needed for the latex org-exporter
I think this issue can be closed.
from ox-pandoc.
Related Issues (20)
- Is this currently developed? HOT 5
- tmp files not being removed
- Is there a way I can disable Pandoc 1.x warnings?
- Error when exporting: wrong-type-argument stringp nil HOT 2
- Package cl is deprecated in Emacs-27 HOT 1
- Option to not export "title" and "author" and export front matter HOT 2
- Unable to modify org-pandoc-menu-entry HOT 2
- Issue with bibliography while exporting with org mode 9.5 HOT 11
- [INFO] New source repository for MELPA builds, please report issues there
- FR: Support table alignment cookies HOT 1
- bug: ox-pandoc, #+latex and tables HOT 1
- Export raw HTML from markdown HOT 1
- Unable to load ox-pandoc HOT 1
- SVG figures are exported without figure number and reference to context HOT 2
- Document is not exported when using Emacs in batch-mode via --batch HOT 3
- error in process sentinel: user-error: No such file: /home/user/.config/emacs/.local/straight/repos/ox-pandoc/doc.html - wrong location prevents opening the file after export HOT 1
- Opening .html after export not working HOT 1
- Directories with spaces in directories cause failure in export HOT 1
- Warning (ox-pandoc): Pandoc version number can not be retrieved.
- Org multicolumn syntax is not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ox-pandoc.