mailing-list for TeXmacs Users

Text archives Help


Re:[TeXmacs]


Chronological Thread 
  • From: Alexandre Dezotti <address@hidden>
  • To: "address@hidden" <address@hidden>
  • Subject: Re:[TeXmacs]
  • Date: Tue, 28 Apr 2015 15:15:08 +0200


@Nicola Now, I remember you signalling of that problem.

@Sam I will take a closer look at your macro to see how it works so that I can elaborate on this.

Thank you for your answers.

2015-04-28 12:22 GMT+02:00 Sam Liddicott <address@hidden>:
Here is my best approach so far.

<\comsquare|A|B|C|D|e|f|g|h|20fs>

the final argument is the size of the square in fs units (multiple of font size).

I'm not happy with the accuracy of placement.
text-at seems to be only top-left based and I want centre based.
Adjustments based on a proportion of fs isn't accurate enough.

I should probably be measuring the width of a each text box for better placement, especially of the smaller letters on the sides
but I don't have the spare brain cycles to do that right now.

Also I'm not sure why the final argument size isn't showing up in the toolbar as most inaccessible arguments should.

Sam


On Sun, Apr 26, 2015 at 10:27 PM, Miguel de Benito Delgado <address@hidden> wrote:
Hi,

I see three choices:

1. Use tables: DON'T! It'll look ugly.

2. Use one of the latex packages for commutative diagrams like tikz or xymatrix via a TeXmacs plugin. DON'T! We want to avoid LaTeX, right? Also, I doubt those plugins have been maintained recently.

3. Use TeXmacs graphics.

Well, my suggestion is clear ;)

Insert->Image->Draw image will get you started. Remember that you can resize the canvas using A-Left, A-Down, etc. Use shift to go faster. Use the grid to snap your text, math and arrows, then hide it.

Once you have one diagram made, you can copy and paste the whole drawing anywhere in your document, and you can easily create a macro out of it, again copying and pasting.

If you want to go deeper, you can create a so-called "graphical macro". This would let you create and insert components for your commutative diagrams using the interface for the drawing tool and it's easier than it seems. To see what I mean, add the style package Experimental->graphical-macros to your document, then Insert a drawing and change the active tool by clicking on "Point" in the focus bar. You'll see new stuff there.

Hth,

--
Miguel de  Benito.

On Sun, Apr 26, 2015 at 3:22 PM, Alexandre Dezotti <address@hidden> wrote:
HI all,

I am wondering if there is a recommended way to do commutative diagrams with Texmacs. I just need the simple commutative square such as: https://upload.wikimedia.org/wikipedia/commons/9/91/Commutative_square.svg ?

Also, I would like to say that each time I try a search on
http://lists.texmacs.org/wws
I get a "Internal Server Error".

Best,
AD.






Archive powered by MHonArc 2.6.19.

Top of page