HumanReadableLogsPackageSuggestions.js 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. const commandSuggestions = [
  2. [
  3. '\\includegraphics',
  4. { name: 'graphicx', command: '\\usepackage{graphicx}' },
  5. ],
  6. ['\\toprule', { name: 'booktabs', command: '\\usepackage{booktabs}' }],
  7. ['\\midrule', { name: 'booktabs', command: '\\usepackage{booktabs}' }],
  8. ['\\bottomrule', { name: 'booktabs', command: '\\usepackage{booktabs}' }],
  9. ['\\cmidrule', { name: 'booktabs', command: '\\usepackage{booktabs}' }],
  10. ['\\multirow', { name: 'multirow', command: '\\usepackage{multirow}' }],
  11. ['\\justifying', { name: 'ragged2e', command: '\\usepackage{ragged2e}' }],
  12. ['\\tag', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  13. ['\\notag', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  14. ['\\text', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  15. ['\\boldsymbol', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  16. ['\\eqref', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  17. ['\\iint', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  18. ['\\iiint', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  19. ['\\nmid', { name: 'amssymb', command: '\\usepackage{amssymb}' }],
  20. ['\\varnothing', { name: 'amssymb', command: '\\usepackage{amssymb}' }],
  21. ['\\Box', { name: 'amssymb', command: '\\usepackage{amssymb}' }],
  22. ['\\citep', { name: 'natbib', command: '\\usepackage{natbib}' }],
  23. ['\\citet', { name: 'natbib', command: '\\usepackage{natbib}' }],
  24. ['\\citepalias', { name: 'natbib', command: '\\usepackage{natbib}' }],
  25. ['\\citetalias', { name: 'natbib', command: '\\usepackage{natbib}' }],
  26. ['\\url', { name: 'url', command: '\\usepackage{url}' }],
  27. ['\\href', { name: 'hyperref', command: '\\usepackage{hyperref}' }],
  28. ['\\texorpdfstring', { name: 'hyperref', command: '\\usepackage{hyperref}' }],
  29. ['\\phantomsection', { name: 'hyperref', command: '\\usepackage{hyperref}' }],
  30. ['\\arraybackslash', { name: 'array', command: '\\usepackage{array}' }],
  31. ]
  32. const environmentSuggestions = [
  33. ['justify', { name: 'ragged2e', command: '\\usepackage{ragged2e}' }],
  34. ['align', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  35. ['align*', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  36. ['split', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  37. ['gather', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  38. ['cases', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  39. ['matrix', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  40. ['pmatrix', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  41. ['bmatrix', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  42. ['subequations', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  43. ]
  44. const packageSuggestionsForCommands = new Map(commandSuggestions)
  45. const packageSuggestionsForEnvironments = new Map(environmentSuggestions)
  46. export { packageSuggestionsForCommands, packageSuggestionsForEnvironments }