| 1 |
RocqIDE FAQ |
| 2 |
|
| 3 |
TODO: Put the relevant info in the doc and delete this file. |
| 4 |
|
| 5 |
Q0) What is RocqIDE? |
| 6 |
R0: A powerful graphical interface for Coq. See https://rocq-prover.org/refman/practical-tools/coqide.html. for more information. |
| 7 |
|
| 8 |
Q1) How to enable Emacs keybindings? |
| 9 |
R1: Insert |
| 10 |
gtk-key-theme-name = "Emacs" |
| 11 |
in your gtkrc file. The location of this file is system-dependent. If you're running |
| 12 |
Gnome, you may use the graphical configuration tools. |
| 13 |
|
| 14 |
Q2) How to enable antialiased fonts? |
| 15 |
R2) Set the GDK_USE_XFT variable to 1. This is by default with Gtk >= 2.2. |
| 16 |
If some of your fonts are not available, set GDK_USE_XFT to 0. |
| 17 |
|
| 18 |
Q4) How to use those Forall and Exists pretty symbols? |
| 19 |
R4) Thanks to the Notation features in Coq, you just need to insert these |
| 20 |
lines in your Coq Buffer : |
| 21 |
====================================================================== |
| 22 |
Notation "∀ x : t, P" := (forall x:t, P) (at level 200, x ident). |
| 23 |
Notation "∃ x : t, P" := (exists x:t, P) (at level 200, x ident). |
| 24 |
====================================================================== |
| 25 |
Copy/Paste of these lines from this file will not work outside of RocqIDE. |
| 26 |
You need to load a file containing these lines or to enter the "∀" |
| 27 |
using an input method (see Q5). To try it just use "Require utf8" from inside |
| 28 |
RocqIDE. |
| 29 |
To enable these notations automatically start rocqide with |
| 30 |
rocqide -l utf8 |
| 31 |
In the ide subdir of Coq library, you will find a sample utf8.v with some |
| 32 |
pretty simple notations. |
| 33 |
|
| 34 |
Q5) How to define an input method for non ASCII symbols? |
| 35 |
R5)-First solution : type "<CONTROL><SHIFT>2200" to enter a forall in the script widow. |
| 36 |
2200 is the hexadecimal code for forall in unicode charts and is encoded as "∀" |
| 37 |
in UTF-8. |
| 38 |
2203 is for exists. See http://www.unicode.org for more codes. |
| 39 |
-Second solution : Use an input method editor, such as SCIM or iBus. The latter offers |
| 40 |
a module for LaTeX-like inputting. |
| 41 |
|
| 42 |
Q6) How to customize the shortcuts for menus? |
| 43 |
R6) Two solutions are offered: |
| 44 |
- Edit $XDG_CONFIG_HOME/coq/coqide.keys by hand or |
| 45 |
- If your system allows it, from RocqIDE, you may select a menu entry and press the |
| 46 |
desired shortcut. |
| 47 |
|
| 48 |
Q7) What encoding should I use? What is this \x{iiii} in my file? |
| 49 |
R7) The encoding option is related to the way files are saved. |
| 50 |
Keep it as UTF-8 until it becomes important for you to exchange files |
| 51 |
with non UTF-8 aware applications. |
| 52 |
If you choose something else than UTF-8, then missing characters will |
| 53 |
be encoded by \x{....} or \x{........} where each dot is an hex. digit. |
| 54 |
The number between braces is the hexadecimal UNICODE index for the |
| 55 |
missing character. |
| 56 |
|