Skip to Content.
Sympa Menu

texmacs-users - Re:[TeXmacs]

Subject: mailing-list for TeXmacs Users

List archive

Re:[TeXmacs]


Chronological Thread 
  • From: Sam Liddicott <address@hidden>
  • To: Miguel de Benito Delgado <address@hidden>
  • Cc: "address@hidden" <address@hidden>
  • Subject: Re:[TeXmacs]
  • Date: Tue, 28 Apr 2015 11:22:37 +0100

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.


<TeXmacs|1.99.2>

<style|<tuple|generic|british|graphical-macros>>

<\body>
  \;

  <with|gr-mode|<tuple|edit|text-at>|gr-frame|<tuple|scale|0.999953fs|<tuple|0.5gw|0.5gh>>|gr-geometry|<tuple|geometry|20.0025fs|20.003fs|center>|gr-arrow-end|\<gtr\>|<graphics||<text-at|<math|A>|<point|<plus|0gw|1fs>|<minus|0.5gh|1.5fs>>>|<text-at|<math|B>|<point|<minus|1gw|1.5fs>|<minus|0.5gh|1.5fs>>>||<text-at|<math|C>|<point|<plus|0gw|1fs>|<minus|-0.5gh|-1fs>>>|<text-at|<math|D>|<point|<minus|1gw|1.5fs>|<minus|-0.5gh|-1fs>>>|<with|arrow-end|\<gtr\>|<line|<point|<plus|0gw|2fs>|<minus|0.5gh|1.2fs>>|<point|<minus|1gw|1.8fs>|<minus|0.5gh|1.2fs>>>>|<with|arrow-end|\<gtr\>|<line|<point|<minus|1gw|1.2fs>|<minus|0.5gh|2fs>>|<point|<minus|1gw|1.2fs>|<minus|-0.5gh|-2fs>>>>|<with|arrow-end|\<gtr\>|<line|<point|<plus|0gw|1.4fs>|<minus|0.5gh|2fs>>|<point|<plus|0gw|1.4fs>|<minus|-0.5gh|-2fs>>>>|<with|arrow-end|\<gtr\>|<line|<point|<plus|0gw|2fs>|<minus|-0.5gh|-1.3fs>>|<point|<minus|1gw|1.8fs>|<minus|-0.5gh|-1.3fs>>>>|<text-at|<math|f>|<point|<plus|0.5gw|-0.5fs>|<minus|0.5gh|0.9fs>>>|<text-at|<math|h>|<point|<plus|1gw|-1.0fs>|<minus|0gh|0.5fs>>>|<text-at|<math|k>|<point|<plus|0.5gw|-0.5fs>|<minus|-0.5gh|-0.3fs>>>|<text-at|<math|g>|<point|<plus|0gw|0.60fs>|<minus|0gh|0.5fs>>>>>

  \;

  <assign|comsquare|<macro|a|b|c|d|e|f|g|h|size|<with|gr-mode|<tuple|edit|text-at>|gr-frame|<tuple|scale|1fs|<tuple|0.5gw|0.5gh>>|gr-geometry|<tuple|geometry|<arg|size>|<arg|size>|center>|gr-arrow-end|\<gtr\>|<graphics||<text-at|<math|<arg|a>>|<point|<plus|0gw|1fs>|<minus|0.5gh|1.5fs>>>|<text-at|<math|<arg|b>>|<point|<minus|1gw|1.5fs>|<minus|0.5gh|1.5fs>>>||<text-at|<math|<arg|c>>|<point|<plus|0gw|1fs>|<minus|-0.5gh|-1fs>>>|<text-at|<math|<arg|d>>|<point|<minus|1gw|1.5fs>|<minus|-0.5gh|-1fs>>>|<with|arrow-end|\<gtr\>|<line|<point|<plus|0gw|2fs>|<minus|0.5gh|1.2fs>>|<point|<minus|1gw|1.8fs>|<minus|0.5gh|1.2fs>>>>|<with|arrow-end|\<gtr\>|<line|<point|<minus|1gw|1.2fs>|<minus|0.5gh|2fs>>|<point|<minus|1gw|1.2fs>|<minus|-0.5gh|-2fs>>>>|<with|arrow-end|\<gtr\>|<line|<point|<plus|0gw|1.4fs>|<minus|0.5gh|2fs>>|<point|<plus|0gw|1.4fs>|<minus|-0.5gh|-2fs>>>>|<with|arrow-end|\<gtr\>|<line|<point|<plus|0gw|2fs>|<minus|-0.5gh|-1.3fs>>|<point|<minus|1gw|1.8fs>|<minus|-0.5gh|-1.3fs>>>>|<text-at|<math|<arg|e>>|<point|<plus|0.5gw|-0.5fs>|<minus|0.5gh|0.9fs>>>|<text-at|<math|<arg|f>>|<point|<plus|1gw|-1.0fs>|<minus|0gh|0.5fs>>>|<text-at|<math|<arg|g>>|<point|<plus|0.5gw|-0.5fs>|<minus|-0.5gh|-0.3fs>>>|<text-at|<math|<arg|h>>|<point|<plus|0gw|0.60fs>|<minus|0gh|0.5fs>>>>>>>

  <comsquare|A|B|C|D|e|f|g|h|5fs><comsquare|A|B|C|D|e|f|g|h|10fs><comsquare|A|B|C|D|e|f|g|h|15fs>
</body>

<\initial>
  <\collection>
    <associate|preamble|false>
  </collection>
</initial>



Archive powered by MHonArc 2.6.19.

Top of Page