Search code examples
latexmarkdownmultiple-columnsbeamer

set line breaks within columns in Beamer (R Markdown)


I am creating a RMarkdown presentation using Szeged as beamer type. Does anyone know how to set a line break bewtween Text 1 and the option list and the Name: ?

enter image description here

This is the code:

## Session

\scriptsize
:::::::::::::: {.columns totalwidth=\textwidth}
::: {.column width="35%"}
Text 1

- option 1
- option 2
- option 3
- option 4


Name: ABCD ZZZZZZ Y

:::
::: {.column width="40%"}

Text 2

- option 1
- option 2
- option 3
- option 4

Name: ABCD ZZZZZZ Y

:::
::: {.column width="35%"}

Text 3

- option 1
- option 2
- option 3
- option 4

Name: ABCD ZZZZZZ Y

:::
::::::::::::::

After the line break, I would like the Name to be aligned with the blue arrow and then the actual name below (ABCD ZZZZZZ Y) with same alignment. Any thoughts?


Solution

  • To align the text with the blue triangles, you could use further items with empty labels:

    ---
    title: |
        | Text
    
    author: |
            | Name
            | email
            |
            
    date: date
    
    output:
      beamer_presentation:
        theme: Szeged
        slide_level: 2
        includes:
          in_header: header.tex
        keep_tex: true
    
    linkcolor: false
    ---
    
    Text 1
    
    - option 1
    - option 2
    - option 3
    - option 4
    \item[] Name:
    \item[] ABCD ZZZZZZ Y
    

    enter image description here