13.11.2015 Views

my Latex and Tex4ht cheat sheet

my Latex cheat sheet - 12000.org

my Latex cheat sheet - 12000.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

123,Poty city,Poti,red,-295731.42857144,617222.85714285<br />

124,Lanchhuti city,Poti,red,-299217.14285715,647851.42857142<br />

125,Ozurgeti city,Poti,red,-317217.14285715,648422.85714285<br />

126,Samtredia city,Poti,red,-287502.85714287,672022.85714285<br />

<strong>and</strong> you want to insert, say field located at row 2 <strong>and</strong> column 5, which is -299217.14285715 in the above, <strong>and</strong><br />

field at row 1 <strong>and</strong> column 3, which is Poti then do<br />

\begin{tabular}{|l|l|l|l|l|}\hline<br />

1 & \getField{1}{2} & 3 & 4 & 5 \\\hline<br />

6 & 7 & 8 & \getField{2}{5} & 9 \\\hline<br />

10 & 11 & 12 & 13 & 14 \\\hline<br />

\end{tabular}<br />

The full code is below. I googled lua code to parse CVS files, there are few on the net, I found one that<br />

worked <strong>and</strong> used it. The CVS file is read automatically. Change the cvs file name in the code below <strong>and</strong> its path<br />

as needed. The latex file needs to be compiled with lualatex not pdflatex<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!