Re: [NTG-context] Inline stacking of text
The following was in answer to 3/11/2017 4:52 PM, Pavneet Arora: On 13 Mar 2017, at 00:27, Hans Hagen> wrote: \starttext \start \definefont[whatever][Sans at 50pt] \dontleavehmode\inframed [foregroundstyle=whatever, frame=off, location=middle, align=flushleft] {TITLE---}% \dontleavehmode\inframed [foregroundstyle=whatever, frame=off, location=middle, align=flushleft] {\definedfont[Sans at 25pt] SUB-TITLE}% \stopoverlay} \stoptext A question about this code. The final } is equivalent to \stop and closes to \start at the beginning. But I canot see the \stopoverlay matching a \startoverlay, as I would have expected. What am I missing here? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Inline stacking of text
On 3/11/2017 4:52 PM, Pavneet Arora wrote: Really simple problem that has had me bashing my head for a while, so I thought that I would reach out and ask for help: I need to create large type title/sub-title combinations in-line. I need the sub-titles to be stacked so that they share the same baseline as the title. Unfortunately, I cannot seem to get the baseline alignment to work. Also, I seem to have to add the '\setupwhitespace[-1.0em] to squish the lines together. Is there a better way? Appreciate any guidance. advTHANKSance. MWE--8< \setuppapersize[letter,portrait] \definefontfamily[mainface][rm][Latin Modern] \definefontfamily[mainface][ss][Latin Sans] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,80pt] \setupinterlinespace[line=2.2ex] \setupwhitespace[none] \starttext \definedfont[Sans at 50pt]{TITLE---}% \framed[frame=off,location=middle,align=flushleft]{% \definedfont[Sans at 25pt]\setupinterlinespace\setupwhitespace[-1.0em]{SUB-TITLE\\ SUB-TITLE}}% \stoptext ->8 \starttext \start \definefont[whatever][Sans at 50pt] \dontleavehmode\inframed [foregroundstyle=whatever, frame=off, location=middle, align=flushleft] {TITLE---}% \dontleavehmode\inframed [foregroundstyle=whatever, frame=off, location=middle, align=flushleft] {\definedfont[Sans at 25pt] SUB-TITLE}% \stopoverlay} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Inline stacking of text
Really simple problem that has had me bashing my head for a while, so I thought that I would reach out and ask for help: I need to create large type title/sub-title combinations in-line. I need the sub-titles to be stacked so that they share the same baseline as the title. Unfortunately, I cannot seem to get the baseline alignment to work. Also, I seem to have to add the '\setupwhitespace[-1.0em] to squish the lines together. Is there a better way? Appreciate any guidance. advTHANKSance. MWE--8< \setuppapersize[letter,portrait] \definefontfamily[mainface][rm][Latin Modern] \definefontfamily[mainface][ss][Latin Sans] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,80pt] \setupinterlinespace[line=2.2ex] \setupwhitespace[none] \starttext \definedfont[Sans at 50pt]{TITLE---}% \framed[frame=off,location=middle,align=flushleft]{% \definedfont[Sans at 25pt]\setupinterlinespace\setupwhitespace[-1.0em]{SUB-TITLE\\ SUB-TITLE}}% \stoptext ->8 -- Pavneet Arora m: +1 (647) 406-6843 Waroc Informatikt: +1 (416) 937-9276 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___