Re: [NTG-context] Line breaks, \wordright and hyphenation

2021-10-24 Thread kauśika cittūr via ntg-context
On Sunday, October 24, 2021 7:42:59 AM IST kauśika cittūr wrote:
> Dear list,
> 
> In short, my question is: why does \wordright cause a line-break when the
> line preceding it breaks with hyphenation and does not otherwise? How to
> avoid it (if at all possible)?
> 
> I have this delimitedtext instance called 'amnata' defined as below:
> 
> \definemeasure[amnatamargin][3cm]
> \definedelimitedtext
>   [amnata]
> \setupdelimitedtext
>   [amnata]
>   [
>   left=,
>   right=,
>   leftmargin={\measure{amnatamargin}},
>   rightmargin={\measure{amnatamargin}},
>   ]
> 
> I am using this to quote paragraph(s) of other authors.
> Since, I also want to indicate where the quote is from, I use this as
> follows:
> 
> \startamnata
>   ⋮
> \wordright{author}
> \stopamnata
> 
> so that the author's name appears at the right-edge of the block.
> 
> When the penultimate line inside the block breaks without hyphenation, then
> argument of \wordright is typeset as expected (i.e. in the same line).
> 
> On the other hand, when the penultimate line inside this block breaks with
> hyphenation, the argument of \wordright is pushed to the next line even when
> there is enough space for it on the same line.
> 
> Here is a sample illustrating this:
> 
> \startamnata
> A quote from another author : Suppose that thereisalongwordhere.
> \wordright{– author}
> \stopamnata
> 
> \startamnata
> A quote from another author : Here, the text does not cause
> hyphenation in the first line.
> \wordright{– author}
> \stopamnata
> 
> [I have attached the output here as an image]
> 
> How do I ensure that this does not happen, if that is possible at all? I
> suppose this is expected behaviour but I am not able to understand why.
> 
> Thanks,
> kauśika

Dear list,

Although, not a fix for the issue, here is a workaround that allowed me to 
achieve what I wanted:

\definedescription[amnata]
\setupdescription[amnata]
  [closesymbol={​},
   closecommand=\wordright,
   before=\startamnatanarrower,
   after=\stopamnatanarrower]

\startamnata
A quote from another author : Suppose that thereisalongwordhere.
\wordright{– author}
\stopamnata

With this the argument of \wordright appears correctly at the right-edge of 
the block. Note that this does not work (as expected) when closesymbol is not 
set (or, is empty). Therefore, here I have set closesymbol={​​U+200B}, which 
is the zero width space.

Thanks,
kauśika


___
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] some ConTeXt distribution's Fonts don't work

2021-10-24 Thread Luis Montgomery via ntg-context
Great job, Wolfganag

Those scripts were missing in

 $HOME/context/tex/ texmf-context/tex/context/fonts/mkiv/


Now everything is fine

L. Montgomery


El dom, 24 oct 2021 a las 10:23, Wolfgang Schuster (<
wolfgang.schuster.li...@gmail.com>) escribió:

> Luis Montgomery via ntg-context schrieb am 22.10.2021 um 21:13:
> > Apparently, almfixed and kurier fonts no longer load as before.
>
> The ALM Fixed font can't be used because there is no typescript file
> to use it in a document.
>
> The Kurier fonts have an existing typescript file but it can't be used
> because a) it refers to the font files in Type1 format which are shipped
> with ConTeXt but the metric files (*.afm) are missing and b) there are
> no typeface definition (\definetypeface) to load the typescripts.
>
> Attached are new typescript files for ALM Fixed and Kurier, you can use
> both of them to test if everything works as expected.
>
> Wolfgang
>
>
>
___
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] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
On 24 Oct 2021, at 16:38, Wolfgang Schuster  
wrote:
> 
> Gerben Wierda via ntg-context schrieb am 24.10.2021 um 15:42:
>> My double-sided layout starts each chapter on a right page with a quote on 
>> the opposing left page. I’d like to move the page number of that right page 
>> to the footer, but haven’t been able to find how to do this is the 
>> documentation. How can I do this?
> 
> \definetext
>   [chapterfooter] % name
>   [footer]% vertical location
>   [pagenumber]% content
> 
> \setuphead
>   [chapter]
>   [header=empty,
>footer=chapterfooter]
> 
> \starttext
> 
> \dorecurse{4}
>   {\expanded{\chapter{Chapter \recurselevel}}
>\dorecurse{10}{\samplefile{lorem}}}
> 
> \stoptext
> 
> Wolfgang

