HaTeX icon indicating copy to clipboard operation
HaTeX copied to clipboard

Tikz arrows

Open dmcclean opened this issue 7 years ago • 4 comments

I would like to contribute support for arrows between nodes in TikZ pictures.

I have made minor contributions before, but I'm having a bit of trouble understanding the design of the Text.LaTeX.Packages.TikZ module.

Any possibility of getting some general advice about how this might best be done?

My end goal is to be able to use HaTeX to generate documents along these lines: http://texample.net/tikz/examples/noise-shaper/

dmcclean avatar Aug 06 '17 02:08 dmcclean

Hi @dmcclean I need to use arrows between nodes too. Did you figure out how to support for arrows between nodes in HaTeX?

vincent-hui avatar Jan 25 '18 15:01 vincent-hui

In Text.LaTeX.Packages.TikZ.Syntax a small subset of TikZ' syntax is implemented (see TikZ type). My knowledge of TikZ is very limited, so I just did what worked for me for the examples I had in mind. Probably something needs to be added to PathAction. A PathAction can be a \draw command. And maybe other constructor(s) need(s) to be added (like Node?). But like I said, I am far from being an expert in TikZ. I have only used it for simple things.

Thanks for the feedback and sorry for the delay in the answer. The comment made by @vincent-hui brought this one back up!

Daniel-Diaz avatar Jan 26 '18 08:01 Daniel-Diaz

I never quite figured it out, no. Unfortunately my understanding of how TikZ actually works is very limited.

dmcclean avatar Jan 28 '18 18:01 dmcclean

I don't know if this might be helpful: jtikz.sourceforge.net

bbarker avatar May 12 '18 02:05 bbarker