make figure target rendering configurable
from Kevin Tew original commit: c6fc92915d3de5b585eb01ddddf8c60f60664008
This commit is contained in:
parent
8002d98e5d
commit
8ebc1bdfbd
|
@ -29,6 +29,7 @@
|
|||
(define herefigure-style (make-style "Herefigure" figure-style-extras))
|
||||
(define figureinside-style (make-style "FigureInside" figure-style-extras))
|
||||
(define legend-style (make-style "Legend" figure-style-extras))
|
||||
(define figure-target-style (make-style "FigureTarget" figure-style-extras))
|
||||
|
||||
(define centertext-style (make-style "Centertext" figure-style-extras))
|
||||
(define figure-style (make-style "Figure" figure-style-extras))
|
||||
|
@ -52,7 +53,7 @@
|
|||
figure-style
|
||||
(list
|
||||
(make-nested-flow content-style (list (make-nested-flow figureinside-style (decode-flow content))))
|
||||
(make-paragraph centertext-style (list (make-element legend-style (list (Figure-target tag) ": " caption)))))))
|
||||
(make-paragraph centertext-style (list (make-element legend-style (list (make-element figure-target-style (list (Figure-target tag) ": ")) caption)))))))
|
||||
|
||||
(define (*figure style tag caption content)
|
||||
(make-nested-flow
|
||||
|
@ -65,7 +66,7 @@
|
|||
(list
|
||||
(make-paragraph
|
||||
plain
|
||||
(list (make-element legend-style (list (Figure-target tag) ": " caption))))))))))
|
||||
(list (make-element legend-style (list (make-element figure-target-style (list (Figure-target tag) ": ")) caption))))))))))
|
||||
|
||||
(define (figure* tag caption . content)
|
||||
(*figure centerfiguremulti-style tag caption content))
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
\vspace{4pt}
|
||||
\legend{#1}}
|
||||
|
||||
\newcommand{\FigureTarget}[1]{#1}
|
||||
|
||||
\newlength{\FigOrigskip}
|
||||
\FigOrigskip=\parskip
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user