Why can't we use tables in introductions chapter (before Chapter 1)?

Whenever I tried to put a table in introduction (before chapter 1), the table always displayed in Chapter 1 instead. Why is that?

Here’s a portion of my .SFM file if it helps.

\id EXO
\toc1 Keluaran
\toc2 Keluaran
\toc3 Kel

\imt Keluaran

\is1 Fakta
\tr \tc1 Statistik\tc2 40 pasal, 1213 ayat, 32.692 kata
\tr \tc1 Penulis\tc2 Musa
\tr \tc1 Tema\tc2 Penebusan; Penebusan melalui darah.
\tr \tc1 Waktu\tc2 Sekitar 1445-1405 SM
\tr \tc1 Tempat\tc2 Mesir, Laut Merah*, Gunung Sinai
\tr \tc1 Kata Kunci\tc2 Paskah.
\tr \tc1 Kristus Di Alkitab\tc2 Dia adalah Anak Domba Paskah
\ie

\c 1

\ms Keluaran

\s1 Latar Belakang
\m Keluaran melanjutkan kisah yang dimulaikan dalam Kejadian. Judul kitab ini diambil dari kata Yunani _exodos_ (judul yang dipakai di Septuaginta, yaitu PL dalam bahasa Yunani) yang artinya "keluaran" atau "keberangkatan." Kata ini menunjuk kepada pembebasan bangsa Israel secara luar biasa dari perhambaan di Mesir oleh Allah dan keberangkatan mereka dari negeri itu sebagai umat Allah.

Here’s some screenshots:

Good illustration of your issue with both code and screenshots. Well done!

USFM has a set of rules. Only certain markers can go before the chapter one \c 1. Tables \tr are not one of them. Most start with i.

You could use \io and wrap the second part in \ior text...\ior*.
You could then try and float that right and put a width on it.

span.ior {
    font-style: italic;
    float: right;
    width: 70%;
}

Also modify the \io CSS

div.io {
    padding-left: 4%;
    clear: both;
}

And the SFM

\io Statistik\ior 40 pasal, 1213 ayat, 32.692 kata\ior*
\io Penulis\ior Musa                                 \ior*
\io  Tema\ior Penebusan; Penebusan melalui darah.\ior*
\io  Waktu\ior Sekitar 1445-1405 SM\ior*
\io  Tempat\ior Mesir, Laut Merah*, Gunung Sinai\ior*
\io  Kata Kunci\ior Paskah.\ior*
\io  Kristus Di Alkitab\ior Dia adalah Anak Domba Paskah\ior*

image

Need to test on small screens though.

If you put markers starting with i after the chapter one marker then you also get strange things happening like missing last chapters.

Hi, Ian @mcquayi.
I’ve tried your solution and it worked! Thank you so much! But, I modified quite a few things to suit my need. So I want to share what I did.

Inspired by your solution, basically I modified \io to sort of act like \tr, and I used custom markers \itc1...\itc1* and \itc2...\itc2* to act like \tc1 and \tc2 respectively.

Here’s the modified CSS:

div.io {
    padding-left: 4%;
    clear: both;
}

span.itc1 {
    float: left;
    font-size: 90%;
    font-weight: bold;
    padding-bottom: 5px;
    padding-right: 5px;
    padding-top: 5px;
    text-align: left;
    vertical-align: top;
    width: 28%;
}

span.itc2 {
    border-bottom: 1px solid lightgrey;
    float: right;
    font-size: 100%;
    font-style: italic;
    font-weight: normal;
    padding-bottom: 5px;
    padding-right: 5px;
    padding-top: 5px;
    text-align: left;
    vertical-align: top;
    width: 68%;
}

And here’s the SFM:

\imt Keluaran

\is1 Fakta
\io \itc1 Statistik\itc1*\itc2 40 pasal, 1213 ayat, 32.692 kata\itc2*
\io \itc1 Penulis\itc1*\itc2 Musa\itc2*
\io \itc1 Tema\itc1*\itc2 Penebusan; Penebusan melalui darah.\itc2*
\io \itc1 Waktu\itc1*\itc2 Sekitar 1445-1405 SM\itc2*
\io \itc1 Tempat\itc1*\itc2 Mesir, Laut Merah*, Gunung Sinai\itc2*
\io \itc1 Kata Kunci\itc1*\itc2 Paskah.\itc2*
\io \itc1 Kristus Di Alkitab\itc1*\itc2 Dia adalah Anak Domba Paskah\itc2*
\ie

The result is awesome!

However, as you might already guessed, there’s a caveat here. I noticed that if you set the font size too large, the text will begin to overlap. And since I haven’t test it on small screens like you suggested, there might be problems there too.

1 Like

Well done.

I have never had any luck setting width to a span before in a conventional HTML setting.

Glad it inspired you and you worked out your own solution.