emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Andrés Ramírez" <rrandresf@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Custom beamer blocks for pros and cons list
Date: Thu, 26 May 2022 21:32:46 +0000	[thread overview]
Message-ID: <86o7zk7zep.fsf@gmail.com> (raw)

Hi.

I am adapting this example:
--8<---------------cut here---------------start------------->8---
https://tex.stackexchange.com/questions/28760/custom-beamer-blocks-for-pros-and-cons
--8<---------------cut here---------------end--------------->8---

This is my file:
--8<---------------cut here---------------start------------->8---
#+AUTHOR: Me
#+EMAIL:     
#+DATE: 2022
#+DESCRIPTION:
#+KEYWORDS:
#+OPTIONS:   toc:nil
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LATEX_CLASS_OPTIONS: [bigger]
#+BEAMER_FRAME_LEVEL: 2
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
#+LaTeX_Header: \beamertemplatenavigationsymbolsempty
#+LaTeX_Header: \newenvironment<>{problock}[1]{%
#+LaTeX_Header:   \begin{actionenv}#2%
#+LaTeX_Header:       \def\insertblocktitle{#1}%
#+LaTeX_Header:       \par%
#+LaTeX_Header:       \mode<presentation>{%
#+LaTeX_Header:         \setbeamercolor{block title}{fg=white,bg=orange!20!black}
#+LaTeX_Header:        \setbeamercolor{block body}{fg=black,bg=olive!50}
#+LaTeX_Header:        \setbeamercolor{itemize item}{fg=orange!20!black}
#+LaTeX_Header:        \setbeamertemplate{itemize item}[triangle]
#+LaTeX_Header:      }%
#+LaTeX_Header:       \usebeamertemplate{block begin}}
#+LaTeX_Header:     {\par\usebeamertemplate{block end}\end{actionenv}}
    
** Comparisson
   :PROPERTIES:
   :BEAMER_envargs: [t]
   :END:
*** Pros                                                      :BMCOL:B_block:
    :PROPERTIES:
    :BEAMER_col: 0.45
    :BEAMER_env: block
    :END:
#+begin_problock    
  - New.
  - Other Pro.
  - Additional Pro.
#+end_problock

*** Cons                                                      :BMCOL:B_block:
    :PROPERTIES:
    :BEAMER_col: 0.4
    :BEAMER_env: block
    :BEAMER_envargs: <2->
    :END:

  - Need Testing.
  - Other Con.
  - More Con.
--8<---------------cut here---------------end--------------->8---

I am getting an error and PDF is not generated.

Thanks.



             reply	other threads:[~2022-05-26 21:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-26 21:32 Andrés Ramírez [this message]
2022-05-27  7:38 ` Custom beamer blocks for pros and cons list Axel Kielhorn
2022-05-27  8:33   ` Ihor Radchenko
2022-05-27 14:15     ` andrés ramírez
2022-05-27 14:13   ` andrés ramírez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86o7zk7zep.fsf@gmail.com \
    --to=rrandresf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).