Home Comments Thread
New Thread

8 Comments

giscus-bot giscus-bot 2022-12-16 23:07:26
Guest *Michael Friendly* @ 2013-06-19 16:34:36 originally posted:

I tried using pandoc() on a .md file, using the embedded config below to convert to latex.

I hoped I would get a .tex file, or, even better, a .Rnw file I could
work with from there. Instead, I got a .pdf file that contained no
figures. Are there any options I missed?

!--pandoc
s:
number-sections:

format: html
mathjax:

format: latex
latex-engine: pdflatex
-->

yihui yihui 2022-12-16 23:07:33

It is not possible to produce an Rnw file from md. You can only get a tex file. To do that, you need to specify the output option, e.g.

format: latex
o: foo.tex

Originally posted on 2013-06-20 00:19:00

giscus-bot giscus-bot 2022-12-16 23:07:27
Guest *minglei* @ 2013-10-17 10:03:35 originally posted:

one typo:

--bibliography=paper1.bib --bibliography=paper3.bib --bibliography=paper3.bib

yihui yihui 2022-12-16 23:07:34

fixed; thanks! please also see: http://yihui.name/en/2013/06/fix-typo-in-documentation/ :)

Originally posted on 2013-10-19 21:27:49

giscus-bot giscus-bot 2022-12-16 23:07:27
Guest *Alec Kinnear* @ 2013-11-10 10:09:56 originally posted:

We have an unlimited version of Pandoc (with some tweaks for better HTML/Markdown conversion) online: http://foliovision.com/seo-tools/pandoc-online Great for quick tests and when on the road. We use it internally all the time.

yihui yihui 2022-12-16 23:07:35

Sorry, I do not see how your version is better than Pandoc, and I do not see the limit of the number of characters in the Pandoc online demo, either. Your statement about that limit is probably false.

BTW, I feel it is a little bit unfair for you to claim Pandoc is less capable than your version, when you developed your version based on Pandoc without releasing the source code and a detailed list of comparison.

Originally posted on 2013-11-25 04:41:32

giscus-bot giscus-bot 2022-12-16 23:07:36
Guest *Alec Kinnear* @ 2013-11-26 00:35:29 originally posted:

To see how our version is better than Pandoc, please try some conversions back and forth between Textile and Markdown for instance. As we moved from Basecamp (Textile) to TeamworkPM (Markdown) we needed that pair to work perfectly.

What part of "Please limit input to 1000 characters or less." is false? Graphic is from: http://johnmacfarlane.net/pandoc/try/

We are providing a service for free. We are not interested in replacing Pandoc for local installations or undertaking its maintenance.

Not quite sure why we should face slander and reproach for offering our internal tools for free to the community.

I hope this answers your questions.

yihui yihui 2022-12-16 23:07:36

I just checked the HTML source, and the textarea does have a limit of 3000 characters. I have also attached a screenshot of 3000 chars. The error message from the online demo is false, and it is actually not your problem. When I read your page, tested more than 1000 characters, and it worked, so I thought there was something wrong. Sorry about that. For Pandoc as a personal project, I think it makes sense to limit the number of characters for the online demo. On one hand, it is just a demo to give you a feel instead of a service; on the other, the author may have limited resource and he has no obligation to put together more of his own resources for other people to use. For me, I just download it and use it locally. I do not want to upload my real data to a "cloud" that I have never heard of.

To clarify, I did not mean slander and reproach. If there was a misunderstanding, I apologize. But I do think you need to provide more details to support your claim that your modified version is better, and Pandoc is "partially broken" (broken in what sense?). It gives the reader an impression that your version is absolutely superior without realizing that Pandoc has also done a huge amount of work. Isn't it a good thing to see what you want are included in Pandoc directly? Have you contacted the author? Did he refuse to listen? If not, I'd say it is a better idea to collaborate than to go on your own path. If you believe something is broken, filing bug reports should be easier than starting hacking at it. Fixing bugs will benefit all people.

I do not mean you should make your version open source. That is totally up to you. I'll just be excited if people can collaborate to make the tools even better.

Originally posted on 2013-11-26 18:03:51

giscus-bot giscus-bot 2022-12-16 23:07:37
Guest *Alec Kinnear* @ 2013-11-29 03:33:29 originally posted:

