[racket] Scribbling LaTeX tables with lines
It would be wonderful if programmers used the design recipe for this kind of code too. An example -- even via comment -- of how to use
> (define (env t #:opt [optional '()] . items)
> (apply exact `("\\begin{" ,t "}"
> ,@(append-map interpret-option optional)
> , at items
> "\\end{" ,t "}")))
would get us somewhere. Yeap we can all read Racket code so nothing prevents us in principle for reusing it.
On Jul 5, 2012, at 10:31 PM, J. Ian Johnson wrote:
> My env function can handle that. More specifically, my style-matrix macro could easily be extended to allow vertical bar separators.
> https://github.com/ianj/scribble-latex-utils
> -Ian
> ----- Original Message -----
> From: Kathi Fisler <kfisler at cs.wpi.edu>
> To: users at racket-lang.org
> Sent: Thu, 5 Jul 2012 21:10:23 -0400 (EDT)
> Subject: [racket] Scribbling LaTeX tables with lines
>
> I'm trying to create a simple LaTeX table with lines between the
> columns/rows from Scribble source. The last posts I find on this date back
> a couple of years (when this wasn't directly supported). Is it supported
> yet? If not, does anyone have LaTeX macros for this that I could use as a
> starting point?
>
> To be clear, I'm trying to get the equivalent of
>
> \begin{tabular}{|c|c|c|} \hline
> c1 & c2 & c3 \\ \hline
> c4 & c5 & c6 \\ \hline
> \end{tabular}
>
> thanks,
> Kathi
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users