Commit Graph

1839 Commits

Author SHA1 Message Date
Robby Findler
4c5c4342ef trim the list of new dots down to those that our latex
setup seems to handle

(and actually add them to latex-render.rkt ...)

original commit: 11969cdfa6188b254383882d73a1c1fe7997ac65
2013-03-13 10:13:34 -05:00
Robby Findler
3dd977cf2f missed some changes related to addition of dont-care values
in the lexers

original commit: 3e27388571292f1db95c558dd4a9bb1f944d395f
2013-03-10 21:56:43 -05:00
Robby Findler
7c59dcd240 adjust xmethod macro to yield a more helpful error message
original commit: 282cdcbb5b2513abde2df242611e0ea2157e9a77
2013-03-10 17:33:55 -05:00
Matthew Flatt
4cbccb1c85 scribble/srcdoc: add `begin-for-doc'
original commit: 9e0e2b932d09a30c8a09d1ab599cebc5e6d964c9
2013-03-07 21:46:48 -07:00
Matthew Flatt
ef2005e586 scribble/manual: add #:id' option to defthing'
Use this open in the HtDP language documentation in the same
way as for `defproc', which fixes the docs for `pi', `e', etc.

original commit: 8d03995b628771e529aa56403dbdd29a8e0926d5
2013-03-05 07:48:26 -07:00
Jon Rafkind
02d4fcbb0e autobib: document #:spaces keyword
original commit: e98b56228df0558b2144fccc578b6de6ed289e6c
2013-03-04 19:00:03 -07:00
Jon Rafkind
5aa01a0aaa autobib: add #:spaces argument to define-cite that puts N spaces between each bibliography entry
original commit: 37f47f7d68ae2a9e843190437f1e65f04c500397
2013-03-04 18:48:41 -07:00
Matthew Flatt
4e188c38da scribble: fix regression in HTML rendering
Fixes a problem with 2d5884b26a.

original commit: 114ab498d68454c831e8e57be584caadda6039cd
2013-03-04 07:53:18 -07:00
Eli Barzilay
2db885e761 Newlines at EOFs scan.
original commit: cec73f5652aee0b78f9265e6a2c4135f131a8248
2013-02-23 02:09:56 -05:00
Danny Yoo
903e0a62ed Add link to the syntax of the @-reader.
Also defines the "@-form" term in the @-syntax section due to its
frequency.

Closes PR-12589.

original commit: 61db1d64058214426343bb50d0dfa5c5300a0d29
2013-02-21 15:03:01 -07:00
Matthew Flatt
77d079a3ed scribble: fix 'aux stripping for hyperlinks and HTML titles
original commit: ce960756cbea2fa1bafdc0497bb558af851596f6
2013-02-19 14:03:01 -07:00
Matthew Flatt
871a61581c scribble/sigplan: add `subtitle'
Based on David Van Horn's suggestion.

Also, make both `author' and `authorinfo' work (even when mixed).

original commit: c9c4d33a2f93cac296c43d0ba04663a870d31664
2013-02-19 14:03:00 -07:00
Matthew Flatt
835ef02800 scribble: fix "on this page" rendering
A recent change improved "on this page" handling and also
fixed a short-circuit test to almost certainly do what
was originally intended, but the test was wrong, so just
get rid of it.

original commit: 2d5884b26a8aa96cab469b31c8b4d16190f854a9
2013-02-18 17:34:16 -07:00
Danny Yoo
a84adaeddb Revert most of the change to word break, but introduce a nbsp for browser metrics.
Related to PR 13305: I tried to use zero-width-space to force appropriate
line breaks, but unfortunately under Opera on Linux, this shows as
unsupported character glyphs.

Since I can't reliably use zero-width-space, I'm backtracking to the
prior solution on introducing spans with the mywbr class.  However,
I've added in a &nbsp element to the content of the span, as suggested
elsewhere on the web.  This appears to fix the _gcpointer issue that
Eric sees.