Yes, this works in a simple setup. But it doesn’t work in mine with my 
LHS-quote/RHS-chapterstart setup using before and after on setup head.

Try this:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]

\definetext
  [chapterfooter] % name
  [footer]% vertical location
  [pagenumber]% content

\setuphead[chapter]
  [page=,
   header=empty,
   footer=chpaterfooter,
   sectionsegments=chapter,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\blank[force,2*big]
\stopsetups

\startsetups chapter:after
\blank[3*big]
\stopsetups

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}

\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer

\chapter[h:one]{One}
\ChapterAbstract{This is chapter abstract 1.}

\dorecurse{5}{\input tufte \par \input knuth}

\chapter[h:two]{Two}
\ChapterAbstract{This is chapter abstract 2.}

\dorecurse{5}{\input tufte \par \input knuth}

\stoptext



Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 


___
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] Question on style-italic vs style=italicface

2021-10-24 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 02.10.2021 um 11:46:

Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context 
:

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:

Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it or \bi as 
a result. Look at the definition. If the current fontalternative is it \it it 
will give a \tf result. It is sensitive to the current state in a similar way 
that \em and \emph are, but it will always give an italic or roman result.


If we leave the comparisons between \em and \italicface aside and talk only 
about the results from \italicface we have a common ground.

You're right the results from \italicface aren't predictable and a fix is 
needed but the same applies also to \boldface, \slantedface and \typeface.

Attached is the output from a modified version of the styling command (the \sc 
column is the fallback style). \swapface is unchanged and I'm not sure about 
its output because it uses the \em code for italic and slanted which means 
\setupbodyfontenvironment[default][em=blue] affects also the \swapface results.

Thank you very much for attacking and clarifying this! It confused me from the 
beginning...


Just a short update on the topic. The following four font switches 
result now in predictable output (e.g. \typeface produces always upright 
text which is either \tf or \bf):


    - \typeface
    - \italicface
    - \slantedface
    - \boldface

Wolfgang

___
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] some ConTeXt distribution's Fonts don't work

2021-10-24 Thread Wolfgang Schuster via ntg-context

Luis Montgomery via ntg-context schrieb am 22.10.2021 um 21:13:

Apparently, almfixed and kurier fonts no longer load as before.


The ALM Fixed font can't be used because there is no typescript file
to use it in a document.

The Kurier fonts have an existing typescript file but it can't be used 
because a) it refers to the font files in Type1 format which are shipped 
with ConTeXt but the metric files (*.afm) are missing and b) there are 
no typeface definition (\definetypeface) to load the typescripts.


Attached are new typescript files for ALM Fixed and Kurier, you can use 
both of them to test if everything works as expected.


Wolfgang


