vojtechkral/bard

Multicol in bard 2.0

Closed this issue · 5 comments

Hello @vojtechkral !
I'm using your alpha release. Everything works great after adjusting the templates.
Except the multi column layout.
I get this error:
grafik

In the pdf.hbs I'm using the following code:

\setlength{\columnsep}{15mm}
{{#*inline "h-columns"}}
\begin{absolutelynopagebreak}
\begin{multicols}{ {{~ num ~}} }
{{/inline}}

{{#*inline "h-/columns"}}
\end{multicols}
\end{absolutelynopagebreak}
{{/inline}}

And in the song itself I enclose the text between:
<columns num=2>
and
</columns>

Can you please help me to make it work?

There needs to be a newline after the html tag, ie. instead of

<columns num=2>
1. `C`Lyrics lyrics

it should be

<columns num=2>

1. `C`Lyrics lyrics

... the issue is that in the first case the whole block gets parsed as HTML, these are commonmark parsing rules - not my decision...

But I should fix the html parsing so that this is more obvious, or at least a bit less mysterious...

Ahh, I see. The issue was that I used <footnotesize> right before the column html tag without a newline in between.

Alterantively you can also put the tag on the same line as text, ie. <footnotesize>Something something... if you'd like it more compact...

I've implemented a warning when this sort of thing happens, the warning hints that a blank line may be needed.