mailing-list for TeXmacs Users

Text archives Help


Re: Draw Curve


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: address@hidden
  • Subject: Re: Draw Curve
  • Date: Tue, 24 Mar 2020 14:18:43 +0100

To all: I have written a package which reads a Scheme file with graphics commands and places the typeset output in a TeXmacs document, you can find it at https://github.com/pireddag/insertGraphics

I think this makes it easier to use TeXmacs graphics.

There is a test file and the pdf output.

There is an error - I think at loading - which does not stop the package from working; I would appreciate help to fix it. The error is

<unnamed port>: In procedure struct-vtable in expression (struct-vtable obj):
<unnamed port>: Wrong type argument in position 1 (expecting struct): #<procedure insertGraphics (graphicsFile)>
<unnamed port>: In procedure struct-vtable in expression (struct-vtable obj):
<unnamed port>: Wrong type argument in position 1 (expecting struct): #<procedure insertGraphics (graphicsFile)>

(the repetition is in the output)

Giovanni


On 24.03.20 11:45, Massimiliano Gubinelli wrote:
I think you have problems with "
all they should look like " and not ' ' (look at center)

(or the other way around...)
Max



On 24. Mar 2020, at 11:39, Vincent Douce Mathoscope <address@hidden <mailto:address@hidden>> wrote:

sorry of being so basic
which error did i make ?
<PastedGraphic-4.png>

Le 23 mars 2020 à 16:44, Massimiliano Gubinelli <address@hidden <mailto:address@hidden>> a écrit :

Yes, I forgot about this nice example. Btw, great idea Giovanni! Makes really a nice impression.
m


On 23. Mar 2020, at 16:19, HG <address@hidden <mailto:address@hidden>> wrote:

Excellent :)

Le 23/03/2020 à 15:53, Giovanni Piredda a écrit :
I put an example in the Wikipedia page: https://en.wikipedia.org/wiki/GNU_TeXmacs#Graphics

It is easy to turn that into a Scheme plugin. Maybe an easy method is a Scheme plugin that reads Scheme commands from a file (so that one calls a command with the file name as argument).


Giovanni

On 23.03.20 15:03, Massimiliano Gubinelli wrote:
Dear Marc,
 there is no ready made solution, I'm afraid. TeXmacs indeed lack a facility to easily and programmatically draw entities (think of TikZ or Metapost or a simple function grapher). However you can create easily drawing in scheme:

See the old tutorial of Henri Lesourd (at the end)

http://www.texmacs.org/tmweb/documents/tutorials/TeXmacs-graphics-tutorial.pdf

or some example in miguel web pages:

http://www.texmacs.org/tmweb/contribute/team-miguel.en.html

http://svn.savannah.gnu.org/viewvc/texmacs/trunk/web/miguel/snippet-fractal-1.en.tm?view=markup

It should not be difficult to cook up some scheme procedures which put in a drawing environment some standard graphs.


best max




On 22. Mar 2020, at 12:16, marc lalaude-labayle <address@hidden <mailto:address@hidden>> wrote:

Hi to all,

The other day I needed to draw the graph of a function and wanted it to be in the Insert/Draw/Image block. I couldn't find a way to do this. In fact, I did : draw the curve, then write above this curve but I think it would be nice to draw functions within this beautiful drawing environment .

Best wishes to all of you.

Marc

Ps : my students did install texmacs on their own. We'll see tomorrow how it works. And I plan to record the session.



–––
Vincent Douce Mathoscope
cours de maths par visio pendant la crise :
https://www.facebook.com/pg/mathoscopeVincent/posts/?ref=page_internal
(lycéens, prépa, étudiants).

poésie visuelle :
https://tsunaminuage.wordpress.com/








Archive powered by MHonArc 2.6.19.

Top of page