1

I am trying to align two lines either at the head or at the center and I am finding it impossible.

For example, this code generates the following frame

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{tikz-cd}
\usepackage{amsmath,amssymb,amsthm}

\begin{document}

\begin{equation*}
\begin{tikzcd}
  \text{The following lines are not aligned} \arrow{d}
\\
\begin{aligned}
     &  Line 1\\
     &  Line 2 \text{(Not aligned at the beginning!)} 
\end{aligned}
\end{tikzcd}
\end{equation*}

\end{document}

enter image description here

Ideally, this is what I want enter image description here

or

enter image description here

Are these solutions possible?

2

Center

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{tikz-cd}
\usepackage{amsmath,amssymb,amsthm}

\begin{document}

\begin{equation*}
\begin{tikzcd}
  \text{The following lines are not aligned} \arrow{d}
\\
\begin{array}{c}
    Line 1\\
    Line 2 \text{(Not aligned at the beginning!)} 
\end{array}
\end{tikzcd}
\end{equation*}

\end{document}

enter image description here

Left aligned

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{tikz-cd}
\usepackage{amsmath,amssymb,amsthm}

\begin{document}

\begin{equation*}
\begin{tikzcd}
  \text{The following lines are not aligned} \arrow{d}
\\
\begin{array}{l}
    Line 1\\
    Line 2 \text{(Not aligned at the beginning!)} 
\end{array}
\end{tikzcd}
\end{equation*}

\end{document}

enter image description here

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.