Commit Graph

1494 Commits

Author SHA1 Message Date
Asumu Takikawa
223c4bc0db Add examples for tabular in scribble reference
original commit: 7826efcdf5985b3f2870eaaaed3ae160f3e3d310
2012-10-08 23:10:52 -04:00
Manu
32ffcdfa45 Added CSS rules for printing.
original commit: e7db0bdac485a0bc9d749188e00932a2374ec1ff
2012-10-05 11:15:59 -04:00
Matthew Flatt
5084b1a133 scribble: make `linebreak' work more for Latex/PDF rendering
original commit: 683e72e9e39f3e8536f9fc0ba0ad8c6f5aca050a
2012-10-04 06:40:36 -06:00
Samuel Bronson
9eae72a93a scribble/private/manual-form: Implement racketgrammar in terms of racketgrammar*
This is just a refactoring for readability.

original commit: 1dce7e587f2b41f5e10633acbc7c0190f15bd586
2012-10-02 15:06:27 -06:00
Matthew Flatt
abeb37b101 scriblib/autobib: more graceful failure when bib not rendered
original commit: 6a5f73d3d9e4e9570c657f77ca8bf20c3510a2b8
2012-10-01 07:14:46 -06:00
Matthew Flatt
ff459128d4 Scribble overview: mention tables comments, and pictures
original commit: 44e55689a26bfc46aa0febdbb41d377344452d8b
2012-09-23 11:53:30 -05:00
Matthew Flatt
d373434241 scribble: decode a lone ` as a left "curly quote"
Also, add 'lsquo as allowed content.

Omitting the ` conversion in the first place was over-conservative.
There's a backward-compatibility issue with this addition (i.e., a
document might contain a backquote in a decoded context that is
meant to be rendered as a backquote), but the potential problems
seem minor.

original commit: cb041850f424644937c8b494c64c066bbe5f2069
2012-09-21 07:37:30 -06:00
Matthew Flatt
f3e1a7425c Scribble: fix problem with URL redirection
original commit: 4cc475ad688ac38c74388d45504cb883f93fa4d7
2012-09-13 11:05:52 -06:00
Matthew Flatt
e15bf50937 scribble/html-properties: allow URLs in css-addition' and js-addition'
original commit: 3fb42cf3f1b49e1cdf024c32a8f969011c2be9b3
2012-09-11 18:52:59 -06:00
Matthew Flatt
4a512f6a66 racket/html-properties: add `js-addition'
original commit: 9162fc25042364c128be0b850c730a93ff910679
2012-09-11 17:39:12 -06:00
Matthew Flatt
f470e3c3a7 scribble HTML: add head-extra' and support for attributes'
For a part that corresponds to an HTML page.

original commit: dc925d2d8cb4802281981cd3a271c07f74234c4d
2012-09-11 17:18:14 -06:00
John Clements
92b715cb96 nused -> used
original commit: 9a884c84faff5d2231ba6bc746174b21cfe71e90
2012-09-07 16:37:28 -07:00
Matthew Flatt
40ac269f94 scribble: another Latex/PDF section repair
original commit: 7d2ce136fab84ca1f559fceaa3e457e1bb630380
2012-09-03 08:07:34 -06:00
Matthew Flatt
c846c1551a scribble: fix for Latex and `\Ssection' changes
original commit: 16621ad437f766f3e6dd9241f23d2795424ae6ab
2012-09-03 06:10:27 -06:00
Vincent St-Amour
7a8e517a5e Add comment about the current state of the latex character table.
original commit: a85438bc6950351c6372b18daf53a2baacb2d9f4
2012-08-31 19:31:20 -04:00
Matthew Flatt
b1ddcb292a scribble: for Latex output, use `\Ssection', etc. for section
A style override might change `\section' to `\chapter', etc.

