blob: 72dd7a50c86a38eb30c5040f4d9a4aa006629602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
% Author: Alexey Shipunov, dactylorhiza@gmail.com
\ProvidesPackage{isyntax}
[2008/02/07 v0.3 Interactive syntax check]
\RequirePackage{ifthen}
\newif\if@SO
\DeclareOption{syntaxonly}{\@SOtrue}
\DeclareOption{nosyntaxonly}{\@SOfalse}
\ExecuteOptions{syntaxonly}
\ProcessOptions
\if@SO
\RequirePackage{syntonly}
\typeout{}% Screen typeout:
\typeout{*********************************************}
\typeout{ Do you want only to check syntax of your}
\typeout{ document (no dvi/pdf output)? (y/n)}
\typein[\isyntax]{*********************************************}
\ifthenelse{\equal{\isyntax}{y}}{\syntaxonly}{\relax}
\fi\relax
\endinput
|