Commit Graph

2061 Commits

Author SHA1 Message Date
shhyou
2767dd2c06 Block scribble from changing fonts to ptm in LNCS 2020-11-06 10:45:19 -07:00
Sorawee Porncharoenwase
c054b62765 Refactor search placeholder
HTML supports the placeholder attribute, so we should use it
instead of implementing it ourselves.

The placeholder attribute is not available prior IE10 (not including
IE10). However:

1. In non-supporting browsers (e.g., IE9), the search functionality
should still work correctly.
2. Non-supporting browsers don't qualify for the "full support" level
detailed in https://github.com/racket/scribble/pull/240/
IE9 for instance is released in 2011, and Microsoft announced its end of
support in 2016.
2020-11-06 08:56:55 -07:00
sorawee
dc3254303d
Use key instead of keyCode
In non QWERTY keyboard, pressing S won't focus the search bar.
This commit fixes the problem.

Note that `keyCode` is not supported in IE8 already, so the fact
that `key` is not supported in IE8 too doesn't really matter:
the PR doesn't cause browser compatibility for the features to degrade.
2020-11-06 08:55:50 -07: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
William J. Bowman
d7883e172f Fix case sensitivity issues in bibtex 2020-08-23 09:53:25 -06:00
William J. Bowman
d71ad4d18a Added support for latex escapes in bibtex titles and authors
This allows using certain escape sequences, such as \", in titles and authors of
bibtex files.
Titles are wrapped titles with 'exact-chars, so the set of escapes handled is
large.

A different method is used for author which basically convert certain well-known
escapes into Unicode.
This seems necessary to support parsing of author names.
2020-08-23 09:48:08 -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
William J. Bowman
cf0f2e3615 Include autobib styles on citation, not just bibliography.
Closes #262
2020-08-18 16:39:33 -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
ac2b976e40 Add test case for #256. 2020-07-20 09:42:05 -04:00
John Clements
709977cccd
Merge pull request #256 from samth/gif-size
Convert GIF size to string.

Committing this, see email conversation for rationale.
2020-07-19 20:02:27 -07: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
Jack Firth
51639146dd Fix typo 2020-07-17 05:50:04 -06:00
Matthew Flatt
d28baaff80 docs: fix contract for nested-flow 2020-07-11 11:48:18 -06:00
Sorawee Porncharoenwase
45817fa049 readme: scribble-text-lib -> scribble 2020-06-30 06:58:49 -04:00
David Florness
5e6f3b2236 Grammar fix 2020-06-30 06:41:17 -04:00
Robby Findler
f3da3670e0 document the package macros and add backslashes to the index 2020-06-26 21:05:19 -05: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
Ben Greenman
340c60ef54 doc: add '<>' around 3rd example tag 2020-05-24 09:12:12 -04: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
Sorawee Porncharoenwase
fd9b85aa10 It links to the reference, not the guide. 2020-04-21 22:03:10 -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
08d09d672e docs: remove wrong claims about body-id
The `body-id` structure is actually only recognized in a main `part`.
for other places, use `attributes`.
2019-12-08 10:06:31 -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
Ben Greenman
6a5dfdffb8 doc: autobib, fix overlapping for-label imports
scribble/struct and scribble/core provide some common identifiers,
 so use only-in to import from scribble/core
2019-12-07 23:24:31 -05:00
Ben Greenman
6a8986f7c0
autobib: fix author formatting (#216) (#222)
- fix #216 by coercing author-element data to a string, add tests
- doc edits:
  - import `scribble/core` to fix link to `content?`
  - fix typo in `dissertation-location`
  - replace unbound reference to `name/c` with a real contract
2019-12-07 21:17:00 -05:00
Reuben Thomas
9b1f9bc1d2 Make @emph nestable, logical markup 2019-12-06 04:59:35 -07:00
Reuben Thomas
8168a22492 scribble/config.scrbl: fix trivial typo 2019-12-04 15:11:53 -07:00
Jack Firth
3c62d4cd5d Langify scribble modules 2019-11-13 08:27:32 -07:00
Reuben Thomas
fb7106bc50 scribble-doc/scribblings/scribble/core.scrbl: fix typo (#219) 2019-11-12 11:26:27 -05: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
Sam Tobin-Hochstadt
e25a02fd15 Relicense this repository under the Apache v2 and MIT licenses.
* Move licensing information to the top level of the repo.
* Add README.md file with license and contributing info.
2019-11-04 12:48:39 -05:00