fix Scribble reader to attach originalness to the syntax objects that it generates, so that Check Syntax works properly on Scribble documents
svn: r9125 original commit: aee99cd175768fbfec771aa936fbcdc73b988c29
This commit is contained in:
parent
400abfcb29
commit
91d3b3ba42
|
@ -51,12 +51,15 @@
|
|||
(pair? number))
|
||||
(when (part-style? d 'index)
|
||||
(printf "\\twocolumn\n\\parskip=0pt\n\\addcontentsline{toc}{section}{Index}\n"))
|
||||
(printf "\\~a~a{"
|
||||
(printf "\\~a~a~a{"
|
||||
(case (length number)
|
||||
[(0 1) "sectionNewpage\n\n\\section"]
|
||||
[(2) "subsection"]
|
||||
[(3) "subsubsection"]
|
||||
[else "subsubsection*"])
|
||||
(if (part-style? d 'hidden)
|
||||
"hidden"
|
||||
"")
|
||||
(if (and (pair? number)
|
||||
(not (car number)))
|
||||
"*"
|
||||
|
|
|
@ -80,6 +80,13 @@
|
|||
\newenvironment{supertabular}{\begin{longtable}}{\end{longtable}\vspace{-3ex}}
|
||||
\newcommand{\supertabline}{\vspace{-2ex}}
|
||||
|
||||
\newcommand{\sectionhidden}[1]{\section{#1}}
|
||||
\newcommand{\subsectionhidden}[1]{\subsection{#1}}
|
||||
\newcommand{\subsubsectionhidden}[1]{\subsubsection{#1}}
|
||||
\newcommand{\sectionhidden*}[1]{\section*{#1}}
|
||||
\newcommand{\subsectionhidden*}[1]{\subsection*{#1}}
|
||||
\newcommand{\subsubsectionhidden*}[1]{\subsubsection*{#1}}
|
||||
|
||||
% Scribble then generates the following:
|
||||
%
|
||||
% \begin{document}
|
||||
|
|
Loading…
Reference in New Issue
Block a user