## LaTeX forum ⇒ LyX ⇒ Beamer notes Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
JaffleMaker
Posts: 3
Joined: Tue Jul 31, 2018 7:55 am

### Beamer notes

Hi everyone,

I've been struggling to use the field \note[item] in a Beamer document in LyX. I can use \note[item] or \note inside or outside a frame environment if I write in a regular TeX document, but I can't seem to make it work in LyX. LyX throws an error: "Package keyval Error: item undefined."

Below is a simple document that I cannot compile as an example. I'm running LyX version 2.2.3 and MikTex (2.9, 32-bit... I think) on Windows 10.

Can anyone help me out? Thank you so much!

% Preview source code %% LyX 2.2.3 created this file.  For more info, see <!-- m --><a class="postlink" href="http://www.lyx.org/">http://www.lyx.org/</a><!-- m -->.%% Do not edit unless you really know what you are doing.\documentclass[english,show notes]{beamer}\usepackage[T1]{fontenc}\usepackage[latin9]{inputenc}\setcounter{secnumdepth}{3}\setcounter{tocdepth}{3} \makeatletter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. % this default might be overridden by plain title style \newcommand\makebeamertitle{\frame{\maketitle}}% % (ERT) argument for the TOC \AtBeginDocument{%   \let\origtableofcontents=\tableofcontents   \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}   \def\gobbletableofcontents#1{\origtableofcontents} }\makeatother\usepackage{babel}\begin{document}\begin{frame}{My title}\end{frame}\note[item]{Here is a note}\end{document}
Last edited by JaffleMaker on Tue Jul 31, 2018 6:05 pm, edited 1 time in total.

Tags:

JaffleMaker
Posts: 3
Joined: Tue Jul 31, 2018 7:55 am
I think I've worked it out. I think the field “NoteItem” in beamer.layout is problematic. \note{}[item] should be used in a list environment (enumerate, itemize etc). If I am already in such an environment, requesting NoteItem from the dropdown menu closes this list, which means that NoteItem is no longer appropriate. I think the field should be just “Note” and the argument [item] dropped from the layout definition. Now the list environment, whatever that is, can end appropriately and \note{} will move outside of the frame environment, which is fine.

Here's what I added to my beamer.layout

Style Note  Category         MainText  Margin           Static  LatexType        Command  LatexName        note  ParSkip          0.5  TopSep           1  BottomSep        1  ParSep           0  Align            Left  LabelType        Static  LabelSep         xx  LabelString      "Note:"  LeftMargin       "Note:xx"  LabelFont    Family         Roman    Color          latex  EndFont  Argument 1    LabelString    "On Slide"    MenuString     "Overlay Specifications|v"    Tooltip        "Specify the overlay settings (see beamer manual)"    LeftDelim      <    RightDelim     >  EndArgumentEnd
Last edited by JaffleMaker on Thu Aug 02, 2018 1:20 am, edited 1 time in total.

JaffleMaker
Posts: 3
Joined: Tue Jul 31, 2018 7:55 am
I heard from a developer with the right way to use \note and \note[item]

To use \note[item]{}, you have to <Tab> to nest the note within the list environment.
To use \note{}, you have to go to Insert > Custom Inserts > Beamer Note

Marked as SOLVED! Thanks LyX developers!