【问题标题】:Org-mode beamer, stop a 2-column block and display following text throughout page width组织模式投影仪,停止 2 列块并在整个页面宽度内显示以下文本
【发布时间】:2018-01-06 17:31:39
【问题描述】:

我想组成一个投影仪框架,它由两个并排的块组成,然后是在整个页面宽度上布置的文本,即在上面的 2 个块之下。生产这两个块工作正常。但是,我的任何尝试(例如,在最后一个块文本之后放置多个空行)都不能停止块部分。 这是一个MWE。

*** Left block                         :B_column:
    :PROPERTIES:
    :BEAMER_env: block
    :BEAMER_col: 0.5
    :END:

     My left block of text here

*** Right block                        :B_column:
    :PROPERTIES:
    :BEAMER_env: block
    :BEAMER_col: 0.48
    :END:   

    My right block of text here. 


- I'd like this piece of text to go below left and right 
  blocks of text throughout the page width but it stays 
  in the right block.

为此生成的 LaTeX 源通常是右块:

\begin{column}{0.48\textwidth}
\begin{block}{Right block}
        My right block of text here. 

\begin{itemize}
\item I'd like this piece of text to go below left and right 
      blocks of text throughout the page width but it stays 
      in the right block.
\end{itemize}

\end{block}
\end{column}

虽然我希望 \end{column} 出现在 \begin{itemize} 之前。 我想我们可以告诉 Beamer 停止阻塞,但找不到。

编辑我同时发现了一个解决方法,即创建一个没有标题的新块(使用 ***[blank])来包含全角文本(见下文)。然而,这并不是我所期望的,因为最后一个块具有块的所有属性,特别是背景颜色。

*** Left block                         :B_column:
        :PROPERTIES:
        :BEAMER_env: block
        :BEAMER_col: 0.5
        :END:

         My left block of text here

    *** Right block                        :B_column:
        :PROPERTIES:
        :BEAMER_env: block
        :BEAMER_col: 0.48
        :END:   

        My right block of text here. 


      ***  
      I'd like this piece of text to go below left and right 
      blocks of text throughout the page width but it stays 
      in the right block.

编辑 2rvf0068 提出的解决方案效果很好。让我发布整个源代码。使用 org-mode 快捷方式,Ctrl-C Ctrl-B 当定位在 ***[blank] 标题上时,会提示您输入块类型,您需要的是 'i' (B_ignoreheading)。_

*** Left block                         :B_column:
        :PROPERTIES:
        :BEAMER_env: block
        :BEAMER_col: 0.5
        :END:

         My left block of text here

    *** Right block                        :B_column:
        :PROPERTIES:
        :BEAMER_env: block
        :BEAMER_col: 0.48
        :END:   

        My right block of text here. 


      ***                               :B_ignoreheading:
      :PROPERTIES:
      :BEAMER_env: ignoreheading
      :END:
      I'd like this piece of text to go below left and right 
      blocks of text throughout the page width but it stays 
      in the right block.

【问题讨论】:

    标签: org-mode beamer


    【解决方案1】:

    您需要将值为ignoreheading 的属性BEAMER_env 添加到中断列的标题。

    ***                                                             :B_ignoreheading:
        :PROPERTIES:
        :BEAMER_env: ignoreheading
        :END:
    
        #+beamer: \vspace{1cm}  
        I'd like this piece of text to go below left and right    
        blocks of text throughout the page width but it stays    
        in the right block.
    

    请注意,我添加了#+beamer: \vspace{1cm},否则它看起来很拥挤。

    【讨论】:

    • 谢谢!这确实是解决方案。我将发布第二次编辑以显示整个源代码。
    【解决方案2】:

    这个呢?

    ** Test
    *** Top two-column block                                          :B_columns:
        :PROPERTIES:
        :BEAMER_env: columns
        :END:
    **** Left block                                                    :B_column:
         :PROPERTIES:
         :BEAMER_env: block
         :BEAMER_col: 0.5
         :END:
    
    - My left block of text here
    
    **** Right block                                                   :B_column:
         :PROPERTIES:
         :BEAMER_env: block
         :BEAMER_col: 0.50
         :END:   
    
    - My right block of text here. 
    
    *** Bottom two-column block                                       :B_columns:
        :PROPERTIES:
        :BEAMER_env: columns
        :END:
    **** @@beamer: ~@@                                                  :B_block:
         :PROPERTIES:
         :BEAMER_env: block
         :BEAMER_col: 0.99
         :END:
    - I'd like this piece of text to go below left and right blocks of
      text throughout the page width but it stays in the right block.
    **** @@beamer: ~@@                                                  :B_block:
         :PROPERTIES:
         :BEAMER_env: block
         :BEAMER_col: 0.01
         :END:
    

    诀窍是:

    1. 将两个块嵌入到一个两列的块中
    2. 在下面创建另一个两列部分
    3. 把你的东西放在左下角。

    注意事项:

    • 在步骤 2 中尝试了单列部分,但调整看起来很奇怪。与@rvf0068 的忽略标题解决方案相同
    • 两列的宽度之和应该相等。
    • 左下栏几乎全宽。
    • 右下栏非常小而且空。
    • @@beamer: ~@@ 是为了欺骗 org-mode 使用空白标题。

    我确信有更好的解决方案(第 2 步中的单列)来整理调整,但这对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-02-17
      • 1970-01-01
      • 1970-01-01
      • 2016-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多