original commit: 7323dde0eabf54dafb85d0e882ccefbf33e5535f
2013-02-18 17:19:17 -07:00
Matthew Flatt
34f12bcd59 scribble: preserve order of ".js", ".css", and ".tex" additions
original commit: 08604b027740e515d69b677d8542eb45fc8791b2
2013-02-18 11:14:31 -07:00
Robby Findler
a9141a3c3d add in the rest of the double barred chars (╬ and company)
and adjust the existing ones a little

original commit: d5ffb1e3c01e5f280bafc6e69c2c3eb0f30622ca
2013-02-16 00:09:26 -06:00
Matthew Flatt
f53ec1f67f scribble Latex: support all 2d-cond characters
original commit: c8ae8c419aaafb12beec433a095e774fa07bfa5c
2013-02-15 21:09:18 -07:00
Matthew Flatt
d1fc7f41da scribble: improve HTML handling of 'unnumbered and 'toc-hidden
A part with style property 'toc-hidden no longer
hides child sections, which makes it consistent with Latex/PDF
rendering.

A part with style 'grouper and 'unnumbered does not make its
child parts render as more nested, which is consistent with
'gruper without 'unnumbered. An unnumbered grouper is represented
as "" in a section-number list (while #f is still used for
unnumbered non-grouper layers).

original commit: 23d0627acc36998dc76ebd840276c80f47cab459
2013-02-15 20:11:18 -07:00
Matthew Flatt
a9d7b36e4d doc clarification
original commit: 80a22493bd8eff0f7a17a0f951a95ea7ffeaa97f
2013-02-15 16:02:53 -07:00
Robby Findler
05008e5188 fix rendering of example in Guide
closes PR 13517

original commit: 44947880177d903e333f1da3d9cdf4c7a2342eb8
2013-02-13 07:25:36 -06:00
Danny Yoo
b1048aa2fa Amend comment.
original commit: db0234fb6f59ea8c8741ea68f630548d8e1e6cc1
2013-02-12 20:18:54 -07:00
Danny Yoo
f8b07bcc26 Replace <wbr> and <span class='mywbr'> </span> with zero-width-space.
The zero width space is a more robust way to add place to line-wrap,
according to: http://www.quirksmode.org/oddsandends/wbr.html

Closes PR 13305.

original commit: 29031f0972ead0d3cd26d61f163b5e5b59e9ffce
2013-02-12 19:50:13 -07:00
Robby Findler
161d49ca39 make #:keywords have different color prefs in DrRacket
closes PR 13492

original commit: 12ebfa2cf4f3bc187fb6d3c1eea80d56a29e64ed
2013-02-05 12:32:48 -06:00
Matthew Flatt
e8da6bd325 Scribble: fix docs on Latex commands for parts and part references
original commit: 318c45a772b18d97dbf17c2c5d5940ee81511c46
2013-02-01 11:00:14 -08:00
Matthew Flatt
8f81da3aa9 Scribble: add scribble/book' and scribble/report' languages
These languages set the default class for Latex rendering, and also
adjust Latex commands so that top-level sections are chapters, etc.

original commit: 09d4aa3d79066e73e93727fd18a5805873e63acf
2013-02-01 10:15:53 -08:00
Matthew Flatt
1c5b304b1b Scribble: add 'grouper and 'hidden-number part style properties
Also, clean up documentation and implementation of 'unnumbered and
'hidden.

original commit: c0c2eda628c5786c18d29a3071087e268bd76109
2013-02-01 10:15:53 -08:00
Danny Yoo
262f816a65 Fix typo.
original commit: 74a0252b245a30c27522e91f6fe18637321c34e9
2013-01-31 14:27:22 -07:00
Michael Filonenko
505e981046 extflonums
An extflonum is like a flonum, but with 80-bit precision and
not a number in the sense of `number?': only operations such as
`extfl+' work on extflonums, and only on platforms where extflonums
can be implemented by hardware without interefering with flonums
(i.e., on platforms where SSE instructions are used for
double-precision floats).

[Patch provided by Michael Filonenko and revised by Matthew.]