original commit: 7b2e18afc5859b6dfc71d83b1c57e647387d27b2
2012-08-31 16:07:10 -06:00
Matthew Flatt
37c398ffbf propagate prefix repair to to scribble/jfp' and scribble/lncs'
original commit: d841ec1bd0aac12c7d977f4be419f8c2728a6d17
2012-08-31 07:33:08 -06:00
fbanados
a5f9e4bee8 include scribble/scribble-prefix.tex packages to scribble/sigplan
original commit: 0b19326ac6568be377c8cc1633e100c5d20a0c01
2012-08-31 07:33:08 -06:00
Matthew Flatt
ae5d9f9413 scribble/manual: add #:normalize?' option to deftech' et al.
original commit: 5e5e5038597c468ef699cf8c9fbc0a1577ca0d0d
2012-08-20 17:37:24 -06:00
Matthew Flatt
c53e65ab66 fix docs for `deftech': mention case folding
original commit: 1ca5767684125bf5e5d46f1f689ff1147dc13365
2012-08-20 17:37:19 -06:00
Robby Findler
563fad62a4 adjust 'authors' from scriblib/autobib so that it
has a contract (which I'm inferring from the way
it is implemented so I might be getting it wrong)

related to PR 12966

original commit: f03274c8b77d61991231f5f7931356508b07caa3
2012-08-14 21:34:09 -05:00
Robby Findler
19e560794a rename contract-blueboxes.rktd to blueboxes.rktd
original commit: d96d920cf95329b1b75d67d4b4352590a55fb68b
2012-08-14 16:20:47 -05:00
Robby Findler
b571b7c433 remove unnecessary dependency from scribble on slideshow
original commit: 185de3b6eb04237484ec4e8ba28350d36b9fddeb
2012-08-14 10:39:03 -05:00
Robby Findler
c456ffef40 Add the contents of the "blue boxes" in the docs to the upper-right
corner of the definitions window, based on the information that check
syntax computes

This commit contains two separate changes to make this work:

  - adding a new renderer, based on the text renderer, that
    pulls out the contents of the blue boxes and saves them
    in the doc/ directories (specifically in the files named
    contract-blueboxes.rktd)

  - extend check syntax to use and display the information
    build by the new renderer

original commit: 0c6734f782867b0401db15eb687fd246552e17b5
2012-08-12 08:41:46 -05:00
Robby Findler
dcb258ac6c correct spelling error
original commit: 5d81b80736779360f5000d17fb422b19679c3352
2012-08-11 22:50:49 -05:00
Robby Findler
8799cd2137 Add index entries for @defconstructor (and friends). Also add
code that skips over them when building the search indices.
Overall, this means that the only change most people would see
is that multiple constructors in the same class will get a warning
(and there was one of those, so fixed that too).

Also, Rackety. Specifically, transformed this surprising combination
of constructs (where all caps are placeholders for something specific):

((if PRED
     (λ (c mk) BODY2)
     (λ (c mk) BODY1))
 content
 (lambda (tag) BODY3))

into this one:

(define (mk tag) BODY3)
(if PRED
    BODY1{c:=content}
    BODY2{c:=content})

original commit: 8ee76c9547899f62e6f28eba1cdbba1f4d54c399
2012-08-11 21:52:48 -05:00
Matthew Flatt
9dd4dddb90 scribble/base: generalize `itemlist' to splice/coerce some arguments
Also, add a `spliceof' contract constructor to `scribble/decode'.

original commit: f11450d6019924f38bc523967cab1384514f2163
2012-08-03 13:43:23 -06:00
Matthew Flatt
989d851497 scribble/sigplan: add guidance for `category', etc.
Include the URL to ACM's explanation of how to use categories,
and add some other formatting guidance that is otherwise
difficult to track down.

original commit: aa5b1e192c5d38ada197a488f9817ed7ad9df861
2012-07-31 07:50:46 -06:00
Matthew Flatt
e285bfb53b scriblib/figure: support references to multiple figures at once
original commit: 4a6bfacc27f81bb757001694dd5250eedbd728fd
2012-07-31 07:50:46 -06:00
Matthias Felleisen
8f8f8315c5 fixed small mistake in defform/none from conversion to syntax/parse
merge into v5.3 but ask Matthew for second opinion

original commit: bf8c30727d4cb8def581f63e43cb79a1111ad8ff
2012-07-23 11:35:59 -04:00
Robby Findler
11fd5a91ed use a more descriptive name in the identifier generated by define-on-demand
so when it shows up in an error message it doesn't take forever to figure
out which 'val' that is

original commit: 0ee8155527bf0118c1b035efdcc5a6a2fac4828a
2012-07-15 08:07:11 -05:00
Vincent St-Amour
0d977a560c Add scribble support for additional letters from the Czech alphabet.
original commit: f036b0bd12faf7bcad812f516d938ce5afaf0bc1
2012-07-12 17:40:01 -04:00
Matthew Flatt
570f682b23 scriblib/autobib: first cut at configurable style
Adds `number-style' as an alternative to `author+date-style'.

original commit: 48e154e3cb3eae280a82116933ddf0b03a7dd4d1
2012-07-10 00:21:56 -06:00
Matthew Flatt
83e4a20c8e scriblib/autobib: fixes in docs and related to disambiguation
Fixed problems related to sorting, more than two references for
one citation, and "specific" additions like page numbers.

Also, removed a set of parentheses around disambiguated dates
in the bibliography, because I don't think they belong there.

The doc format was confused; for example, square brackets don't mean
optional in a syntactic form documentation, but instead mean square
brackets.

original commit: 71fe28e5dcf33f33a1afbb810b0cf6cc439e6629
2012-07-10 00:21:56 -06:00
Matthew Flatt
d23768ba32 scribble: add --dest-base flag
Also add the option to `render' from `racket/render', and
document the existing `render%' initialization argument.

original commit: f9b4c6b2268440e9e74b414e6e0b1487981c70df
2012-07-06 16:48:36 -06:00
Eli Barzilay
5cb1ba3a4a Some styling.
original commit: 75f710dc62c8c5a1ce04f22b6c37a4c611a3445e
2012-07-06 16:07:30 -04:00
Matthew Flatt
9650c4767b scribble/*-properties: allow literal bytes in *-additions
For example, a `tex-addition' structure can have literal bytes
to include in the generated Latex, instead of a path to a file that
holds the content.

original commit: 2b9f57b01d55a39a70f0d0df22bc97b1874727ea
2012-07-06 13:17:35 -06:00
Danny Yoo
e48b814b17 Correcting type error in latex-match: target-url-addr can be a path, which can't be consumed by regexp-replace
original commit: 0a5e92c299c7f2edd8540d1d127f5c887ce750c7
2012-07-06 12:03:47 -04:00
Asumu Takikawa
793a83e339 Fix doc typos
original commit: 9f83ba1c6f450790d99f734779c07a775aefb104
2012-07-03 15:54:25 -04:00
Matthew Flatt
54e7b17c5e improve error handling for `defproc'
Closes PR 12780

original commit: e8d9d4e9ca5149398ead0a3a664405d8aa7a5b70
2012-07-02 10:07:52 -06:00
Matthew Flatt
d7bf77fba7 doc correction
Closes PR 12844

original commit: 4ed8a889695c59bfa9deba3fdce616d49e125938
2012-07-02 09:08:05 -06:00
Matthew Flatt
0190c2702d scribble: adjust `subsubsub*section' font size
Closes PR 12868

original commit: b5189c823216fda8ea68b7254a2a4df5cc4ee5f3
2012-07-02 09:00:08 -06:00
Matthew Flatt
3d84458aa7 scribble Latex: add \SNumberOfAuthors{} in output
original commit: 814c974d015b647e8482a46720f0728d3b318175
2012-07-01 10:00:58 -06:00
Matthew Flatt
607f02a331 scribble HTML render: avoid intermediate XML structure
As pointed out by Danny Yoo to save time during the rendering phase

original commit: 612c4ff5240594b8d884ce2d68701cd40ba50fc1
2012-06-28 09:15:57 -06:00
Matthew Flatt
2c7e58dd70 tweaks to Danny's Scribble changes
original commit: 130618e946640d749a81312fa951acd43ec1c66a
2012-06-28 08:57:58 -06:00
Danny Yoo
31c6e16944 Correcting content->string so that it does not concatenate strings in quadratic time
original commit: d926f89cbe316f9c5e481841a80f905a9da3228c
2012-06-28 08:39:14 -06:00
Danny Yoo
db64a47dd7 Changing decode-string so it avoids allocation and interns the individual string components.
original commit: 2f4671235c322f3450b0633cd866f18b95f58f13
2012-06-28 08:39:03 -06:00
Matthew Flatt
1efd01584e scribble/eval: remove bogus top-level `namespace-require'
original commit: 5f3f3e8c54f843338feb7a5fdf76eed0240f1aa9
2012-06-27 12:28:17 -06:00
Matthew Flatt
937d4f0e59 scribble/manual: add #:id' option to defproc'
Also, convert the implementation of `defproc', `defform', etc. to
use `syntax-parse'.

original commit: 6028a60f6588f11dfe1b466df24513256e1b84c4
2012-06-25 23:16:33 -06:00
Robby Findler
378f9c3bae adjust defproc* so that it only shows the white background label once, instead
of once per different identifier that it is documenting

original commit: 3afba2d833bbe2349621f4851f4f41569007ed53
2012-06-25 13:42:09 -05:00
Matthew Flatt
0ca77cb9f5 CSS tweak for whute label on blue boxes
This tweak avoids adding extra space when the white-label font is
taller than the line it's attached to. It also makes the label
disappear in IE 6, but I think we can live with that.

original commit: c2924ef926c3ed62e61e5deff72f15f3065bb0ab
2012-06-25 09:02:51 -06:00
Matthew Flatt
c836acca01 fix some error-message tests
original commit: 5433d2302a5c7a6aa588d3aa107bd72e19359862
2012-06-23 05:21:52 -07:00
Robby Findler
6137f803b2 strengthen contract on blockss field of table struct in scribble
original commit: f7185bec91d04a28289887947c5a394fd94914fe
2012-06-22 22:12:54 -05:00
Eli Barzilay
e4b6652f27 Random pickiness.
Spaces at EOFs, indentation, etc.

original commit: 7d6e79023cf9872e6f6af2f89961b742c6296f1d
2012-06-22 12:00:48 -04:00
Matthew Flatt
381505ade5 update docs related to definition-box labels
original commit: 303aaec2b45ff2e42b2353820572dc93c275d8a3
2012-06-21 07:15:09 +08:00
Robby Findler
ed8baf5d79 a bunch of fixes to the diagram:
- added some color (mostly to try to disambiguate the lines)

- several of the things named '*-element' actually belong under content, not element.

- element has 'content', not the substructs.

- convertible?s are content's.

- the 'content' field in an element is not a list, but simply a content.

- there are a bunch of things under target-element.

- image-element was missing fields

- collect-element was missing the collect field

original commit: 411aeb99b845823aa5f9bcaebe6b686ad478ab75
2012-06-20 08:22:58 -05:00
Robby Findler
87197b53ca remove uppercasing of the tag names
original commit: c13a88915a226d4cb67c19c1386841d2e549344b
2012-06-20 08:22:58 -05:00
Robby Findler
2fed399324 make scribble's part/document/element/etc structs all be #:transparent
original commit: 4d7f6d79353fc818d847de6bd99c224c50005689
2012-06-20 08:22:58 -05:00
Robby Findler
c77b67ea80 Fixed up and added in the struct hierarchy diagram from the Scribble paper
original commit: ac8a4f23e5df50d1e7cc579fd8cbcd6606b8dc6d
2012-06-18 11:26:27 -05:00
Matthew Flatt
4fc0b01398 scribble: adjust `def...' box to show a background label in HTML
For example, a syntactic form box is labeled with "SYNTAX". Forms
such as `defform' and `defthing' now support a `#:kind' option
for setting the label.

original commit: 5ff3087677ec98ea626cca25b085f3c32138d5ca
2012-06-17 09:19:58 +08:00
Matthew Flatt
f1aa676101 misc changes to speed up doc search generation
Cuts about 30% of the time on my machine.

original commit: 815fd1b49c7b7857aa08fd15c5ec77655ac84859
2012-06-08 16:08:55 +08:00
Matthew Flatt
3ac30a1f35 scribble: fix duplicate call to `render-element' callback
This change should cut the time to generate the search index
roughly in half.

original commit: 00e1ed9369d8401ef349f9c9fb9475d30ab2cda1
2012-06-08 16:08:55 +08:00
Matthew Flatt
8f6b31924c clarifications and additions to style guide
original commit: c5f821b6415a4ad0f073b66b9bbf6455d801ff01
2012-06-03 04:50:06 +08:00
Jay McCarthy
e690d99f57 Fixing PR12779
original commit: 8b035f3c736d92c5e8ae896b3044eb2e32f44c8a
2012-05-28 11:52:56 -06:00
Matthew Flatt
b5f09c0d39 more error-message conversions and repairs
original commit: a137459b65b54d65595e854101aae7440d9e65f6
2012-05-27 11:29:21 -06:00
Matthew Flatt
625ee5db99 fix misc tests for error-message change
original commit: b5ab6cec7e3038cfd917af16e082c8bc98384807
2012-05-26 08:18:19 -06:00
Matthew Flatt
45e9a0fd33 scribble/eval: fix error line wrapping
The `wrap-line' function from `scribble/text/wrap' wants a
string that's a single line, so break the initial string
based on explicit lines, first.

original commit: 9b7ef7bf699c7997ad2c254827ca6528491a6f10
2012-05-25 12:47:39 -06:00
Asumu Takikawa
aaad158068 Fix doc breakage.
`abstract` from racket/class conflicted with `abstract`
in scribble paper modules.

original commit: 94545a7cd7c108688c2299bb5f0e0f2e0a63c025
2012-05-22 19:55:44 -04:00
Matthew Flatt
e1f816952c fix Scribble module languages to allow submodules
That is, recognize `module' and `module*' as top-level forms.

original commit: ec85dd913d75250e5be244bc07789604dfe5fd34
2012-05-20 07:39:05 -06:00
Matthew Flatt
2cdcf15d24 fixes for `scribble/srcdoc'
Use the new `relative-in' form to make imports
resolve correctly when they are shifted among modules.

original commit: 0c95475f4ffbc343291e5529a6f4b32a91159ef1
2012-05-15 20:03:41 -06:00
Matthew Flatt
24acfab0ad implement scribble/srcdoc' via submodules instead of expand'
Also add a `for-doc' require form, make `proc-doc' et al. provide
forms, make `provide/doc' an alias for `provide'.

original commit: 964020f288a73340052b471327bfe873d804eea8
2012-05-12 01:37:50 -06:00
Jay McCarthy
757b462154 Better error messages, plus fix for the tag syntax
original commit: 93d8e89b66a3e1f659a6c4e59a6d8086debe0d0a
2012-05-11 20:13:29 -06:00
Jay McCarthy
ec73f42c1b scribble/lp on racket/base vs scheme/base
original commit: f675514a2b47fdf3cb1b1c9447c96bea468a401c
2012-05-10 10:36:29 -06:00
Matthew Flatt
681837dc32 scribble/eval: add eval:result' and eval:results'
original commit: 2d027e7ee5885b8c70e720db968f348df7fa2949
2012-05-09 19:11:21 -06:00
Eli Barzilay
bad524ff54 Do the xref test only if "doc/reference/out.sxref" exists/
(Since the nightly build includes the documentation only on the main
machine.)

original commit: a4381dd1f62f701227ead8efa6be15d5b950dc7d
2012-05-07 09:12:00 -04:00
Eli Barzilay
36eea932a8 A bunch of fprintf' -> eprintf' conversions (and a few related things).
original commit: 17090fca4f19298f01d03fea419edb20f315d040
2012-05-06 12:06:00 -04:00
Eli Barzilay
dcb28604ca Use the new `wrap-line' in the scribble text renderer.
Looks like it's not making any changes in the current tests (which use
the text renderer), but with words that are longer than the width the
old version would stop wrapping afetr these words.  Added a test file
that fails with that and succeeds with the new one.  If anyone cares
about this, it's easy to make hyphenate words that are too long for a
line.

(Also fixed some redundant frustration in the bib test...)

original commit: 084f1dcea7707adc83d180f79e6c68149dc03644
2012-05-06 08:17:36 -04:00
Eli Barzilay
6bec5dbd28 Some racketization (and outdent).
original commit: 34ec39119442c4202e3779a929b8406aee58e524
2012-05-06 06:29:18 -04:00
Eli Barzilay
c3d02f1416 Use the new wrap-line' in scribble/eval'.
This might have output that is a little better in cases where the
wrapped string is longer than `maxlen', for example, with an input of:

  "    x xxxxxxxxxxxxxxxx..."

and wrapping at 10 characters, the output was

  "    x\nxxxxxxxxxx\nxxxxxx..."

and now it's

  "    x xxxx\nxxxxxxxxxx\nxx..."

original commit: efda1706d87045cbe2882c9c4b77b34a72e3594b
2012-05-06 06:15:04 -04:00
Eli Barzilay
63427f262e Streamline all scribble tests.
original commit: 36394500e552b1f00fca97b2e99fc674cd3a5857
2012-05-06 05:53:19 -04:00
Eli Barzilay
283bcc6ff5 New wrap-line' function in a new scribble/text/wrap' module.
This should probably become documented if it's stable enough.  For now
it's intended for building wrapping functions, so it's only documented
in comments the file.

original commit: 89b9ad0dde5298516934f4df016c27b60e10f86d
2012-05-06 05:38:04 -04:00
Robby Findler
95575d09b0 fix proc-doc/names documentation
closes PR 12739

original commit: f2816e72b4a106399ea075988d337c6ab0f38076
2012-05-03 11:36:09 -05:00
Asumu Takikawa
c89374a441 Add an example to scriblib/autobib docs.
original commit: 420b66ca4e4ab0a06ba4b620f8ce729c4a5dd083
2012-05-02 22:39:06 -04:00
Matthew Flatt
bca4c000ba racket/sandbox: change syntax-object wrappers generated for locations
Generate wrappers consistent with a reader-level absence of `.'s,
instead of wrapping every pair. This change fixes the `syntax-e'
example in the Guide's description of syntax objects.

original commit: 54a6ba8d363f441d0bf3d4b15df0170215b84b8e
2012-05-01 16:48:15 -06:00
Matthew Flatt
548627c404 scribble/eval: change string or byte-string expression handling
Use `datum->syntax' instead of `begin' to protect the string or byte
string. Danny Yoo suggested this change.

original commit: 23296615ec7cddb34257486b62094048b085ff6e
2012-05-01 16:48:15 -06:00
Matthew Flatt
2c0f9c9480 scribble: for Latex, pick tt encoding of <, >, and | explicitly
original commit: 393a1f441ac1cab46000c72ea0901c3adac163e2
2012-04-29 11:23:37 -06:00
Matthew Flatt
a9cb0003ec scribble: change Latex rendering of empty hidden part titles
original commit: fc1089c84220582e627e0931438c275965228550
2012-04-29 10:37:11 -06:00
Matthias Felleisen
c971d20757 add a form to declare a module/library deprecated
original commit: 9ef66b80eac46a18fd200cef2f8c084ca7f6a0b7
2012-04-28 13:25:32 -04:00
Danny Yoo
876b221b05 small typo
original commit: a067380622833a9c5153d88f71f614234e7fb57c
2012-04-28 05:27:34 -04:00
Matthew Flatt
6a773e5078 scribble/bnf: add `BNF-seq-lines'
original commit: 563909c3285cd30f076b37619b5623c24888f2c0
2012-04-26 17:59:19 -06:00
Matthias Felleisen
497a6e15cb removed code:comment hack that clearly never should have been there
original commit: 3e1e9c876312de7a844303e2fec553bf0bd61728
2012-04-23 20:01:58 -04:00
Eli Barzilay
eb02149bb7 Make it possible to run each scribble test file by itself.
original commit: 115a3dfbac711d1ef8de2f52d9d1599bbf708333
2012-04-17 14:04:57 -04:00
Robby Findler
9a97f6693f adjust the way 'new' is laid out in the documentation to be more DrRacket-like
original commit: 0b71ebecafca03470c2e26783e5afbf05df30dce
2012-04-14 14:54:19 -05:00
Matthew Flatt
da393a6b19 add #:line-number-sep' to codeblock'
original commit: c5e5a0349a9202e2f997eca16029835b9885d740
2012-04-11 11:49:01 -06:00
J. Ian Johnson
743e0afbfb Sort bibliographies by authors' last names.
(Tweaked by Vincent.)

original commit: 3caf0aca23a293271dd7245f42b28dccaab535f6
2012-04-05 19:04:54 -04:00
Matthew Flatt
d327ca1190 scribble: add 'block style for `table'
original commit: 20256a3f1504f44ccb10c128910b4d822bd857cf
2012-04-05 06:58:53 -06:00
Jay McCarthy
e287958185 Moving tests re: Sam
original commit: 1d19a844f4e63de3d3709cd828bb9922c8c952eb
2012-03-30 23:54:42 -06:00
Jay McCarthy
b33bd7bf33 Autobib errors with no authors or dates on a bib entry. Test included.
original commit: 13e36fbec4d50813ced3ae80db8c1a641952f719
2012-03-29 15:44:27 -06:00
Matthew Flatt
1bb78b43fe scribble: for Latex/PDF output, use \makebox for precise pict widths
Otherwise, the width of a pict is implicitly rounded up, since
the PDF bounding box is an integer.

original commit: 4735666cd9a3a5de4e40202b23a9d8da034ef22e
2012-03-27 13:14:54 -06:00
Matthew Flatt
70332eb7ce make HTML rednering work when a `part' has not tags
original commit: 2d87d48ebdb831fafc398a603c2582bb87ce8592
2012-03-25 19:25:35 -06:00
Matthew Flatt
219c78cc7b add missing "jfp.css"
original commit: 6c1e1635abfd125d866c5202e8d19cc548cd2299
2012-03-25 19:25:35 -06:00
Vincent St-Amour
9a091e2d4f Fix bug in autobib's handling of urls.
original commit: 999de5a4884e07f4f5cc48910bd658b57ef46fdb
2012-03-19 11:10:22 -04:00
Robby Findler
5be58073cb disable the drracket toolbar buttons for scribble/lp files
original commit: 4fe8cd344c09390b20eb7c9cca415d79753d642b
2012-03-17 19:24:33 -05:00
James Ian Johnson
f280030d0c Bibliographies had a nondeterministic render order. Fixed. Added tests for disambiguation.
original commit: 6e7fb4e7efd6efc692f4305740754a91ebf70dde
2012-03-13 18:38:31 -04:00
James Ian Johnson
875843a4e1 It was possible for a multi-citation to be ambiguous and mention a something not referenced anywhere else. Added a safeguard so that the citation hash is properly populated.
original commit: 337be4a677bdbd3aeae9926fd45727944ed63d3d
2012-03-13 18:38:30 -04:00
James Ian Johnson
ca961ce44b Added the ability to disambiguate between citations using autobib.
original commit: 2c63ce2286da4113baa9c32d5d75bf8189bcbb35
2012-03-13 18:38:30 -04:00
James Ian Johnson
ce2dc58b4c Better disambiguation for autobib. Delays rendering bib elements because the disambiguation must be accounted for.
original commit: f3dc5796bedcc4390382f0c9d6790caf68d11a99
2012-03-13 18:38:30 -04:00
James Ian Johnson
403058dcf2 Added the ability to disambiguate between citations using autobib.
original commit: 6f1c6b7d92f9654f84dba446edd0df377ee262eb
2012-03-13 18:38:30 -04:00
David Van Horn
c50afd054e Fix contract on filebox to reflect documentation.
original commit: b8d3219b1b8000f367f6660f09e1870a2b857b72
2012-02-28 19:40:21 -05:00
Jay McCarthy
e517a09290 Squelch newline citations
original commit: d7aa944ebac6bed0c7986ede99bd0fa1fb1e61c3
2012-02-20 10:50:47 -07:00
Eli Barzilay
404c08f8c3 Revise commented code so it can replace exiting code without dependency issues.
original commit: 31746a2d9e52202e752850012bb509f7e167e2ff
2012-01-26 13:20:26 -05:00
Jay McCarthy
3b50061de1 Throw an error when required fields are missing, rather than letting scribble error
original commit: 2d0d4823a78147cc9fa4dfa85fc09a5a609ac2d1
2012-01-25 16:48:11 -07:00
Matthew Flatt
e151e32b82 change Scribble xref formats, so that HTML info works for Latex
There's no particular reason that any one format will have all
the information that other formats need, but it conveniently works
for now that HTML info can subsume Latex info.

original commit: a1fd742ed022035732b4a0c778168cc6b862933a
2012-01-11 16:39:52 -07:00
Matthew Flatt
bf6b952964 add ffi/com', ffi/unsafe/com'
original commit: ff41a896bc03ccba95da0ba0a8e4b38c70bab278
2012-01-10 18:35:32 -07:00
Matthew Flatt
3f4465aada make scriblib/figure' work with scribble/jfp'
original commit: 3b87b735554b216d78690e4bc25f586988c08311
2012-01-09 13:29:56 -07:00
Matthew Flatt
54de2e9413 fix typo
Reported by J. Ian Johnson

original commit: fb46daafa09c39a5029efd872933f8db20822c41
2011-12-31 06:32:13 -07:00
Eli Barzilay
65e44be261 Make a `resource' struct so it is identifiable.
(Also, change a `define-struct' to a `struct'.)

original commit: 787f3151de5f803fa5b54e6a4d4d2219c72d0b4c
2011-12-28 21:07:24 -05:00
Eli Barzilay
73784d91d9 Remove the `referrer' argument from resources.
This turned out to be a bad idea.  The thing is that some resources need
to be referred to in multiple ways -- for example, different texts in
links of different kinds, or using the URL directly in some cases.  The
existence of `get-resource-path' is a witness for this problem, since it
was used for such cases -- this function is removed as well.

There's no point in trying to generalize this here: instead, go back to
a simpler system where a resource always returns its URL (with an
optional argument to get an absolute URL).  When a `referrer'
functionality is needed, build it on top of that, in a place where it
makes more sense.  (That is, in a specific code for generating content,
where there could be a decision that resources have plain links and also
a very short link for use in navbars.)  Otherwise, it's usually simpler
to just define resources and referrers separately (as different
bindings, the latter uses the former).

original commit: 180651d04d554bb29a6128dd66a292d354140535
2011-12-28 21:07:24 -05:00
Eli Barzilay
984496bef4 Switch delay's to lazy's.
original commit: c8c13e46bb8412b10a97acf490e015dd72079615
2011-12-28 21:07:24 -05:00
Eli Barzilay
27ac7bce2f Clarify a comment for future work; a bunch of new internal definition uses.
original commit: ace5fdf1f3609fff3c583f8ea8fa050a99ac2cf3
2011-12-28 21:07:24 -05:00
Matthew Flatt
f330897ca1 fix for `scribble --text' and tables
original commit: dcedd6e2be5b58bf5f26e1a5c7f5305502d889f8
2011-12-21 11:27:06 -07:00
Matthew Flatt
f5ce9df901 scribble: avoid line-break between "#" and "<void>"
original commit: 1b4f13e674a640cfca5808a024393e047b4d7b19
2011-12-18 07:27:32 -07:00
Matthew Flatt
27d597b71f intern strings, etc. only when making syntax objects, not in `read'
Rename `read-intern-literal' to `datum-intern-literal'.

Interning is needed only in `read-syntax' or `datum->syntax' to
set up the invariants that the bytecode compiler needs for cross-module
optimization. When `read'ing numbers from a data file, meanwhile,
interning slows things down a lot and doesn't seem worthwhile.

original commit: ee775c3cc3088a8de848399b3c1eec97bbc52b89
2011-12-14 16:03:44 -07:00
Matthew Flatt
9d0ff0cdfd more interning related to Scribble xref
original commit: 17504a960eb552992818a9b303457d58f9171b2a
2011-12-10 11:43:58 -07:00
Matthew Flatt
4dacb9f7a8 strip value from 'dep tag
The value isn't used; a 'dep tag is ony to establish
dependencies, and the relevant value is with a 'form or
'def tag. Avoiding the extra value saves another 5% in
cross-reference files.

original commit: 28ee1570ae2ac68007af5798b5964a859ffcb49b
2011-12-10 11:43:58 -07:00
Matthew Flatt
f1a593d3a3 read-intern strings generated by Scribble; other interning
This change saves a small amount of space in cross-reference files
and some space in loaded cross-reference information.
It also saves work converting strings to mutable on deserialize,
although the performance difference seems negligible.

original commit: b2fade9206590173e4c2e346357ad13150525387
2011-12-10 11:43:58 -07:00
Matthew Flatt
c17636d399 fix `defform[*]' handling of #:id and grammar production
In @defform*[#:id x1 [(qqq x1)]], for example, `#:id x1' needs to
calcel the default treatment of `x1' within `(qqq x1)' as
a metavariable, while treating `qqq' as a meta-variable.

original commit: 7d2914fc8a8f2647605da1d6699d0bc54685a5f3
2011-12-03 10:03:13 -07:00
Matthew Flatt
ef02b4039c scribble: fix HTML rendering of table in nested flow starting item
original commit: 07342303e5eb63c0d255cacaa49faabc8c667d19
2011-12-03 08:41:15 -07:00
Matthew Flatt
44a9f835da switch `codeblock' to strings instead of bytes
Also, fix scribble lexer line counting.

Closes PR 12225

original commit: fca5ceecc97dfff28ae52bb404a8761426f64145
2011-11-27 11:06:21 -07:00
Matthew Flatt
201f279940 scribble: use Latex skull package only if needed
original commit: 93bcc58a0c348429a6fc145d83211d4e038f95e6
2011-11-26 09:01:46 -07:00
Matthew Flatt
16ff0ec9a4 at-exp, scribble: remove distinctness of @{}-introduced newlines
original commit: fe3b6ea0032a6cdee6aa8720b349ef1032fed803
2011-11-24 09:17:34 -07:00
Matthew Flatt
3ddff1f507 update sigplanconf to the version with Creative Commons license
original commit: 2de0a853dd4b42f719f260df7039df309deace7e
2011-11-11 16:32:16 -07:00
Matthew Flatt
c3adb61eee scribble: Latex/PDF rendering of some Unicode superscript characters
original commit: 9f81387e85e2fd18f869c60632bba69159476df3
2011-11-11 07:05:16 -07:00
Matthew Flatt
28a795d6a3 add missing `render%' init argument doc
original commit: 3885f4683bb7093f9bf2c448d9b0075ff6a94a67
2011-11-02 08:12:58 -06:00
Matthew Flatt
0ffb9f2b48 fix contract
original commit: 932ef94cb3172fab489b2543a9efa9e613727188
2011-10-28 06:43:20 -06:00
Ryan Culpepper
5218126773 scribble/eval: pretty-print results by default
original commit: eed6016793c9646f5dce28e2660c2a8cd0db1122
2011-10-16 05:41:58 -06:00
Matthew Flatt
80d1ff2273 scribble: fix Latex renderer treatment of table cell/column styles
The renderer was using symbol style names as command names, but only
strings should be treated that way.

original commit: 0f5b53d3498f857920ff7fa438269727553dc058
2011-10-06 07:47:38 -06:00
Ryan Culpepper
02d8332600 removed useless requires
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00
Matthew Flatt
5faa598ff1 fix `scribble -h' output
original commit: 8711feae2d7109348352687721cd3960f7d80947
2011-09-26 18:07:18 -06:00
Robby Findler
9717b74876 use new copy-file argument that Matthew provided; this is a better fix than
commit f9e1c41cb0a7f84766207d7a092443dbb5a17e1c was for the same problem

original commit: 76e55071b056d87eb60950f0b08326e09668fa5f
2011-09-19 15:19:04 -05:00
Robby Findler
f258c1ca85 minor Rackety
original commit: de62ac2f061ef2d5c40e2025b81f265f40fd0fdf
2011-09-18 21:20:27 -05:00
Robby Findler
7265c614d4 Change scribble so that is overwrites the destination file when it makes a .pdf file
instead of copying the file into place. This makes Lion's Preview happier (specifically
it now recognizes the file as a revision of the old one and updates itself instead of
treating it as a new file and opening a second window)

original commit: f9e1c41cb0a7f84766207d7a092443dbb5a17e1c
2011-09-18 21:20:27 -05:00
Eli Barzilay
867af4149a Make `defproc' throw an error if two arguments have the same name.
Related to the already fixed PR 12114 and PR 12133, which motivated the
error, and a few additional typos of the same kind.

(Note that it uses the symbols, but that's how they'll render anyway.)

original commit: 16cd1ad78d6495816a4869621154024652fd8da0
2011-09-16 11:14:18 -04:00
Eli Barzilay
240449694b Some selective #:when (not ...)' -> #:unless ...'.
original commit: 623c7493ed2bbf7c89caea877a7b94a5f4c42c73
2011-09-16 10:48:18 -04:00
Matthew Flatt
5a16309b24 scribble CSS: force text-align left in RktBlk
Because IE seems to default to inherit while other browsers
default to left.

original commit: 87652cd32e285ac9c37494c49feff867e7ab0e21
2011-09-15 07:25:57 -06:00
Matthew Flatt
4622f11e5f scribble: fix HTML navigation when the main part has 'toc
original commit: 9bd50695b5778902d626fa707cd2ebe7d59dba03
2011-09-15 07:12:58 -06:00
Matthew Flatt
f622c4755c scribble: more nowraps in HTML output
Avoids line-wraps for `examples' output and in function contracts

original commit: 7a2e1aa9001ec002892be146b7e5b425fa757c01
2011-09-12 19:17:08 -06:00
Matthew Flatt
48581ad3d0 generalized `begin-for-syntax'
original commit: d3c56c9f13327d07513f8b6bf7ea0230acb7f489
2011-09-08 14:06:00 -06:00
Vincent St-Amour
a33001e62f here-figures shouldn't be on a page of their own.
original commit: 371fcba252ca2ea2a4389e1a9273436253e62be4
2011-09-06 16:35:16 -04:00
Matthew Flatt
077c95eb87 avoid an internal error
Closes PR 12138

original commit: fd0a2e98798073ba9baf8d805ce31923f1468b1c
2011-09-04 15:55:26 -06:00