AmerMathSoc / texml

A repository for texml development
9 stars 2 forks source link

maatext: could "Appendix" inside appendix labels be wrapped in (e.g.,) x elements? #218

Open pkra opened 2 months ago

pkra commented 2 months ago

I couldn't find where this happens but it would be useful downstream if we could more easily target the word "Appendix" inside maatext appendices.

pkra commented 2 months ago

If we run into other (more complex) uses cases for such prefixes, then we can consider some additional identifying markup.

davidmjones commented 2 months ago

@pkra Would it be ok if the section/chapter/part name is always enclosed in x elements for all series?

Alternatively, we once discussed moving this into a separate prefix element, e.g.

 <sec>
    <prefix>Chapter</prefix>
    <label>1</label>
    <title>Strings, drums, and the Laplacian</title>

  <book>
    <prefix>Appendix</prefix>
    <label>A</label>
    <title>Proof of the GCD Theorem</title>

It's just as easy to do that as to add x elements.

pkra commented 2 months ago

Would it be ok if the section/chapter/part name is always enclosed in x elements for all series?

That would not be a problem.

Alternatively, we once discussed moving this into a separate prefix element,

I don't recall the discussion. The markup example seems doable but I still haven't unraveled all the convoluted history of label and title handling downstream, so adding another element to wrangle would come at a bad time.

This isn't urgent (I fixed the use case). Let's discuss this with some care another time.