Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6816a624292d4896cb15f92d6d0f2dd > files > 128

bigloo-3.1b-5mdv2010.0.i586.rpm

;*=====================================================================*/
;*    serrano/prgm/misc/cdisc/tex.sch                                  */
;*    -------------------------------------------------------------    */
;*    Author      :  Manuel Serrano                                    */
;*    Creation    :  Sun Dec 28 22:55:27 1997                          */
;*    Last change :  Mon Dec 29 08:24:36 1997 (serrano)                */
;*    -------------------------------------------------------------    */
;*    The macro to write easy code                                     */
;*=====================================================================*/

;*---------------------------------------------------------------------*/
;*    tex-environment ...                                              */
;*---------------------------------------------------------------------*/
(define-macro (tex-environment name options . exp)
   `(begin
       (print "\\begin{" ,name "}" ,options)
       ,@exp
       (print "\\end{" ,name "}")))

;*---------------------------------------------------------------------*/
;*    tex-rput ...                                                     */
;*---------------------------------------------------------------------*/
(define-macro (tex-rput options x y . exp)
   `(begin
       (print "\\rput" ,options "(" ,x "," ,y "){%")
       ,@exp
       (print "}")))

;*---------------------------------------------------------------------*/
;*    tex-pspicture ...                                                */
;*---------------------------------------------------------------------*/
(define-macro (tex-pspicture min-x min-y max-x max-y . exp)
   `(begin
       (print "\\begin{pspicture}(" ,min-x "," ,min-y ")(" ,max-x "," ,max-y ")")
       ,@exp
       (print "\\end{pspicture}")))