%D \module
%D   [   file=type-imp-kurier,
%Dversion=2021.10.24,
%D  title=\CONTEXT\ Typescript Macros,
%D   subtitle=Kurier,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\starttypescriptcollection [kurier]

\starttypescript [\s!sans] [kurier-light,kurier,kurier-medium]
\definefontsynonym [Kurier-Light][\s!file:kurierlightregular]  
[\s!features=\s!default]
\definefontsynonym [Kurier-LightItalic]  [\s!file:kurierlightitalic]   
[\s!features=\s!default]
\definefontsynonym [Kurier-Regular]  [\s!file:kurierregular]   
[\s!features=\s!default]
\definefontsynonym [Kurier-Italic]   [\s!file:kurieritalic]
[\s!features=\s!default]
\definefontsynonym [Kurier-Medium]   [\s!file:kuriermediumregular] 
[\s!features=\s!default]
\definefontsynonym [Kurier-MediumItalic] [\s!file:kuriermediumitalic]  
[\s!features=\s!default]
\definefontsynonym [Kurier-Bold] [\s!file:kurierbold]  
[\s!features=\s!default]
\definefontsynonym [Kurier-BoldItalic]   [\s!file:kurierbolditalic]
[\s!features=\s!default]
\definefontsynonym [Kurier-Heavy][\s!file:kurierheavyregular]  
[\s!features=\s!default]
\definefontsynonym [Kurier-HeavyItalic]  [\s!file:kurierheavyitalic]   
[\s!features=\s!default]
\stoptypescript

\starttypescript [\s!sans] [kurier-lightcond,kurier-cond,kurier-mediumcond]
\definefontsynonym [Kurier-CondLight]
[\s!file:kuriercondlightregular]  [\s!features=\s!default]
\definefontsynonym [Kurier-CondLightItalic]  
[\s!file:kuriercondlightitalic]   [\s!features=\s!default]
\definefontsynonym [Kurier-CondRegular]  
[\s!file:kuriercondregular]   [\s!features=\s!default]
\definefontsynonym [Kurier-CondItalic]   [\s!file:kurierconditalic] 
   [\s!features=\s!default]
\definefontsynonym [Kurier-CondMedium]   
[\s!file:kuriercondmediumregular] [\s!features=\s!default]
\definefontsynonym [Kurier-CondMediumItalic] 
[\s!file:kuriercondmediumitalic]  [\s!features=\s!default]
\definefontsynonym [Kurier-CondBold] [\s!file:kuriercondbold]   
   [\s!features=\s!default]
\definefontsynonym [Kurier-CondBoldItalic]   
[\s!file:kuriercondbolditalic][\s!features=\s!default]
\definefontsynonym [Kurier-CondHeavy]
[\s!file:kuriercondheavyregular]  [\s!features=\s!default]
\definefontsynonym [Kurier-CondHeavyItalic]  
[\s!file:kuriercondheavyitalic]   [\s!features=\s!default]
\stoptypescript

\starttypescript [\s!sans] [kurier-light]
\setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Sans]   [Kurier-Light]
\definefontsynonym [\s!SansItalic] [Kurier-LightItalic]
\definefontsynonym [\s!SansBold]   [Kurier-Medium]
\definefontsynonym [\s!SansBoldItalic] [Kurier-MediumItalic]
\stoptypescript

\starttypescript [\s!sans] [kurier]
\setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Sans]   [Kurier-Regular]
\definefontsynonym [\s!SansItalic] [Kurier-Italic]
\definefontsynonym [\s!SansBold]   [Kurier-Bold]
\definefontsynonym [\s!SansBoldItalic] [Kurier-BoldItalic]
\stoptypescript

\starttypescript [\s!sans] [kurier-medium]
\setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Sans]   [Kurier-Medium]
\definefontsynonym [\s!SansItalic] [Kurier-MediumItalic]
\definefontsynonym [\s!SansBold]   [Kurier-Heavy]
\definefontsynonym [\s!SansBoldItalic] [Kurier-HeavyItalic]
\stoptypescript

\starttypescript [\s!sans] [kurier-lightcond]
\setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Sans]   [Kurier-CondLight]
\definefontsynonym [\s!SansItalic] [Kurier-CondLightItalic]
\definefontsynonym [\s!SansBold]   [Kurier-CondMedium]
\definefontsynonym [\s!SansBoldItalic] [Kurier-CondMediumItalic]
\stoptypescript

\starttypescript 

Re: [NTG-context] resetting setuphyphenatedurl...

2021-10-24 Thread Rik Kabel via ntg-context


On 10/24/2021 06:37, Hans Hagen wrote:

On 10/23/2021 4:53 AM, Rik Kabel via ntg-context wrote:

Hello List,

As demonstrated in the following example, it does not seem possible 
to reset \setuphyphenatedurlbefore, after, or normal once changed 
from default. That is, the first change appears to be global and 
unchangeable.


If this is the case, can someone suggest a workaround?


in lmtx i can add support for grouping (in mkiv it would be a fragile 
hack; these settings happen in lua not in tex)


Hans

Grouping would be great, since one does not have to keep track of the 
setting outside the immediate scope. However, since this is a setup 
function (per the name), perhaps a setup reset function would be an 
option. Could that be done in MkIV as well? In either case, the user 
must be able to assign new values to all three.


