Questions tagged [scribble]

Scribble is a domain specific language used for documentation in the Racket eco-system.

Scribble is a syntax and a collection of tools for creating prose documents—papers, books, library documentation, etc.—in HTML or PDF (via Latex) form. More generally, the Scribble syntax is useful for programs that are rich in textual content, whether the it is prose to be typeset or any other form of text to be generated programmatically.

Scribble Introductory Video

Scribble: Closing the Book on Ad Hoc Documentation Tools

49 questions
1
vote
1 answer

Change 'Bibliography' word in Scriblib Autobib bibliography

I have the following scribble document that uses a bibliography: #lang scribble/base @(require scriblib/autobib) @(define-cite cite citet gen-bib) This is a citation@cite[the-citation]. @(define the-citation (make-bib #:title "Hello" …
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
1
vote
0 answers

Mobile Friendly HTML in Racket Scribble

Given Google's current mobile friendly policy, I was wondering if there is a convenient way to generate mobile friendly html output in Racket's Scribble? I understand I could probably hack on the CSS to create one (which sounds like utter hell),…
file13
  • 71
  • 5
1
vote
0 answers

Combing text and images of Racket and Scribble

I have a Racket program that generates a string of output text and an image: #lang racket/gui (define outstr "This is the output string") (define frame (new frame% [label "Example"] [width 100] …
rnso
  • 23,686
  • 25
  • 112
  • 234
1
vote
0 answers

Scribble Racket not creating index

I am using following code for creating an index at the end of the document (which contains much of the example code shown on https://docs.racket-lang.org/scribble/getting-started.html), but it is not working: @(index (list "mouse" "milk" "straw"…
rnso
  • 23,686
  • 25
  • 112
  • 234
1
vote
1 answer

Remove numbers in section in scribble (latex backend)

In scribble, I have a document like: #lang scribble/lncs @section{First Section} @section{Second Section} @subsection{A subsection} @section{Third Section} And this will get compiled to a document that looks something like: 1. First Section 2.…
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
1
vote
1 answer

Apply a style in scribble

I have the following style which should change the color to red (using color-property: (define red (style #f (list (color-property "red")))) How can I apply that style to a word in my text. Say I want WARNING!!! to appear in red.
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
1
vote
1 answer

Scribble documentation: cross-references between two simple files

The documentation for scribble (the Racket documentation tool) says that “Cross references within […] documents rendered together are always resolved”, but the file a.scrbl below fails to reference the section in file b.scrbl a.scrbl: #lang…
Suzanne Soy
  • 3,027
  • 6
  • 38
  • 56
1
vote
0 answers

Need to store the buffered value and generated an image and store that image when save button is clicked

I need to provide a file name when save button is clicked and i got some code for scribbledraganddrop and i want to implement the save button option for this code, but unable to find the bufferedimage/buffered value which i should take in the…
Mitesh
  • 145
  • 1
  • 13
1
vote
1 answer

Declaring the module of a defproc or deform (function/macro documentation) when split across multiple files

In scribble, I can use defproc and defform to define the documentation for a function or macro. And then scribble uses the nearest defform in the file to determine what module the function/macro is defined in. However, sometimes it sometimes makes…
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
1
vote
1 answer

How to document syntax using scribble?

I want to make some documentation about a project I'm making and I want to make it using #lang scribble/manual. Since I have some user-defined procedures I would like to make my manual look like this, what I mean is the blue procedure/syntax square…
David Merinos
  • 1,195
  • 1
  • 14
  • 36
0
votes
2 answers

Debugging Scribble's (need a pre-part for decode) error

Consider the following Scribble document: #lang scribble/manual @title[#:tag "MyTitle"]{MyTitle} @(module bq racket/base (require scribble/html/html) (provide blockquote)) @(require 'bq) @blockquote{ "Ho, ho, ho! -- Santa Claus." } If…
typesanitizer
  • 2,505
  • 1
  • 20
  • 44
0
votes
1 answer

How to define subidform

In racket, we have defsubform for subform, but defsubform does not accept a form like bar but only (bar ...)
林子篆
  • 84
  • 1
  • 4
0
votes
1 answer

when UITextField is focused and scribble is on,keyboard don't show

there I'm making drawing app on iPad with iOS14. this app enables to use apple pencil. I'm facing a problem. when i try to write a text on UITextField by scribble hand write,keyboard don't showing. my client said it can be enabled keyboard writing…
0
votes
1 answer

scribble: how to make a large print PDF?

I have a Scribble document (file.scrbl) that I'm using to make a PDF (scribble --pdf file.scrbl). I want to make a large print, landscape version of the PDF. Is there an easy way to change file.scrbl to have Scribble output a large-print PDF?
Ben Greenman
  • 1,945
  • 12
  • 22
0
votes
1 answer

What is xsd line in Scribble protocol file?

I have this simple Hello world code from here, and can't find what does line xsd mean, and how to use it. Where is this file located and is it necessary? module scribble.example.Basic; type "{http://scribble.org/examples}Greetings" from…