braces around math

Đang mở
#1,086 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
latex, perl
Lĩnh vực
backend

Hướng nghiên cứu

The issue asks where the surrounding braces in the $f->TeX output of a Formula come from, and whether they can be removed. The reporter says they could not find them in Value, so start by searching the MathObjects code for where TeX strings are wrapped in braces. Before changing anything, get a maintainer decision on whether the braces are needed; a done state would need that answer plus a passing test suite.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

This is not really a PG "issue". But I am having an issue with PTX that and LaTeX that stems from something MathObjects does, so I will post here.

If you have like $f = Formula('x');, then $f->TeX is {x} with those surrounding braces. Why are those there? And where are they added? (I looked around in Value but could not pinpoint them.)

I am wondering if it would be safe to make those go away. This has to do with https://tex.stackexchange.com/questions/722329/unwanted-space-in-tcbraster. If a math expression ends up being wider than a tcolorbox that contains it, and the math expression has these braces, my best understanding is that the math expression is not line-breakable and that leads to the issue described there.

Perhaps this is a webwork2 issue though too (in rare situations) since several hardcopy themes use tcolorbox.

Ngôn ngữ chính
Perl
Star
48
Fork
78
Merge trung bình
5 ngày 13 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openwebwork/pg

Tất cả issue của openwebwork/pg

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.