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.

115 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. \end{enumerate}
  51. endsnippet
  52. snippet ,ul "Itemization" A
  53. \begin{itemize}
  54. \item $1
  55. \end{itemize}
  56. endsnippet
  57. snippet ,li "List element" A
  58. \item $1
  59. endsnippet
  60. snippet ,ref "Reference" A
  61. \ref{$1} $2
  62. endsnippet
  63. snippet ,tab "Tabular" A
  64. \begin{tabular}
  65. $1
  66. \end{tabular}
  67. endsnippet
  68. snippet ,a "Hyperlink" A
  69. \href{$1}{$2}
  70. endsnippet
  71. snippet ,sc "Small caps" A
  72. \textsc{$1} $2
  73. endsnippet
  74. snippet ,chap "Chapter" A
  75. \chapter{$1}
  76. $2
  77. endsnippet
  78. snippet ,sec "Section" A
  79. \section*{$1}
  80. $2
  81. endsnippet
  82. snippet ,ssec "Subsection" A
  83. \subsection*{$1}
  84. $2
  85. endsnippet
  86. snippet ,sssec "Subsubsection" A
  87. \subsubsection*{$1}
  88. $2
  89. endsnippet
  90. snippet ,up "Use Packagage" A
  91. \usepackage{$1}
  92. endsnippet
  93. snippet ,tt "Typewriter" A
  94. \texttt{$1} $2
  95. endsnippet