mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] What is with \mathscr?


Chronological Thread 
  • From: Miguel de Benito Delgado <address@hidden>
  • To: "address@hidden" <address@hidden>
  • Subject: Re: [TeXmacs] What is with \mathscr?
  • Date: Mon, 24 Feb 2014 13:05:08 +0100

I use this to build shortcuts for caligrapic capital letters. The eval is not especially pretty but does the trick. Improvements are welcome.

(define (build-one-kbd-cal sy)
  (with s (symbol->string sy)
    (list (string-concatenate (list s " " s " " s))
          (string-concatenate (list "<cal-" s ">")))))

(define (build-all-kbd-cal)
  `(kbd-map
    (:mode in-math?)
    ,@(map build-one-kbd-cal 
           '(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z))))

(eval (build-all-kbd-cal))

--
Miguel de  Benito.


On Mon, Feb 24, 2014 at 11:27 AM, François Poulain <address@hidden> wrote:
Hi,

Le Sat, 22 Feb 2014 17:14:34 +0200,
Victor Porton <address@hidden> a écrit :

> 1. How to type <with|math-font|cal*|C>> quickly? (I don't want to
> type that \with etc.)

You can add something like
(kbd-map
  (:mode in-math?)
  ("font C var" (make-with "math-font" "cal*")))
in your my-init-texmacs.scm

Otherwise you could make a macro.

François

--
François Poulain <address@hidden>




Archive powered by MHonArc 2.6.19.

Top of page