Otherwise, an LMTX-only function is preferable to not having a way to do 
it at all.


--
Rik

___
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] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 24.10.2021 um 15:42:
My double-sided layout starts each chapter on a right page with a 
quote on the opposing left page. I’d like to move the page number of 
that right page to the footer, but haven’t been able to find how to do 
this is the documentation. How can I do this?


\definetext
  [chapterfooter] % name
  [footer]    % vertical location
  [pagenumber]    % content

\setuphead
  [chapter]
  [header=empty,
   footer=chapterfooter]

\starttext

\dorecurse{4}
  {\expanded{\chapter{Chapter \recurselevel}}
   \dorecurse{10}{\samplefile{lorem}}}

\stoptext

Wolfgang

___
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] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
I attempted this:

\page[right]
\setupheadertexts[]
\setupfootertexts[pagenumber]
\setupfooter[text][after={\setupfootertexts[]\setupheadertexts[pagenumber]}]

but that does not work. This definitely moves the page numbers to the footer.

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

> On 24 Oct 2021, at 15:42, Gerben Wierda via ntg-context  
> wrote:
> 
> My double-sided layout starts each chapter on a right page with a quote on 
> the opposing left page. I’d like to move the page number of that right page 
> to the footer, but haven’t been able to find how to do this is the 
> documentation. How can I do this?
> 
> Example:
> 
> \setuplayout[location=doublesided]
> \setuppagenumbering[alternative=doublesided]
> \setuphead[chapter]
>   [page=,
>sectionsegments=chapter,
>before={\setups[chapter:before]},
>after={\setups[chapter:after]}]
> 
> \startsetups chapter:before
> \page[left]
> \noheaderandfooterlines
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \em \getbuffer[chapter:quote]
>   \stopnarrower
> \stopalignment
> \resetsetups[quote:text]
> \page[right]
> %\noheaderandfooterlines % I want the enumber in the footer here
> \blank[force,2*big]
> \stopsetups
> 
> \startsetups chapter:after
> \blank[3*big]
> \stopsetups
> 
> \definelist[chaptertext]
> \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
> \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}
> 
> \starttext
> \startbuffer [chapter:quote]
> If you think good architecture is expensive, try bad architecture\crlf
> {\tf Brian Foote and Joseph Yoder}
> \stopbuffer
> 
> \chapter[h:one]{One}
> \ChapterAbstract{This is chapter abstract 1.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \chapter[h:two]{Two}
> \ChapterAbstract{This is chapter abstract 2.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \stoptext
> 
> Gerben Wierda (LinkedIn )
> R Enterprise Architecture  (main site)
> Book: Chess and the Art of Enterprise Architecture 
> 
> Book: Mastering ArchiMate 
> 
> ___
> 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
> ___

___
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] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
My double-sided layout starts each chapter on a right page with a quote on the 
opposing left page. I’d like to move the page number of that right page to the 
footer, but haven’t been able to find how to do this is the documentation. How 
can I do this?

Example:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]
\setuphead[chapter]
  [page=,
   sectionsegments=chapter,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
%\noheaderandfooterlines % I want the enumber in the footer here
\blank[force,2*big]
\stopsetups

\startsetups chapter:after
\blank[3*big]
\stopsetups

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}

\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer

\chapter[h:one]{One}
\ChapterAbstract{This is chapter abstract 1.}

\dorecurse{5}{\input tufte \par \input knuth}

\chapter[h:two]{Two}
\ChapterAbstract{This is chapter abstract 2.}

\dorecurse{5}{\input tufte \par \input knuth}

\stoptext

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

___
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] Line breaks, \wordright and hyphenation

2021-10-24 Thread kauśika cittūr via ntg-context
On Sunday, October 24, 2021 5:31:32 PM IST Hans Hagen wrote:
> On 10/24/2021 1:08 PM, Benjamin Buchmuller via ntg-context wrote:
> > Maybe
> > 
> > \hfill author
> 
> It's anyway nicer to use
> 
> % \definenarrower
> %   [amnata]
> %   [left=\measure{amnatamargin},
> %right=\measure{amnatamargin},
> %default={left,right}]
> 
> \definenarrower
>[amnata]
>[middle=\measure{amnatamargin}]
> 
> but then them, the fact that we get something hyphenated interferes ..
> tricky

