Georg Baum wrote: > What cursor navigation problems? I see also the mouse selection and placing > problems, but cursor navigation works fine.
I have problems navigating especially in scriptinsets, where I have also tested the colorinsets. > > Also unrelated: for scriptinsets (via the Menu), it is not ideal that > > mathed inserts a \textnormal. Scriptinsets should inherit the font > > attributes of the surrounding text (it used to be \textrm AFAIR). > > You mean this entry in stdmenus.ui? > > command-sequence math-mode on; math-superscript ; font-free-apply; > > This is a bad hack indeed. Yes. > > In an ideal world, of course, we would use \textsuperscript and define a > > \textsubscript instead of math*scripts, which are too big usually. Would > > be easy with charstyle insets btw, but I guess we want "proper" insets > > instead. > > Why? A character style seems perfect to me. With the minor disadvantage of being less WYSIWYG (personally, I don't care about that). Attached is an easy (and working) solution. It would be better to overwrite CharStyle Subscript in koma and memoir (because these come with their own \textsubscript command), but it is not possible to overwrite an Input'ed CharStyle (like it is with Layouts). Jürgen
Index: amsart.layout =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/amsart.layout,v retrieving revision 1.7 diff -u -r1.7 amsart.layout --- amsart.layout 13 Oct 2003 09:50:09 -0000 1.7 +++ amsart.layout 17 Jun 2005 16:31:07 -0000 @@ -46,6 +46,7 @@ Input stdlists.inc Input stdfloats.inc Input stdcounters.inc +Input stdcharstyles.inc NoStyle Chapter NoStyle Paragraph Index: amsbook.layout =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/amsbook.layout,v retrieving revision 1.8 diff -u -r1.8 amsbook.layout --- amsbook.layout 20 May 2005 09:09:53 -0000 1.8 +++ amsbook.layout 17 Jun 2005 16:31:08 -0000 @@ -129,3 +129,5 @@ {\end{enumerate}\end{xcb}} EndPreamble End + +Input stdcharstyles.inc Index: apa.layout =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/apa.layout,v retrieving revision 1.7 diff -u -r1.7 apa.layout --- apa.layout 13 Jun 2005 09:36:58 -0000 1.7 +++ apa.layout 17 Jun 2005 16:31:08 -0000 @@ -346,3 +346,5 @@ LabelStringAppendix "(\alph{enumii})" End +Input stdcharstyles.inc + Index: memoir.layout =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/memoir.layout,v retrieving revision 1.4 diff -u -r1.4 memoir.layout --- memoir.layout 13 Jun 2005 09:36:58 -0000 1.4 +++ memoir.layout 17 Jun 2005 16:31:09 -0000 @@ -155,3 +155,6 @@ Align Center AlignPossible Center End + +Input stdcharstyles.inc + Index: scrclass.inc =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/scrclass.inc,v retrieving revision 1.14 diff -u -r1.14 scrclass.inc --- scrclass.inc 13 Jun 2005 09:36:58 -0000 1.14 +++ scrclass.inc 17 Jun 2005 16:31:09 -0000 @@ -259,6 +259,8 @@ EndFont End +Input stdcharstyles.inc + Input lyxmacros.inc Input scrmacros.inc Index: stdcharstyles.inc =================================================================== RCS file: stdcharstyles.inc diff -N stdcharstyles.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ stdcharstyles.inc 17 Jun 2005 16:31:09 -0000 @@ -0,0 +1,41 @@ +# Standard character style definition file. +# Author : Jürgen Spitzmüller <[EMAIL PROTECTED]>, +# Martin Vermeer <[EMAIL PROTECTED]> + +# This file contains the common character style +# definitions used by most classes. + + +CharStyle Superscript + LatexType Command + LatexName textsuperscript + Font + Shape Normal + EndFont + LabelFont + Shape Normal + Color green + EndFont +End + + +CharStyle Subscript + LatexType Command + LatexName textsubscript + Font + Shape Normal + EndFont + LabelFont + Shape Normal + Color green + EndFont + Preamble + % textsubscript command from Robin Fairbairn's subscript.sty + [EMAIL PROTECTED] + \DeclareRobustCommand*\textsubscript[1]{% + [EMAIL PROTECTED] + [EMAIL PROTECTED] + [EMAIL PROTECTED]@[EMAIL PROTECTED] + }{} + EndPreamble +End \ No newline at end of file Index: stdclass.inc =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/stdclass.inc,v retrieving revision 1.10 diff -u -r1.10 stdclass.inc --- stdclass.inc 18 Apr 2005 18:09:57 -0000 1.10 +++ stdclass.inc 17 Jun 2005 16:31:09 -0000 @@ -45,3 +45,4 @@ Input stdlayouts.inc Input stdfloats.inc Input stdcounters.inc +Input stdcharstyles.inc