Zulip Chat Archive

Stream: general

Topic: set complement in browser version of Lean


Jeremy Avigad (Oct 28 2020 at 17:45):

My students have pointed out to me that the set complement notation sᶜ doesn't work in the browser version of Lean. At least, \compl, \^c, and \complement don't work. As a workaround, I am telling them to write s.compl.

  • Can this be fixed?
  • Is there a better workaround?

Johan Commelin (Oct 28 2020 at 17:45):

@Bryan Gin-ge Chen :up:

Bryan Gin-ge Chen (Oct 28 2020 at 18:00):

@Jeremy Avigad Sorry about that, the unicode translation file being used was out of date. The shortcuts should hopefully work in the web editor in 3 hours or so.

Jeremy Avigad (Oct 28 2020 at 18:36):

Thanks! No problem.

Eric Wieser (Oct 28 2020 at 21:01):

While we're on the browser version - I find that if I have 12345|67890ABC where | is the cursor, and type \forall , then the result is 12345∀ 67890A|BC- the cursor jumps very annoyingly

Bryan Gin-ge Chen (Oct 28 2020 at 21:03):

Thanks for the report! The part of the code that handles cursor positioning after unicode translation is definitely a bit hacky. Do you mind making an issue at https://github.com/leanprover-community/lean-web-editor ?

Eric Wieser (Oct 28 2020 at 21:06):

Done. Github blew up on me so there is a duplicate issue


Last updated: Dec 20 2023 at 11:08 UTC