Skip to Content.
Sympa Menu

texmacs-users - Re: My (so far short) experience with TeXmacs and a question about shortcuts

Subject: mailing-list for TeXmacs Users

List archive

Re: My (so far short) experience with TeXmacs and a question about shortcuts


Chronological Thread 
  • From: Basile Audoly <address@hidden>
  • To: Pierre-Henri Jondot <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: My (so far short) experience with TeXmacs and a question about shortcuts
  • Date: Sun, 27 Jun 2021 14:46:07 +0200

Dear Pierre-Henri,

two remarks — I understand I am not answering your question exactly:

* you can use (make 'unfolded-env) so you don't need to unfold by hand
* the Education > Exam style already implements exercices with answers, and there is a shortcut for including the answer. All this is available through the eye / ? / ! icons in the focus bar.

Basile.


Then I configured a few shortcuts by adding to my-init-texmacs.scm : 

(kbd-map
  ("t t t" (make 'theorem))
  ("f f f" (make 'folded-env))
  ("p p p" (make 'proposition))
  ("e e e" (make 'exercise))
  ("s s s" (make 'solution*))
)

It works... somewhat, but is most probably not the right way to do it... especially as regards the folded-env... It works like this : I hit three times f, then enter, then I add my theorem or exercise, then I unfold and add the solution or demonstration (for which I'll need another shortcut of course, but I'm not there yet...)

That was not what I had in mind. I wanted to use the capslock which I redefined, with the help of Karabiner, to serve as a shift+control+option modifier (which I then use in karabiner to have quicker access to \ [ ] { } which are a bit of a pain on a macos keyboard...), so I would have liked that hitting capslock-f (which translates to shift+control+command-f) to begin a folded environment. Instead I hit thrice f for the time being, which is quite usable, but I'd be curious to know what I would have needed to write for it to work. I tried quite a few things, but I was not successful.





Archive powered by MHonArc 2.6.19.

Top of Page