skribilo-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [skribilo-users] wishlist: multicol LaTeX package support


From: Ludovic Courtès
Subject: Re: [skribilo-users] wishlist: multicol LaTeX package support
Date: Tue, 23 Sep 2014 21:52:49 +0200
User-agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)

Saluton!

Carlos Carleos <address@hidden> skribis:

> I've seen the "-c column-number=2" example with Lout for RSS example, 
> but I need a finer control.

An obvious quick hack is to write:

  (!latex "\\begin{multicols}{2}\n")
  ...
  (!latex "\\end{multicols}\n")

Just mentioning it for completeness.  ;-)

> ,----[ diff latex.scm latex-multicol.scm ]
> | 371a372,374
> | >                  ;; multicol
> | >                  (multicol #f)
> | >                  (multicol-usepackage "\\usepackage{multicol}\n")
> | 534a538,539
> | >             (if (engine-custom e 'multicol)
> | >                 (display (engine-custom e 'multicol-usepackage)))
> | 1477a1483,1490
> | >
> | > ;*---------------------------------------------------------------------*/
> | > ;*    multicols ... @label multicols@                                     
>        */
> | > ;*---------------------------------------------------------------------*/
> | > (markup-writer 'multicols
> | >    :options '(:number)
> | >    :before (lambda (n e) (format #t "\n\\begin{multicols}{~a}\n" 
> (markup-option n :number)))
> | >    :after  "\n\\end{multicols}\n")
> `----
>
>
> How can I set a default value for the option ":number" of "multicols"?

This is the right way to go.  But first, you need to define the
‘multicols’ (‘multicolumn’?) markup.  That could typically go in the
(skribilo package base) module, and this is where the default value for
:number would be specified (check the examples in there.)

However, to integrate it in Skribilo proper, we’d need a reasonable
implementation of that markup in LaTeX, but also in HTML and Lout
(ideally Info as well...)  Actually, I seem to recall it cannot really
be done in Lout so perhaps we’d have to ignore that one.

Would you like to try this?

Alternately, you could just as well define the markup and its LaTeX
implementation in a module of yours, outside of Skribilo.

HTH,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]