Dear Benjamin and Hans,

Thanks for your responses.

I did not mention this in my initial question but I am not exactly doing 
'author' in the last line. Instead I usually do
\cite[alternative=authoryears,righttext={Ch. 12}][author1992].
That is, almost always, I need to refer to a specific chapter/page number in 
the work. The issue with this and \hfill is that the 'righttext' part gets 
nudged into the next line.

Sreeram


___
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] Line breaks, \wordright and hyphenation

2021-10-24 Thread Hans Hagen via ntg-context

On 10/24/2021 1:08 PM, Benjamin Buchmuller via ntg-context wrote:

Maybe

\hfill author


It's anyway nicer to use

% \definenarrower
%   [amnata]
%   [left=\measure{amnatamargin},
%right=\measure{amnatamargin},
%default={left,right}]

\definenarrower
  [amnata]
  [middle=\measure{amnatamargin}]

but then them, the fact that we get something hyphenated interferes .. 
tricky



On 24. Oct 2021, at 04:12, kauśika cittūr  wrote:

Dear list,

In short, my question is: why does \wordright cause a line-break when the line
preceding it breaks with hyphenation and does not otherwise? How to avoid it
(if at all possible)?

I have this delimitedtext instance called 'amnata' defined as below:

\definemeasure[amnatamargin][3cm]
\definedelimitedtext
  [amnata]
\setupdelimitedtext
  [amnata]
  [
left=,
right=,
leftmargin={\measure{amnatamargin}},
rightmargin={\measure{amnatamargin}},
  ]

I am using this to quote paragraph(s) of other authors.
Since, I also want to indicate where the quote is from, I use this as follows:

\startamnata
  ⋮
\wordright{author}
\stopamnata

so that the author's name appears at the right-edge of the block.

When the penultimate line inside the block breaks without hyphenation, then
argument of \wordright is typeset as expected (i.e. in the same line).

On the other hand, when the penultimate line inside this block breaks with
hyphenation, the argument of \wordright is pushed to the next line even when
there is enough space for it on the same line.

Here is a sample illustrating this:

\startamnata
A quote from another author : Suppose that thereisalongwordhere.
\wordright{– author}
\stopamnata

\startamnata
A quote from another author : Here, the text does not cause
hyphenation in the first line.
\wordright{– author}
\stopamnata

[I have attached the output here as an image]

How do I ensure that this does not happen, if that is possible at all? I
suppose this is expected behaviour but I am not able to understand why.

Thanks,
kauśika


___
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
___




--

-
  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
___


Re: [NTG-context] Line breaks, \wordright and hyphenation

2021-10-24 Thread Benjamin Buchmuller via ntg-context
Maybe 

\hfill author

?

> On 24. Oct 2021, at 04:12, kauśika cittūr  wrote:
> 
> Dear list,
> 
> In short, my question is: why does \wordright cause a line-break when the 
> line 
> preceding it breaks with hyphenation and does not otherwise? How to avoid it 
> (if at all possible)?
> 
> I have this delimitedtext instance called 'amnata' defined as below:
> 
> \definemeasure[amnatamargin][3cm]
> \definedelimitedtext
>  [amnata]
> \setupdelimitedtext
>  [amnata]
>  [
>left=,
>right=,
>leftmargin={\measure{amnatamargin}},
>rightmargin={\measure{amnatamargin}},
>  ]
> 
> I am using this to quote paragraph(s) of other authors. 
> Since, I also want to indicate where the quote is from, I use this as follows:
> 
> \startamnata
>  ⋮
> \wordright{author}
> \stopamnata
> 
> so that the author's name appears at the right-edge of the block.
> 
> When the penultimate line inside the block breaks without hyphenation, then 
> argument of \wordright is typeset as expected (i.e. in the same line).
> 
> On the other hand, when the penultimate line inside this block breaks with 
> hyphenation, the argument of \wordright is pushed to the next line even when 
> there is enough space for it on the same line.
> 
> Here is a sample illustrating this:
> 
> \startamnata
> A quote from another author : Suppose that thereisalongwordhere.
> \wordright{– author}
> \stopamnata
> 
> \startamnata
> A quote from another author : Here, the text does not cause 
> hyphenation in the first line.
> \wordright{– author}
> \stopamnata
> 
> [I have attached the output here as an image] 
> 
> How do I ensure that this does not happen, if that is possible at all? I 
> suppose this is expected behaviour but I am not able to understand why.
> 
> Thanks,
> kauśika
> 
___
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] resetting setuphyphenatedurl...

