braces around math

Aperta
#1,086 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
latex, perl
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Perl
Stelle
48
Fork
78
Merge medio
5g 13h
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwebwork/pg

Tutte le issue di openwebwork/pg

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.