Hi Everyone,

I am facing some problem in creating a table, my sample data and latex pdf.tt file contents are pasted on http://pastebin.com/t5V1AK1m. The problem is in my sample data "comments key value" creating the problem.

I can't use % tx.comments % with \multicolumn{6}{c}{ % tx.comments % } the contents of comments is variable in length so I am printing in a separate row.

In my current pasted code if I print with % tx.comments % it print the data but under on Ist column of table, and width of first column is become large based on contents of comments. I want to print it in next row.

if I print \textbf{% tx.serial %} \\ or any other variable except comments then it prints but when I print \textbf{% tx.comments %} \\ it gives the below error.

Couldn't render template "src/diner/bill_pdf.tt: latex error - pdflatex exited with errors: ! File ended while scanning use of \textbf . ! Emergency stop. ! ==> Fatal error occurred, no output PDF file produced!

I am not able to find what is wrong with this comments key data, while it working for other keys value. Even other keys also works with \multicolumn too.

Thanks. Amit Bondwal

In reply to (OT) Template toolkit latex table issue by aarya

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.