2

enter image description here

As shown above, one line starts in a normal line. Then I use a column. Then the second line is coming from the column. But I want to have these two lines to start from the same position. Please any one help here. The code used in beamer here.

\documentclass[xcolor=dvipsnames]{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\item Line starts in a normal
\end{itemize}
\begin{columns}[c]
 \column {0.5\textwidth}
\begin{itemize}
\item Line starts in a column
\end{itemize}
\end{columns} 
\end{frame}
\end{document}
3
  • Please make your code compile. Which documentclass do you use?
    – leandriis
    Jul 7, 2020 at 15:52
  • I am using \documentclass[xcolor=dvipsnames]{beamer}
    – Debashis
    Jul 7, 2020 at 15:58
  • Does "same position" means same vertical or same horizontal position? Jul 7, 2020 at 16:15

2 Answers 2

1

Like this:

enter image description here

For above result you need to specify both columns and prescribed smaller width of columns, for example o.45\linewidth (found by trial):

\documentclass[xcolor=dvipsnames]{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\item Line starts in a normal
\end{itemize}
\begin{columns}[c]
    \column {0.45\textwidth} % <---
\begin{itemize}
\item Line starts in a column
\end{itemize}
   \column {0.45\textwidth}  % <---
\end{columns}
\end{frame}
\end{document}
1
  • Thank You so much. This works
    – Debashis
    Jul 7, 2020 at 16:26
0

By default, beamer removes the usual margins in a columns environment and replaces them with a \hfill. You can simply use the onlytextwidth option to get the same margins as in normal text:

\documentclass[xcolor=dvipsnames]{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\item Line starts in a normal
\end{itemize}
\begin{columns}[c,onlytextwidth]
 \column {0.5\textwidth}
\begin{itemize}
\item Line starts in a column
\end{itemize}
\end{columns} 
\end{frame}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .