Inclosing section in vbox failed with: “Something's wrong--perhaps a missing item. }”afterpage + list =...

What typically incentivizes a professor to change jobs to a lower ranking university?

Languages that we cannot (dis)prove to be Context-Free

Which country benefited the most from UN Security Council vetoes?

How do I draw and define two right triangles next to each other?

Why can't we play rap on piano?

I'm flying to France today and my passport expires in less than 2 months

Is it possible to record a short contained sound no longer than 60 milliseconds?

Codimension of non-flat locus

Maximum likelihood parameters deviate from posterior distributions

Why is 150k or 200k jobs considered good when there's 300k+ births a month?

What are these boxed doors outside store fronts in New York?

What's that red-plus icon near a text?

Was any UN Security Council vote triple-vetoed?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

What does it mean to describe someone as a butt steak?

Has there ever been an airliner design involving reducing generator load by installing solar panels?

NMaximize is not converging to a solution

What would happen to a modern skyscraper if it rains micro blackholes?

Modeling an IP Address

How can I make my BBEG immortal short of making them a Lich or Vampire?

How much RAM could one put in a typical 80386 setup?

Why does Kotter return in Welcome Back Kotter?

LWC SFDX source push error TypeError: LWC1009: decl.moveTo is not a function

dbcc cleantable batch size explanation



Inclosing section in vbox failed with: “Something's wrong--perhaps a missing item. }”


afterpage + list = missing itemMissing Item number in enumerateProblem resizing an itemize environment with a scalebox: “Something's wrong”Why am I getting a “perhaps a missing item” error in my custom epigraph environment?Compiler Error when Creating a Macro/EnvironmentProblem with adding exercises - “missing item error”Error: "Something's wrong--perhaps a missing item.'' using multicol in a newenvironment, can it be fixed?“Something's wrong--perhaps a missing item” error in newenvironment using a vtop boxUsing Xindy: Something's wrong--perhaps a missing item. cleardoublepageMake paired delimiter with prefix for Re and Im













0















I wanna put some complex commands (e.g. section and chapter) inside a box (vbox) so later I can compute the height of the block contains the text.



Here is the full example:



documentclass[11pt]{article}

newsavebox{samplebox}
newcommand{sampleboxcommand}[1]{
savebox{samplebox}{#1}
usebox{samplebox}
}
begin{document}

sampleboxcommand{
section{Section X}
subsection{Subsection Y}
}
end{document}


But it gives me many errors like:




  • Something's wrong--perhaps a missing item. }

  • Missing } inserted. }

  • Too many }'s. }


What's wrong with my code? If I replace the savebox and usebox with a simple vbox{#1} everything goes smoothly.










share|improve this question























  • you are using savebox which is an hbox not vbox you can not have vertical material in an hbox.

    – David Carlisle
    6 hours ago











  • you can use savebox{samplebox}{vbox{#1}}

    – David Carlisle
    6 hours ago
















0















I wanna put some complex commands (e.g. section and chapter) inside a box (vbox) so later I can compute the height of the block contains the text.



Here is the full example:



documentclass[11pt]{article}

newsavebox{samplebox}
newcommand{sampleboxcommand}[1]{
savebox{samplebox}{#1}
usebox{samplebox}
}
begin{document}

sampleboxcommand{
section{Section X}
subsection{Subsection Y}
}
end{document}


But it gives me many errors like:




  • Something's wrong--perhaps a missing item. }

  • Missing } inserted. }

  • Too many }'s. }


What's wrong with my code? If I replace the savebox and usebox with a simple vbox{#1} everything goes smoothly.










share|improve this question























  • you are using savebox which is an hbox not vbox you can not have vertical material in an hbox.

    – David Carlisle
    6 hours ago











  • you can use savebox{samplebox}{vbox{#1}}

    – David Carlisle
    6 hours ago














0












0








0








I wanna put some complex commands (e.g. section and chapter) inside a box (vbox) so later I can compute the height of the block contains the text.



Here is the full example:



documentclass[11pt]{article}

newsavebox{samplebox}
newcommand{sampleboxcommand}[1]{
savebox{samplebox}{#1}
usebox{samplebox}
}
begin{document}

sampleboxcommand{
section{Section X}
subsection{Subsection Y}
}
end{document}


But it gives me many errors like:




  • Something's wrong--perhaps a missing item. }

  • Missing } inserted. }

  • Too many }'s. }


What's wrong with my code? If I replace the savebox and usebox with a simple vbox{#1} everything goes smoothly.










share|improve this question














I wanna put some complex commands (e.g. section and chapter) inside a box (vbox) so later I can compute the height of the block contains the text.



Here is the full example:



documentclass[11pt]{article}

newsavebox{samplebox}
newcommand{sampleboxcommand}[1]{
savebox{samplebox}{#1}
usebox{samplebox}
}
begin{document}

sampleboxcommand{
section{Section X}
subsection{Subsection Y}
}
end{document}


But it gives me many errors like:




  • Something's wrong--perhaps a missing item. }

  • Missing } inserted. }

  • Too many }'s. }


What's wrong with my code? If I replace the savebox and usebox with a simple vbox{#1} everything goes smoothly.







macros environments boxes






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 7 hours ago









jiunjiun

1285




1285













  • you are using savebox which is an hbox not vbox you can not have vertical material in an hbox.

    – David Carlisle
    6 hours ago











  • you can use savebox{samplebox}{vbox{#1}}

    – David Carlisle
    6 hours ago



















  • you are using savebox which is an hbox not vbox you can not have vertical material in an hbox.

    – David Carlisle
    6 hours ago











  • you can use savebox{samplebox}{vbox{#1}}

    – David Carlisle
    6 hours ago

















you are using savebox which is an hbox not vbox you can not have vertical material in an hbox.

– David Carlisle
6 hours ago





you are using savebox which is an hbox not vbox you can not have vertical material in an hbox.

– David Carlisle
6 hours ago













you can use savebox{samplebox}{vbox{#1}}

– David Carlisle
6 hours ago





you can use savebox{samplebox}{vbox{#1}}

– David Carlisle
6 hours ago










0






active

oldest

votes












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',
autoActivateHeartbeat: false,
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%2f483437%2finclosing-section-in-vbox-failed-with-somethings-wrong-perhaps-a-missing%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483437%2finclosing-section-in-vbox-failed-with-somethings-wrong-perhaps-a-missing%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

Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...