[racket] Subindex and some Latex code withing Slideshow

From: David Merinos (davs.ms at gmail.com)
Date: Tue Jul 8 17:50:05 EDT 2014

I've created this procedure. I think it's working for now. Thank you.
(define subindex
  (λ (B i #:font-base [fuente-Base (current-main-font)] #:size-base
[tam-Base (current-font-size)]
        #:font-index [fuente-index (current-main-font)] #:size-index
[tam-index (current-font-size)])
    (hbl-append
     (text B fuente-Base tam-Base)
     (text i `(subscript . , fuente-index) tam-index)
     )))


2014-07-07 23:03 GMT-05:00 Matthew Flatt <mflatt at cs.utah.edu>:

> At Mon, 7 Jul 2014 17:55:55 -0500, David Merinos wrote:
> > Is there a way to display things such as $G_f$ would display in Latex but
> > using Slideshow?
>
> Underscore handling is built into the `code` form,
>
>  #lang slideshow
>  (require slideshow/code)
>  (slide (code G_f))
>
> but for more general subscripting, use `text` with the 'subscript
> style:
>
>  #lang slideshow
>  (slide (hbl-append
>          (text "G" (current-main-font) (current-font-size))
>          (text "f" `(subscript . ,(current-main-font))
> (current-font-size))))
>
>
>


-- 
T.I. David Merinos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140708/53c859ef/attachment.html>

Posted on the users mailing list.