HumanReadableLogsPackageSuggestions.js 2.7 KB

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