michal-h21 / odsfile

LaTeX package for reading opendocument spreadsheet files.
14 stars 2 forks source link

Misplaced alignment tab character &. First & 2,2\OdsNl Second & #15

Open homocomputeris opened 5 days ago

homocomputeris commented 5 days ago

There is an error when a spreadsheet is included inside a tabularray tblr:

\documentclass{article}

\usepackage{odsfile}
\usepackage{tabularray}

\begin{document}
    \begin{tblr}{l l}
        \includespread[file=pokus.ods,sheet=List2]
    \end{tblr}     

    \begin{tblr}{l l}
        First & 1 \\
        Second & 2 
    \end{tblr} 
\end{document}
1: Misplaced alignment tab character &. First &
1: Misplaced alignment tab character &. First & 2,2\OdsNl Second &
1: Misplaced alignment tab character &. First &
1: Misplaced alignment tab character &. First & 2,2\OdsNl Second &
1: Misplaced alignment tab character &. First &
1: Misplaced alignment tab character &. First & 2,2\OdsNl Second &
1: Misplaced alignment tab character &. First &
1: Misplaced alignment tab character &. First & 2,2\OdsNl Second &
michal-h21 commented 4 days ago

I think it is the same issue as here. The problem is that tblr environment cannot read content generated by Lua inside. You can create a new template that will generate the whole tblr environment, which should work with the development version of Odsfile.