beamer add tag
JeT
**My question**

How to hide `subitem` in a `list` in `beamer`?

**Context**


I like to keep my slides with minimal text and maximum graphs.

Lists are boring on presentations. I'd like to display only the main ideas (`level 1` of my `list`) and display the complete `list` in `article` mode.

![image.png](/image?hash=56dd900ddb6a88044080e4e3cce13dfe8cb05c9231484d57a8eb2ccaebbb550d)

![Capture d’écran 2021-09-23 101145.png](/image?hash=86a991806f890a427f70351f77ba1714642de6c0a76c1c54ccb7593744ad7de3)

**MWE**

```
\documentclass{beamer}

%\documentclass{article}
%\usepackage{xcolor}
%\usepackage{beamerarticle}
%\usepackage{enumitem}

\newcommand{\boldflatitem}{%
	\mode<article>{
		\setlist[enumerate,1]{%
			label = \textcolor{red}{\arabic*.},
			font  = \bfseries,
			before = \bfseries
		}
		\setlist[itemize,1]{%
			font = \normalfont,
			before = \normalfont,
		}
	}
		
	\mode<beamer>{
		\setbeamerfont{itemize/enumerate body}{series=\bfseries}
        %\setbeamertemplate{itemize/enumerate subbody}{}
		\setbeamerfont{itemize/enumerate subbody}{series=\normalfont}
	}
			
}

\begin{document}

\begin{frame}
		\boldflatitem{}	
		\begin{enumerate}
			\item level 1
			      \begin{itemize}
			      	\item level 2
			      	\item level 2
			      \end{itemize}	
			\item level 1
			      \begin{itemize}
			      	\item level 2
			      	\item level 2
			      \end{itemize}		      			      		
		\end{enumerate}
\end{frame}    

\end{document}
```
Top Answer
samcarter
You can hide the itemize environments from beamer mode with `\begin{itemize}[<beamer:only@0>]`.

off-topic: 

- just to be on the safe side and not accidentally load `enumitem` with beamer: warp it in `\mode<article>{\usepackage{enumitem}}`

- you don't need to load `xcolor`. Unless you use the `noxcolor` option, beamerarticle will load the package automatically

```
%\documentclass{beamer}

\documentclass{article}
\usepackage{beamerarticle}
\mode<article>{\usepackage{enumitem}}

\newcommand{\boldflatitem}{%
	\mode<article>{
		\setlist[enumerate,1]{%
			label = \textcolor{red}{\arabic*.},
			font  = \bfseries,
			before = \bfseries
		}
		\setlist[itemize,1]{%
			font = \normalfont,
			before = \normalfont,
		}
	}
		
	\mode<beamer>{
		\setbeamerfont{itemize/enumerate body}{series=\bfseries}
        %\setbeamertemplate{itemize/enumerate subbody}{}
		\setbeamerfont{itemize/enumerate subbody}{series=\normalfont}
	}
			
}

\begin{document}

\begin{frame}
		\boldflatitem{}	
		\begin{enumerate}
			\item level 1
          \begin{itemize}[<beamer:only@0>]
              	\item level 2
              	\item level 2
          \end{itemize}	
			\item level 1
          \begin{itemize}[<beamer:only@0>]
              	\item level 2
              	\item level 2
          \end{itemize}	
		\end{enumerate}
\end{frame}    

\end{document}
```

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.