Hello,

Here is a small patch that fixes small annoying things in two classes
* for paper, show properly on screen starred section with sans serif font
* for foil, set the categories of layouts which did not have one

This not important (I am not sure who uses this besides me), but I'd like to put it in master and branch nevertheless. This does not change file format or LaTeX output at all.

OK?

JMarc

>From 4c9f6f710028dbde81df91dde48ea1ac384474ee Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date: Mon, 4 Jan 2016 11:51:08 +0100
Subject: [PATCH] Improve visually text classes paper and foils

This does not change output, only GUI.

paper: make sure that the starred sections use proper sans serif on screen.

foils: add relevant categories to layouts
---
 lib/layouts/foils.layout |  4 ++++
 lib/layouts/paper.layout | 19 +++++++++++--------
 2 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/lib/layouts/foils.layout b/lib/layouts/foils.layout
index 2342a2c..7b4cc75 100644
--- a/lib/layouts/foils.layout
+++ b/lib/layouts/foils.layout
@@ -42,6 +42,7 @@ End
 
 
 Style Foilhead
+	Category              Sectioning
 	TocLevel              1
 	Margin                Static
 	LatexType             Command
@@ -82,6 +83,7 @@ End
 Input stdlists.inc
 
 Style TickList
+	Category              List
 	Margin                Static
 	LatexType             Item_Environment
 	LatexName             dinglist
@@ -101,6 +103,7 @@ Style TickList
 End
 
 Style CrossList
+	Category              List
 	Margin                Static
 	LatexType             Item_Environment
 	LatexName             dinglist
@@ -160,6 +163,7 @@ End
 
 # Header definitions:
 Style My_Logo
+	Category              FrontMatter
 	Margin                Static
 	LatexType             Command
 	LatexName             MyLogo
diff --git a/lib/layouts/paper.layout b/lib/layouts/paper.layout
index df35903..504723a 100644
--- a/lib/layouts/paper.layout
+++ b/lib/layouts/paper.layout
@@ -33,18 +33,13 @@ Input stdstruct.inc
 Input lyxmacros.inc
 Input stdlayouts.inc
 Input stdfloats.inc
-Input stdsections.inc
-Input stdstarsections.inc
 Input stdlists.inc
 Input stdcounters.inc
 Input stdciteformats.inc
 
-# There are no chapters in a paper.
-NoStyle                 Chapter
-NoCounter               chapter
-NoStyle                 Chapter*
+###### All the section headings now use sans serif
+Input stdsections.inc
 
-# All the section headings now use sans serif
 Style Part
 	Align                 Left
 	TopSep                2
@@ -107,8 +102,16 @@ Style Description
 	EndFont
 End
 
+Input stdstarsections.inc
+
+# There are no chapters in a paper.
+NoStyle                 Chapter
+NoCounter               chapter
+NoStyle                 Chapter*
+
+
 
-# The \maketitle stuff is by default left justified.
+###### The \maketitle stuff is by default left justified.
 Style Title
 	Align                 Left
 	Font
-- 
2.5.0

Reply via email to