Hbox error with itemized list on second page
Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and subsequent) pages, but I can't figure it out for sure. What is happening is that whichever bullets are at the top of the second page are being wrapped as if they were appearing on the first page, which has a different layout structure. I've pasted a sanitized version of the tex file below. Any assistance would be greatly appreciated! Thanks, Ross Schulman ---------------------------- \usemodule[ipsum] \setuppapersize[letter] \setuppagenumbering[location=] \definelayout[first] [% horizontal backspace=2.5in, leftmargin=1.75in, leftmargindistance=0.25in, width=5.5in, rightmargin=0in, % vertical topspace=0pt, header=1.2in, headerdistance=.1in, height=middle, footerdistance=0pt, footer=\lineheight, bottomspace=.5in] \definelayout[rest] [% horizontal leftmargin=0in, width=6.5in, rightmargin=0in, % % vertical topspace=0pt, header=1in, headerdistance=.1in, height=middle, footerdistance=0pt, footer=\lineheight, bottomspace=.3in] \definelayout[1][first] \definelayout[2][rest] \setupmarginblock [location=left, width=\leftmarginwidth, align=flushright] \usecolors[svg] \definehead[contacts][title] \setuphead [contacts] [ align=center, page=no, after={\thinrule\blank[big]}] \definehead[topic][subject] \setuphead [topic] [ after={\hairline}] \defineitemgroup [timeline] [before=, inbetween=, width=6em] \setuplines[before=,after=,command=\strut] \definelayer[mybkgr][x=0mm,y=0mm, width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background={mybkgr}] \starttext \setlayerframed [mybkgr] [] [background=color, framecolor=forestgreen, backgroundcolor=forestgreen, foregroundcolor=white, width=\paperwidth, height=\dimexpr\topspace+\headerheight\relax] {\dontleavehmode{\tfd ROSS SCHULMAN}\blank[medium] policy technologist } \startmarginblock \topic{CONTACT} \startlines 1234 Main St NW Washington, DC 20011 \stoplines \topic{LANGUAGES} \startlines English (Native Speaker) Spanish (Conversational) \stoplines \topic{TECH} \startlines Rust Javascript \letterampersand\space Typescript Linux Administration Google and Microsoft Office Suites \stoplines \stopmarginblock \setupalign[flushleft] \topic{EXPERIENCE} \starttimeline \sym{2021--Now}\color[forestgreen]{Lorem Ipsum Foundation}\hfill \color[darkgrey]{\tfx San Francisco, CA (remote)} Senior Fellow \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize \sym{2015--2021}\color[forestgreen]{Other Place About Lorem}\hfill \color[darkgrey]{\tfx Washington, DC} Senior Lorem Counsel \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize \sym{2014--2015}\color[forestgreen]{Lorems R Us}\hfill \color[darkgrey]{\tfx Washington, DC} Lorem Manager \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize \sym{2010--2014}\color[forestgreen]{Computer and Communications Industry Association}\hfill \color[darkgrey]{\tfx Washington, DC} Lorem Project Manager \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize \sym{2005--2007}\color[forestgreen]{Center for Lorem Ipsum}\hfill \color[darkgrey]{\tfx Washington, DC} Program Associate \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize \stoptimeline \stoptext
Ross Schulman schrieb am 30.04.2024 um 15:01:
Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and subsequent) pages, but I can't figure it out for sure. What is happening is that whichever bullets are at the top of the second page are being wrapped as if they were appearing on the first page, which has a different layout structure.
I've pasted a sanitized version of the tex file below. Any assistance would be greatly appreciated!
Thanks, Ross Schulman ----------------------------
[...]
Lorem Manager \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize
You can use the \testpage command to force a page break before the TeX mechanism to start a new page kicks in. \startitemize[inbetween={\testpage[2]\blank}] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize Wolfgang
Thank you. Adding that did the trick! Best, Ross Schulman On Tue, Apr 30, 2024, at 11:47 AM, Wolfgang Schuster wrote:
Ross Schulman schrieb am 30.04.2024 um 15:01:
Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and subsequent) pages, but I can't figure it out for sure. What is happening is that whichever bullets are at the top of the second page are being wrapped as if they were appearing on the first page, which has a different layout structure.
I've pasted a sanitized version of the tex file below. Any assistance would be greatly appreciated!
Thanks, Ross Schulman ----------------------------
[...]
Lorem Manager \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize
You can use the \testpage command to force a page break before the TeX mechanism to start a new page kicks in.
\startitemize[inbetween={\testpage[2]\blank}] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize
Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
So, unfortunately while using `\testpage` helped in the version of the resume I was working on at the time, I've encountered the error again now that some different content is making the page break at a different point, and setting `\testpage` as high as 6 is not fixing the problem. Is there something else I can/should try? Thanks very much, Ross On Tue, Apr 30, 2024, at 12:20 PM, Ross Schulman wrote:
Thank you. Adding that did the trick!
Best, Ross Schulman
On Tue, Apr 30, 2024, at 11:47 AM, Wolfgang Schuster wrote:
Ross Schulman schrieb am 30.04.2024 um 15:01:
Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and subsequent) pages, but I can't figure it out for sure. What is happening is that whichever bullets are at the top of the second page are being wrapped as if they were appearing on the first page, which has a different layout structure.
I've pasted a sanitized version of the tex file below. Any assistance would be greatly appreciated!
Thanks, Ross Schulman ----------------------------
[...]
Lorem Manager \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize
You can use the \testpage command to force a page break before the TeX mechanism to start a new page kicks in.
\startitemize[inbetween={\testpage[2]\blank}] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize
Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Hi everyone. Just raising this question again. Is anyone able to help me figure out why this is happening and how I can fix it more permanently? Thank you all very much! Ross On Mon, May 6, 2024, at 7:33 PM, Ross Schulman wrote:
So, unfortunately while using `\testpage` helped in the version of the resume I was working on at the time, I've encountered the error again now that some different content is making the page break at a different point, and setting `\testpage` as high as 6 is not fixing the problem. Is there something else I can/should try?
Thanks very much, Ross
On Tue, Apr 30, 2024, at 12:20 PM, Ross Schulman wrote:
Thank you. Adding that did the trick!
Best, Ross Schulman
On Tue, Apr 30, 2024, at 11:47 AM, Wolfgang Schuster wrote:
Ross Schulman schrieb am 30.04.2024 um 15:01:
Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and subsequent) pages, but I can't figure it out for sure. What is happening is that whichever bullets are at the top of the second page are being wrapped as if they were appearing on the first page, which has a different layout structure.
I've pasted a sanitized version of the tex file below. Any assistance would be greatly appreciated!
Thanks, Ross Schulman ----------------------------
[...]
Lorem Manager \startitemize[packed] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize
You can use the \testpage command to force a page break before the TeX mechanism to start a new page kicks in.
\startitemize[inbetween={\testpage[2]\blank}] \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \item \ipsum[alternative=words, n=10, inbetween=\space] \par \stopitemize
Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Ross Schulman schrieb am 07.05.2024 um 01:33:
So, unfortunately while using `\testpage` helped in the version of the resume I was working on at the time, I've encountered the error again now that some different content is making the page break at a different point, and setting `\testpage` as high as 6 is not fixing the problem. Is there something else I can/should try?
For the start you can show us a minimal example with the problem. When you're still trying to create a paragraph with different text widths there are limitations. TeX always typesets more text than it can fit on the current page and when on the next page the text widths changes this is to late for TeX at this moment because the text has already been set with the width of the previous page. Wolfgang
Hi, sorry. The example was in an earlier message in the thread: https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/ZLVFEBU73KBBC... I fixed the problem for now by forcing a page break where it was needed. On Tue, May 14, 2024, at 6:57 AM, Wolfgang Schuster wrote:
Ross Schulman schrieb am 07.05.2024 um 01:33:
So, unfortunately while using `\testpage` helped in the version of the resume I was working on at the time, I've encountered the error again now that some different content is making the page break at a different point, and setting `\testpage` as high as 6 is not fixing the problem. Is there something else I can/should try?
For the start you can show us a minimal example with the problem.
When you're still trying to create a paragraph with different text widths there are limitations. TeX always typesets more text than it can fit on the current page and when on the next page the text widths changes this is to late for TeX at this moment because the text has already been set with the width of the previous page.
Wolfgang
participants (2)
-
Ross Schulman
-
Wolfgang Schuster