[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Hiding the Title menu in 1.0.1
From: |
David Allouche |
Subject: |
[Texmacs-dev] Hiding the Title menu in 1.0.1 |
Date: |
Tue, 31 Dec 2002 19:29:39 +0100 |
User-agent: |
Mutt/1.4i |
In 1.0.1 there was a change in when the Text->Title menu is displayed.
Older versions had in text-menu.scm (and similarly in icon-menu.scm):
(define text-menu
'((if (style-has? "header-title-dtd")
(-> "Title" (link title-menu)))
(if (style-has? "header-letter-dtd")
(if (not (inside? "letter-header"))
(-> "Header" (link letter-menu)))
(if (inside? "letter-header")
(-> "Letter" (link letter-header-menu))))
(if (style-has? "header-exam-dtd")
(-> "Header" (link exam-header-menu)))
...))
My proposed change was:
(define text-menu
'((if (style-has? "header-title-dtd")
(-> "Title" (link title-menu)))
(if (style-has? "header-letter-dtd")
(-> "Header" (link letter-header-menu)))
(if (style-has? "header-exam-dtd")
(-> "Header" (link exam-header-menu)))
...))
And the applied change was:
(define text-menu
'((if (and (style-has? "header-title-dtd")
(not (style-has? "header-letter-dtd"))
(not (style-has? "header-exam-dtd")))
(-> "Title" (link title-menu)))
(if (style-has? "header-letter-dtd")
(-> "Header" (link letter-header-menu)))
(if (style-has? "header-exam-dtd")
(-> "Header" (link exam-header-menu)))
...))
What that means is that the GUI now get out of its way to to hide the
Text->Title menus in styles which have classical, article-like title
feature and the title features of the letter or exam styles.
Why is that? I see no obvious reason to do so.
It may be useful to have both titles in the same document. For example
a letter may start with a classical letter title and header, and then
use article-style title and sectionning for attached documentation.
--
David Allouche | GNU TeXmacs -- Writing is a pleasure
Free software engineer | http://www.texmacs.org
http://ddaa.net | http://alqua.com/tmresources
address@hidden | address@hidden
TeXmacs is NOT a LaTeX front-end and is unrelated to emacs.
- [Texmacs-dev] Hiding the Title menu in 1.0.1,
David Allouche <=