The compiler tracks information about bindings that are known to
hold extflonums, but the JIT does not yet exploit this information
to unbox them (except as intermediate results).

original commit: 17b8092641b245caf77bfb6ac29b525995a7bfea
2013-01-28 18:17:06 -07:00
Matthew Flatt
f5fb6bf60e scriblib/figure: overhaul
Clean up the use of styles for alignment and the generated instances
of style names. In the process, remove some padding for HTML output,
and make the rendering more configurable (especially for Latex, based
on suggestions by Keven Tew).

The way that nested flows are generated can be different than before,
so these changes risk breaking some existing uses of `scriblib/figure'.
The changes especially likely break uses of `scriblib/figure' with
output configured through overiding .css/.tex definitions. But
the old pile of styles/macros was inconsistent and broken in various
ways, so hopefully the changes are an improvement overall.

original commit: 8862a44f149e9a8fb975f63147730cb19a4a7931
2013-01-24 06:43:11 -05:00
Matthew Flatt
d96626896d scribble/latex-properties: add `command-extras'
This style property is a way to add to the Latex output that is
ignored for HTML and other output.

original commit: 17865bfa841e7c6fd235717bde6b03f16c77e124
2013-01-24 06:43:10 -05:00
Matthew Flatt
24b3905faa scribble doc corrections
Merge to v5.3.2

original commit: 5134bc0888c26c70bda83c607d73e530314cbbd8
2013-01-09 18:52:16 -07:00
Matthew Flatt
cce0a1c62c scribble/decode: fix contract on `decode-compound-paragraph'
Add a test suite that at least tries each export of `scribble/decode'.

Merge to v5.3.2

original commit: 5ab048bb5cd05fa109b990bb73bc7033b09230ee
2013-01-09 18:52:16 -07:00
Greg Hendershott
c7f0f37159 Use Racket lexer for code blocks.
Had been specifying Scheme lexer for code blocks, while waiting for
new Racket lexer to wend its way from Pygments to Pygments.rb to
Linguist to GitHub.

That day is almost here: Linguist will soon update and deploy to
GitHub.  And Racket 5.3.2 is about to release.  As a result, I think
this is the correct time to switch to the Racket lexer: It should be
live on GitHub by the time people are using Racket 5.3.2.

/cc @rmculpepper -- I think this commit should go into the 5.3.2
release.

original commit: 4d3a5bad04d0958c71c70aaed0ab2c2055c5f272
2013-01-09 18:52:16 -07:00
Matthew Flatt
d0f9ed697b scribble: add +m' / ++main-xref-in' flag
The `+m' flag is a long-overdue shorthand for `++xref-in setup/xref
load-collections-xref', which links to installed documentation in
the same way as DrRacket's "Scribble HTML" button.

That is, use `+m' to link to installed documentation,

  scribble +m mine.scrbl

instead of the previously recommended

  scribble ++xref-in setup/xref load-collections-xref mine.scrbl

Merge to 5.3.2

original commit: 3e8b6b98663386ea01a93f917ed328e8052c38d8
2013-01-08 16:25:28 -07:00
Robby Findler
488232313a adjust scribble/lp language so drracket syntax colors it properly
Also fix a spelling mistake (now that spell checking works) and Rackety

original commit: 87d25ba02ae8d400c8bc07ba4f9b8470a9f9092b
2013-01-04 21:39:11 -06:00
Robby Findler
46e70e3c2a tweak the latex rendering of ╔ and company
original commit: 9b6272674ea3161ff72a66f00cc795f613185f93
2012-12-30 21:11:38 -06:00
Robby Findler
763ddfcf74 add support for ╔ ═ ╗ ║ ╚ and ╝ to the latex renderer
Also, Rackety

original commit: 022e252f4501af89dc820f778ec426c67cc083d8
2012-12-29 11:31:17 -06:00
Matthias Felleisen
900a0d10ec space management for figures
original commit: 6243a928fbabb50700231975e82c42f51b6fa27e
2012-12-27 19:01:34 -05:00
Matthew Flatt
d8b44df63f scibble: repair related to recent `scribble/tag' contracts
original commit: 3f6b30a569ad4fbb63d4dadaabc992326c710017
2012-12-27 12:49:30 -06:00
Robby Findler
e36ebc9823 added make-module-language-tag and use it and make-section-tag
in a few places

