coauthor icon indicating copy to clipboard operation
coauthor copied to clipboard

Suggestion: TikZ?

Open tomhull0 opened this issue 6 years ago • 2 comments

Just a suggestion: Would it be hard or easy to make the Coauthor LaTeX functionality recognize TikZ? If it's easy, it'd be worth it. If it's hard, never mind.

Example: $$ \begin{tikzpicture} \draw [<->,thick, cyan] (0,0) to [out=90,in=180] (1,1) to [out=0,in=180] (2.5,0) to [out=0,in=-135] (4,1) ; \draw[help lines] (0,0) grid (4,1); \end{tikzpicture} $$

tomhull0 avatar May 08 '19 22:05 tomhull0

  • https://upmath.me/ renders all math on server in real LaTeX. (EDIT: many people did this, this one is quite polished)
  • https://github.com/kisonecat/tikzjax/ runs real LaTeX in browser (optimized with tikz pre-loaded)

But writing tikz is rather tedious, for discussions maybe a free-hand whiteboard is more productive?

  • for some use cases people have built neat dedicated tools like https://golem.ph.utexas.edu/category/2018/01/freetikz.html

cben avatar May 09 '19 04:05 cben

@tomhull0 I think the short answer is that this is difficult, and won't happen anytime soon. It's a good suggestion though! Also an existing (but closed) KaTeX issue: https://github.com/KaTeX/KaTeX/issues/219

@cben Thanks for the pointers. I didn't realize people were running actual tex in JavaScript!

edemaine avatar May 09 '19 21:05 edemaine