Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] macro to generate a template

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] macro to generate a template


Chronological Thread 
  • From: Henri Lesourd <address@hidden>
  • To: address@hidden
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] macro to generate a template
  • Date: Sun, 02 Jul 2006 19:57:23 +0200

Rasmus Grøndahl Olsen wrote:

Hi again TeXmacs users,
I am trying to make a macro to generate a tabular template.
If I write "\tabular" and press enter it will generate a template. How do I make a macro that does something similar?
Until now all my attempts to generate code only show the macro name with the arguments in src-view, what I am interested in is to make a macro that generates the code.

Hope you can help me.

I don't know how to do this, and I suspect that in this particular
case (i.e., important standard markup), the template generation is
hardcoded in the C++ code of TeXmacs :-(... (but I'm not completely
sure).

What you can do is implement a similar (although perhaps less
convenient to use) feature by means of a keyboard shortcut,
which does an (insert), for example :
<<
(kbd-map ("C-z" (insert '(underline (with "font-shape" "italic" "Hello")))))
>>

How to store all your keyboard shortcuts in a TeXmacs plugin,
and all the basic things you need to know about that is
explained in :
<<
http://www.ags.uni-sb.de/~henri/texmacs/aTeXmacsTutorial.pdf
>>


There are also other various resources available on the web about
different other things ; here is an incomplete list :
<<
You can find some examples of real mathematical papers written using TeXmacs in :
[[
http://www.texmacs.org/Examples/
]]

As far as documentation is concerned, there are some tutorials available :

The official TeXmacs tutorial :
[[
http://www.texmacs.org/Tutorial/
]]

TeXmacs in 60 mn :
[[
http://www.fmi.uni-passau.de/~seidl/texmacs/tmtour.html
]]

and also a (work in progress & a little bit more technical) tutorial I wrote myself :
[[
http://www.ags.uni-sb.de/~henri/texmacs/
]]

Finally, there is the TeXmacs help, available in the Help menu (if your computer is online, you
can download all the help doing Help/Online help/Update from web). This help is perhaps also
included in the tarball you downloaded with Fink. Otherwise, the help files are in the CVS at :
[[
http://www.texmacs.org/cgi-bin/cvsweb.cgi/doc/
]]
>>




Archive powered by MHonArc 2.6.19.

Top of Page