original commit: 353da62843a2b976e300fdd37abdd9b6d6c4894a
2012-12-27 11:10:40 -06:00
Matthew Flatt
dce9a0e92a move and fixup docs for the "help" collection
original commit: 2d12431c0da134e04ff62c5f4baa3ab86660f124
2012-12-27 09:24:15 -06:00
Matthew Flatt
95e432a818 add `scribble/tag' and clean up some tag-related documentation and functions
Includes the addition of `make-section-tag' and `taglet?' to
`scribble/base'.

original commit: f29230f8f2710b58eae8646edd6eab9f6760deee
2012-12-27 09:24:14 -06:00
Greg Hendershott
77b1b267b5 Fix bug with pound signs used to mark sections.
Also update tests/scribble/markdown-docs files accordingly.

original commit: faeba879e292414dd6d5d9e38d4a08b26e63cceb
2012-12-19 19:32:00 -07:00
Greg Hendershott
624b8ef7e4 Render Scribble margin-note as Markdown block-quote.
More precisely, do this for nested flows with the "refcontent" style.

For instance this Scribble:

    @margin-note{Note: This is a note. Let's make it long enough that the
    markdown output will have to line-wrap, to make sure the > mark starts
    each line properly.}

Will render as this Markdown:

    > Note: This is a note. Let's make it long enough that the markdown output
    > will have to line-wrap, to make sure the > mark starts each line
    > properly.

A site like GitHub.com will render this in a block-quote style
suitable for notes:

> Note: This is a note. Let's make it long enough that the markdown output
> will have to line-wrap, to make sure the > mark starts each line
> properly.

original commit: a3800cdc94d5f0c1b361d6e3ead6c1ebceb66288
2012-12-19 19:31:15 -07:00
Matthew Flatt
042f013e13 scribble: encode URLs in 'unreserved mode
original commit: 130c989888e3ac596fc5c5ac73c3493fd3bb924c
2012-12-17 07:09:27 -07:00
Matthew Flatt
4f1eae99b6 raco setup: fix problem with doc index database
When a tag is serializable but not `write'--`read' invariant,
then it needs to be serialized and deserialized.

Also, clarify and check in `tag?' that a tag should be
serializable.

original commit: 6eef00a31287fd88e1c93139dc5b6c1ab97f6da8
2012-12-13 15:45:48 -07:00
Danny Yoo
8d8e2ea112 Add separate section to avoid conflict at scribble time.
original commit: f374cb184d67bb9073ccfbca408aeadc8f2a96ba
2012-12-13 13:00:06 -07:00
Danny Yoo
5b72f34f76 Add scribble/doclang2 with keyword support for customization, and documentation.
original commit: db280d0941d25904d01b5d49ab880218fc759cfa
2012-12-13 12:50:27 -07:00
Greg Hendershott
98e3fa52d8 Render italic and bold in Markdown.
Scribble => Markdown
  @bold{text}    **text**
@italic{text}     _text_

original commit: 00a5bf63b1819f324ea41b91ce8ee288e1dc7ff5
2012-12-12 20:58:44 -07:00
Greg Hendershott
cdc89f9685 Render @hyperlink in Markdown.
Render Scribble like

    @hyperlink["url" "content"]

as Markdown like

    [content](url)

Note that this only works for `@hyperlink`. The motivation is to
preserve content the author has explicitly written. (Previously,
`markdown-render.rkt` was discarding this; `text-render.rkt` still
does so.)

This does _not_ attempt to handle everything that `html-render.rkt`
would automatically generate and render as `<a>`. It simply can't --
things like hotlinked Racket keywords in code blocks simply won't work
in Markdown.

original commit: dbffc840a93ceb142c59df4a533ced0b41b8e4fa
2012-12-11 12:40:54 -07:00