Hi, I would like a document where user types in normal text and plugs in DrGeo view. The drgeo view will be dual. It will be alternatively the output of a DrGeo script (drgeo canvas) or the DrGeo script itself (code). The view will be interactive. In drgeo canvas mode, user plays with the geometric construction, when switched to code mode, the user edits the DrGeo script and recompute the DrGeo canvas output. Is GTDocument appropriate to do this? If so, where to start? Thanks Hilaire -- Dr. Geo http://drgeo.eu
Hi Hilaire, As far as I understand your description, Documenter should fit. You can start by using: -=-=-=- GtDocumenter editorForText: 'This is a Dr. Geo tutorial. Evaluate the following script: [[[ "A Dr. Geo script that returns DrGeo canvas" ]]] Extensions are done using ==<gtView>== pragmas. â -=-=-=- Let me know how it works for you. Juraj
On Sep 26, 2018, at 14:10, Hilaire <hilaire@drgeo.eu> wrote:
Hi,
I would like a document where user types in normal text and plugs in DrGeo view. The drgeo view will be dual. It will be alternatively the output of a DrGeo script (drgeo canvas) or the DrGeo script itself (code).
The view will be interactive. In drgeo canvas mode, user plays with the geometric construction, when switched to code mode, the user edits the DrGeo script and recompute the DrGeo canvas output.
Is GTDocument appropriate to do this? If so, where to start?
Thanks
Hilaire
-- Dr. Geo http://drgeo.eu
participants (2)
-
Hilaire -
Juraj Kubelka