markx icon indicating copy to clipboard operation
markx copied to clipboard

Scholarly Markdown

Open yoavram opened this issue 12 years ago • 5 comments

  1. What about figures? Committing them as well? Probably need a button to upload images.
  2. What about tables? Perhaps committing CSV files? Or importing CSV to the markdown?
  3. Equations are easy with LaTeX and MathJax, but what about numbered equations? Any clue how these work?

yoavram avatar Jan 08 '13 18:01 yoavram

Yeah, we need a button to upload. and probably a bit of code to insert figures via thumbnails (from a gallery). I'd say we keep commits at the coarse level. Assuming you edit some text and upload a figure or two, then commit, that single commit captures all 3. If you upload another fig and commit, it captures just that new fig. For now let's not allow people to do more fine grained commits (if they can and know how to do that perhaps they should just use git directly).

Tables we upload as csv. Then we can either programmatically format them to markdown (pandoc provides various options).

Equations are easy. Just regular LaTeX equations and we parse those through Mathjax. we can use the js library for html rendering and pandoc for pdf rendering.

On Tuesday, January 8, 2013 at 10:49 AM, Yoav Ram wrote:

What about figures? Committing them as well? Probably need a button to upload images. What about tables? Perhaps committing CSV files? Or importing CSV to the markdown?
Equations are easy with LaTeX and MathJax, but what about numbered equations? Any clue how these work?

— Reply to this email directly or view it on GitHub (https://github.com/yoavram/markx/issues/14).

karthik avatar Jan 08 '13 19:01 karthik

What about numbered equations, though? You know how to make these?

yoavram avatar Jan 08 '13 19:01 yoavram

Good question. AFAIK it is not possible with markdown. Easy with LaTeX though. I'd say we keep this in the back burner as a feature to address later. It could be something we hack in. Like do a regex on the equation syntax and number them. Reordering (via some js/css) would move them around in the document. Seems like a nice but not critical feature for now.

On Tuesday, January 8, 2013 at 11:15 AM, Yoav Ram wrote:

What about numbered equations, though? You know how to make these?

— Reply to this email directly or view it on GitHub (https://github.com/yoavram/markx/issues/14#issuecomment-12012360).

karthik avatar Jan 09 '13 18:01 karthik

OK, I found this: https://groups.google.com/forum/#!topic/knitr/OMvT03PtGPM which has some discussion on numbering equations in Markdown. See example here: https://gist.github.com/4495940 It's not exactly what we usually want when we want numbered equations, but it is half way there.

yoavram avatar Jan 09 '13 19:01 yoavram

Nice! That works.

On Wednesday, January 9, 2013 at 11:12 AM, Yoav Ram wrote:

OK, I found this: https://groups.google.com/forum/#!topic/knitr/OMvT03PtGPM which has some discussion on numbering equations in Markdown. See example here: https://gist.github.com/4495940 It's not exactly what we usually want when we want numbered equations, but it is half way there.

— Reply to this email directly or view it on GitHub (https://github.com/yoavram/markx/issues/14#issuecomment-12061404).

karthik avatar Jan 09 '13 20:01 karthik