haghish / markdoc

A literate programming package for Stata which develops dynamic documents, slides, and help files in various formats
http://haghish.com/markdoc
88 stars 31 forks source link

--smart/-S has been removed. #33

Open writerchick4398 opened 1 year ago

writerchick4398 commented 1 year ago

I just got a new laptop (Macbook Pro 13-inch, M2, 2022; macOS Ventura Version 13.2.1 (22D68)), and I’ve been trying to run my code to create a Markdoc (docx file). However, despite downloading Pandoc, I still get the following error message (redacted file pathway). I’ve tried troubleshooting every which way I know how. JPEG image

I can use the command when I add “mini,” but I want to be able to embed images into the file, and mini doesn’t seem to allow that. I get the error message with and without that added “pandoc” at the end of the command – since I did already specify the global pathway on the “weave setup.”

I was wondering if you had any idea what that error means and/or how to fix it.

I know the code is correct/works fine because it works on my old Macbook Pro that has the Intel chip.

evenssalies commented 1 year ago

No Idea, I've not been using markdoc for a year, but notice that the mini mode requires at least Stata 15.

writerchick4398 commented 1 year ago

No Idea, I've not been using markdoc for a year, but notice that the mini mode requires at least Stata 15.

I'm using Stata 17. The mini mode works mostly fine, but doesn't allow me to add images, which I need to be able to do.

haghish commented 1 year ago

I see. My website is down so the compatible Pandoc binaries that used to be installed with markdowc are no longer available. I will have to update markdoc.ado with commands compatible with the current Pandoc. Sadly, I'm very short on time... Please consider cloning the repository and pushing your updates. I will mark this as a bug. It should be very straight forward to solve this issue (simply needs updating the Pandoc command), but testing the update will require some time...

BTW, mini allows adding pictures, if you export in HTML format. Then you can use your Pandoc to convert the HTML document to Docx, as a temporary fix until markdoc is updates

writerchick4398 commented 1 year ago

Thanks so much for replying so quickly. I am not super familiar with using git for cloning and pushing updates. Would you please let me know when you post an update for the markdowc package?

I got it to work using html and mini to embed an image, thank you!