[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-28 Thread Gerion Entrup
alternative=top, > >>>> headstyle=bold, > >>>> width=broad, > >>>> ] > >>>> > >>>> \definedescription[desc][ > >>>> width=fit, > >>>> distance={\widthofstring{~}}, > >> > >> distance

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-27 Thread Wolfgang Schuster
width=broad, distance=\spaceamount, headcommand={\groupedcommand{\startmyhl}{\stopmyhl :}}, headstyle=, before={\startpacked}, after={\stoppacked}, alternative=hanging ] \starttext This is a \myhl{highlight}. Some listings \sta

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-24 Thread Gerion Entrup
t;>width=fit, > >>distance={\widthofstring{~}}, > > distance=\spaceamount, > > Wolfgang This seems to be much better but does not lead to the wanted result. The full example now is: ``` \definestartstop[myhl][style=mono,left={›\thinspace}] \definedescription[cat

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Gerion Entrup
dth=fit, > distance={\widthofstring{~}}, > headcommand={\groupedcommand{>\,}{:}}, Hmm, this works, but duplicates the above definition. If I don't want to use > as prefix but ›, I need to replace it in two places. > headstyle=\tt, > before={\startpa

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Aditya Mahajan
elow. \definedescription[category][ alternative=top, headstyle=bold, width=broad, ] \definedescription[desc][ width=fit, distance={\widthofstring{~}}, headcommand={\groupedcommand{>\,}{:}}, headstyle=\tt, before={\startpacked}, after={\sto

[NTG-context] Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Gerion Entrup
\hl}{:}}, % headcommand={\groupedcommand{}{:}}, % this compiles but the highlight is lost % headcommand={\groupedcommand{\starthl}{\stophl :}}, % this does not compile headstyle=, before={\startpacked}, after={\stoppacked}, alternative=hanging, ] \starttext This is a

Re: [NTG-context] Memo module not working with lmtx

2021-10-15 Thread Jason Ross via ntg-context
r} 191 \startpacked 192 \doifsomething{\correspondenceparameter\c!fromname}{\memotext\c!fromname \correspondenceparameter\c!fromname \par} 193 \doifsomething{\correspondenceparameter\c!date }{\memotext\c!date \correspondenceparameter\c!date \par} 194 \doifsom

[NTG-context] Memo module not working with lmtx

2021-10-15 Thread Jason Ross via ntg-context
\def\\{\correspondencesectionparameter\c!separator} 191 \startpacked 192 \doifsomething{\correspondenceparameter\c!fromname}{\memotext\c!fromname \correspondenceparameter\c!fromname \par} 193 \doifsomething{\correspondenceparameter\c!date }{\memotext\c!date \correspondenceparameter\

Re: [NTG-context] Different Styles of Typing

2021-07-28 Thread Hans Hagen via ntg-context
\typingparameter\c!before\relax \startpacked[\v!blank]% \buff_verbatim_setup_line_numbering \buff_verbatim_initialize_typing_one \buff_verbatim_setup_keep_together \normalexpanded{\buff_verbatim_type_block{\e!start\m_typing}{\e!stop\m_typing}}} \protect \starttext \starttyping[abc][color=red

[NTG-context] new upload

2021-05-31 Thread Hans Hagen
=normal]{% one one \sync{a}{1}two \sync{a}{2}three\par one one \sync{a}{1}two two \sync{a}{2}three\par \blank tst tst \sync{b}{1}tst \sync{b}{2}tst\par tst \sync{b}{1}tst tst \sync{b}{2}tst\par \blank one \sync{a}{1}two \sync{a}{2}three } \page \star

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
rchitecture-for-real-enterprises/> at InfoWorld On Slippery Ice <https://eapj.org/on-slippery-ice/> at EAPJ > On 24 Apr 2020, at 17:54, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 24.04.2020 um 17:38: >> I have been experimenting with \startpacked..\stoppa

[NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
I have been experimenting with \startpacked..\stoppacked but it doesn’t seem to work. What is the preferred way of getting lines in a normal paragraph (actually, we’re talking about a \framed with align, so a full paragraph in a TeX \vbox) (In addition, I try to find this kind of information

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster
Gerben Wierda schrieb am 24.04.2020 um 17:38: I have been experimenting with \startpacked..\stoppacked but it doesn’t seem to work. What is the preferred way of getting lines in a normal paragraph (actually, we’re talking about a \framed with align, so a full paragraph in a TeX \vbox) Do you

[NTG-context] upload

2020-02-11 Thread Hans Hagen
b.zip (after unzipping in the right spot, yuou need to run mtxrun --generate) other platforms will follow once Mojca and I have dealt with them on the compile farm so windows users have the scoop here). So \startecmacode texsprint("\\startpacked"); for (var i = 1; i <= MyMax; i

Re: [NTG-context] \startalignment

2016-01-12 Thread Hans Hagen
cluded before the centered block, the tufte text will get middle aligned. Also, perhaps I might not wish for the dawkins text to be separated by a big whitespace, logically as in: You can use \startpacked … \stoppacked to suppress blank lines inserted by \setupwhitespace. Wo

Re: [NTG-context] \startalignment

2016-01-12 Thread Wolfgang Schuster
no big whitespace be included before the centered block, the tufte text will get middle aligned. Also, perhaps I might not wish for the dawkins text to be separated by a big whitespace, logically as in: You can use \startpacked … \stoppacked to suppress blank lines inserted by \setupwhitespace. Wo

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
mkii = \startenvironment env_cataoia \project project_cataoia % \definedescription [description] [location=serried, width=broad, hang=fit, margin=standard, headstyle=bold] \definestartstop [descriptions] [before=\startpa

Re: [NTG-context] Influencing the vertical spacing of the table of contents? No possible?

2014-10-02 Thread Wolfgang Schuster
Am 28.09.2014 um 15:17 schrieb Gerben Wierda : > I asked this on the list a while back. Is there no answer on this one? I use > \startpacked\stoppacked with some effect, but I'd like to have more > finegrained control. > > Original question: > > I'm using

[NTG-context] Influencing the vertical spacing of the table of contents? No possible?

2014-09-28 Thread Gerben Wierda
I asked this on the list a while back. Is there no answer on this one? I use \startpacked\stoppacked with some effect, but I'd like to have more finegrained control. Original question: I'm using mkii. I've got a table of contents that just places one item on the next page, whic

Re: [NTG-context] \startitemize "Step 1:" "Step 2:"

2014-07-28 Thread Wolfgang Schuster
ded the \defineenumeration to my environment file and do > > \startitemize[packed,joinedup] > \Step A > \Step B > \Step C > \stopitemize A enumeration *isn’t* the same as a item group. When you use \Step command you have to delimit the entry with a \par command or a empt

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Wolfgang Schuster
Am 03.05.2013 um 09:34 schrieb "Meer, H. van der" : > There is more to it then a preference for \crlf […] \setupwhitespace[line] \starttext \subject{Regular paragraphs} Line 1\par \start \switchtobodyfont[termes] Line 2\par \stop Line 3 \subject{Packed paragraphs} \startpack

Re: [NTG-context] Heading flow

2013-05-01 Thread Wolfgang Schuster
result. Not > necessarily an ideal solution, but adequate for what I needed. > > \definehead[references][subsection] > \setuphead[references][after={ ~ }] > > \startpacked % Get rid of large gaps between the references. > \dorecurse{10}{\references{Reference item}} >

Re: [NTG-context] Heading flow

2013-05-01 Thread Lance Larsen
d. \definehead[references][subsection] \setuphead[references][after={ ~ }] \startpacked % Get rid of large gaps between the references. \dorecurse{10}{\references{Reference item}} \stoppacked -Lance Am 01.05.2013 um 18:03 schrieb Lance Larsen : > It looks like the 'after' property

Re: [NTG-context] Some more question, ex "Context an excursion"

2013-01-27 Thread Wolfgang Schuster
information!!! > > 3) On page 77, I get an error: > > \defineparagraphs[city][n=2,before=,after=] > \city Hasselt (Ov) \\ Overijssel \\ > \city Hasselt (Li) \\ Limburg\\ > \startpacked > \city Hasselt (Ov) \\ The Netherlands \\ > \city Hasselt (Li) \\ Belgium \\ > \sto

[NTG-context] Some more question, ex "Context an excursion"

2013-01-27 Thread Alain Delmotte
pages with the same information!!! 3) On page 77, I get an error: \defineparagraphs[city][n=2,before=,after=] \city Hasselt (Ov) \\ Overijssel \\ \city Hasselt (Li) \\ Limburg\\ \startpacked \city Hasselt (Ov) \\ The Netherlands \\ \city Hasselt (Li) \\ Belgium \\ \

Re: [NTG-context] Strange error message

2012-03-11 Thread Otared Kavian
scription ...he \everydefinedescription >> \let \currentdescription \... >> >> \startpacked >> … >> >> In order to localize the error I have tried to add little by little my >> \input fi

Re: [NTG-context] Strange error message

2012-03-11 Thread Wolfgang Schuster
\let \currentdescription \... > > \startpacked > … > > In order to localize the error I have tried to add little by little my \input > files, and everything works when I have about 20 pages… > I am reporting this issu

[NTG-context] Strange error message

2012-03-10 Thread Otared Kavian
!description ,\c!level =1] \else \defineconstruction ... \define_description ...he \everydefinedescription \let \currentdescription \... \startpacked … In order to localize the error I

[NTG-context] setup indentation

2011-12-29 Thread Herbert Voss
this worked some weeks ago: \setupindentations[sample={Sprecher A},separator={:},distance=.5em] \defineindenting[ra][text=Sprecher A] \defineindenting[rb][text=Sprecher B] \defineindenting[rc][text=Sprecher C] \starttext \startpacked \ra Wie geht es dir?\par \ra Ich fragte, wie es dir geht?\par

Re: [NTG-context] Which standard installed font displays ' and ` good

