LyXBeamer notes

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

Beamer notes

Post by JaffleMaker »

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!

Code: Select all

% Preview source code

%% LyX 2.2.3 created this file.  For more info, see http://www.lyx.org/.
%% 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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

JaffleMaker
Posts: 3
Joined: Tue Jul 31, 2018 7:55 am

Beamer notes

Post by JaffleMaker »

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

Code: Select all

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     >
  EndArgument
End
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

Beamer notes

Post by JaffleMaker »

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!
Post Reply