Currently, IMO, notes behave in an unfortunate way in that they inherit
the surrounding font.
Consider the attached document which has the following structure:
*Section*
Text
The first line is formatted as a section heading and the second as
standard text.
In Lyx, select all text in the document and insert a note.
The actual result is that all the text looks as if it where formatted as
section. This is misleading. It is also in many cases annoying. For
example, when adding a longer note to a section heading it becomes huge.
The basic problem is that everything that is formatted as Standard/Plain
Layout inherits the font the paragraph the note is placed in.
Arguably, there are also positive aspects of the current behavior. For
example, a one paragraph note with plain text will give the user a
preview of what the text will look like if the note is dissolved.
However, I don't think this aspect is outweighs the costs, in
particular, it is inconsistent as the example from the attached document
shows above shows.
In another thread
(https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg209605.html)
Riki suggest the following two cures:
1. Explicitly set a font on the note:
InsetLayout Note:Note
Font
Size normal
Shape up
Series medium
EndFont
End
This works fine for me.
2. Let the font automatically reset in the note:
InsetLayout Note:Note
ResetsFont true
End
The documentation sounds like this should work as well:
ResetsFont [0, 1] Whether this inset should use the font of its
surrounding environment or uses its own. Default is false: use the font
of the surrounding environment.
However, as Riki notes, it does not work. And the documentation seems a
bit ambiguous to me.
I'd be happy to hear what people think about changing the notes behavior
and what might be the best way to do it.
Daniel
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Section*
Section
\end_layout
\begin_layout Standard
Text
\end_layout
\end_body
\end_document