[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question regarding "paragraph" and "p"
From: |
Ludovic Courtès |
Subject: |
Re: Question regarding "paragraph" and "p" |
Date: |
Mon, 18 Jan 2021 15:51:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Michael Vehrs <Michael.Burschik@gmx.de> skribis:
> At what point, though? It does not work in the engine definition file,
> since paragraph is not bound at that point. You have to add the alias to
> the document itself, which is unfortunate.
Maybe like this:
diff --git a/src/guile/skribilo/package/base.scm
b/src/guile/skribilo/package/base.scm
index cfc59d3..fabcad8 100644
--- a/src/guile/skribilo/package/base.scm
+++ b/src/guile/skribilo/package/base.scm
@@ -327,6 +327,7 @@
;* paragraph ... */
;*---------------------------------------------------------------------*/
(define-simple-markup paragraph)
+(define-public p paragraph)
;*---------------------------------------------------------------------*/
@@ -1416,13 +1417,6 @@
;;; This part comes from the file `skribe.skr' in the original Skribe
;;; distribution.
-;*---------------------------------------------------------------------*/
-;* p ... */
-;*---------------------------------------------------------------------*/
-(define-markup (p :rest opt :key ident (class #f))
- (paragraph :ident ident :class class :loc &invocation-location
- (the-body opt)))
-
;*---------------------------------------------------------------------*/
;* fg ... */
;*---------------------------------------------------------------------*/
Does that make sense? I haven’t checked if there are any undesirable
side effects; it should be fine.
Thanks,
Ludo’.