Re: [racket] Scribble: Different output for LaTeX and HTML backends

2011-04-04 Thread Matthew Flatt
Maybe too late for your purposes, but... At Tue, 7 Dec 2010 16:27:42 +0100, Jens Axel Søgaard wrote: > I have a YouTube video, that I'd like to embed in the HTML output using the > following code: > > type="text/html" width="480" height="390" > src="http://www.youtube.com/embed/J3WIPS3Uh_A?rel=0

Re: [racket] Scribble: Different output for LaTeX and HTML backends

2010-12-08 Thread Jens Axel Søgaard
2010/12/7 Matthias Felleisen : > Define a Scribble function like this: > > (define (exact . items) >  (make-element (make-style "identity" '(exact-chars)) >                items)) > (provide exact) It (finally) dawned on me that I have two problems. I thougt this would display a YouTube player on

Re: [racket] Scribble: Different output for LaTeX and HTML backends

2010-12-08 Thread Jens Axel Søgaard
The element produced by exact will be displayed in both the HTML and the PDF document. The video embedding code should only be part of the HTML output, on the other hand, the link to the video should only appear in the PDF document. I need a way to know when not to produce an element. I have writt

Re: [racket] Scribble: Different output for LaTeX and HTML backends

2010-12-07 Thread Sam Tobin-Hochstadt
On Tue, Dec 7, 2010 at 11:30 AM, Matthias Felleisen wrote: > > Define a Scribble function like this: > > (define (exact . items) >  (make-element (make-style "identity" '(exact-chars)) >                items)) > (provide exact) This relies on a Latex macro named \identity being defined earlier in

Re: [racket] Scribble: Different output for LaTeX and HTML backends

2010-12-07 Thread Matthias Felleisen
Define a Scribble function like this: (define (exact . items) (make-element (make-style "identity" '(exact-chars)) items)) (provide exact) In your document, write @no...@exact{\raggedright Schelog (1993) \url{http://docs.racket-lang.org/racklog}}} -- Matthias On Dec

Re: [racket] Scribble: Different output for LaTeX and HTML backends

2010-12-07 Thread Jens Axel Søgaard
In the HTML output, can I do more than just choose a new CSS style? (If yes, can you point to the proper place in the manual?) I know how to change the styles in the CSS file, but for the embedding code below, I need to output HTML too. Ideally, I'd like to write something a la: @html/pdf{}{} wh

Re: [racket] Scribble: Different output for LaTeX and HTML backends

2010-12-07 Thread Robby Findler
You can just set up a new command and give it different implementations in a style.tex and for the HTML output. There is a section on this in the docs I believe. Robby On Tuesday, December 7, 2010, Jens Axel Søgaard wrote: > Hi All, > > I have a YouTube video, that I'd like to embed in the HTML