in reply to (OT) Template toolkit latex table issue

This is not a Perl problem but more a problem with your generated LaTeχ code. pdflatex tells you that a \textbf command was problematic. So you should look at the created .tex file and look what it is that pdflatex doesn't like. Maybe it's malformed input.

Once you have determined that, we can maybe help you improve your program so it generates better LaTeχ .

Replies are listed 'Best First'.
Re^2: (OT) Template toolkit latex table issue
by aarya (Initiate) on Sep 23, 2016 at 05:45 UTC
    Hi thanks for your comment, I am facing problem with only tx.comments key value if I put any other keys it's works fine with both \textbf and \multicolumn. I unable to differentiate what is the issue with that if it's latex issue then it should not work with other keys values too.

      Have you considered looking at the .tex output files your program creates? These would be to me the most obvious thing to look at to find what LaTeχ dislikes. From there, you can maybe investigate further.

        Thank you Corion for your guidance. I solved this issue with below metthod:-

        1. Without declraing width of multicolumn.

        \\ {\bf [% tx.serial %]} & {\bf [% tx.type %]} & [% tx.item_product_code %] &  [% tx.dc %] & [% tx.currency  %] & [% tx.amount %]\\

        \multicolumn{6}{c}\bf [% tx.comments %] \\

        2. with declaring width of multicolumn for content wraapper, by declaring table inside multicolumn

        \\ {\bf [% tx.serial %]} & {\bf [% tx.type %]} & [% tx.item_product_code %] &  [% tx.dc %] & [% tx.currency  %] & [% tx.amount %]\\

        \multicolumn{5}{l}{\begin{tabular}[t]{p{4in}}

           Details: [% tx.comments %]

             \end{tabular}}\\
      Is there any way, how can I check it is malformed input? that will be very helpful