Guest User

Untitled

a guest
Feb 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. {
  2. commands = {
  3. it = '\\textit{$1} ';
  4. bf = '\\textbf{$1} ';
  5. tt = '\\texttt{$1} ';
  6. sf = '\\textsf{$1} ';
  7. sc = '\\textsc{$1} ';
  8. em = '\\emph{$1} ';
  9. fc = '\\footcite{$1} ';
  10. fn = '\\footnote{$1} ';
  11. cli = '\\lstinline{$1} ';
  12. ds = '\\displaystyle';
  13. displaystyle = '\\displaystyle';
  14.  
  15. sec = '\\section{$1}';
  16. sub = '\\subsection{$1}';
  17. ssub = '\\subsubsection{$1}';
  18. cha = '\\chapter{$1}';
  19. par = '\\part{$1}';
  20.  
  21. dc = '\\documentclass{${1:article}}';
  22. nc = '\\newcommand{$1}{$2}';
  23. rnc = '\\renewcommand{$1}{$2}';
  24.  
  25. fr = '\\frac{${1:num}}{$0}';
  26. frac = '\\frac{${1:num}}{$0}';
  27. l = '\\lim_{$1} $0';
  28. lim = '\\lim_{$1} $0';
  29. s = '\\sum_\{${1:bot}\}^{$2} $0';
  30. sum = '\\sum_\{${1:bot}\}^{$2} $0';
  31. p = "\\prod_\{${1:bot}\}^{$2} $0";
  32. prod = "\\prod_\{${1:bot}\}^{$2} $0";
  33.  
  34. put = "\\put(${1:0},${2:0}){$0}";
  35. mp = "\\multiput(${1:0},${2:0})(${3:5},${4:0}){${5:2}}{$0}";
  36. mput = "\\multiput(${1:0},${2:0})(${3:5},${4:0}){${5:2}}{$0}";
  37. multiput = "\\multiput(${1:0},${2:0})(${3:5},${4:0}){${5:2}}{$0}";
  38. line = "\\line(${1:0},${2:0}){${3:0}}{$0}";
  39. cir = "\\circle${1:[*]}{$0}";
  40. circle = "\\circle${1:[*]}{$0}";
  41. };
  42. commands_beamer = {
  43. un = "\\uncover<${1:+-}>{$2} ";
  44. uncover = "\\uncover<${1:+-}>{$2} ";
  45. o = "\\only<${1:+-}>{$2} ";
  46. only = "\\only<${1:+-}>{$2} ";
  47.  
  48. };
  49. environments = {
  50. itemize = {
  51. triggers = ( 'it', 'item', 'itemize');
  52. content = '\\item ';
  53. };
  54. enumerate = {
  55. triggers = ( 'en', 'enum', 'enumerate');
  56. content = '\\item ';
  57. };
  58. description = {
  59. triggers = ( 'desc', 'description');
  60. content = '\\item[$1] $2';
  61. };
  62.  
  63. document = {
  64. triggers = ( doc, document );
  65. };
  66. equation = {
  67. triggers = ( eq, eqn, equation );
  68. };
  69. eqnarray = {
  70. triggers = ( eqa, equation );
  71. };
  72.  
  73. theorem = {
  74. triggers = ( thm, theorem );
  75. zero_line = "\\label{thm:$1}";
  76. };
  77. lemma = {
  78. triggers = ( lem, lemma );
  79. zero_line = "\\label{lem:$1}";
  80. };
  81. corollary = {
  82. triggers = ( cor, corollary );
  83. zero_line = "\\label{cor:$1}";
  84. };
  85. proposition = {
  86. triggers = ( pro, proposition );
  87. zero_line = "\\label{pro:$1}";
  88. };
  89. definition = {
  90. triggers = ( def, definition );
  91. zero_line = "\\label{def:$1}";
  92. };
  93. proof = {
  94. triggers = ( pf, proof );
  95. zero_line = "${1:\\label{pf:$2\\}}";
  96. };
  97. questions = {
  98. triggers = ( q, que, questions );
  99. content = "\\question ";
  100. };
  101. parts = {
  102. triggers = ( p, par, parts );
  103. content = "\\part ";
  104. };
  105.  
  106. lstlisting = {
  107. triggers = ( lst, lstlisting);
  108. zero_line = "[caption=${1:cap},label=lst:${2:lab},float=htbp]";
  109. };
  110.  
  111. figure = {
  112. triggers = ( fig, figure);
  113. zero_line = "[${1:htbp}]";
  114. content = " \\begin{center}
  115. \\includegraphics[scale=${2:1}]{${3:file}}
  116. \\end{center}
  117. \\caption{${4:caption}}
  118. \\label{fig:${5:label}}";
  119. };
  120. picture = {
  121. triggers = ( pic, picture);
  122. zero_line = "(${1:100},${2:100})${3:(${4:0},${5:0})}";
  123. };
  124.  
  125. table = {
  126. triggers = ( tbl, table);
  127. content = "
  128.  
  129. \\begin{center}
  130. \\begin{tabular}{${3:c}}
  131. ${4}
  132. \\end{tabular}
  133. \\end{center}
  134. \\caption{${1:caption}}
  135. \\label{${2:label}}"
  136. ;
  137. };
  138. };
  139. environments_beamer = {
  140. itemize = {
  141. triggers = ( 'it', 'item', 'itemize');
  142. content = '\\item<${1:+-}> $2';
  143. };
  144. enumerate = {
  145. triggers = ( 'en', 'enum', 'enumerate');
  146. content = '\\item<${1:+-}> $2';
  147. };
  148. description = {
  149. triggers = ( 'desc', 'description');
  150. content = '\\item<${1:+-}>[$2] $3';
  151. };
  152. frame = {
  153. triggers = ( fr, frame);
  154. zero_line = "[${1:t}]\\frametitle{${2:title}}";
  155. };
  156. columns = {
  157. triggers = ( cols, columns);
  158. content = "\\begin{column}{${1:0.${2:5}\\textwidth}}
  159. $3
  160. \\end{column}";
  161. };
  162. column = {
  163. triggers = ( col, column);
  164. zero_line = "{${1:0.${2:5}\\textwidth}}";
  165. };
  166. block = {
  167. triggers = ( bl, block);
  168. zero_line = "{$1}";
  169. };
  170. };
  171. }
Add Comment
Please, Sign In to add comment