2011-03-23 Thread Wolfgang Schuster
{\increment\FontTestCounter \definetypeface[mainface-\FontTestCounter][rm][specserif][#1] \switchtobodyfont[mainface-\FontTestCounter] \title{#1} \startpacked ` Backtick\par ' Apostrophe\par ‘ Open curly quote\par ’ Close curly quote\par - hyphen\par – en dash\par —

Re: [NTG-context] Macro for acronyms

2011-03-19 Thread Wolfgang Schuster
m} > > \def\dostartAcronym#1 #2\dostopAcronym > {\doifsomething{#1} > {\FancyUppercase{#1} %space > \dostartAcronym#2 \dostopAcronym}} \def\Acronym#1% {\startpacked \processseparatedlist[#1][ ]\doAcronym \stoppacked} \def\doAcronym#1% {\getfirstcharacter

Re: [NTG-context] Unexpected indentation

2011-02-21 Thread Wolfgang Schuster
ot;\startnarrower" works): The narrower environment use \leftskip and \rightskip which affects all lines. > \hskip 2cm 9/99 Addr Line 1 Street\hfil\break > \hskip 2cm Addr Line 2\hfil\break > \hskip 2cm City\hfil\break \definehspace[address][2cm] \starttext \startpacked \hspace[address

[NTG-context] Multicol float vertical spacing (MkII)

2009-05-20 Thread Thomas Floeren
l space (in general) with e.g. "blank=4pt" in the setups. This solves my problem for the moment, but is a bit ugly, because all spaces seem to be affected, also the predefined caption innerspace(!) \startcolumnset: I couldn't find any solution at all, unless grouping everythi

Re: [NTG-context] Listings

2008-09-28 Thread Wolfgang Schuster
][listings] >>> >>> \starttext >>> >>> \placelisting >>> [split] >>> [lst:freeformlogfile] >>> {Log File} >>> {\startJAVA >>>... >>>\stopJAVA} >>> >>> \stoptext >&g