2021-10-24 Thread Hans Hagen via ntg-context

On 10/23/2021 4:53 AM, Rik Kabel via ntg-context wrote:

Hello List,

As demonstrated in the following example, it does not seem possible to 
reset \setuphyphenatedurlbefore, after, or normal once changed from 
default. That is, the first change appears to be global and unchangeable.


If this is the case, can someone suggest a workaround?


in lmtx i can add support for grouping (in mkiv it would be a fragile 
hack; these settings happen in lua not in tex)


Hans

-
  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
___


Re: [NTG-context] The certificate of the mailman site has expired

2021-10-24 Thread Gerben Wierda via ntg-context
Ah, this is that one.

Apple is more strict security-wise and checks the entire chain. I’ve read about 
more issues that stem from the expiry of that intermediate cert.

G

Sent from my iPhone

> On 24 Oct 2021, at 05:32, Ramkumar KB  wrote:
> 
> 
> Taco,
> 
> Chrome browser says R3 (looks like an intermediate cert in the certificate 
> chain) has expired.
> 
> See attached screenshot.
> 
> Thank you,
> 
> Best Regards,
> Ramkumar
> 
>> On Fri, Oct 22, 2021 at 4:11 PM Gerben Wierda via ntg-context 
>>  wrote:
>> I got a warning about the certification elast night when I clicked the link 
>> in the mail footer. At that moment it was expired.
>> 
>> It is OK now, but will expire Oct 30.
>> 
>> Gerben Wierda (LinkedIn)
>> R Enterprise Architecture (main site)
>> Book: Chess and the Art of Enterprise Architecture
>> Book: Mastering ArchiMate
>> 
>>> On 22 Oct 2021, at 02:21, Gerben Wierda via ntg-context 
>>>  wrote:
>>> 
>>> Just to let you know: The certificate of the mailman site has expired
>>> 
>>> (This email is also a test for me, as I had some troubles locally where 
>>> mail was blocked so I want to see that it still arrives. Please ignore).
>>> 
>>> Gerben Wierda (LinkedIn)
>>> R Enterprise Architecture (main site)
>>> Book: Chess and the Art of Enterprise Architecture
>>> Book: Mastering ArchiMate
>>> 
>>> ___
>>> 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
>>> ___
>> 
>> ___
>> 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
>> ___
> 
> 
___
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] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
Worth just quickly noting that the default for \part is placehead=no. You
need to explicitly set placehead=yes for it to actually output the heading.
See https://wiki.contextgarden.net/Command/_section#Parts

On Sun, 24 Oct 2021 at 00:02, Bruce Horrocks via ntg-context <
ntg-context@ntg.nl> wrote:

