Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce table's column's width property #251

Closed
Intelligent2013 opened this issue Apr 18, 2020 · 2 comments
Closed

Introduce table's column's width property #251

Intelligent2013 opened this issue Apr 18, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link
Contributor

Introduce width property for each column in table for better display in PDF and allow transforming Metanorma XML into NISO STS.
NISO STS format has such attribute @width for 'col' elements:

<table width="638">
<col width="14%"/>
<col width="15.09%"/>
<col width="17.92%"/>
<col width="26.41%"/>
<col width="26.58%"/>
<thead>
<tr>...
@ronaldtse ronaldtse added the enhancement New feature or request label Apr 20, 2020
@ronaldtse ronaldtse added this to Needs triage in Nick Nicholas via automation Apr 20, 2020
@opoudjis opoudjis moved this from Needs triage to High priority in Nick Nicholas Apr 20, 2020
@ronaldtse ronaldtse moved this from High priority to Mid priority in Nick Nicholas Apr 20, 2020
@opoudjis opoudjis moved this from Mid priority to High priority in Nick Nicholas Nov 3, 2020
@opoudjis opoudjis moved this from High priority to Current in Nick Nicholas Dec 5, 2020
opoudjis added a commit to metanorma/metanorma-model-standoc that referenced this issue Dec 5, 2020
opoudjis added a commit to metanorma/metanorma-model-iso that referenced this issue Dec 5, 2020
opoudjis added a commit to metanorma/metanorma-model-iso that referenced this issue Dec 5, 2020
opoudjis added a commit that referenced this issue Dec 5, 2020
@opoudjis
Copy link
Contributor

opoudjis commented Dec 5, 2020

Tightening the requirement on the cols attribute: each column needs to be given an explicit width number, in order for there to be a valid colgroup element, and there needs to be more than one column. [cols="2"] will not be recognised as having equal width, but [cols="1,1"] will.

@opoudjis
Copy link
Contributor

opoudjis commented Dec 5, 2020

The Metanorma XML is:

<table>
<colgroup>
<col width="...%"/>
<col width="...%"/>
<col width="...%"/>
</colgroup>
</table>

The colgroup element is optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Nick Nicholas
  
Closed
Development

No branches or pull requests

3 participants