texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] hacking progs/convert/latex/tmtex.scm


From: Felix Breuer
Subject: Re: [Texmacs-dev] hacking progs/convert/latex/tmtex.scm
Date: Sat, 23 Oct 2004 19:11:51 +0200
User-agent: Mutt/1.3.28i

Just got it:


I wanted to produce:

> \begin{figure}[h]
>   \begin{center}
>     <x>
>     \caption{ <caption> }
>   \end{center}
> \end{figure}

which I could have gotten via

(define (tmtex-float-make size type position x caption)
  (list
    (list '!begin "figure" (list '!option position))
    (list 
      (list '!begin "center") 
      (list '!paragraph (tmtex x) (list 'caption (tmtex caption))) 
    )
  )
)

but I really need

> \begin{figure}[h]
>   \begin{center}
>     <x>
>   \end{center}
>   \caption{ <caption> }
> \end{figure}

which I get by

(define (tmtex-float-make size type position x caption)
  (list
    (list '!begin "figure" (list '!option position))
    (list '!paragraph
      (list 
        (list '!begin "center") (tmtex x)
      )
      (list 'caption (tmtex caption))
    )
  )
)

Cheers,
Felix




reply via email to

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