>
>
> > On 23 Oct 2021, at 14:51, Gerben Wierda via ntg-context <
> ntg-context@ntg.nl> wrote:
> >
> >
> >> On 23 Oct 2021, at 15:34, Wolfgang Schuster <
> wolfgang.schuster.li...@gmail.com> wrote:
> >>
> >>  Gerben Wierda via ntg-context schrieb am 23.10.2021 um 15:20:
> >>> I’d like a book with chapters to have sections/parts, e.g. something
> that groups a few \chapter elements together. Is there support for this in
> LMTX? I.e. in such a way that it also shows up in the table of contents?
> >>
> >> You can use \part.
> >
> > Yes. Thanks. But that leads to additional questions:
> > - how do I get the parts to show up in the table of contents? Because I
> tried \part but it did not show up
> > - how do I let chapters number on (not restart in each part, and not a
> x.y number but simply ‘2. Chapter’
> > - what is a good way to create actual RHS ‘title’ pages for each chapter?
> > - how do I get parts to number with Roman numerals?
>
> I define my own versions of \part and \chapter (called \Part and \Chapter)
> and specify a different display style using setups. The definition for
> \Part is below, \Chapter is very similar so I haven't included it.
>
> %% Double rule above part title
> \startsetups PartSetup
>  \setupheader[state=empty]
>  \par
>  \startMPcode
>draw (0,2mm)--(TextWidth,2mm) withpen pensquare scaled 1.5mm ;
>draw (0,0)--(TextWidth,0) withpen pensquare scaled 1.0mm ;
>clip currentpicture to unitsquare yscaled 1cm xscaled TextWidth
>  \stopMPcode
> \stopsetups
>
> \define[2]\placePartTitle{\midaligned{#2}}
> %% The above line is what I use. You want Roman numerals so maybe adapt it
> to:
> %% \define[2]\placePartTitle{\midaligned{\convertnumber[Romannumerals][#1]
> #2}}
>
> \definehead [Part] [part]
> \setuphead[Part]
>  [ page=right,
>placehead=yes,
>style={\stylePartTitle}, %% this is just from a \definefont
>before={\setups{PartSetup}},
>command=\placePartTitle,
>  ]
>
> With \setuplayout[location=doublesided] this then comes out on the RHS.
>
> For the ToC, I use:
>
> \setuplist [alternative=b]
> \setuplist [Part]
>  [ headnumber=no,
>margin=0cm,
>width=0cm,
>distance=0cm,
>style=\tocStylePartTitle,
>  ]
> \setuplist [Chapter]
>  [ headnumber=no,
>margin=1em,
>width=0cm,
>distance=0cm,
>  ]
> \setupcombinedlist [content] [list={Part,Chapter}]
>
> then \placecontent prints the chapter titles indented under each part.
>
> HTH
> —
> Bruce Horrocks
> Hampshire, UK
>
>
>
> —
> Bruce Horrocks
> Hampshire, UK
>
>
> ___
> 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
>
> ___
>


-- 
Duncan Hothersall, Operations Director
CAPDM Limited - Online Program Enablers
0131 677 2400  www.capdm.com
Registered in Scotland: SC168970   VAT: 682 846 983
Registered address: 20 Forth Street Edinburgh EH1 3LH UK


Capture, author, publish, deliver and manage your learning materials.


*Sign up to the CAPDM newsletter here *
___
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] Line breaks, \wordright and hyphenation

2021-10-24 Thread kauśika cittūr via ntg-context
On Sunday, October 24, 2021 7:42:59 AM IST kauśika cittūr wrote:
> Dear list,
> 
> In short, my question is: why does \wordright cause a line-break when the
> line preceding it breaks with hyphenation and does not otherwise? How to
> avoid it (if at all possible)?
> 
> I have this delimitedtext instance called 'amnata' defined as below:
> 
> \definemeasure[amnatamargin][3cm]
> \definedelimitedtext
>   [amnata]
> \setupdelimitedtext
>   [amnata]
>   [
>   left=,
>   right=,
>   leftmargin={\measure{amnatamargin}},
>   rightmargin={\measure{amnatamargin}},
>   ]
> 
> I am using this to quote paragraph(s) of other authors.
> Since, I also want to indicate where the quote is from, I use this as
> follows:
> 
> \startamnata
>   ⋮
> \wordright{author}
> \stopamnata
> 
> so that the author's name appears at the right-edge of the block.
> 
> When the penultimate line inside the block breaks without hyphenation, then
> argument of \wordright is typeset as expected (i.e. in the same line).
> 
> On the other hand, when the penultimate line inside this block breaks with
> hyphenation, the argument of \wordright is pushed to the next line even when
> there is enough space for it on the same line.
> 
> Here is a sample illustrating this:
> 
> \startamnata
> A quote from another author : Suppose that thereisalongwordhere.
> \wordright{– author}
> \stopamnata
> 
> \startamnata
> A quote from another author : Here, the text does not cause
> hyphenation in the first line.
> \wordright{– author}
> \stopamnata
> 
> [I have attached the output here as an image]
> 
> How do I ensure that this does not happen, if that is possible at all? I
> suppose this is expected behaviour but I am not able to understand why.
> 
> Thanks,
> kauśika

Just noticed that the attachment image does not seem to have been sent.
Resending …

kauśika
___
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
___