[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \unset in paper block
From: |
Werner LEMBERG |
Subject: |
Re: \unset in paper block |
Date: |
Mon, 05 Aug 2019 15:18:00 +0200 (CEST) |
> IIRC these assignments in \paper and \layout and \header blocks are
> functionally equivalent to defining a variable in Scheme like
>
> #(define left-margin 100)
Yes.
> The kind of \unset you’re asking for requires the previous value to
> have been saved onto some stack, which I doubt exists/is accessible
> here.
Ah, ok. Makes sense. I've read that some Scheme dialects provide
means to undefine variables (on the top-level, that is); Guile
apparently does not.
> Maybe you could work around by calculating left-margin and
> right-margin:
>
> \paper {
> left-margin = #(/ (- paper-width line-width) 2)
> right-margin = #left-margin
> }
D'oh, thanks!
Werner
- \unset in paper block, Werner LEMBERG, 2019/08/02
- Re: \unset in paper block, Werner LEMBERG, 2019/08/05
- Re: \unset in paper block, David Kastrup, 2019/08/05
- Re: \unset in paper block, Werner LEMBERG, 2019/08/05
- Re: \unset in paper block, David Kastrup, 2019/08/05
- Re: \unset in paper block, Simon Albrecht, 2019/08/05
- Re: \unset in paper block, David Kastrup, 2019/08/05
- Re: \unset in paper block, Aaron Hill, 2019/08/05
- Re: \unset in paper block, David Kastrup, 2019/08/06
Re: \unset in paper block, Simon Albrecht, 2019/08/05
- Re: \unset in paper block,
Werner LEMBERG <=