Welcome to Randal Douc's wiki

A collaborative site on maths but not only!

User Tools

Site Tools


world:raccourcis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
world:raccourcis [2024/02/04 10:43]
rdouc [Jupyter et Emacs]
world:raccourcis [2025/03/09 10:02] (current)
rdouc
Line 1: Line 1:
 ======= List of useful shortcuts and tricks ======== ======= List of useful shortcuts and tricks ========
 +
 +
 +====== Clavier Mx keys mini ======
 +  * Si le clavier clignote, taper Fn echap.  ​
 +
 +====== Essentiel ======
 +  * [[world:​linux-essentiel|Commandes essentielles en Terminal Linux]]
 +  * [[world:​vim-essentiel|Commandes essentielles pour l'​éditeur vi]]
 +
 +
  
 ====== Brave ====== ====== Brave ======
   * Ctrl shift O: liste des favoris...   * Ctrl shift O: liste des favoris...
 +
 +====== Tig ======
 +  * tig puis s pour voir le statut puis ! devant le fichier changé pour retrouver l'​ancienne version ​
 +
  
 ====== Python ====== ====== Python ======
   * Pour séparer les cellules, insérer <​code>​ #%% </​code>​   * Pour séparer les cellules, insérer <​code>​ #%% </​code>​
   * a.shape: pour avoir la dimension du tableau **a**   * a.shape: pour avoir la dimension du tableau **a**
 +  * plt.clf(): effacer figure
 +  * plt.savefig():​ sauver une figure
 +  * plt.close():​ fermer une figure. ​
  
 ===== Python et Emacs ===== ===== Python et Emacs =====
Line 18: Line 35:
  
 ===== Jupyter et Emacs ===== ===== Jupyter et Emacs =====
 +  * M-x indent-rigidly:​ puis fleche a gauche ou droite. ​
   * Execute Cell: C-c C-c   * Execute Cell: C-c C-c
   * Execute Cell & Go to Next: M-RET   * Execute Cell & Go to Next: M-RET
Line 26: Line 43:
   * Split Cell: C-c C-s   * Split Cell: C-c C-s
   * Kill Cell: C-c C-k   * Kill Cell: C-c C-k
-  * Toggle Cell Type: C-c C-u+  * Toggle ​Cell Type: C-c C-t 
 +  * Change ​Cell Type: C-c C-u
   * Save Workbook: C-x C-s   * Save Workbook: C-x C-s
   * Discard Cell Output: C-c C-l   * Discard Cell Output: C-c C-l
 +  * Start Jupyter Server: M-x ein:​jupyter-server-start
   * Stop Jupyter Server: M-x ein:​jupyter-server-stop   * Stop Jupyter Server: M-x ein:​jupyter-server-stop
   * [[https://​millejoh.github.io/​emacs-ipython-notebook/​| documentation sur le package EIN ]]   * [[https://​millejoh.github.io/​emacs-ipython-notebook/​| documentation sur le package EIN ]]
Line 55: Line 74:
   * Ctrl alt l: aller au bookmark suivant   * Ctrl alt l: aller au bookmark suivant
   * Ctrl alt j: aller au bookmark precedent   * Ctrl alt j: aller au bookmark precedent
 +  * Pour les <color /​yellow>​**Settings** en fichier Json, </​color>​voir tout en bas de la page
  
 ====== Sumatra ====== ====== Sumatra ======
Line 80: Line 100:
  
 ====== Git ====== ====== Git ======
 +  * git ls-files: voir tous les fichiers versionnés dans git
   * Voir les branches locales: git branch   * Voir les branches locales: git branch
   * Voir toutes les branches locales et distantes: git branch -a   * Voir toutes les branches locales et distantes: git branch -a
Line 88: Line 108:
   * Si une branche est crée a distance et qu'on veut la recuperer...   * Si une branche est crée a distance et qu'on veut la recuperer...
       * git checkout nom-branche ​       * git checkout nom-branche ​
 +  * En cas de conflit: par exemple, dans un fichier readme.md où le merge a été fait. On ouvre le fichier, on résoud le conflit, puis quand c est terminé, on écrit: ​
 +      * git add readme.md ​
 +      * git rebase --continue
 +
       ​       ​
 ====== Chrome ====== ====== Chrome ======
Line 135: Line 159:
   * Pour ouvrir et fermer une equation, on fait M-p   * Pour ouvrir et fermer une equation, on fait M-p
   * Pour ouvrir et fermer crochets, on fait M-n   * Pour ouvrir et fermer crochets, on fait M-n
-  *  Pour voir la liste des fichiers recents, on fait C-z+  *  Pour voir la liste des fichiers recents, on fait M-m
   * Pour vérifier les accolades, on fait F12 ou C-)   * Pour vérifier les accolades, on fait F12 ou C-)
   * C-c ( pour insérer un label   * C-c ( pour insérer un label
Line 194: Line 218:
 <file php settings.json>​ <file php settings.json>​
 { {
-    "​latex-workshop.synctex.synctexjs.enabled":​ true,+    ​// "​latex-workshop.synctex.synctexjs.enabled":​ true,
     "​latex-workshop.synctex.afterBuild.enabled":​ true,     "​latex-workshop.synctex.afterBuild.enabled":​ true,
     "​latex-workshop.view.pdf.viewer":​ "​tab",​     "​latex-workshop.view.pdf.viewer":​ "​tab",​
Line 220: Line 244:
     "​python.defaultInterpreterPath":​ "​C:​\\Users\\douc_ran\\Anaconda3\\python.exe",​     "​python.defaultInterpreterPath":​ "​C:​\\Users\\douc_ran\\Anaconda3\\python.exe",​
     "​mdmath.macroFile":​ "​C:​\\Users\\douc_ran\\OneDrive\\mymacros.json",​     "​mdmath.macroFile":​ "​C:​\\Users\\douc_ran\\OneDrive\\mymacros.json",​
-    "​editor.fontSize": ​12,+    "​editor.fontSize": ​11,
     "​editor.suggest.showStatusBar":​ true,     "​editor.suggest.showStatusBar":​ true,
     "​editor.suggest.insertMode":​ "​insert",​     "​editor.suggest.insertMode":​ "​insert",​
Line 239: Line 263:
         ]         ]
     },     },
-    "​jupyter.interactiveWindowMode":​ "​perFile",​ 
     "​[python]":​ {     "​[python]":​ {
         "​editor.formatOnType":​ true         "​editor.formatOnType":​ true
     },     },
-    "​files.autoSave":​ "​afterDelay",​ 
     "​git.openRepositoryInParentFolders":​ "​always",​     "​git.openRepositoryInParentFolders":​ "​always",​
     "​lightrun.certificatePinningList":​ [     "​lightrun.certificatePinningList":​ [
Line 253: Line 275:
     "​git-graph.maxDepthOfRepoSearch":​ 1,     "​git-graph.maxDepthOfRepoSearch":​ 1,
     "​git.autofetch":​ true,     "​git.autofetch":​ true,
 +    "​jupyter.interactiveWindow.creationMode":​ "​perFile",​
 +    "​latex-workshop.latex.recipes":​ [
 +        {
 +          "​name":​ "​latexmk",​
 +          "​tools":​ [
 +            "​latexmk"​
 +          ]
 +        },
 +        {
 +            "​name":​ "​latex-dvi-ps-pdf",​
 +            "​tools":​ [
 +              "​latex",​
 +              "​dvips",​
 +              "​ps2pdf"​
 +            ]
 +          },
 +        {
 +            "​name":​ "​pdflatex",​
 +            "​tools":​ [
 +              "​pdflatex"​
 +            ]
 +        },
 +    ],
 +    "​latex-utilities.liveReformat.snippets":​ [
 +        {
 +            "​prefix":​ "​([A-Za-z}\\)\\]])(\\d)$",​
 +            "​body":​ "​$1_$2",​
 +            "​mode":​ "​maths",​
 +            "​triggerWhenComplete":​ true,
 +            "​description":​ "auto subscript"​
 +        },
 +        {
 +            "​prefix":​ "​([A-Za-z}\\)\\]]) ?​_(\\d\\d)$",​
 +            "​body":​ "​$1_{$2}",​
 +            "​mode":​ "​maths",​
 +            "​triggerWhenComplete":​ true,
 +            "​description":​ "auto escape subscript"​
 +        },
 +        {
 +            "​prefix":​ "(\\S) ([\\^_])$",​
 +            "​body":​ "​$1$2",​
 +            "​mode":​ "​maths",​
 +            "​triggerWhenComplete":​ true,
 +            "​description":​ "​remove extraneous sub/​superscript space",​
 +            "​priority":​ 2
 +        },
 +        {
 +            "​prefix":​ "​([A-Za-z}\\)\\]]) ?\\^ ?​(\\d\\d|[\\+\\-] ?​(?:​\\d|[A-Za-z]|\\\\\\w+))$",​
 +            "​body":​ "​$1^{$2}",​
 +            "​mode":​ "​maths",​
 +            "​triggerWhenComplete":​ true,
 +            "​description":​ "auto escape superscript",​
 +            "​priority":​ 2
 +        },
 +        {
 +            "​prefix":​ "([^ &​\\\\\\+\\-=<>​\\|!~@])([\\+\\-=<>​])$",​
 +            "​body":​ "$1 $2",
 +            "​mode":​ "​maths",​
 +            "​priority":​ -1,
 +            "​description":​ "​whitespace before operators",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​([\\+\\-=<>​])([^ &​\\\\\\+\\-=<>​\\|!~])$",​
 +            "​body":​ "$1 $2",
 +            "​mode":​ "​maths",​
 +            "​priority":​ -1,
 +            "​description":​ "​whitespace after operators",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\.\\.\\.$",​
 +            "​body":​ "​\\dots ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​⋯",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​=>​$",​
 +            "​body":​ "​\\implies ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​⇒",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​=<​$",​
 +            "​body":​ "​\\impliedby ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​implied by",
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "//​$",​
 +            "​body":​ "​\\frac{$$1}{$$2} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​fraction (empty)",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(([\\d\\.]+)|([\\d\\.]*)(\\\\)?​([A-Za-z]+)((\\^|_)(\\{\\d+\\}|\\d|[A-Za-z]|\\\\\\w+))*!?​)\\/​$",​
 +            "​body":​ "​\\frac{$1}{$$1}$$0",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​fraction (from regex)",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​([\\)\\]}]) ?/$",
 +            "​body":​ "​SPECIAL_ACTION_FRACTION",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​fraction (parsed)",​
 +            "​triggerWhenComplete":​ true,
 +            "​noPlaceholders":​ false
 +        },
 +        {
 +            "​prefix":​ "​sympy$",​
 +            "​body":​ "sympy $$1 sympy",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "sympy block",​
 +            "​triggerWhenComplete":​ false
 +        },
 +        {
 +            "​prefix":​ "​sympy.+$",​
 +            "​body":​ "​SPECIAL_ACTION_BREAK",​
 +            "​mode":​ "​maths",​
 +            "​triggerWhenComplete":​ true,
 +            "​priority":​ 2
 +        },
 +        {
 +            "​prefix":​ "sympy ?(.+?) ?sympy ?$",
 +            "​body":​ "​SPECIAL_ACTION_SYMPY",​
 +            "​mode":​ "​maths",​
 +            "​priority":​ 3,
 +            "​description":​ "​sympy",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])\\biff$",​
 +            "​body":​ "​$1\\iff ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​⇔",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])\\binn$",​
 +            "​body":​ "​$1\\in ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​in",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])\\bnotin$",​
 +            "​body":​ "​$1\\not\\in ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​∈",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?!=$",
 +            "​body":​ " \\neq ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​neq",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​==$",​
 +            "​body":​ "&​= ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​aligned equal",​
 +            "​priority":​ 1,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?~=$",
 +            "​body":​ " \\approx ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​≈",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?~~$",
 +            "​body":​ " \\sim ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​∼",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?>​=$",​
 +            "​body":​ " \\geq ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​≥",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?<​=$",​
 +            "​body":​ " \\leq ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​≤",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?>>​$",​
 +            "​body":​ " \\gg ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​≫",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?<<​$",​
 +            "​body":​ " \\ll ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​≪",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?xx$",
 +            "​body":​ " \\times ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​×",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?​\\*\\*$",​
 +            "​body":​ " \\cdot ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​⋅",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\]\\b|[ ,​\\)\\]\\}]\\w*)(to|->​)$",​
 +            "​body":​ "​$1\\to ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​→",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?​(?:​\\|->​|!>​)$",​
 +            "​body":​ " \\mapsto ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​↦",​
 +            "​priority":​ 1.1,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])a(?:​rc)?​(sin|cos|tan|cot|csc|sec)$",​
 +            "​body":​ "​$1\\arc$2 ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​arc(trig)",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])(sin|cos|tan|cot|csc|sec|min|max|log|exp)$",​
 +            "​body":​ "​$1\\$2 ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​un-backslashed operator",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])(pi)$",​
 +            "​body":​ "​$1\\$2",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​pi",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​((?:​\\b|\\\\)\\w{1,​7})(,​\\.|\\.,​)$",​
 +            "​body":​ "​\\vec{$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​vector",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(\\\\?​[\\w\\^]{1,​7})~ $",
 +            "​body":​ "​\\tilde{$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​tilde",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(\\\\?​[\\w\\^]{1,​7})\\. $",
 +            "​body":​ "​\\dot{$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​dot",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(\\\\?​[\\w\\^]{1,​7})\\.\\. $",
 +            "​body":​ "​\\ddot{$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​ddot",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bbar$",​
 +            "​body":​ "​\\overline{$$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​overline",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\b(\\\\?​[\\w\\^{}]{1,​3})bar$",​
 +            "​body":​ "​\\overline{$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​overline",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])\\bhat$",​
 +            "​body":​ "​$1\\hat{$$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​hat",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\b([\\w\\^{}])hat$",​
 +            "​body":​ "​\\hat{$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​hat",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\\\\\)(\\w)$",​
 +            "​body":​ "\\) $1",
 +            "​mode":​ "​any",​
 +            "​description":​ "space after inline maths",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\\\\\\\\\\\$",​
 +            "​body":​ "​\\setminus ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "∖ (setminus)",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bpmat$",​
 +            "​body":​ "​\\begin{pmatrix} $$1 \\end{pmatrix} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​pmatrix",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bbmat$",​
 +            "​body":​ "​\\begin{bmatrix} $$1 \\end{bmatrix} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​bmatrix",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bpart$",​
 +            "​body":​ "​\\frac{\\partial $${1:​V}}{\\partial $${2:x}} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​partial derivative",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bsq$",​
 +            "​body":​ "​\\sqrt{$$1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​√",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?sr$",
 +            "​body":​ "​^2",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​²",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?cb$",
 +            "​body":​ "​^3",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​³",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bEE$",​
 +            "​body":​ "​\\exists ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​∃",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bAA$",​
 +            "​body":​ "​\\forall ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​∀",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\b([A-Za-z])([A-Za-z])\\2$",​
 +            "​body":​ "​$1_$2",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​subscript letter",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\b([A-Za-z])([A-Za-z])\\2?​p1$",​
 +            "​body":​ "​$1_{$2+1}",​
 +            "​mode":​ "​maths",​
 +            "​description":​ "​subscript letter + 1",
 +            "​priority":​ 2,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bdint$",​
 +            "​body":​ "​\\int_{$${1:​-\\infty}}^{$${2:​\\infty}} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​∫ₐᵇ",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "([^ \\\\]) ​ $",
 +            "​body":​ "$1\\, ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "add maths whitespace \\,",
 +            "​priority":​ -1,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "([^ \\\\])\\\\, {2,​4}$",​
 +            "​body":​ "$1\\: ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "add maths whitespace \\:",
 +            "​priority":​ 0.1,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "([^ \\\\])\\\\: {2,​4}$",​
 +            "​body":​ "$1\\; ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "add maths whitespace \\;",
 +            "​priority":​ 0.2,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "([^ \\\\])\\\\; {2,​4}$",​
 +            "​body":​ "$1\\ ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "add maths whitespace \\ ",
 +            "​priority":​ 0.3,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "([^ \\\\])\\\\ {2,​4}$",​
 +            "​body":​ "​$1\\quad ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "add maths whitespace quad",
 +            "​priority":​ 0.4,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "([^ \\\\])\\\\quad {2,​4}$",​
 +            "​body":​ "​$1\\qquad ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "add maths whitespace qquad",​
 +            "​priority":​ 0.5,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bset$",​
 +            "​body":​ "​\\\\{$$1\\\\} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "set {}",
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ " ?​\\|\\|$",​
 +            "​body":​ " \\mid ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​∣",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "< ?>​$",​
 +            "​body":​ "​\\diamond ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​⋄",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​\\bcase$",​
 +            "​body":​ "​\\begin{cases} $$1 \\end{cases} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​cases",​
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(^|[^\\\\])\\bst$",​
 +            "​body":​ "​$1\\text{s.t.} ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "such that",
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "\\+ ?-$",
 +            "​body":​ "\\pm ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​±",​
 +            "​priority":​ 1,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "- ?​\\+$",​
 +            "​body":​ "\\mp ",
 +            "​mode":​ "​maths",​
 +            "​description":​ "​∓",​
 +            "​priority":​ 1,
 +            "​triggerWhenComplete":​ true
 +        },
 +        {
 +            "​prefix":​ "​(?:​([A-Za-z0-9]|\\\\\\w{,​7})|\\(([^\\)]+)\\))C(?:​([A-Za-z0-9]|\\\\\\w{,​7})|\\(([^\\)]+)\\))$",​
 +            "​body":​ "​\\binom{$1$2}{$3$4}",​
 +            "​mode":​ "​maths",​
 +            "​priority":​ 2,
 +            "​description":​ "​binomial",​
 +            "​triggerWhenComplete":​ true
 +        }
 +    ],
 +    "​editor.minimap.enabled":​ false,
 +    "​redhat.telemetry.enabled":​ false,
 +    "​spellright.language":​ [
 +        "​fr"​
 +    ],
 +    "​spellright.documentTypes":​ [
 +        "​markdown",​
 +        "​plaintext"​
 +    ],
 +    "​interactiveWindow.executeWithShiftEnter":​ true,
 +    "​lightrun.deploymentName":​ "​default",​
 +    "​files.autoSave":​ "​afterDelay"​
 +
 } }
 </​file>​ </​file>​
  
world/raccourcis.1707039793.txt.gz · Last modified: 2024/02/04 10:43 by rdouc