Commit Graph

30 Commits

Author SHA1 Message Date
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
66c4c50f47 add table-row-skip to latex-properties 2020-02-27 13:50:13 -07:00
Matthew Flatt
84607f796c fix 'hidden style property for main document title 2019-12-08 10:02:02 -07:00
Reuben Thomas
9b1f9bc1d2 Make @emph nestable, logical markup 2019-12-06 04:59:35 -07:00
Robby Findler
aeda087b67 add longrightarrow
please merge to release branch
2019-01-14 10:35:20 -06:00
Robby Findler
cfcb32870f add \partial 2018-11-29 08:50:56 +01:00
Robby Findler
fbeaeef62e add harpoons 2018-10-31 09:58:51 -05:00
Matthew Flatt
e7cf458de9 support subscript decimals in Latex/PDF output 2018-05-07 19:54:23 -06:00
Matthew Flatt
5f29095f02 scribble/book-index: more book-like index style for Latex/PDF
Merge index entries that have the same key and use cleveref to
render the page-number sequence.
2017-12-18 11:07:02 -07:00
Matthew Flatt
7278568040 section links plus scriblib/{autobib,figure}: better match acmart
Add a `link-render-style` syntax property to control the rendering of
section links --- so that HTML output can say "section <number>", and
so that Latex/PDF output can have just the section number hperlinked
(as in acmart).

It seems unfortunate that the link rendering is so hardwired into each
rendering back-end, but maybe this can be made even more configurable
in the future. Meanwhile, Latex macros already provide an additional
layer of rendering control (but not enough, it turns out, to easily
perform the same adjustments as the 'number mode that matches acmart).

For `scriblib/figure` make `figure-ref` and `Figure-ref` similarly
sensitive to the link-rendering style.

For `scriblib/autobib`, change the hyperlinking of references
so that the color can be overridden, and make `scribble/acmart`
override it.
2017-10-11 11:19:44 -06:00
Matthew Flatt
732d631951 Latex/PDF: hyperlink local references
The Latex renderer was not linking local references because Latex
output was intended as a printing-to-paper alternative to HTML.
For writing papers with acmart, however, local PDF hyperlinks
are relevant. So, enable them.
2017-10-09 12:00:10 -06:00
Stephen Chang
332444bf2b swap latex rendering of phi and varphi 2017-07-11 13:25:26 -04:00
Robby Findler
ee8f881153 add some missing symbols to latex generation 2017-07-02 23:59:53 -05:00
Leif Andersen
9da2f4f40f Add a pretitle style property for nested flows. (#94)
* Add a pretitle style property for nested flows.

This allows us to raise nested flows above the title. So that we do
things like raise the abstract above the title:

```
\begin{abstract}
Abstract text
\end{abstract}
\titleCommand{...}
```

This style is required by the acmart style guide.

* Paragraphs and nested flows extracted in the same order

* Fix `scribble/acmart`'s abstract form so that it gets lifted above `maketitle`, where it should be.
2017-03-25 10:08:18 -04:00
Leif Andersen
a26a7322a5 Latex macros _can_ actually have multiple optional args.
While done as a tex hack, macros in latex can have multiple optional
arguments. As such, we should support it with command-optional.

Meaning that the type of command-optional-arguments is now (Listof String)
2017-03-22 19:42:21 -04:00
Leif Andersen
558a8a5c64 Improve the scribble/acmart language
The existing scribble/acmart language in this repo felt more like latex than Scribble. This package brings scribble/acmart more inline with the existing `scribble/acmart` package that was already on the package server. In particular, this commit:

* Remove maketitle from scribble/acmart

* Extends the title form to also have the fields in `scribble/base`'s title.

* Support author information. (Like scribble/sigplans authorinfo)

* Removed unneeded functions now redundant due to the author function. Namely, affiliation based ones.

* Factor out common functions to scribble/acmart and scribble/base into private module.

These functions might make sense to be public, but since they were already private in base
I thought it made sense to leave them that way. Additionally, it might make sense to have the
file be something other than private/tag, as private/tag currently requires tag, which is
different than the normal way where its tag that requires private/tag.

* Add short-title to scribble/latex-properties

* Adds an `command-optional` property which is like `command-extras`, but is a single
optional argument placed before the mandatory ones.

* Create email, affiliation, and institution structs so that authors can have multiple of each.

* Add/improve documentation and history (and bump version number).
2017-03-21 01:06:02 -04:00
Vincent St-Amour
a69f6c6982 Add missing character to the table.
Used by the DrRacket docs, and was broken when making the table extensible.
2016-08-25 09:53:19 -05:00
Vincent St-Amour
cce1eff495 Extend special characters using a function rather than a dict.
Based on feedback from David Van Horn.
2016-08-24 16:14:03 -05:00
Vincent St-Amour
525b72ca4c Make the list of special characters user-extensible . 2016-08-24 16:14:03 -05:00
Robby Findler
468744bdf5 add latex equivalent for recently added mrlib/tex-table shortcuts
also correct ε to \varepsilon instead of \epsilon
2016-03-11 19:28:46 -06:00
ben
58b662ab77 typo: 'unrecognzied' -> 'unrecognized' 2016-02-20 18:18:02 -05:00
Spencer Florence
2881ef290d Allow for manipulating scribble.tex imports 2016-01-09 11:48:21 -06:00
Matthew Flatt
ad9a465ab1 Latex: 'inset style renders through a SInsetFlow environment 2015-12-13 07:40:26 -07:00
Matthew Flatt
efae6bd375 Latext rendered: support single-line box characters (light and heavy) 2015-11-08 07:32:58 -07:00
Robby Findler
e0bbdf62bf add support for alternative unicode for white square brackets
please include in 6.3
2015-10-18 07:57:28 -05:00
Matthew Flatt
5bd82177cb Latex rendering for not-in character 2015-10-17 12:18:52 -06:00
Matthew Flatt
46e637d019 more Unicode->Latex conversions
Latex output now depends on the "mathabx" package.
2015-03-19 12:43:06 -06:00
Matthew Flatt
2eb3c62bd6 fix index generation for Latex/PDF output 2015-01-24 10:09:57 -07:00
Vincent St-Amour
064ccc9bfc Add registered and copyright symbols to LaTeX renderer. 2015-01-09 12:13:19 -05:00
Sam Tobin-Hochstadt
a316fc12c0 Remove extra directories. 2014-12-02 00:54:52 -05:00