# CASE: different table structures

**URL:** <https://community.silverfin.com/t/case-different-table-structures/1529>\
**Category:** Cases\
**Tags:** tables, table-structure\
**Created:** [July 18, 2019, 9:00pm UTC](https://community.silverfin.com/t/case-different-table-structures/1529 "2019-07-18T21:00:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [July 18, 2019, 9:00pm UTC](https://community.silverfin.com/t/case-different-table-structures/1529/1 "2019-07-18T21:00:38Z")

</div>

You can have different table structures within Silverfin, as you can see below:

 ![06](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/9/9ab4451be58951c59dfbf9b40a0da6aaa1b6afa9.png)

The code to generate this all:

```auto
{% comment %}GREY header -- table A{% endcomment %}
{% stripnewlines %}
| Header A
| Header B
| Header C
| Header D
{% newline %}
|:----25%----:
|:----25%----:
|:----25%----:
|:----25%----:#
{% newline %}
| content
| content
| content
| content
{% endstripnewlines %}

<br>

{% comment %}GREY SELECTED header -- table B{% endcomment %}
{% stripnewlines %}
|:----25%----:
|:----25%----:
|:----25%----:
|:----25%----:#
{% newline %}
| Header A
| Header B
| Header C
| Header D
{% newline %}
| content
| content
| content
| content
{% endstripnewlines %}

<br>

{% comment %}BLACK LINE header -- table C{% endcomment %}
{% stripnewlines %}
| Header A
| Header B
| Header C
| Header D
{% newline %}
|:----25%----:
|:----25%----:
|:----25%----:
|:----25%----:+
{% newline %}
| content
| content
| content
| content
{% endstripnewlines %}

<br>

{% comment %}NO BLACK LINE header -- table D{% endcomment %}
{% stripnewlines %}
|:----25%----:
|:----25%----:
|:----25%----:
|:----25%----:+
{% newline %}
| Header A
| Header B
| Header C
| Header D
{% newline %}
| content
| content
| content
| content
{% endstripnewlines %} 

```

Now, the grey headers are be-au-ti-ful but you probably won’t have them in PDF export. Luckily, there’s a way to avoid that.

So in input-mode you’ll have this:

 ![27](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/0/00e69c761d5dde216c9efedcae8c336e0a0df8dd.png)

In export this:

 ![37](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/8/8bb305acb588c03ceabc0b845f7247b74ebf5fe0.png)

This is how you can do it:

```auto
{% comment %}have the GREY header in INPUT, while having the BLACK LINE header in export{% endcomment %}
{% comment %}GREY header{% endcomment %}
{% stripnewlines %}
| Header A
| Header B
| Header C
| Header D
{% newline %}
|:----25%----:
|:----25%----:
|:----25%----:
|:----25%----:
{% ic %}#{% endic %} {% comment %}shows GREY header in INPUT mode{% endcomment %}
{% nic %}+{% endnic %}{% comment %}shows BLACK LINE header in OUTPUT mode{% endcomment %}
{% newline %}
| content
| content
| content
| content
{% endstripnewlines %}

```
