From cdfc9ffc365bb3efdebdbdda7ccdddf59620c2c9 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 22 Feb 2009 16:00:00 +0000 Subject: [PATCH] layout improvements svn: r13790 --- collects/scribble/latex-render.ss | 8 ++++---- collects/scribble/private/manual-style.ss | 2 +- collects/scribble/scribble.tex | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/collects/scribble/latex-render.ss b/collects/scribble/latex-render.ss index e125e8fd24..30b7a7207a 100644 --- a/collects/scribble/latex-render.ss +++ b/collects/scribble/latex-render.ss @@ -136,7 +136,7 @@ (printf "\\label{t:~a}" (t-encode (tag-key (target-element-tag e) ri)))) (when part-label? - (printf "\\S") + (printf "\\SecRef{") (render-content (let ([dest (resolve-get part ri (link-element-tag e))]) (if dest @@ -149,7 +149,7 @@ '("!!!"))) (list "???"))) part ri) - (printf " ``")) + (printf "}{")) (let ([style (and (element? e) (let ([s (flatten-style (element-style e))]) (if (with-attributes? s) @@ -206,7 +206,7 @@ (image-file-scale style) fn)))] [else (super render-element e part ri)]))) (when part-label? - (printf "''")) + (printf "}")) (when (and (link-element? e) (show-link-page-numbers) (not (done-link-page-numbers))) @@ -308,7 +308,7 @@ (loop (cdr flowss) (cdr row-styles))))) (unless inline? (printf "~a\n\n\\end{~a}\n" - (if (equal? tableform "bigtabular") "\n\\\\" "") + "" ; (if (equal? tableform "bigtabular") "\n\\\\" "") tableform))))) null) diff --git a/collects/scribble/private/manual-style.ss b/collects/scribble/private/manual-style.ss index fe5e184d96..d4f0eba918 100644 --- a/collects/scribble/private/manual-style.ss +++ b/collects/scribble/private/manual-style.ss @@ -26,7 +26,7 @@ void-const undefined-const math) -(define PLaneT "PLaneT") +(define PLaneT (make-element "planetName" '("PLaneT"))) (define etc "etc.") ; so we can fix the latex space, one day diff --git a/collects/scribble/scribble.tex b/collects/scribble/scribble.tex index abd2ae20fd..0db7032b72 100644 --- a/collects/scribble/scribble.tex +++ b/collects/scribble/scribble.tex @@ -70,6 +70,7 @@ \newcommand{\imageleft}[1]{} % drop it \renewcommand{\smaller}[1]{\textsmaller{#1}} \newcommand{\refpara}[1]{\marginpar{\raggedright \footnotesize #1}} +\newcommand{\planetName}[1]{PLane$\!$T} \newcommand{\titleAndEmptyVersion}[2]{\title{#1}\maketitle} \newcommand{\titleAndVersion}[2]{\title{#1\\{\normalsize Version #2}}\maketitle} @@ -89,6 +90,8 @@ \newenvironment{bigtabular}{\begin{longtable}}{\end{longtable}\vspace{-3ex}} \newcommand{\bigtabline}{\vspace{-2ex}} +\newcommand{\SecRef}[2]{\S#1 ``#2''} + \newcommand{\sectionhidden}[1]{\section{#1}} \newcommand{\subsectionhidden}[1]{\subsection{#1}} \newcommand{\subsubsectionhidden}[1]{\subsubsection{#1}}