• Евдокимов Илья Васильевич's avatar
    GUI: «Отчёт LaTeX…» — the whole report as report.tex to build oneself
    · bde3d005
    
    
    The user asked for a report in LaTeX: a .tex with everything around it,
    which they compile themselves.
    
    src/amorph_gui/report.py writes a folder: report.tex, the bodies of both
    figures of amorph_tex (xrd_fit, xrd_seeds), their tables in pgf/, and
    build.bat / build.sh that run pdflatex. The report has
    - the result: the median with its 50% and 90% intervals, the seeds
      pooled as in the joint report, its notes and the line for a paper;
    - the table of the runs with their checks (shrunk to the text width if
      wider, as with OPTIONS_AGGRESSIVE);
    - the data and the settings;
    - the diagnostic cards of each run;
    - both figures;
    - how to read the numbers (the tooltips of helptext).
    
    The text is plain text of strings.py turned into LaTeX (report.latex):
    the specials of LaTeX and the characters T2A does not print (Δ, −, ν, θ,
    ≤, ·) are escaped. The preamble needs pgfplots, babel with Russian and
    cm-super. The button is on «Сравнение», for the ticked seeds, and on
    «Результаты», for the run shown, which is in its report whatever its
    checks say.
    
    Checked by hand with TeX Live 2026 on the user's runs: N3RAW, two seeds
    of OPTIONS and one of OPTIONS_AGGRESSIVE. pdflatex builds 4 pages with
    no error and no overfull box. tests/test_report.py builds it where
    pdflatex is installed.
    
    Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
    bde3d005