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.

117 lines
1.7 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. endsnippet
  32. snippet ,em "Emphasis" A
  33. \emph{$1}
  34. endsnippet
  35. snippet ,bf "Bold" A
  36. \textbf{$1} $2
  37. endsnippet
  38. snippet ,it "Italic" A
  39. \textit{$1} $2
  40. endsnippet
  41. snippet ,ct "Text cite" A
  42. \textcite{$1} $2
  43. endsnippet
  44. snippet ,cp "Parenthesis cite" A
  45. \parencite{$1} $2
  46. endsnippet
  47. snippet ,ol "Enumeration" A
  48. \begin{enumerate}
  49. \item $1
  50. $2
  51. \end{enumerate}
  52. endsnippet
  53. snippet ,ul "Itemization" A
  54. \begin{itemize}
  55. \item $1
  56. $2
  57. \end{itemize}
  58. endsnippet
  59. snippet ,li "List element" A
  60. \item $1
  61. $2
  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. endsnippet
  71. snippet ,a "Hyperlink" A
  72. \href{$1}{$2}
  73. endsnippet
  74. snippet ,sc "Small caps" A
  75. \textsc{$1} $2
  76. endsnippet
  77. snippet ,chap "Chapter" A
  78. \chapter{$1}
  79. $2
  80. endsnippet
  81. snippet ,sec "Section" A
  82. \section{$1}
  83. $2
  84. endsnippet
  85. snippet ,ssec "Subsection" A
  86. \subsection{$1}
  87. $2
  88. endsnippet
  89. snippet ,sssec "Subsubsection" A
  90. \subsubsection{$1}
  91. $2
  92. endsnippet
  93. snippet ,up "Use Packagage" A
  94. \usepackage{$1}
  95. endsnippet
  96. snippet ,tt "Typewriter" A
  97. \texttt{$1} $2
  98. endsnippet