[NTG-context] Re: Hbox error with itemized list on second page
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 ___
[NTG-context] Re: Hbox error with itemized list on second page
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 ___
[NTG-context] Re: Font switching for titles and subtitle not working as expected ?
denis.ma...@unibe.ch schrieb am 30.04.2024 um 14:22: Hi, I just jumbled upon this question on tex stackexchange : https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 Using the style key as suggested in the accepted answer works, but I’ve had a look in to this, and I don’t understand why the original code does not work. I’ve also tried to find a solution using textcommand instead of command, but that makes no difference. Only one setting will be accepted. As soon as both, titles and subjects, are changed only the first change will be accepted. Is this a bug, or am I missing something? When you load a typescript only in a local group (e.g. a section title) you should always load it at the start of the document to avoid such side effects. \usebodyfont[chorus] % load the chorus typescript \setupbodyfont[modern] % set the default font for the document 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 ___
[NTG-context] 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 ___ 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 /
[NTG-context] Re: \par and \startlines
> -Ursprüngliche Nachricht- > Von: Wolfgang Schuster > Gesendet: Samstag, 27. April 2024 07:40 > An: Denis Maier > Cc: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Re: \par and \startlines > > Denis Maier schrieb am 26.04.2024 um 19:52: > > > I see. But there's no command that could be used to simulate an empty line? > > If not, me should I perhaps try to replicate the wrapper structure > > from the XML source in context? (I'll also look into the format module > > of > > course.) What do you think? > > Below is a different solution to your problem with works without \startlines > because you already mark up each individual line in the poem which make it > possible to add a linebreak in the output. > > With \blank options (samepage) you can avoid pagebreaks between stanzas. > > \startxmlsetups xml:test > \xmlsetsetup{#1}{*}{-} > \xmlsetsetup{#1}{doc|poem|stanza|line}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:test} > > \startxmlsetups xml:doc > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:poem > \blank[line] > \xmlflush{#1} > \blank[back,line] > \stopxmlsetups > > \startxmlsetups xml:stanza > \xmlflush{#1}\blank[preference,line] > \stopxmlsetups > > \startxmlsetups xml:line > \xmlflush{#1}\blank[samepage,none] > \stopxmlsetups > > \startbuffer[test] > > > > > The > lines > are > there! > > > The > lines > are > there! > > > The > lines > are > there! > > > > \stopbuffer > > \starttext > > \samplefile{lorem} > > \xmlprocessbuffer{test}{test}{} > > \samplefile{lorem} > > \stoptext Thanks for this solution. I've had a quick look, and it seems to do exactly what I need. My requirements are rather simple at the moment, but that should be sufficient, but to repeat Hraban's question: What would be the advantage of using the format module? Thanks again for your help, Denis ___ 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 ___
[NTG-context] Font switching for titles and subtitle not working as expected ?
Hi, I just jumbled upon this question on tex stackexchange : https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 Using the style key as suggested in the accepted answer works, but I've had a look in to this, and I don't understand why the original code does not work. I've also tried to find a solution using textcommand instead of command, but that makes no difference. Only one setting will be accepted. As soon as both, titles and subjects, are changed only the first change will be accepted. Is this a bug, or am I missing something? Best, Denis % % Original MWE \define[2]\mytitle{% \switchtobodyfont[chorus]% #2 } \define[2]\mysubject{% \switchtobodyfont[chorus]% #2 } \setuphead[title][command=\mytitle] \setuphead[subject][command=\mysubject] \starttext \title{In Zapf Chancery} \subject{Apparently the default font. Why?} And in the default font, just as expected. \stoptext % % % Adapted MWE % \define[1]\mytitleformat{% \switchtobodyfont[chorus]% #1 } %\setuphead[subject,title][textcommand=\mytitleformat] %\setuphead[title][textcommand=\mytitleformat] \setuphead[subject][textcommand=\mytitleformat] % this will adapt the format for subjects, as long as titles are not changed \starttext \title{In Zapf Chancery} \subject{Apparently the default font. Why?} And in the default font, just as expected. \stoptext %% ___ 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 ___