Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
1.9 KiB

  1. # A valid snippet should starts with:
  2. #
  3. # snippet trigger_word [ "description" [ options ] ]
  4. #
  5. # and end with:
  6. #
  7. # endsnippet
  8. #
  9. # Snippet options:
  10. #
  11. # b - Beginning of line.
  12. # i - In-word expansion.
  13. # w - Word boundary.
  14. # r - Regular expression
  15. # e - Custom context snippet
  16. # A - Snippet will be triggered automatically, when condition matches.
  17. #
  18. # Basic example:
  19. #
  20. # snippet emitter "emitter properties" b
  21. # private readonly ${1} = new Emitter<$2>()
  22. # public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
  23. # endsnippet
  24. #
  25. # Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
  26. snippet ,fr "Frame" A
  27. \begin{frame}
  28. \frametitle{$1}
  29. $2
  30. \end{frame}
  31. $3
  32. endsnippet
  33. snippet ,em "Emphasis" A
  34. \emph{$1} $2
  35. endsnippet
  36. snippet ,bf "Bold" A
  37. \textbf{$1} $2
  38. endsnippet
  39. snippet ,it "Italic" A
  40. \textit{$1} $2
  41. endsnippet
  42. snippet ,ct "Text cite" A
  43. \textcite{$1} $2
  44. endsnippet
  45. snippet ,cp "Parenthesis cite" A
  46. \parencite{$1} $2
  47. endsnippet
  48. snippet ,ol "Enumeration" A
  49. \begin{enumerate}
  50. \item $1
  51. \end{enumerate}
  52. $2
  53. endsnippet
  54. snippet ,ul "Itemization" A
  55. \begin{itemize}
  56. \item $1
  57. \end{itemize}
  58. $2
  59. endsnippet
  60. snippet ,li "List element" A
  61. \item $1
  62. endsnippet
  63. snippet ,ref "Reference" A
  64. \ref{$1} $2
  65. endsnippet
  66. snippet ,tab "Tabular" A
  67. \begin{tabular}
  68. $1
  69. \end{tabular}
  70. $2
  71. endsnippet
  72. snippet ,a "Hyperlink" A
  73. \href{$1}{$2}
  74. endsnippet
  75. snippet ,sc "Small caps" A
  76. \textsc{$1} $2
  77. endsnippet
  78. snippet ,chap "Chapter" A
  79. \chapter {$1}
  80. $2
  81. endsnippet
  82. snippet ,sec "Section" A
  83. \section* {$1}
  84. $2
  85. endsnippet
  86. snippet ,lsec "Section" A
  87. \section {$1}
  88. $2
  89. endsnippet
  90. snippet ,ssec "Subsection" A
  91. \subsection* {$1}
  92. $2
  93. endsnippet
  94. snippet ,sssec "Subsubsection" A
  95. \subsubsection* {$1}
  96. $2
  97. endsnippet
  98. snippet ,par "Paragraph" A
  99. \paragraph* {$1}
  100. $2
  101. endsnippet
  102. snippet ,spar "Subparagraph" A
  103. \subparagraph* {$1}
  104. $2
  105. endsnippet
  106. snippet ,up "Use Packagage" A
  107. \usepackage{$1}
  108. $2
  109. endsnippet
  110. snippet ,ttt "Typewriter" A
  111. \texttt{$1} $2
  112. endsnippet