Hi Yihui,

Interesting that it actually breaks at 3000 character and not the announced 1000. Still far too small.

We are providing a 100% free and unlimited Pandoc conversion service which is permanently online and maintained (and yes tools like this break if they are not maintained). Still not sure how we became the bad guys here.

We are not interested in maintaining or taking over the Pandoc project but are helping as we can, by making sure that a working and tweaked copy is online all the time for people all over the world to use. It's not a cloud service, requiring an account or identification but just a script which runs in real time delivering converted text (not even documents).

Personally I think trying to maintain Pandoc on different computers is a huge pain in the butt which is why I had our team create this, so that everyone in Foliovision and the rest of the wide world could run conversions without dealing with the hassles of installing and maintaining Pandoc.

yihui yihui 2022-12-16 23:07:38

I understand the good intention, and I appreciate your generosity. All I wanted to say is, you may talk to the Pandoc author(s) to make both parties in a win-win situation, if you believe Pandoc is broken in some sense. You do not have to write code or maintain the whole package, but your feedback will be highly appreciated if it pushes Pandoc to a better direction. You do not lose anything if your suggestions are turned down, but wouldn't it be great if the things that you wanted just end up in the official Pandoc distribution some day? In short, I suggest "talk before fragmentation".

To clarify again, I did not say you were the bad guys. I'm not the judge in any sense. I was just wishing people could combine forces to make one thing better. You certainly have your freedom choosing not to do so, and tweaking Pandoc without letting other people know what you really did.

Originally posted on 2013-11-29 05:58:46

giscus-bot giscus-bot 2022-12-16 23:07:28
访客 *weiyun* @ 2013-11-27 01:58:15 写道:

老大,可以说中文吧!!想问问pandoc()不能把Rnw转化为docx格式??
如果不可以,如何实现Rnw转化为docx格式,还是Rnw只能生成pdf,html
能不能顺便介绍下markdown,sweave,latex,knitr之间的关系,我怎么老是理不清

yihui yihui 2022-12-16 23:07:39

Rnw是LaTeX和R的混合体,建议你放弃LaTeX转Word的想法。LaTeX的天然输出是PDF,建议放弃HTML的想法。

https://github.com/yihui/r-ninja/blob/master/11-auto-report.md

——原帖发布于 2013-11-30 02:57:58

giscus-bot giscus-bot 2022-12-16 23:07:29
Guest *Ken K.* @ 2014-01-07 01:20:36 originally posted:

It is really true that there's no better way to get a nice-looking PDF out a markdown file? Shouldn't there be? Could there not be a way to do this wholly within R?

yihui yihui 2022-12-16 23:07:40

I think Pandoc is the best way to go. "Wholly within R" basically means wrappers for Pandoc in R.

Originally posted on 2014-01-10 03:43:56

giscus-bot giscus-bot 2022-12-16 23:07:30
Guest *Eric* @ 2014-01-21 20:58:47 originally posted:

@yihui:disqus, what is the correct command to get a latex file. As you note, pandoc('[foo.md](http://foo.md)', format='latex') produces a pdf. How to get the output to be .tex?

yihui yihui 2022-12-16 23:07:41

You have to specify a field "o: foo.tex" in the config.

Originally posted on 2014-01-30 02:20:42

giscus-bot giscus-bot 2022-12-16 23:07:31
Guest *Ksenia* @ 2014-02-17 09:38:29 originally posted:

Hi Yihui. Thank you for an amazing work. I have a trouble converting an .md file to PDF correctly. I searched over the web and struggled for days now. The problem is, when I run a pandoc command on the .md file produced by knitr2html command from my .Rmd, the resulted pdf (and original tex) contains no figures : 'pandoc('reportv0.0.md', format='latex')'. I tried many variations but nothing works.

giscus-bot giscus-bot 2022-12-16 23:07:32
Guest *mazatlan* @ 2014-04-08 15:58:18 originally posted:

Hi Yihui,
I am converting a markdown file to microsoft word format but the graphics and tables are not being transferred, only the text. Is there anything else that I need to do besides pandoc("myfile.md, "mywordfile.docx")?

Sign in to join the discussion

Sign in with GitHub