#LyX 2.4 created this file. For more info see https://www.lyx.org/
-\lyxformat 615
+\lyxformat 616
\begin_document
\begin_header
\save_transient_properties true
\author 177693 "x"
\author 5863208 "ab"
\author 34634807 "Jean-Pierre"
+\author 47243155 "Jean-Marc"
\author 232239728 "Owner"
\author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
\author 1075283030 "Thibaut"
\end_inset
.
+\change_inserted 47243155 1689528605
+
+\end_layout
+
+\begin_layout Description
+
+\change_inserted 47243155 1689528735
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 47243155 1689528630
+InheritFont
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 47243155 1689528607
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 47243155 1689528607
+
+\emph on
+1
+\end_layout
+
+\end_inset
+
+] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
+ export if this parameter is 1,
+ as well as on screen.
+ Otherwise the document default font is used.
+\change_unchanged
+
\end_layout
\begin_layout Description
LatexName sidenote
Decoration classic
LabelString "sidenote"
+ ResetsFont true
+ InheritFont false
Font
Color foreground
Size Small
DocBookAttr role='sidenote'
DocBookItemTag para
DocBookTagType inline
- ResetsFont true
End
InsetLayout Flex:Marginnote
LatexName marginnote
Decoration classic
LabelString "marginnote"
- Font
- Family Roman
- Shape Up
- Series Medium
- EndFont
DocBookAttr role='marginnote'
MultiPar true
End
LatexType Command
LatexName newthought
LabelString "new thought"
+ ResetsFont true
Font
Shape SmallCaps
EndFont
Family Roman
Color textlabel3
EndFont
- ResetsFont true
DocBookTag emphasis
DocBookAttr role='newthought'
DocBookTagType inline
# This script will update a .layout file to current format
# The latest layout format is also defined in src/TextClass.cpp
-currentFormat = 100
+currentFormat = 101
# Incremented to format 4, 6 April 2007, lasgouttes
# Incremented to format 100, 9 May 2023 by forenr
# Add inset label color
+# Incremented to format 101, 22 July 2023 by lasgouttes
+# add InsetLayout tag InheritFont
+
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").
i += 1
continue
- if 87 <= format <= 100:
+ if 87 <= format <= 101:
# nothing to do.
i += 1
continue
* LaTeX export if this method returns true, as well as on screen.
* Otherwise the document default font is used.
*/
- virtual bool inheritFont() const { return true; }
+ virtual bool inheritFont() const { return getLayout().inheritFont(); }
/**
* If this method returns true all explicitly set font attributes
* are reset during editing operations.
IL_DOCBOOKINNERATTR,
IL_DOCBOOKNOFONTINSIDE,
IL_DOCBOOKRENDERASIMAGE,
+ IL_INHERITFONT,
IL_INTOC,
IL_ISTOCCAPTION,
IL_LABELFONT,
{ "htmlpreamble", IL_HTMLPREAMBLE },
{ "htmlstyle", IL_HTMLSTYLE },
{ "htmltag", IL_HTMLTAG },
+ { "inheritfont", IL_INHERITFONT },
{ "intoc", IL_INTOC },
{ "istoccaption", IL_ISTOCCAPTION },
{ "keepempty", IL_KEEPEMPTY },
case IL_FORCEOWNLINES:
lex >> forceownlines_;
break;
+ case IL_INHERITFONT:
+ lex >> inheritfont_;
+ break;
case IL_INTOC:
lex >> intoc_;
break;
///
docstring rightdelim() const { return rightdelim_; }
///
+ bool inheritFont() const { return inheritfont_; }
+ ///
FontInfo font() const { return font_; }
///
FontInfo labelfont() const { return labelfont_; }
///
FontInfo labelfont_ = sane_font;
///
+ bool inheritfont_ = true;
+ ///
ColorCode bgcolor_ = Color_error;
///
docstring counter_;