Presentation that shows how to use lualatex to make a presentation
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
In my presentation, I would like to have a listings environment that shows how to make a presentation.
So far I have found that, when using listings
in a presentation, we should pass the option fragile
to the frame we want use the listings
environment in.
I then thought that the following would work (compiling with lualatex):
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[fragile]Minimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
This gives lua a panic attack:
PANIC: unprotected error in call to Lua API (object in use)
The first few latex errors are:
./test.tex:14: Missing } inserted.
}
l.14 endframe
./test.tex:14: LaTeX Error: beginlstlisting on input line 2 ended by endbe
amer@framepauses.
./test.tex:14: Extra }, or forgotten endgroup.
When commenting out the lines beginframe ... endframe
it compiles fine, as can be seen in the picture below.
Googling this I didn't get very far, mostly ending up on questions that had as answer that we should not forget to pass fragile
to the frame when using listings
.
The difference between those questions and this one is that I am trying to put a frame in a listing, besides having a listing in a frame.
beamer listings luatex
add a comment |Â
up vote
4
down vote
favorite
In my presentation, I would like to have a listings environment that shows how to make a presentation.
So far I have found that, when using listings
in a presentation, we should pass the option fragile
to the frame we want use the listings
environment in.
I then thought that the following would work (compiling with lualatex):
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[fragile]Minimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
This gives lua a panic attack:
PANIC: unprotected error in call to Lua API (object in use)
The first few latex errors are:
./test.tex:14: Missing } inserted.
}
l.14 endframe
./test.tex:14: LaTeX Error: beginlstlisting on input line 2 ended by endbe
amer@framepauses.
./test.tex:14: Extra }, or forgotten endgroup.
When commenting out the lines beginframe ... endframe
it compiles fine, as can be seen in the picture below.
Googling this I didn't get very far, mostly ending up on questions that had as answer that we should not forget to pass fragile
to the frame when using listings
.
The difference between those questions and this one is that I am trying to put a frame in a listing, besides having a listing in a frame.
beamer listings luatex
This problem also occurs withpdflatex
andxelatex
with the same LaTeX error.
â Marijn
18 mins ago
2
Put your example in an external file and use lstinputlisting. The inner endframe confuses beamer.
â Ulrike Fischer
17 mins ago
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
In my presentation, I would like to have a listings environment that shows how to make a presentation.
So far I have found that, when using listings
in a presentation, we should pass the option fragile
to the frame we want use the listings
environment in.
I then thought that the following would work (compiling with lualatex):
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[fragile]Minimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
This gives lua a panic attack:
PANIC: unprotected error in call to Lua API (object in use)
The first few latex errors are:
./test.tex:14: Missing } inserted.
}
l.14 endframe
./test.tex:14: LaTeX Error: beginlstlisting on input line 2 ended by endbe
amer@framepauses.
./test.tex:14: Extra }, or forgotten endgroup.
When commenting out the lines beginframe ... endframe
it compiles fine, as can be seen in the picture below.
Googling this I didn't get very far, mostly ending up on questions that had as answer that we should not forget to pass fragile
to the frame when using listings
.
The difference between those questions and this one is that I am trying to put a frame in a listing, besides having a listing in a frame.
beamer listings luatex
In my presentation, I would like to have a listings environment that shows how to make a presentation.
So far I have found that, when using listings
in a presentation, we should pass the option fragile
to the frame we want use the listings
environment in.
I then thought that the following would work (compiling with lualatex):
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[fragile]Minimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
This gives lua a panic attack:
PANIC: unprotected error in call to Lua API (object in use)
The first few latex errors are:
./test.tex:14: Missing } inserted.
}
l.14 endframe
./test.tex:14: LaTeX Error: beginlstlisting on input line 2 ended by endbe
amer@framepauses.
./test.tex:14: Extra }, or forgotten endgroup.
When commenting out the lines beginframe ... endframe
it compiles fine, as can be seen in the picture below.
Googling this I didn't get very far, mostly ending up on questions that had as answer that we should not forget to pass fragile
to the frame when using listings
.
The difference between those questions and this one is that I am trying to put a frame in a listing, besides having a listing in a frame.
beamer listings luatex
beamer listings luatex
asked 38 mins ago
Abby
1658
1658
This problem also occurs withpdflatex
andxelatex
with the same LaTeX error.
â Marijn
18 mins ago
2
Put your example in an external file and use lstinputlisting. The inner endframe confuses beamer.
â Ulrike Fischer
17 mins ago
add a comment |Â
This problem also occurs withpdflatex
andxelatex
with the same LaTeX error.
â Marijn
18 mins ago
2
Put your example in an external file and use lstinputlisting. The inner endframe confuses beamer.
â Ulrike Fischer
17 mins ago
This problem also occurs with
pdflatex
and xelatex
with the same LaTeX error.â Marijn
18 mins ago
This problem also occurs with
pdflatex
and xelatex
with the same LaTeX error.â Marijn
18 mins ago
2
2
Put your example in an external file and use lstinputlisting. The inner endframe confuses beamer.
â Ulrike Fischer
17 mins ago
Put your example in an external file and use lstinputlisting. The inner endframe confuses beamer.
â Ulrike Fischer
17 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
Another option is to use [containsverbatim]
:
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[containsverbatim]
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
Source: https://stackoverflow.com/questions/2981008/latex-issue-with-beamer-and-listings.
add a comment |Â
up vote
1
down vote
As a workaround you can apply the example from page 62 of the beamer user guide:
% !TeX TS-program = lualatex
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
newenvironmentslide
beginframe[fragile,environment=slide]
endframe
begindocument
beginslide
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endslide
enddocument
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Another option is to use [containsverbatim]
:
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[containsverbatim]
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
Source: https://stackoverflow.com/questions/2981008/latex-issue-with-beamer-and-listings.
add a comment |Â
up vote
2
down vote
Another option is to use [containsverbatim]
:
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[containsverbatim]
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
Source: https://stackoverflow.com/questions/2981008/latex-issue-with-beamer-and-listings.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Another option is to use [containsverbatim]
:
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[containsverbatim]
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
Source: https://stackoverflow.com/questions/2981008/latex-issue-with-beamer-and-listings.
Another option is to use [containsverbatim]
:
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
begindocument
beginframe[containsverbatim]
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endframe
enddocument
Source: https://stackoverflow.com/questions/2981008/latex-issue-with-beamer-and-listings.
answered 14 mins ago
Marijn
6,861633
6,861633
add a comment |Â
add a comment |Â
up vote
1
down vote
As a workaround you can apply the example from page 62 of the beamer user guide:
% !TeX TS-program = lualatex
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
newenvironmentslide
beginframe[fragile,environment=slide]
endframe
begindocument
beginslide
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endslide
enddocument
add a comment |Â
up vote
1
down vote
As a workaround you can apply the example from page 62 of the beamer user guide:
% !TeX TS-program = lualatex
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
newenvironmentslide
beginframe[fragile,environment=slide]
endframe
begindocument
beginslide
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endslide
enddocument
add a comment |Â
up vote
1
down vote
up vote
1
down vote
As a workaround you can apply the example from page 62 of the beamer user guide:
% !TeX TS-program = lualatex
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
newenvironmentslide
beginframe[fragile,environment=slide]
endframe
begindocument
beginslide
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endslide
enddocument
As a workaround you can apply the example from page 62 of the beamer user guide:
% !TeX TS-program = lualatex
documentclass[lualatex]beamer
usepackagelistings
lstsetlanguage=[LaTeX]TeX
newenvironmentslide
beginframe[fragile,environment=slide]
endframe
begindocument
beginslide
frametitleMinimum Working Example
beginlstlisting
documentclass[lualatex]beamer
begindocument
beginframeI am the title of this slide!
I am some body text.
endframe
enddocument
endlstlisting
endslide
enddocument
answered 16 mins ago
samcarter
77.4k787247
77.4k787247
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454417%2fpresentation-that-shows-how-to-use-lualatex-to-make-a-presentation%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
This problem also occurs with
pdflatex
andxelatex
with the same LaTeX error.â Marijn
18 mins ago
2
Put your example in an external file and use lstinputlisting. The inner endframe confuses beamer.
â Ulrike Fischer
17 mins ago