Re: [NTG-context] trouble with indices

2008-02-17 Thread Wolfgang Schuster
olerance=stretch]% \dontcomplain \startpacked[\v!blank]% \mkloadregister\currentregister\dobeforeplaceregister\doafterplaceregister \stoppacked \stopcolumns \endgroup \fi} \protect > The error arises both with pdftex or xetex. I think that some recent > cha

Re: [NTG-context] \placeregister[index][compress=yes] BROKEN ??

2008-01-29 Thread Taco Hoekwater
ter\c!balance, \c!align=\registerparameter\c!align]% \dontcomplain \startpacked[\v!blank]% \mkloadregisterX % TH this does it \currentregister\dobeforeplaceregister\doafterplaceregister \stoppacked \stopcolumns \endgroup \fi} \protect B

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
namemakeup \startnarrower[left|middle|right] \stopnarrower # \startnointerference \stopnointerference # \startnotmode \stopnotmode \startopposite \stopopposite \startoverlay{text}{text} \stopoverlay \startoverview[names] \stopoverview \startpacked[blank] \stoppacked \startparagraph \stopparagraph \startpositi

Re: [NTG-context] \definestartstop with arguments

2007-07-13 Thread Peter Rolf
hout #2] \fi [whatever before] #3 [whatever after] } \let\stopFOO\relax % or define the [whatever after] stuff here This is the basic construct, the rest is parameter evaluation and some additional whatever. HTH, Peter > My current startstop definition is > > \definestart

