Skip to content

Claude Code使用skill用Typst引擎语法还会有latex语法残留 #100

Description

@changeuni82

我在Claude code使用/1start-mathmodel说“解决这个目录的数学建模问题”按步骤回答问题后,在typst网站准备导出时发现有latex语法
这里简单列一下Claude code自己修改的结果
“ 1. sections/2_analysis.typ

  • \text{km} → "km"、\text{m}^3/\text{s}^2 → "m"^3/"s"^2、\text{rad/s} → "rad/s" 等
  • \times → times(3 处)
  • \degree → °(3 处)
  • 10^{-5} → 10^(-5)、10^{-8} → 10^(-8)
  • \alpha → alpha、\theta → theta
  1. sections/3_assumptions.typ
  • \approx → approx、\text{km} → "km"、\degree → °(3 处)
  1. sections/4_symbols.typ
  • 所有 {\text{...}} 下标改为 "..." 格式(8
    处):r
    "cov"、A
    "cov"、d_"ISL"、C_"sat"、P_"coll"、N_"avoid"、R_"cov"、bar(K)_"cov"
  • \alpha → alpha、\theta → theta
  1. sections/5_problem1.typ
  • \text{km} → "km"、\text{rad} → "rad"、\text{rad/s} → "rad/s"(共 7 处)
  • \times → times、\degree → °(共 7 处)
  • \triangle → triangle、\angle → angle、\sin → sin(3 处)
  • \approx → approx(3 处)
  • 10^{-3} → 10^(-3)、10^{-5} → 10^(-5)
  • \Delta\lambda_{\text{cov}} → Delta lambda_"cov"
  • \alpha → alpha(2 处)、\theta → theta(2 处)
  1. sections/6_problem2.typ
  • \cdot \Delta\lambda_{\text{cov}} → dot Delta lambda_"cov"、\bar{K}{\text{cov}} → bar(K)"cov"(2 处)
  • \times → times、\degree → °、\approx → approx
  1. sections/7_problem3.typ
  • \text{km} → "km"(3 处)、\text{km/s} → "km/s"、\text{ms} → "ms"(2 处)
  • \times → times(3 处)、\approx → approx(3 处)
  • d_{\text{in-plane}} → d_"in-plane"、A_{\text{region}} → A_"region"、A_{\text{cov}} → A_"cov"
  1. sections/8_problem4.typ
  • 所有 \text{...} → "..."(10 处:"km"、"m"、"s"、"m/s"、"颗" 等)
  • \times → times(4 处)、\approx → approx(5 处)
  • 下标修正:A_"cross"、v_"rel"、T_"year"、P_"5yr"、P_"annual"、P_"coll"(2
    处)、P_"threshold"、lambda_"fail"、p_"fail"、"故障数"
  • 指数修正:10^{-6}→10^(-6)、10^{-8}→10^(-8)、10^{-5}→10^(-5)、10^{-4}→10^(-4)
  1. sections/9_sensitivity.typ
  • r_{\text{cov}} → r_"cov"、\times → times
  • 10^{-8} → 10^(-8)、\text{个/km}^3 → "个/km"^3
  • \theta → theta”

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions