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









New contributor




Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    2 hours ago












  • 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
    2 hours ago












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    2 hours ago










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    2 hours ago















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









New contributor




Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    2 hours ago












  • 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
    2 hours ago












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    2 hours ago










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    2 hours ago













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









New contributor




Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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









New contributor




Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 hours ago









Kurt

34.1k846157




34.1k846157






New contributor




Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









Migdress

32




32




New contributor




Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Migdress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    2 hours ago












  • 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
    2 hours ago












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    2 hours ago










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    2 hours ago














  • 1




    Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
    – gusbrs
    2 hours ago












  • 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
    2 hours ago












  • Well, but that will result in an empty itemize in the first slide, as the error message says.
    – gusbrs
    2 hours ago










  • Yes, that's the question. So do you think there is not a way to accomplish what I want?
    – Migdress
    2 hours ago








1




1




Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
– gusbrs
2 hours ago






Welcome to TeX.SX! How about item<2-> Subtopic 1 instead of only<2->{item SubTopic 1}?
– gusbrs
2 hours ago














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
2 hours ago






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
2 hours ago














Well, but that will result in an empty itemize in the first slide, as the error message says.
– gusbrs
2 hours ago




Well, but that will result in an empty itemize in the first slide, as the error message says.
– gusbrs
2 hours ago












Yes, that's the question. So do you think there is not a way to accomplish what I want?
– Migdress
2 hours ago




Yes, that's the question. So do you think there is not a way to accomplish what I want?
– Migdress
2 hours ago










1 Answer
1






active

oldest

votes

















up vote
1
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
    2 hours ago










  • @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
    2 hours ago






  • 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
    2 hours ago










  • @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
    2 hours ago












  • @marmot Oh, thank you!
    – gusbrs
    2 hours ago











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
});


}
});






Migdress is a new contributor. Be nice, and check out our Code of Conduct.










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
1
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
    2 hours ago










  • @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
    2 hours ago






  • 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
    2 hours ago










  • @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
    2 hours ago












  • @marmot Oh, thank you!
    – gusbrs
    2 hours ago















up vote
1
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
    2 hours ago










  • @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
    2 hours ago






  • 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
    2 hours ago










  • @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
    2 hours ago












  • @marmot Oh, thank you!
    – gusbrs
    2 hours ago













up vote
1
down vote



accepted







up vote
1
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 2 hours ago









marmot

80.1k491171




80.1k491171










answered 2 hours ago









gusbrs

6,2992838




6,2992838












  • @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
    2 hours ago










  • @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
    2 hours ago






  • 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
    2 hours ago










  • @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
    2 hours ago












  • @marmot Oh, thank you!
    – gusbrs
    2 hours ago


















  • @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
    2 hours ago










  • @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
    2 hours ago






  • 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
    2 hours ago










  • @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
    2 hours ago












  • @marmot Oh, thank you!
    – gusbrs
    2 hours ago
















@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
2 hours ago




@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
2 hours ago












@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
2 hours ago




@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
2 hours ago




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
2 hours ago




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












@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
2 hours ago






@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
2 hours ago














@marmot Oh, thank you!
– gusbrs
2 hours ago




@marmot Oh, thank you!
– gusbrs
2 hours ago










Migdress is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Migdress is a new contributor. Be nice, and check out our Code of Conduct.













Migdress is a new contributor. Be nice, and check out our Code of Conduct.












Migdress is a new contributor. Be nice, and check out our Code of Conduct.
















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

Lallio

Unable to find Lightning Node

Futebolista