Beamer: avoid empty error list when using only inside itemize











up vote
0
down vote

favorite












I'm using a list with itemize as follows:



begin{itemize}
item SuperTopic 1
begin{itemize}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
end{itemize}
item SuperTopic 2
end{itemize}


This produces an error saying that I do have an empty list (the 2nd level itemize), although visually works fine.



I'm not using item<2-> because I don't want to occupy that space in the first slide.



Is there a way to prevent the error?










share|improve this question




















  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    Dec 2 at 23:21












  • Thanks! Because I don't want to visually put a blank line if there is not item yet, the item<2-> puts a blank line in the first slide and fills it in the second. The only command do what I want.
    – Migdress
    Dec 2 at 23:25












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    Dec 2 at 23:27










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    Dec 2 at 23:28















up vote
0
down vote

favorite












I'm using a list with itemize as follows:



begin{itemize}
item SuperTopic 1
begin{itemize}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
end{itemize}
item SuperTopic 2
end{itemize}


This produces an error saying that I do have an empty list (the 2nd level itemize), although visually works fine.



I'm not using item<2-> because I don't want to occupy that space in the first slide.



Is there a way to prevent the error?










share|improve this question




















  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    Dec 2 at 23:21












  • Thanks! Because I don't want to visually put a blank line if there is not item yet, the item<2-> puts a blank line in the first slide and fills it in the second. The only command do what I want.
    – Migdress
    Dec 2 at 23:25












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    Dec 2 at 23:27










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    Dec 2 at 23:28













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm using a list with itemize as follows:



begin{itemize}
item SuperTopic 1
begin{itemize}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
end{itemize}
item SuperTopic 2
end{itemize}


This produces an error saying that I do have an empty list (the 2nd level itemize), although visually works fine.



I'm not using item<2-> because I don't want to occupy that space in the first slide.



Is there a way to prevent the error?










share|improve this question















I'm using a list with itemize as follows:



begin{itemize}
item SuperTopic 1
begin{itemize}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
end{itemize}
item SuperTopic 2
end{itemize}


This produces an error saying that I do have an empty list (the 2nd level itemize), although visually works fine.



I'm not using item<2-> because I don't want to occupy that space in the first slide.



Is there a way to prevent the error?







beamer itemize only






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 2 at 23:30









Kurt

34.5k846157




34.5k846157










asked Dec 2 at 23:19









Migdress

32




32








  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    Dec 2 at 23:21












  • Thanks! Because I don't want to visually put a blank line if there is not item yet, the item<2-> puts a blank line in the first slide and fills it in the second. The only command do what I want.
    – Migdress
    Dec 2 at 23:25












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    Dec 2 at 23:27










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    Dec 2 at 23:28














  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    Dec 2 at 23:21












  • Thanks! Because I don't want to visually put a blank line if there is not item yet, the item<2-> puts a blank line in the first slide and fills it in the second. The only command do what I want.
    – Migdress
    Dec 2 at 23:25












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    Dec 2 at 23:27










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    Dec 2 at 23:28








1




1




Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
– gusbrs
Dec 2 at 23:21






Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
– gusbrs
Dec 2 at 23:21














Thanks! Because I don't want to visually put a blank line if there is not item yet, the item<2-> puts a blank line in the first slide and fills it in the second. The only command do what I want.
– Migdress
Dec 2 at 23:25






Thanks! Because I don't want to visually put a blank line if there is not item yet, the item<2-> puts a blank line in the first slide and fills it in the second. The only command do what I want.
– Migdress
Dec 2 at 23:25














Well, but that will result in an empty itemize in the first slide, as the error message says.
– gusbrs
Dec 2 at 23:27




Well, but that will result in an empty itemize in the first slide, as the error message says.
– gusbrs
Dec 2 at 23:27












Yes, that's the question. So do you think there is not a way to accomplish what I want?
– Migdress
Dec 2 at 23:28




Yes, that's the question. So do you think there is not a way to accomplish what I want?
– Migdress
Dec 2 at 23:28










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










Well, given you'd like to not have the whole sublevel of itemize as the overlays unfold, you could use overlays also on the environment call.



documentclass{beamer}

begin{document}

begin{frame}
frametitle{Title}

begin{itemize}
item SuperTopic 1
only<2->{begin{itemize}}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
only<2->{end{itemize}}
item SuperTopic 2
end{itemize}

end{frame}

end{document}


But this is a somewhat fragile construction, you can easily end up with an inconsistent structure, if you get your overlays wrong.



enter image description here






share|improve this answer























  • @marmot Yes, that is usually in the key "If you really want this, you can have it, but I wouldn't do this myself..." :)
    – gusbrs
    Dec 2 at 23:36










  • @marmot By the way, I'm trying to convert this to an animated gif as you taught me earlier, but no success. The document must be prepared for it, or a convert on any pdf should work?
    – gusbrs
    Dec 2 at 23:37






  • 1




    The trick is convert -density 300 -delay 96 -loop 0 -alpha remove multipage.pdf animated.gif from tex.stackexchange.com/a/136919/121799
    – marmot
    Dec 2 at 23:45










  • @marmot Yeah, that's what I was trying, to get convert-im6.q16: not authorized multipage.pdf' @ error/constitute.c/ReadImage/412. But never mind, I'll sort this out eventually.
    – gusbrs
    Dec 2 at 23:47












  • @marmot Oh, thank you!
    – gusbrs
    Dec 2 at 23:51











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462878%2fbeamer-avoid-empty-error-list-when-using-only-inside-itemize%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










Well, given you'd like to not have the whole sublevel of itemize as the overlays unfold, you could use overlays also on the environment call.



documentclass{beamer}

begin{document}

begin{frame}
frametitle{Title}

begin{itemize}
item SuperTopic 1
only<2->{begin{itemize}}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
only<2->{end{itemize}}
item SuperTopic 2
end{itemize}

end{frame}

end{document}


But this is a somewhat fragile construction, you can easily end up with an inconsistent structure, if you get your overlays wrong.



enter image description here






share|improve this answer























  • @marmot Yes, that is usually in the key "If you really want this, you can have it, but I wouldn't do this myself..." :)
    – gusbrs
    Dec 2 at 23:36










  • @marmot By the way, I'm trying to convert this to an animated gif as you taught me earlier, but no success. The document must be prepared for it, or a convert on any pdf should work?
    – gusbrs
    Dec 2 at 23:37






  • 1




    The trick is convert -density 300 -delay 96 -loop 0 -alpha remove multipage.pdf animated.gif from tex.stackexchange.com/a/136919/121799
    – marmot
    Dec 2 at 23:45










  • @marmot Yeah, that's what I was trying, to get convert-im6.q16: not authorized multipage.pdf' @ error/constitute.c/ReadImage/412. But never mind, I'll sort this out eventually.
    – gusbrs
    Dec 2 at 23:47












  • @marmot Oh, thank you!
    – gusbrs
    Dec 2 at 23:51















up vote
2
down vote



accepted










Well, given you'd like to not have the whole sublevel of itemize as the overlays unfold, you could use overlays also on the environment call.



documentclass{beamer}

begin{document}

begin{frame}
frametitle{Title}

begin{itemize}
item SuperTopic 1
only<2->{begin{itemize}}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
only<2->{end{itemize}}
item SuperTopic 2
end{itemize}

end{frame}

end{document}


But this is a somewhat fragile construction, you can easily end up with an inconsistent structure, if you get your overlays wrong.



enter image description here






share|improve this answer























  • @marmot Yes, that is usually in the key "If you really want this, you can have it, but I wouldn't do this myself..." :)
    – gusbrs
    Dec 2 at 23:36










  • @marmot By the way, I'm trying to convert this to an animated gif as you taught me earlier, but no success. The document must be prepared for it, or a convert on any pdf should work?
    – gusbrs
    Dec 2 at 23:37






  • 1




    The trick is convert -density 300 -delay 96 -loop 0 -alpha remove multipage.pdf animated.gif from tex.stackexchange.com/a/136919/121799
    – marmot
    Dec 2 at 23:45










  • @marmot Yeah, that's what I was trying, to get convert-im6.q16: not authorized multipage.pdf' @ error/constitute.c/ReadImage/412. But never mind, I'll sort this out eventually.
    – gusbrs
    Dec 2 at 23:47












  • @marmot Oh, thank you!
    – gusbrs
    Dec 2 at 23:51













up vote
2
down vote



accepted







up vote
2
down vote



accepted






Well, given you'd like to not have the whole sublevel of itemize as the overlays unfold, you could use overlays also on the environment call.



documentclass{beamer}

begin{document}

begin{frame}
frametitle{Title}

begin{itemize}
item SuperTopic 1
only<2->{begin{itemize}}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
only<2->{end{itemize}}
item SuperTopic 2
end{itemize}

end{frame}

end{document}


But this is a somewhat fragile construction, you can easily end up with an inconsistent structure, if you get your overlays wrong.



enter image description here






share|improve this answer














Well, given you'd like to not have the whole sublevel of itemize as the overlays unfold, you could use overlays also on the environment call.



documentclass{beamer}

begin{document}

begin{frame}
frametitle{Title}

begin{itemize}
item SuperTopic 1
only<2->{begin{itemize}}
only<2->{item SubTopic 1}
only<3->{item SubTopic 2}
only<2->{end{itemize}}
item SuperTopic 2
end{itemize}

end{frame}

end{document}


But this is a somewhat fragile construction, you can easily end up with an inconsistent structure, if you get your overlays wrong.



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 2 at 23:50









marmot

81.8k491174




81.8k491174










answered Dec 2 at 23:32









gusbrs

6,4492838




6,4492838












  • @marmot Yes, that is usually in the key "If you really want this, you can have it, but I wouldn't do this myself..." :)
    – gusbrs
    Dec 2 at 23:36










  • @marmot By the way, I'm trying to convert this to an animated gif as you taught me earlier, but no success. The document must be prepared for it, or a convert on any pdf should work?
    – gusbrs
    Dec 2 at 23:37






  • 1




    The trick is convert -density 300 -delay 96 -loop 0 -alpha remove multipage.pdf animated.gif from tex.stackexchange.com/a/136919/121799
    – marmot
    Dec 2 at 23:45










  • @marmot Yeah, that's what I was trying, to get convert-im6.q16: not authorized multipage.pdf' @ error/constitute.c/ReadImage/412. But never mind, I'll sort this out eventually.
    – gusbrs
    Dec 2 at 23:47












  • @marmot Oh, thank you!
    – gusbrs
    Dec 2 at 23:51


















  • @marmot Yes, that is usually in the key "If you really want this, you can have it, but I wouldn't do this myself..." :)
    – gusbrs
    Dec 2 at 23:36










  • @marmot By the way, I'm trying to convert this to an animated gif as you taught me earlier, but no success. The document must be prepared for it, or a convert on any pdf should work?
    – gusbrs
    Dec 2 at 23:37






  • 1




    The trick is convert -density 300 -delay 96 -loop 0 -alpha remove multipage.pdf animated.gif from tex.stackexchange.com/a/136919/121799
    – marmot
    Dec 2 at 23:45










  • @marmot Yeah, that's what I was trying, to get convert-im6.q16: not authorized multipage.pdf' @ error/constitute.c/ReadImage/412. But never mind, I'll sort this out eventually.
    – gusbrs
    Dec 2 at 23:47












  • @marmot Oh, thank you!
    – gusbrs
    Dec 2 at 23:51
















@marmot Yes, that is usually in the key "If you really want this, you can have it, but I wouldn't do this myself..." :)
– gusbrs
Dec 2 at 23:36




@marmot Yes, that is usually in the key "If you really want this, you can have it, but I wouldn't do this myself..." :)
– gusbrs
Dec 2 at 23:36












@marmot By the way, I'm trying to convert this to an animated gif as you taught me earlier, but no success. The document must be prepared for it, or a convert on any pdf should work?
– gusbrs
Dec 2 at 23:37




@marmot By the way, I'm trying to convert this to an animated gif as you taught me earlier, but no success. The document must be prepared for it, or a convert on any pdf should work?
– gusbrs
Dec 2 at 23:37




1




1




The trick is convert -density 300 -delay 96 -loop 0 -alpha remove multipage.pdf animated.gif from tex.stackexchange.com/a/136919/121799
– marmot
Dec 2 at 23:45




The trick is convert -density 300 -delay 96 -loop 0 -alpha remove multipage.pdf animated.gif from tex.stackexchange.com/a/136919/121799
– marmot
Dec 2 at 23:45












@marmot Yeah, that's what I was trying, to get convert-im6.q16: not authorized multipage.pdf' @ error/constitute.c/ReadImage/412. But never mind, I'll sort this out eventually.
– gusbrs
Dec 2 at 23:47






@marmot Yeah, that's what I was trying, to get convert-im6.q16: not authorized multipage.pdf' @ error/constitute.c/ReadImage/412. But never mind, I'll sort this out eventually.
– gusbrs
Dec 2 at 23:47














@marmot Oh, thank you!
– gusbrs
Dec 2 at 23:51




@marmot Oh, thank you!
– gusbrs
Dec 2 at 23:51


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462878%2fbeamer-avoid-empty-error-list-when-using-only-inside-itemize%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents