summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Court`es2007-03-28 08:02:55 +0000
committerLudovic Court`es2007-03-28 08:02:55 +0000
commitc1fdef39c43b90d357b1b54098234b88c4c69f9c (patch)
tree316dd1b06d00d0ce1b4086a4056c703016d67d25
parent68f5f2d6cf0b3a7b2a56c4fe68e9ad1cf47133bc (diff)
downloadskribilo-c1fdef39c43b90d357b1b54098234b88c4c69f9c.tar.gz
skribilo-c1fdef39c43b90d357b1b54098234b88c4c69f9c.tar.lz
skribilo-c1fdef39c43b90d357b1b54098234b88c4c69f9c.zip
`base' package: Introduced `breakable-space'.
* src/guile/skribilo/engine/base.scm (breakable-space): New writer. * src/guile/skribilo/engine/latex.scm (breakable-space): New writer. * src/guile/skribilo/engine/lout.scm (breakable-space): New writer. * src/guile/skribilo/package/base.scm (breakable-space): New markup. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-33
-rw-r--r--src/guile/skribilo/engine/base.scm7
-rw-r--r--src/guile/skribilo/engine/latex.scm7
-rw-r--r--src/guile/skribilo/engine/lout.scm6
-rw-r--r--src/guile/skribilo/package/base.scm5
4 files changed, 25 insertions, 0 deletions
diff --git a/src/guile/skribilo/engine/base.scm b/src/guile/skribilo/engine/base.scm
index 6973eb2..2085ed6 100644
--- a/src/guile/skribilo/engine/base.scm
+++ b/src/guile/skribilo/engine/base.scm
@@ -185,6 +185,13 @@
(evaluate-document n e))))
;*---------------------------------------------------------------------*/
+;* breakable-space ... */
+;*---------------------------------------------------------------------*/
+(markup-writer 'breakable-space
+ :before " "
+ :action #f)
+
+;*---------------------------------------------------------------------*/
;* &the-bibliography ... */
;*---------------------------------------------------------------------*/
(markup-writer '&the-bibliography
diff --git a/src/guile/skribilo/engine/latex.scm b/src/guile/skribilo/engine/latex.scm
index 183c822..2d5e4b6 100644
--- a/src/guile/skribilo/engine/latex.scm
+++ b/src/guile/skribilo/engine/latex.scm
@@ -492,6 +492,13 @@
:action #f)
;*---------------------------------------------------------------------*/
+;* breakable-space ... */
+;*---------------------------------------------------------------------*/
+(markup-writer 'breakable-space
+ :before " %\n"
+ :action #f)
+
+;*---------------------------------------------------------------------*/
;* &latex-table-start */
;*---------------------------------------------------------------------*/
(markup-writer '&latex-table-start
diff --git a/src/guile/skribilo/engine/lout.scm b/src/guile/skribilo/engine/lout.scm
index b9b4812..4648217 100644
--- a/src/guile/skribilo/engine/lout.scm
+++ b/src/guile/skribilo/engine/lout.scm
@@ -984,6 +984,12 @@
;*---------------------------------------------------------------------*/
(markup-writer '~ :before "~" :action #f)
+;*---------------------------------------------------------------------*/
+;* breakable-space ... */
+;*---------------------------------------------------------------------*/
+(markup-writer 'breakable-space :before " &1s\n" :action #f)
+
+
(define (lout-page-orientation orientation)
;; Return a string representing the Lout page orientation name for symbol
;; `orientation'.
diff --git a/src/guile/skribilo/package/base.scm b/src/guile/skribilo/package/base.scm
index 01e8667..1971ca5 100644
--- a/src/guile/skribilo/package/base.scm
+++ b/src/guile/skribilo/package/base.scm
@@ -301,6 +301,11 @@
(body (the-body opts))))
;*---------------------------------------------------------------------*/
+;* breakable-space ... */
+;*---------------------------------------------------------------------*/
+(define-simple-markup breakable-space)
+
+;*---------------------------------------------------------------------*/
;* footnote ... */
;*---------------------------------------------------------------------*/
(define-markup (footnote #!rest opts