From dbf6daf99ea1487dec54d8ed7524e435ce923283 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 17 Apr 2012 09:42:59 -0400 Subject: [PATCH] Re-organize and repair the InsetLayout for the script inset. --- lib/layouts/stdinsets.inc | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index 62b5f2ffc5..4bc60d9101 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -476,21 +476,26 @@ InsetLayout Preview MultiPar true End + +InsetLayout Script + LatexType command + MultiPar false + ForcePlain 1 + CustomPars 0 + InToc 1 + HTMLIsBlock 0 +End + + InsetLayout Script:superscript - LyXType standard - LatexType command - LaTeXName textsuperscript - MultiPar false - HTMLTag sup - HTMLIsBlock 0 + CopyStyle Script + LaTeXName textsuperscript + HTMLTag sup End InsetLayout Script:subscript - Requires subscript - LyXType standard - LatexType command - LaTeXName textsubscript - MultiPar false - HTMLTag sub - HTMLIsBlock 0 + CopyStyle Script + Requires subscript + LaTeXName textsubscript + HTMLTag sub End