substance / texture

A visual editor for research.
MIT License
1k stars 83 forks source link

Sections #1329

Open JGilbert-eLife opened 5 years ago

JGilbert-eLife commented 5 years ago

Description

Sections are used to organise the content of an article.

User stories

Author

  1. As an author, I want to be able to see the hierarchy of section headings within an article so that I can check this is correct.
  2. As an author, I want to be able to add a new heading to my article text so that I can create a new section.
  3. As an author, I want to be able to edit existing headings so that I can correct errors.
  4. As an author, I want to be able to adjust a heading's level of hierarchy within my manuscript so that I can organize my content.
  5. As an author, I want to be able to delete a heading so that I can merge one section of text into another.

But what if . . . ?

Consideration

XML requirements

Level of section headings determined by the nesting of sec.

Captured as a simple title. For eLife, every sec must have a title - this seems like a sensible rule to mandate (from a content architecture perspective).

<body>
    <sec>
        <title>...</title>
        ...
        <sec>
            <title>...</title>
            ...
            <sec>
                <title>...</title>
                ...
            </sec>
        </sec>
    </sec>
<body>

Children of sec/title:

The following elements should be allowed as children of sec elements in the body of the text/appendices:

Mock ups

Proposal

fabiobatalha commented 5 years ago

@JGilbert-eLife

The following elements should also be included in sec.

JGilbert-eLife commented 5 years ago

@FAtherden-eLife - please could you take a look at the elements Fabio mentioned? Was there any reason we excluded any of these from the XML requirements in this ticket? I think verse/verse-group may simply have been missed, but I'm not sure about the rest? I just want to make sure we don't need to make similar changes in other tickets.

Thanks!

fred-atherden commented 5 years ago

Thanks @JGilbert-eLife! verse-group I simply missed.

@fabiobatalha in #1318 we specified that disp-formula (and disp-formula-group elsewhere) should always be treated as inline content and captured in a p element (or similar, like td, title etc.). As a result I didn't include them as allowed children of sec - does that requirement still work for you?

With regard to graphic, tex-math, mml:math - can you tell me what context these would be used in. Would these always be captured in the following elements:

or do you need these to be able to be placed outside of these elements?