Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. {
  2. // Place your snippets for latex here. Each snippet is defined under a snippet name and has a prefix, body and
  3. // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  4. // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
  5. // same ids are connected.
  6. // Example:
  7. // "Print to console": {
  8. // "prefix": "log",
  9. // "body": [
  10. // "console.log('$1');",
  11. // "$2"
  12. // ],
  13. // "description": "Log output to console"
  14. // }
  15. "Add a todo": {
  16. "prefix": "todo",
  17. "body": [
  18. "% TODO: $1",
  19. ],
  20. "description": "Add a todo"
  21. },
  22. "New acronym": {
  23. "prefix": "\\newacronym",
  24. "body": [
  25. "\\newacronym{$1}{$2}{$3}"
  26. ],
  27. "description": "Add a new acronym"
  28. },
  29. "Italic text": {
  30. "prefix": "\\it",
  31. "body": [
  32. "\\textit{$1} $0"
  33. ],
  34. "description": "italic text"
  35. },
  36. "Verbatim text": {
  37. "prefix": "\\tt",
  38. "body": [
  39. "\\texttt{$1} $0"
  40. ],
  41. "description": "verbatim text"
  42. },
  43. "Bold text": {
  44. "prefix": "\\bf",
  45. "body": [
  46. "\\textbf{$1} $0"
  47. ],
  48. "description": "bold text"
  49. },
  50. "Add table": {
  51. "prefix": "\\table",
  52. "body": [
  53. "\\begin{table}",
  54. " \\caption[$1]{$1 $2}",
  55. " \\label{tab:$3}",
  56. " \\centering\\CaptionFontSize",
  57. " \\begin{tabular}{@{}ccc@{}}",
  58. " \\toprule",
  59. " $4 & $5 & $6 \\\\\\",
  60. " \\bottomrule",
  61. " \\end{tabular}",
  62. "\\end{table}",
  63. "$0"
  64. ],
  65. "description": "Add table"
  66. },
  67. "Add figure": {
  68. "prefix": "\\figure",
  69. "body": [
  70. "\\begin{figure}",
  71. " \\centering\\CaptionFontSize",
  72. " \\includegraphics[width=$1\\linewidth]{Figures/$2}",
  73. " \\caption[$3]{$3 $4}",
  74. " \\label{fig:$2}",
  75. "\\end{figure}",
  76. "$0"
  77. ],
  78. "description": "Add figure"
  79. },
  80. "Add equation": {
  81. "prefix": "\\equation",
  82. "body": [
  83. "\\begin{equation}",
  84. " \\label{eq:$1}",
  85. " $2",
  86. "\\end{equation}",
  87. "$0"
  88. ],
  89. "description": "Add equation"
  90. },
  91. "Add algorithm": {
  92. "prefix": "\\algorithm",
  93. "body": [
  94. "\\begin{algorithm}",
  95. " \\caption[$1]{$1 $2}",
  96. " \\label{alg:$3}",
  97. " \\begin{algorithmic}[1]",
  98. " \\Procedure{$4}{$5}",
  99. " \\State \\textbf{return} $6",
  100. " \\EndProcedure",
  101. " \\end{algorithmic}",
  102. "\\end{algorithm}",
  103. "$0"
  104. ],
  105. "description": "Add algorithm"
  106. },
  107. "Add subfigures": {
  108. "prefix": "\\subfigure",
  109. "body": [
  110. "\\begin{figure}[t]",
  111. "\\begin{subfigure}[b]{.49\\linewidth}",
  112. " \\centering\\CaptionFontSize",
  113. " \\includegraphics[width=1\\linewidth]{$1}",
  114. " \\caption{$1 $2}",
  115. " \\label{fig:$3}",
  116. "\\end{subfigure}%",
  117. "\\hfill",
  118. "\\begin{subfigure}[b]{.49\\linewidth}",
  119. " \\centering\\CaptionFontSize",
  120. " \\includegraphics[width=1\\linewidth]{$4}",
  121. " \\caption{$4 $5}",
  122. " \\label{fig:$6}",
  123. "\\end{subfigure}%",
  124. "\\caption{$7}",
  125. "\\label{fig:$8}",
  126. "\\end{figure}",
  127. ],
  128. "description": "Add subfigures"
  129. },
  130.  
  131. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement