Commit Graph

217 Commits

Author SHA1 Message Date
Suzanne Soy
6c8253609f Merge tag 'v7.9' into my-changes-rebased 2021-07-06 03:20:18 +01:00
Suzanne Soy
6410ef2d43 Merge tag 'v7.7' into my-changes-rebased 2021-07-06 03:07:55 +01:00
Suzanne Soy
a7a8bcd015 Merge tag 'v7.6' into my-changes-rebased 2021-07-06 03:07:11 +01:00
Suzanne Soy
dd6cbe8650 Merge tag 'v7.5' into my-changes-rebased 2021-07-06 02:42:46 +01:00
Suzanne Soy
9631885dd5 Merge tag 'v7.4' into my-changes-rebased 2021-07-06 02:42:34 +01:00
Suzanne Soy
0161b69d82 Merge tag 'v7.3' into my-changes-rebased 2021-07-06 02:42:30 +01:00
Suzanne Soy
95400be0e5 Merge tag 'v7.2' into my-changes-rebased 2021-07-06 02:42:24 +01:00
Suzanne Soy
916c172317 Merge tag 'v7.1' into my-changes-rebased 2021-07-06 02:42:10 +01:00
Suzanne Soy
7d2cc65acd Merge tag 'v7.0' into my-changes-rebased 2021-07-06 02:32:55 +01:00
Suzanne Soy
cd98afdc41 Merge tag 'v6.12' into my-changes-rebased 2021-07-06 02:32:40 +01:00
Suzanne Soy
126f7b7212 Merge tag 'v6.11' into my-changes-rebased 2021-07-06 02:31:28 +01:00
Suzanne Soy
8f15b78615 Merge tag 'v6.10' into my-changes-rebased 2021-07-06 02:28:59 +01:00
Matthew Flatt
b3f7015cba allow content (not just a string) for #:kind in defthing, etc.
Although commit 5415cca336 just made run-time checking consistent with
the documentation, the implementation turned out to allow content
before, and some existing documents relied on that. Changes the
documentation and contract to allow content, instead.
2020-10-07 07:36:14 -06:00
Shu-Hung You
0c93db954a Replace txfonts with newtxmath.
- The newtx package supercedes txfonts

- As a side effect, we have to load amsmath
  as well and it has to be loaded before
  mathabx and wasysym.
2020-09-21 08:12:22 -05:00
shhyou
6802d4535f Disable txfonts package in scribble/acmart
Commit c62d008cf include txfonts into the set of
default LaTeX packages. However, txfonts changes
the main font of the document, conflicting the
requirement of acmart articles.

We skip txfonts by setting packageTxfonts to nop.
2020-09-18 15:31:35 -05:00
Sorawee Porncharoenwase
69cf839355 Italicize optional bracket
Per discussion in Slack
2020-08-23 09:56:26 -06:00
sorawee
cbeee2d388
Add racketoptionalfont
Scribble used to support a custom style for optional brackets.
In particular, the optional brackets will be given the `'paren-shape`
of value `#\?`[1], and the CSS class `opt-color` will be tagged
to these brackets.

Later, Scribble supports the curry notation. Its implementation
no longer uses `'paren-shape` to indicate optional brackets.
Unfortunately, it accidentally dropped the `opt-color` tagging[2].

This PR restores the original behavior by tagging the class
`opt-color` to optional brackets. It also adds `racketoptionalfont`
so that Scribble users can typeset optional brackets.
Lastly, it cleans up the code that supports the `'paren-shape` of value
`#\?`, since it is effectively a deadcode.

Note that this PR does _not_ change any CSS styling, so there's no
visible change. It would make CSS styling customization easier, however.

[1]: 9b7993ea02 (diff-017add06555fc85fa3ae5f27a3eb52cbR253)
[2]: https://github.com/racket/scribble/commit/95ecb101d1cc61d212c4d520#diff-017add06555fc85fa3ae5f27a3eb52cbR879
2020-08-21 09:01:57 -06:00
Ayman Osman
cda7efa29c handle case of no body forms in lp langauge
Closes racket/scribble#249
2020-08-18 16:47:47 -06:00
Sorawee Porncharoenwase
3fb78d9435 Fix #255: update Fira Mono 2020-08-18 16:39:12 -06:00
Robby Findler
5415cca336 add a contract to places that use the #:kind argument (including defthing)
closes #259
2020-08-13 10:30:19 -05:00
Matthew Flatt
a8813aa510 avoid disappearing left-margin note on narrow display
Related to racket/racket#3318
2020-08-01 13:17:51 -06:00
Sam Tobin-Hochstadt
9415df28d5 Convert GIF size to string.
Repairs a problem with #232.
Relevant to racket/racket#3300.
2020-07-19 21:10:41 -04:00
Robby Findler
c62d008cfb add \usepackage{txfonts} to the defaults for latex in scribble
related to racket/gui#128
2020-06-26 16:23:59 -05:00
Matthew Flatt
1f5419d10c fix color on quasiauoted hash tables 2020-06-22 08:07:41 -06:00
Sorawee Porncharoenwase
5ba2881996 overiddden -> overridden 2020-06-22 07:07:33 -06:00
sorawee
7f5a2b2648
disallow bogus mode arguments and fix related bugs
Fix #131:

- Raise a syntax error when bogus mode arguments are given.
- Fix a bug where `extend-final` and `augment-final` are not recognized
- Document the `public` mode which was already supported but not
  documented.
- Clarify the default mode when `maybe-mode` is not given.
2020-06-19 06:29:51 -06:00
Jack Firth
4b3d3a8296
Implement support for converting values to GIFs
Implement support for convertible GIFs in the HTML renderer, including
width and height attributes to GIFs created from convertible values.
2020-05-30 06:19:30 -06:00
Matthew Flatt
3d7ded8a33 extend load-xref to support multi-use on-demand information
The result of `load-xref` with an on-demand function only made sense
for a single use context, such as a single rendering request. Add an
on-demand callback that can work right for multiple uses.
2020-05-24 11:06:23 -06:00
Sam Tobin-Hochstadt
13798906ce Automatically link to source code of document.
This works, provided that:
  - the package is on the catalog at pkgs.racket-lang.org
  - the package is hosted on GitHub or GitLab

Restriction 2 could be lifted for other known sites or packages
 hosted as directories.
Restriction 1 would be harder to lift.

This only links to the _top level_ file that defines the overall
document, not the file defining the particular section. Fixing that
would require the Scribble renderer to provide more detailed
information, although it's certainly a possible extension.

Closes #223
Closes #208
Closes racket/racket#874

Related to #76, #228
2020-05-01 13:14:27 -04:00
Sam Tobin-Hochstadt
45093b8a6b Provide a distinguished source when reading in codeblock.
Closes racket/racket#3102.
2020-04-30 16:21:38 -04:00
Ilnar Salimzianov
35de7c15b9
fix typo in docs: s/can contains/can contain/ (#225) 2020-04-11 11:01:24 -04:00
Matthew Flatt
9c985ca486 latest acmart.cls 2020-02-27 13:50:43 -07:00
Matthew Flatt
66c4c50f47 add table-row-skip to latex-properties 2020-02-27 13:50:13 -07:00
Alexis King
ed02550d1a Fix the contracts on exec/commandline to match their behavior 2020-01-02 13:20:23 -06:00
Matthew Flatt
0fd2444634 make search box first in focus order
Closes racket/racket#2953
2019-12-15 10:09:51 -07:00
Matthew Flatt
84607f796c fix 'hidden style property for main document title 2019-12-08 10:02:02 -07:00
Matthew Flatt
aa5f0b767a add 'no-toc+aux style property 2019-12-08 10:02:02 -07:00
Reuben Thomas
9b1f9bc1d2 Make @emph nestable, logical markup 2019-12-06 04:59:35 -07:00
Jack Firth
3c62d4cd5d Langify scribble modules 2019-11-13 08:27:32 -07:00
Reuben Thomas
b67f265b93 scribble.tex: fix comment typo (#218) 2019-11-05 14:57:03 -05:00
Reuben Thomas
e6d95a0367 scribble.tex, scribble/book.tex: fix trivial comment typo (#217) 2019-11-05 10:00:17 -05:00
Matthew Flatt
f46083a40c LaTeX output: \protect before \colorbox
Avoid problems when `\colorbox` ends up in a section title.
2019-10-31 14:26:21 -06:00
Matthew Flatt
431bb95c7b improve markdown renderer, including support for section links 2019-10-16 05:36:48 -06:00
Dominik Joe Pantůček
97078b60ed scribble/srcdoc: add class*-doc and class-doc provide forms (#213)
* scribble/srcdoc: add `class*-doc` and `class-doc` provide forms.

* Add missing require of racket/class which contains the class? predicate.

* Add @history stanza to class*-doc and class-doc scribblings and bump version number in scribble-lib/info.rkt to 1.30.
2019-10-01 23:01:06 -04:00
Dominik Pantůček
7da79dd62b Fix raised exception on erroneous thing-doc usage. 2019-09-25 13:32:30 -04:00
Matthew Flatt
50862d0132 fix typesetting for curried procedures
The indentation for multi-line typesetting is weird, because it still
uses the table-basd layout that lines up all arguments independent of
nesting. But at least the parentheses are not broken.

Relevant to #211
2019-09-21 17:56:55 -06:00
Matthew Flatt
d9b6f0eab2 upgrade to latest acmart.cls 2019-09-03 18:56:51 -06:00
Ben Greenman
7635f21788
search box: change '"s" for search' behavior (#202)
1. Focus on the search box for either "s" or "S"
   ... accepting only "s" makes sense to me, but the comment said it
   accepted "S" and well why not
2. Look for a "keyup" event instead of key press, so that pressing "s"
   ONLY focuses on the box and does not focus-and-write-the-letter-"s"

"keyup" events apparently don't have a useful `charCode` field so this
PR looks at the `keyCode` field instead
2019-05-01 23:35:18 -04:00
Matthew Flatt
5460642214 make verbatim suppress line breaks in HTML output 2019-02-27 14:53:49 -07:00
Ben Greenman
6ae6e1eb90 htmls: don't overwrite index.html
when rendering multiple html files to a directory `d`, add
`d/index.html` to the set of files-to-be-writted to avoid overwriting
the main index with a part that happens to have the same tag
2019-02-09 00:24:57 -05:00