LaTeX forum ⇒ LyXBeamer notes Topic is solved

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

Beamer notes

Postby JaffleMaker » Tue Jul 31, 2018 8:05 am

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!

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


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

Postby JaffleMaker » Tue Jul 31, 2018 6:04 pm

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

  1. Style Note
  2. Category MainText
  3. Margin Static
  4. LatexType Command
  5. LatexName note
  6. ParSkip 0.5
  7. TopSep 1
  8. BottomSep 1
  9. ParSep 0
  10. Align Left
  11. LabelType Static
  12. LabelSep xx
  13. LabelString "Note:"
  14. LeftMargin "Note:xx"
  15. LabelFont
  16. Family Roman
  17. Color latex
  18. EndFont
  19. Argument 1
  20. LabelString "On Slide"
  21. MenuString "Overlay Specifications|v"
  22. Tooltip "Specify the overlay settings (see beamer manual)"
  23. LeftDelim <
  24. RightDelim >
  25. EndArgument
  26. End
Last edited by JaffleMaker on Thu Aug 02, 2018 1:20 am, edited 1 time in total.

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

Postby JaffleMaker » Thu Aug 02, 2018 1:19 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!

Return to “LyX”

Who is online

Users browsing this forum: No registered users and 7 guests