HumanReadableLogsPackageSuggestions.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ['\\url', { name: 'url', command: '\\usepackage{url}' }],
  25. ['\\href', { name: 'hyperref', command: '\\usepackage{hyperref}' }],
  26. ['\\texorpdfstring', { name: 'hyperref', command: '\\usepackage{hyperref}' }],
  27. ['\\phantomsection', { name: 'hyperref', command: '\\usepackage{hyperref}' }],
  28. ]
  29. const environmentSuggestions = [
  30. ['justify', { name: 'ragged2e', command: '\\usepackage{ragged2e}' }],
  31. ['align', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  32. ['align*', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  33. ['split', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  34. ['gather', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  35. ['cases', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  36. ['matrix', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  37. ['pmatrix', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  38. ['bmatrix', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  39. ['subequations', { name: 'amsmath', command: '\\usepackage{amsmath}' }],
  40. ]
  41. const packageSuggestionsForCommands = new Map(commandSuggestions)
  42. const packageSuggestionsForEnvironments = new Map(environmentSuggestions)
  43. export { packageSuggestionsForCommands, packageSuggestionsForEnvironments }