Pweave icon indicating copy to clipboard operation
Pweave copied to clipboard

docx format support

Open HenrikEckermann opened this issue 6 years ago • 4 comments

Hi there,

will pweave support docx output in the near future? Unfortunately, many of my colleagues use MS Word...

HenrikEckermann avatar Dec 21 '17 15:12 HenrikEckermann

You can get .docx using the pandoc output format and converting that to .docx using Pandoc https://pandoc.org/. I have no plans to add direct .docx output, but I will accept a pull request implementing something like pandoc2docx (e.g. similar to current pandoc2html)

mpastell avatar Dec 21 '17 18:12 mpastell

Thanks @mpastell! I can unfortunately not yet contribute since I cannot write that code yet. Feel free to close this issue. I will try out Pweave. Thanks for that tool. I have been looking forward for such a tool a long time since I liked the workflow in Rmarkdown but I prefer Python. Do you know: Will it maybe be possible to also include R chunks? As far as I know Rmarkdown will soon support better Python chunks (currently the objects get lost in between chunks...)

Edit: I know this is unrelated but do you maybe know how to enable latex synthax highlighting? It seems only to work for .md documents and also the preview (I do it with markdown-preview-plus) does not work for .pmd files. I guess for previewing you first convert to pdf or HTML and then look at the file in Atom righ?

For what I tested so far: I think Pweave in combination with hydrogen is my new favorite tool. I created code snippets so that I can very quickly insert code chunks with cursor in the middle . This works just brilliant and looks so nice in Atom. Thumbs up!

Edit 2: I weaved my first document! It looks very nice in html. One things that seems weird though: I used the function 'df.describe()' and also 'df.head()' and the dataframes that then gets printed out look fine but not the columns on the sides. Here the content in the cells is too far leftaligned or rightaigned, respectively. Is this an open issue or intended? maybe I need to use different options for weaving. I just used pweave file.pmd

HenrikEckermann avatar Dec 21 '17 18:12 HenrikEckermann

Multiple kernels/file are not currently supported, they could be with some effort. I will not be able to work on it myself in near future.

You could probably make a request for markdown-preview-plus to support pmd (without weaving the code). Latex syntax highlighting for .texw should work if you have a package that highlight .texproperly.

Incorrectly aligned columns sounds like a bug and please open another issue for it, preferably with a minimal working example to reproduce the issue.

mpastell avatar Dec 21 '17 20:12 mpastell

@mpastell : Can I use YAML header and bibtex citations? I weaved now a .pmd file but the yaml header is not recognized. I screened the documentation but could not find a solution. If yaml and bibtex citation is not supported, is there maybe an easy workaround using pandoc?

HenrikEckermann avatar Dec 23 '17 17:12 HenrikEckermann