* :latex-listings publishing option not used; minted + beamer incompatibility? @ 2010-10-19 16:52 Hsiu-Khuern Tang 2010-10-20 8:09 ` Dan Davison 0 siblings, 1 reply; 5+ messages in thread From: Hsiu-Khuern Tang @ 2010-10-19 16:52 UTC (permalink / raw) To: emacs-orgmode Hi, The :latex-listings option appears to be unused at the present. It would be great to activate this as an alternative to the org-export-latex-listings variable. (Same thing for :latex-minted.) BTW, has anyone used minted with beamer? I get errors like Runaway argument? int main(int argc, char **argv) { \ETC. ! Paragraph ended before \FV@BeginScanning was complete. A search on Google shows lots of reports related to beamer and Sweave. Thanks, -- Hsiu-Khuern. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: :latex-listings publishing option not used; minted + beamer incompatibility? 2010-10-19 16:52 :latex-listings publishing option not used; minted + beamer incompatibility? Hsiu-Khuern Tang @ 2010-10-20 8:09 ` Dan Davison 2010-10-21 5:06 ` Hsiu-Khuern Tang 0 siblings, 1 reply; 5+ messages in thread From: Dan Davison @ 2010-10-20 8:09 UTC (permalink / raw) To: Hsiu-Khuern Tang; +Cc: emacs-orgmode Hsiu-Khuern Tang <tangoh@gmail.com> writes: > Hi, > > The :latex-listings option appears to be unused at the present. It > would be great to activate this as an alternative to the > org-export-latex-listings variable. (Same thing for :latex-minted.) > > > BTW, has anyone used minted with beamer? I get errors like Yes, I exported Eric Fraga's babel/beamer slides example using minted last week and it worked fine. However, > Runaway argument? > int main(int argc, char **argv) { \ETC. > ! Paragraph ended before \FV@BeginScanning was complete. yes, I now get that error. So something has changed recently. I'm using fully updated ubuntu 10.10. What system are you using? > A search on Google shows lots of reports related to beamer and Sweave. So perhaps we're seeing the effects of a recent change in the tex/latex stack, rather than an emacs/org/minted/pygments problem?? Dan > > > Thanks, ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: :latex-listings publishing option not used; minted + beamer incompatibility? 2010-10-20 8:09 ` Dan Davison @ 2010-10-21 5:06 ` Hsiu-Khuern Tang 2011-02-14 11:15 ` [FIXED] " Dan Davison 0 siblings, 1 reply; 5+ messages in thread From: Hsiu-Khuern Tang @ 2010-10-21 5:06 UTC (permalink / raw) To: Dan Davison; +Cc: emacs-orgmode Hi Dan, * On Wed 09:09AM, 20 Oct 2010, Dan Davison (davison@stats.ox.ac.uk) wrote: > Hsiu-Khuern Tang <tangoh@gmail.com> writes: > > BTW, has anyone used minted with beamer? I get errors like > > Yes, I exported Eric Fraga's babel/beamer slides example using minted > last week and it worked fine. However, > > > Runaway argument? > > int main(int argc, char **argv) { \ETC. > > ! Paragraph ended before \FV@BeginScanning was complete. > > yes, I now get that error. So something has changed recently. I'm using > fully updated ubuntu 10.10. What system are you using? I'm using Debian unstable. My texlive package is version 2009-8; the current version in Debian unstable is 2009-11. > > A search on Google shows lots of reports related to beamer and Sweave. > > So perhaps we're seeing the effects of a recent change in the tex/latex > stack, rather than an emacs/org/minted/pygments problem?? Some of the Google results go back quite a long time, e.g., http://tolstoy.newcastle.edu.au/R/help/04/12/9454.html. I'm staying with listings for now. -- Best, Hsiu-Khuern. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [FIXED] Re: :latex-listings publishing option not used; minted + beamer incompatibility? 2010-10-21 5:06 ` Hsiu-Khuern Tang @ 2011-02-14 11:15 ` Dan Davison 2011-03-09 7:18 ` Hsiu-Khuern Tang 0 siblings, 1 reply; 5+ messages in thread From: Dan Davison @ 2011-02-14 11:15 UTC (permalink / raw) To: Hsiu-Khuern Tang; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1064 bytes --] Hsiu-Khuern Tang <tangoh@gmail.com> writes: > Hi Dan, > > * On Wed 09:09AM, 20 Oct 2010, Dan Davison (davison@stats.ox.ac.uk) wrote: >> Hsiu-Khuern Tang <tangoh@gmail.com> writes: >> > BTW, has anyone used minted with beamer? I get errors like >> >> Yes, I exported Eric Fraga's babel/beamer slides example using minted >> last week and it worked fine. However, >> >> > Runaway argument? >> > int main(int argc, char **argv) { \ETC. >> > ! Paragraph ended before \FV@BeginScanning was complete. This problem is now fixed in Org. The problem was that frames using minted needed to be marked as fragile; Org was only doing this for verbatim and lstlisting. If you are unable to pull the latest Org from the git repo, please change the `org-beamer-fragile-re' regexp as follows (setq org-beamer-fragile-re "^[ \t]*\\\\begin{\\(verbatim\\|lstlisting\\|minted\\)}") Customize can also be used to make this change. Attached is a version of Eric Fraga's beamer example, modified to use python instead of octave, and the pdf export resulting from C-c C-e d. Dan [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: presentation.org --] [-- Type: text/x-org, Size: 2929 bytes --] #+TITLE: Writing Beamer presentations in org-mode #+AUTHOR: Eric S Fraga #+EMAIL: e.fraga@ucl.ac.uk #+DATE: 2010-03-30 Tue #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+startup: oddeven #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [bigger] #+latex_header: \mode<beamer>{\usetheme{Madrid}} #+BEAMER_FRAME_LEVEL: 2 #+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(Col) %7BEAMER_extra(Extra) * Introduction ** Overview - org-mode template - beamer structure - beamer settings * Methodology ** A simple slide This slide consists of some text with a number of bullet points: - the first, very @important@, point! - the previous point shows the use of the special markup which translates to the Beamer specific /alert/ command for highlighting text. The above list could be numbered or any other type of list and may include sub-lists. ** A more complex slide This slide illustrates the use of Beamer blocks. The following text, with its own headline, is displayed in a block: *** Org mode increases productivity :B_theorem: :PROPERTIES: :BEAMER_env: theorem :END: - org mode means not having to remember \LaTeX commands. - it is based on ascii text which is inherently portable. - Emacs! \hfill \(\qed\) ** Two columns *** A block :B_ignoreheading:BMCOL: :PROPERTIES: :BEAMER_env: ignoreheading :BEAMER_col: 0.4 :END: - this slide consists of two columns - the first (left) column has no heading and consists of text - the second (right) column has an image and is enclosed in an @example@ block *** A screenshot :BMCOL:B_example: :PROPERTIES: :BEAMER_col: 0.6 :BEAMER_env: example :END: #+ATTR_LATEX: width=\textwidth [[file:../../images/org-beamer/a-simple-slide.png]] ** Babel :PROPERTIES: :BEAMER_envargs: [t] :END: *** Python code :BMCOL:B_block: :PROPERTIES: :BEAMER_col: 0.45 :BEAMER_env: block :END: #+srcname: pythonexample #+begin_src python :results output :exports both def f(a): return a*a for i in range(3): print f(i) #+end_src *** The output :BMCOL:B_block: :PROPERTIES: :BEAMER_col: 0.4 :BEAMER_env: block :BEAMER_envargs: <2-> :END: #+results: pythonexample : 0 : 1 : 4 * Conclusions ** Summary - org is an incredible tool for time management - @but@ it is also excellent for writing and for preparing presentations - Beamer is a very powerful \LaTeX{} package for presentations - the combination is unbeatable! [-- Attachment #3: presentation.pdf --] [-- Type: application/pdf, Size: 115085 bytes --] [-- Attachment #4: Type: text/plain, Size: 640 bytes --] >> >> yes, I now get that error. So something has changed recently. I'm using >> fully updated ubuntu 10.10. What system are you using? > > I'm using Debian unstable. My texlive package is version 2009-8; the > current version in Debian unstable is 2009-11. > > >> > A search on Google shows lots of reports related to beamer and Sweave. >> >> So perhaps we're seeing the effects of a recent change in the tex/latex >> stack, rather than an emacs/org/minted/pygments problem?? > > Some of the Google results go back quite a long time, e.g., > http://tolstoy.newcastle.edu.au/R/help/04/12/9454.html. I'm staying > with listings for now. [-- Attachment #5: Type: text/plain, Size: 201 bytes --] _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [FIXED] Re: :latex-listings publishing option not used; minted + beamer incompatibility? 2011-02-14 11:15 ` [FIXED] " Dan Davison @ 2011-03-09 7:18 ` Hsiu-Khuern Tang 0 siblings, 0 replies; 5+ messages in thread From: Hsiu-Khuern Tang @ 2011-03-09 7:18 UTC (permalink / raw) To: Dan Davison; +Cc: emacs-orgmode On Mon, Feb 14, 2011 at 3:15 AM, Dan Davison <dandavison7@gmail.com> wrote: > Hsiu-Khuern Tang <tangoh@gmail.com> writes: > >> Hi Dan, >> >> * On Wed 09:09AM, 20 Oct 2010, Dan Davison (davison@stats.ox.ac.uk) wrote: >>> Hsiu-Khuern Tang <tangoh@gmail.com> writes: >>> > BTW, has anyone used minted with beamer? I get errors like >>> > Runaway argument? >>> > int main(int argc, char **argv) { \ETC. >>> > ! Paragraph ended before \FV@BeginScanning was complete. > > This problem is now fixed in Org. The problem was that frames using > minted needed to be marked as fragile; Org was only doing this for > verbatim and lstlisting. > ... I can confirm this fix. Thanks, Dan! -- Best, Hsiu-Khuern. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-09 7:18 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-10-19 16:52 :latex-listings publishing option not used; minted + beamer incompatibility? Hsiu-Khuern Tang 2010-10-20 8:09 ` Dan Davison 2010-10-21 5:06 ` Hsiu-Khuern Tang 2011-02-14 11:15 ` [FIXED] " Dan Davison 2011-03-09 7:18 ` Hsiu-Khuern Tang
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).