[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
inestartstop[usecase][before={\starttextrule{Use Case: Logging-On}\startpacked\startmypar{\bf User Intentions}\mypar{\bf System Responsibilities}\stopmypar}, after={\stoppacked\stoptextrule}] Best, Vyatcheslav ___ If

[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
Hello, I want to convert my following code into a custom \start \stop pair. \starttextrule{Use Case: Logging-On}\startpacked Text \stoppacked\stoptextrule It seems to me that using \definestartstop[usecase][...] command is the most approprate, but I cannot get how to achieve different

Re: [NTG-context] Page breaking problem

2006-06-19 Thread Helin Gai
ader footer bottom >> 3. none page leftedge leftmargin left middle right rightmargin >> rightedge >> command >> state >> \stoptyping >> >> \chapter{Spacing} >> >> \starttyping >> \setupinterlinespace[..._][..=..] >> ..._ reset small_

Re: [NTG-context] Page breaking problem

2006-06-19 Thread Hans Hagen
typing > \setupinterlinespace[..._][..=..] > ..._ reset small_ medium big on off > height, depth, top, bottom: number > line: dimen > > \setupwhitespace[...] > none_, small, medium, big, line, fixed, fix, dimen > \whitespace > \nowhitespace > > \blank[..] > n*sm

[NTG-context] Page breaking problem

2006-06-19 Thread Helin Gai
..] normal_ standard line dimen big medium small fixed flexible \defineblank[name][...] same as \setupblank \packed \startpacked ... \stoppacked \startunpacked ... \stopunpacked \setupspacing[broad,packed] \space, \nospace, fixedspaces \stoptyping \chapter{Indentation} \starttyping \setupin

Re: [NTG-context] \typefile with a file in \usepath fails

2006-04-30 Thread nico
understand its role. \def\dodotypefile[#1][#2]#3% {\bgroup \let\currenttypingclass\??tp \edef\currenttyping{#1}% \typingparameter\c!before \doiflocfileelse{#3} \donetrue % sets \readfilename {\doifinputfileelse{#3} {\donetrue\def\readfilename{\pathplusfil

Re: [NTG-context] \typefile problem

2006-03-24 Thread Peter Rolf
r.tex: \def\dodotypefile[#1][#2]#3% {\bgroup \let\currenttypingclass\??tp \edef\currenttyping{#1}% \typingparameter\c!before \doiflocfileelse{#3} \donetrue % sets \readfilename {\doifinputfileelse{#3} {\donetrue\let\readfilename\filepath} \donefalse}% \ifdone

Re: [NTG-context] Relative font scaling

2005-09-01 Thread Hans Hagen
f at 60pt]\test TEST \par %D \definefont[test][Serif scaled 6000]\test TEST \par %D \stopbuffer %D %D \typebuffer %D %D \startpacked %D \getbuffer %D \stoppacked - Hans Hagen | PRAGMA ADE

Re: [NTG-context] typing questions

2005-05-14 Thread Peter Münster
lax > \egroup} Hello, thanks, Taco. Will this patch be integrated in the next ConTeXt version? > > - Where does the vertical space in \framed come from? > > From a bug in \startpacked. Sorry, I don't know how to fix > that without breaking other stuff. Does some oth

Re: [NTG-context] typing questions

2005-04-20 Thread Taco Hoekwater
macros? \setuptyping[option=commands] % enable commands \starttyping Here I would like to /BTEX \italic{some context-code} /ETEX \stoptyping - Where does the vertical space in \framed come from? From a bug in \startpacked. Sorry, I don't know how to fix that without breaking other

[NTG-context] Learning ConTeXt, typical hurdle

2005-03-10 Thread Gerben Wierda
replace LaTeX's description. In the environment file: === \startenvironment env_teoada \project project_teoada \definedescription [description] [location=hanging, margin=standard, headstyle=bold] \definestartstop [descriptions] [before=\blank\startpacked, aft

Re: [NTG-context] XML in ConTeXt & verbatim text

2004-12-15 Thread Hans Hagen
losed in a single tag: Line 1 Line 2 Line 3 --- Of course I have some "dirty" workaround, but the result is really ugly... \defineXMLenvironment[programlisting]{ \bgroup \startpacked \tttf \obeylines\obeyspaces\obeytabs }{ \stoppacked \egroup } The line breaks are proc

Re: [NTG-context] XML in ConTeXt & verbatim text

2004-12-15 Thread Richard Gabriel
: Line 1       Line 2 Line 3 --- Of course I have some "dirty" workaround, but the result is really ugly... \defineXMLenvironment[programlisting]{   \bgroup   \startpacked   \tttf   \obeylines\obeyspaces\obeytabs }{   \stoppacked   \egroup } The line breaks are processed correctly.

[NTG-context] Database....

2003-07-07 Thread Willi Egger
i % Sample record \def\DoWithRecord#1% {\startpacked \let\\=\quad name: \getrecordentry{name}~\getrecordentry{family name}\par address: \getrecordentry{postal address}\par \stoppacked} \definerecord[address][command=\DoWithRecord] \setuprecord[address][command=\Do