{"size": 2404, "ext": "scrbl", "max_stars_repo_path": "share/pkgs/slatex/slatex-wrap.scrbl", "max_stars_repo_name": "takikawa/racket-ppa", "max_stars_repo_stars_event_min_datetime": "2018-07-29T04:13:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T16:11:17.000Z", "max_issues_repo_path": "slatex-wrap.scrbl", "max_issues_repo_name": "racket/slatex", "max_issues_repo_issues_event_min_datetime": "2017-08-25T20:26:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T17:48:40.000Z", "max_forks_repo_path": "share/pkgs/slatex/slatex-wrap.scrbl", "max_forks_repo_name": "takikawa/racket-ppa", "max_forks_repo_forks_event_min_datetime": "2015-10-08T16:26:13.000Z", "max_forks_repo_forks_event_max_datetime": "2015-10-08T16:26:13.000Z"}
{"max_stars_count": 10, "max_issues_count": 15, "max_forks_count": 1, "avg_line_length": 37.5625, "max_line_length": 83, "alphanum_fraction": 0.7450083195}
#lang scribble/doc
@(require scribble/manual
	  (for-label scheme/base
                     slatex/slatex-wrapper))

@(define latex @exec{latex})
@(define pdflatex @exec{pdf-latex})
@(define slatex @exec{slatex})

@title{SLaTeX Wrapper}

@defmodule[slatex/slatex-wrapper]

To use SLaTeX as a standalone program, either drag your
@filepath{.tex} file onto SLaTeX (on Windows or MacOS X), or type
@exec{slatex file} in a command shell.

@emph{NOTE:} If you compile your @filepath{.tex} file without using
@exec{slatex} (i.e., by using @exec{slatex -n} and then using @exec{latex}
directly), then your @envvar{TEXINPUTS} environment variable must contain
a reference to the directory in which the most recent version of
@filepath{slatex.sty} lives.  That file resides by default in the @filepath{slatex}
collection of the main installation.

In addition to the SLaTeX tools, this collection contains a parallel
set of PDF-SLaTeX tools, which are identical except that they
call @pdflatex rather than @|latex|.  In particular, there is now a
launcher called (PDF-SLaTeX/pdf-slatex).

@deftogether[(
  @defproc[(slatex (filename string?)) boolean?]
  @defproc[(pdf-slatex (filename string?)) boolean?])]{

Accepts a string naming a file and runs @slatex and @latex on the
file. It calls @racket[filename->latex-filename] on @racket[filename].

@racket[pdf-slatex] is like @racket[slatex] except that it calls
@pdflatex rather than @latex, and produces PDF output instead of PS
output.}

@defproc[(slatex/no-latex (filename string?)) void?]{

Runs @slatex on the file named by @racket[filename], without calling
@|latex|. That is, it only processes the @filepath{.tex} file to
produce the @filepath{.Z} files.  It calls
@racket[filename->latex-filename] on @racket[filename].}

@deftogether[(
  @defproc[(latex (filename string?)) boolean?]
  @defproc[(pdf-latex (filename string?)) boolean?])]{

Runs @latex on the file named by @racket[filename]. It calls
@racket[filename->latex-filename] on @racket[filename].

@racket[pdf-latex] is like @racket[latex] except that it calls
@pdflatex rather than @latex, and produces PDF output instead of PS
output.}

@defproc[(filename->latex-filename (filename string?)) string?]{

Accepts a filename and, if that file exists, it returns it. If the
filename appended with the suffix @filepath{.tex} exists, that
filename is returned. Otherwise, an exception is raised.}
