Commit Graph

71 Commits

Author SHA1 Message Date
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
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
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
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
Matthew Flatt
3af3acb27f fix comments
I had it all backwards: DrRacket went from "increment" to Greek
capital delta (which makes a lot more sense).

original commit: 490a474e0e4b92af8956cab13d885349053a3973
2012-12-10 10:27:44 -07:00
Matthew Flatt
4fadca633f scribble: render "incremement" and some other chars for Latex/PDF
This change was prompted by the change to DrRacket's "\Delta"
to produce the Unicode "increment" character.

original commit: fc112ccd4627f0b7413ba17a81d050bb840a79b3
2012-12-10 10:20:32 -07:00
David Van Horn
cd18c13bf9 Change latex render units from px (pdflatex specific) to bp (tex).
The px unit is a pdflatex specific adjustable unit that is 1 bp (big
point = 1/72in) by default.  This commit changes the latex renderer to
use bp which is a standard TeX unit equivalent to the default px
value.  This change allows .tex files generated by scribble to work
with other latex engines such as xelatex.

http://nwalsh.com/tex/texhelp/Plain.html#dimensions
http://tex.stackexchange.com/questions/41370/what-are-the-possible-dimensions-sizes-units-latex-understands

Here is a small test of using scribble and xelatex:

$ cat try.scrbl
@(require scriblib/figure redex/reduction-semantics redex/pict)
@(define-language L)
@(render-term L (term 1))

$ scribble --latex try.scrbl ; xelatex try

original commit: 0dfcf634ed29a9d6e9d99ea7bcd02121abd24a7b
2012-12-07 06:53:45 -06:00
Matthew Flatt
e6d3862627 scribble latex: work around `\href{...#...}{...}' as a macro argument
The `math' document build was failing because `\marginpar' does not
like `\href{...#...}{...}' as an argument.

original commit: 24f358a5d7afca40fcf734af94c2c94a80a817dc
2012-11-25 06:24:51 -07:00
Matthew Flatt
b951c48fca Scribble PDF/Latex: Hangul support
original commit: 008f476210498537dc4e6812b154aadb9cf4e864
2012-11-02 07:45:57 -06:00
Matthew Flatt
d5a9bdadb8 Scribble Latex: more complete and consistent handling of accented letters
original commit: 6a82c8bb7c2dce32838dd3dbbb68d76930fcb96a
2012-10-10 07:13:05 -06:00
Matthew Flatt
0b1c035661 Scribble: add some macron accents for Latex
Merge to v5.3.1

original commit: de9ccea7f1b11b43c17f34a2c715dcb452a39e2d
2012-10-10 06:49:01 -06:00
Matthew Flatt
5084b1a133 scribble: make `linebreak' work more for Latex/PDF rendering
original commit: 683e72e9e39f3e8536f9fc0ba0ad8c6f5aca050a
2012-10-04 06:40:36 -06: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
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
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
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
Matthew Flatt
3d84458aa7 scribble Latex: add \SNumberOfAuthors{} in output
original commit: 814c974d015b647e8482a46720f0728d3b318175
2012-07-01 10:00:58 -06: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
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
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
Matthew Flatt
d327ca1190 scribble: add 'block style for `table'
original commit: 20256a3f1504f44ccb10c128910b4d822bd857cf
2012-04-05 06:58:53 -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
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
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
201f279940 scribble: use Latex skull package only if needed
original commit: 93bcc58a0c348429a6fc145d83211d4e038f95e6
2011-11-26 09:01:46 -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
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
db4d7c9add Scribble: support for "boxable" blocks in Latex output
For example, if you make a multi-column table with a
`racketblock' in each column, then the columns size
to fit the code --- instead of forcing the table width
to match the page width and forcing each column to take
an equal share width.

original commit: b7afb3cf8fbbf448af18805db2f32c130ba4d47b
2011-08-05 10:03:38 -06:00
Matthew Flatt
2e8e709b7f Scribble: style adjustments to deter code wrapping
For HTML, the style used in the output of `racketblock' now
disables line wrapping, and the Rkt text styles inherit
line-wrap behavior. This doesn't solve the general problem
of code overflowing the horizontal space, but it makes the
failure mode usefully better.

A new 'vertical-inset nested-flow style is used by
`defproc', `defform', etc. It has no effect for HTML,
but it introduces suitable vertical space for Latex output
(in case you want to use `defproc' in a SIGPLAN-format
paper, for example).

original commit: 4ac85de974ec2e6326df129745228b3ffcbb778f
2011-08-05 10:03:37 -06:00
Matthew Flatt
825e3fcea8 Scribble Latex: change 'boxed to use a blue vertical bar
... to the left of a definition, instead of a horizontal line
before the definition

original commit: 378ca5ffc26168a52a03f46fd83bace49b301ead
2011-08-05 10:03:37 -06:00
Eli Barzilay
45a9cd48c2 ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Matthew Flatt
9f6f5d9812 add --latex-section' mode to scribble'
original commit: 3f95fabf7c4ef7616633820e79bf4d1ea472bbb9
2011-06-22 07:49:15 -06:00
Matthew Flatt
41b848edda Scribble Latex Unicode fixes
original commit: c9e98a5f1f3e93815352e4177730d7704c5ecda9
2011-06-16 15:06:15 -06:00
Matthew Flatt
a37d3fc996 fix 'exact-chars Latex rendering for `multiarg-element'
original commit: b44f217cddd166412c56bd80e810ebdeebcd1337
2011-05-19 06:36:54 -07:00
Matthew Flatt
e4f618d24d scribble: add support for setting a document date
in Latex output, and also document and generalize
 the 'pretitle paragraph style

original commit: 66178570b6f13fe2f6163d7b15e9e4118a4d0bad
2011-05-15 19:42:22 -06:00
Matthew Flatt
befd85c2d8 Scribble: simplify content that is conditioned on the render mode
including a new `scriblib/render-cond' library

original commit: df2a875ff4aaff90b20906a80dff6218470eb455
2011-04-04 10:45:02 -06:00
Casey Klein
442283d9be Adds caron s to LaTeX renderer
original commit: 7edfa58ef109abd91a358d2eef068040b43fe1ea
2011-04-01 14:00:45 -05:00
Matthew Flatt
742843af7b Scribble: change the way `racketblock' etc. indent/inset works
- introduce 'code-inset style for nested blocks
 - use style instead of spaces for code indentation
 - sigplanconf adds vertical space around 'code-inset
 - more ...0 variants to compose better

original commit: bbc5533938b1dac8f14005210fa9fe552dfa7e8c
2011-03-30 15:12:30 -06:00
Matthew Flatt
1f7cb9b151 Scribble: fix Latex-renderer bug introduced by 67b7c8f3f4e54
original commit: ba70e05ae24728a30e85618657b52c8da8d08b4a
2011-03-29 08:32:14 -06:00
Matthew Flatt
32be99330c adjust inline-PDF descent to account for rounding
of the PDF bounding box

original commit: a20a77508fe8bba052b15574b9601ef6a204f7f7
2011-03-27 16:27:19 -06:00
Vincent St-Amour
ce0e91fe1b Add the capital version of an accented character to Scribble.
original commit: 2e811060c5ded00a8946303aae7391ebac9febe6
2011-03-23 18:21:27 -04:00