Re: [NTG-context] Strange behavior with Enumerations

2017-05-10 Thread Fabrice Couvreur
Hello,
I just updated Context Standalone, but the problem still exists.
With Texlive Context, it works.
Fabrice

Le 8 mai 2017 à 12:27, Fabrice Couvreur  a
écrit :

> Hello,
> The alignment of the third level is incorrect, why ?
>
> ##
> \starttext
>
> \startitemize[n][stopper={.},style=bold,color=darkred]
>
>\item  Soit \math{f} la fonction définie pour tout réel \m{x} différent
> de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
> représentative dans un repère du plan.
>   \startitemize[a][stopper={.},style=bold,color=darkred]
>\item L'image de 3 par la fonction \math{f} est :
>
> \startitemize[i,columns,joinedup,pack,1*broad,three]
>  [stopper={.},style=bold,color=darkred,grid=line]
>
> \item \math{\dfrac{14}{3}}
>
> \item \math{\dfrac{5}{4}}
>
> \item \math{2}
>
> \stopitemize
>   \stopitemize
> \stopitemize
>
>
> \stoptext
>
> ###
>
___
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] \overline and \overbar

2017-05-10 Thread Jeong Dal
Dear Henri,

Thank you for your reply.
I used to use ‘\overline’ in LaTeX as shown in many texts, but it is time to 
change.

Thanks again.

Best regards,

Dalyoung
___
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] indenting in framedtext

2017-05-10 Thread Mikael P. Sundqvist
On Wed, May 10, 2017 at 2:40 PM, Hans Hagen  wrote:
> On 5/10/2017 1:39 PM, Mikael P. Sundqvist wrote:
>>
>> Dear list,
>>
>> I'm trying to have indentation inside a framed text, but I do not
>> succeed. Test file below, and result after compiling with latest
>> standalone. Is this the intended behavior?
>>
>> Best regards, Mikael
>>
>> \setupindenting[yes,medium]
>>
>> \defineframedtext
>> [MyFrame]
>> [
>> frame=on,
>> width=broad,
>> indenting=yes,
>> ]
>>
>>
>> \starttext
>>
>> Indenting works here: \input knuth
>>
>> \startMyFrame
>> But indenting does not work here: \input knuth
>> \stopMyFrame
>>
>> \stoptext
>
>
> \defineframedtext
> [MyFrame]
> [frame=on,
>  width=broad,
>  indenting={yes,medium},
> ]
>
>
>
> -
>   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
> ___

Ah, many thanks!

I don't know why I thought it would suffice with "yes" at this point
when it does not in the \setupindenting command.

I think I have had "indenting=yes" in my documents for years without
really bothering to ask why it has not worked...

Thanks again.

/Mikael
___
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] indenting in framedtext

2017-05-10 Thread Hans Hagen

On 5/10/2017 1:39 PM, Mikael P. Sundqvist wrote:

Dear list,

I'm trying to have indentation inside a framed text, but I do not
succeed. Test file below, and result after compiling with latest
standalone. Is this the intended behavior?

Best regards, Mikael

\setupindenting[yes,medium]

\defineframedtext
[MyFrame]
[
frame=on,
width=broad,
indenting=yes,
]


\starttext

Indenting works here: \input knuth

\startMyFrame
But indenting does not work here: \input knuth
\stopMyFrame

\stoptext


\defineframedtext
[MyFrame]
[frame=on,
 width=broad,
 indenting={yes,medium},
]



-
  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] definefallbackfamily and utfchar, something changed?

2017-05-10 Thread Hans Hagen
Wolfgang and I are looking into it ... the issue was introduced when 
support for designsizes for fallbacks was introduced


Hans

On 5/10/2017 11:33 AM, Mikael P. Sundqvist wrote:

Hi,

the Lucida font does not have all variants of \heartsuit,
\varheartsuit and so on (see for example
http://mirror.unl.edu/ctan/macros/latex/contrib/unicode-math/unimath-symbols.pdf
for their unicode slots).

For this reason I borrow these symbols from Xits. The code below used
to work, but not anymore (I updated to latest standalone today, not
sure when it stopped work). I don't get Xits symbols at all, but only
a filled diamondsuit from vardiamondsuit. That one belongs to the
Lucida font.

Any ideas on how to fix this issue?

Best regards, Mikael

PS: I'm sorry for using a commercial font in an example. If requested,
I gladly change that.

%% Test file

\definefallbackfamily [lucidaopentype][mm][Xits
Math][range={2660,2661,2662,2663,2664,2665,2666,2667}]

\definefontfamily[lucidaopentype][rm][Lucida Bright OT]
\definefontfamily[lucidaopentype][ss][Lucida Sans OT]
\definefontfamily[lucidaopentype][tt][Lucida Sans Typewriter OT]
\definefontfamily[lucidaopentype][mm][Lucida Bright Math OT]

\setupbodyfont[lucidaopentype]

\def\diamondsuit{\utfchar{"02662}}
\def\varspadesuit{\utfchar{"02664}}
\def\varheartsuit{\utfchar{"02665}}
\def\vardiamondsuit{\utfchar{"02666}}
\def\varclubsuit{\utfchar{"02667}}


\starttext

Test: $\vardiamondsuit$ and $\diamondsuit$

\stoptext



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

[NTG-context] indenting in framedtext

2017-05-10 Thread Mikael P. Sundqvist
Dear list,

I'm trying to have indentation inside a framed text, but I do not
succeed. Test file below, and result after compiling with latest
standalone. Is this the intended behavior?

Best regards, Mikael

\setupindenting[yes,medium]

\defineframedtext
[MyFrame]
[
frame=on,
width=broad,
indenting=yes,
]


\starttext

Indenting works here: \input knuth

\startMyFrame
But indenting does not work here: \input knuth
\stopMyFrame

\stoptext


ctx-example18.pdf
Description: Adobe PDF document
___
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] \overline and \overbar

2017-05-10 Thread Henri Menke
Neither is correct in a mathematics context.  Use \bar.

On 05/10/2017 05:54 PM, Jeong Dal wrote:
> Dear all,
> 
> In the following sample, the outputs of \overline and of \overbar are 
> slightly different.
> I used \overline in LaTeX. 
> But  it takes more vertical space that cause the alignment trouble while 
> using \overbar has no problem at all.
> Is it normal behavior? 
> 
> Thank you.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> \starttext
> \startitemize[n]
> \item Which is true?
> 
>   \startitemize[n, packed, columns, two][stopper=,left=(, right=)]
>   \item $\overline{A} = A \cup A^\circ$
>   \item $\overline{A\cup B} = \overline{A} \cup \overline{B}$
>   \item If $A \subset B$ then $\overline{B} \subset \overline{A}$
>   \item $A\cup A'$ is an open set.
>   \stopitemize
>   
> \item Which is true?
> 
>   \startitemize[n, packed, columns, two][stopper=,left=(, right=)]
>   \item $\overbar{A} = A \cup A^\circ$
>   \item If $A \subset B$ then $\overbar{B} \subset \overbar{A}$
>   \item $\overbar{A\cup B} = \overbar{A} \cup \overbar{B}$
>   \item $A\cup A'$ is an open set.
>   \stopitemize
> 
> \stopitemize
> 
> \stoptext
> 
> 
>> 2017. 5. 9. 오후 7:00, ntg-context-requ...@ntg.nl 작성:
>>
>> Send ntg-context mailing list submissions to
>>  ntg-context@ntg.nl
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://mailman.ntg.nl/mailman/listinfo/ntg-context
>> or, via email, send a message with subject or body 'help' to
>>  ntg-context-requ...@ntg.nl
>>
>> You can reach the person managing the list at
>>  ntg-context-ow...@ntg.nl
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ntg-context digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: BUG: % is comment in btx fields (Henri Menke)
>>   2. Re: BUG: % is comment in btx fields (Rik Kabel)
>>   3. Re: BUG: % is comment in btx fields (Ulrike Fischer)
>>
>>
>> --
>>
>> Message: 1
>> Date: Tue, 09 May 2017 13:40:55 +1200
>> From: Henri Menke 
>> To: ntg-context@ntg.nl
>> Subject: Re: [NTG-context] BUG: % is comment in btx fields
>> Message-ID: <1494294055.19890.36.ca...@gmail.com>
>> Content-Type: text/plain; charset="UTF-8"
>>
>> On Mon, 2017-05-08 at 20:15 -0400, Rik Kabel wrote:
>>> On 2017-05-08 17:44, Henri Menke wrote:
 Dear list,

 The percent character in btx field is taken as a comment characters
 which leads to the rest of the field being discarded.  In the MWE
 below, the URL is cut off at the % sign and everything after it is
 lost.

 Cheers, Henri


 ---


 \startbuffer[references]
 @misc{kraft,
   author = "Kraft, Nathan",
   title = "Mr Kraft's Virtual Filing Cabinet",
   year = "2015",
   url = "http://mrkraft.wikispaces.com/Mr+Kraft%27s+Virtual+Filing+
 Cabi
 net"
 }
 \stopbuffer

 \usebtxdataset[references.buffer]
 \usebtxdefinitions[apa]

 \starttext

 \nocite[kraft]
 \placelistofpublications

 \stoptext
>>>  The bibtex entry in this example is provided in a buffer. The buffer
>>> mechanism does not handle characters any differently than other text
>>> in the file, and % in a ConTeXt buffer has to be escaped if it does
>>> not signify a comment.
>>
>> That is simply not true!  Content inside ConTeXt buffers is as verbatim
>> as reading an external file.  Try \typebuffer instead of \getbuffer
>> your example below and observe that the comment sign is perfectly
>> preserved.
>>
>>> If you specify an external (.bib or .bibtex) file to supply the
>>> data,  % does not need to be escaped. So, this part is simple user
>>> error.
>>> (With
>>> \starttext
>>> \startbuffer
>>>   abc%def
>>>
>>>   ghi\%jkl
>>> \stopbuffer
>>> \getbuffer
>>> \stoptext
>>> you do not get %def in the output. Why do you expect different
>>> behavior if the buffer holds a bibtex entry?)
>>>
>>> The way hyphenatedurl handles things may well be worthy of
>>> improvement.
>>>
>>> -- 
>>> 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/nt
>>> g-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> _
>>> __
>>
>>
>> --
>>
>> Message: 2
>> Date: Mon, 8 May 2017 21:48:58 -0400
>> From: Rik Kabel 
>> To: ntg-context@ntg.nl
>> Subject: Re: [NTG-context] BUG: % is comment in btx fields
>> Message-ID: 

[NTG-context] definefallbackfamily and utfchar, something changed?

2017-05-10 Thread Mikael P. Sundqvist
Hi,

the Lucida font does not have all variants of \heartsuit,
\varheartsuit and so on (see for example
http://mirror.unl.edu/ctan/macros/latex/contrib/unicode-math/unimath-symbols.pdf
for their unicode slots).

For this reason I borrow these symbols from Xits. The code below used
to work, but not anymore (I updated to latest standalone today, not
sure when it stopped work). I don't get Xits symbols at all, but only
a filled diamondsuit from vardiamondsuit. That one belongs to the
Lucida font.

Any ideas on how to fix this issue?

Best regards, Mikael

PS: I'm sorry for using a commercial font in an example. If requested,
I gladly change that.

%% Test file

\definefallbackfamily [lucidaopentype][mm][Xits
Math][range={2660,2661,2662,2663,2664,2665,2666,2667}]

\definefontfamily[lucidaopentype][rm][Lucida Bright OT]
\definefontfamily[lucidaopentype][ss][Lucida Sans OT]
\definefontfamily[lucidaopentype][tt][Lucida Sans Typewriter OT]
\definefontfamily[lucidaopentype][mm][Lucida Bright Math OT]

\setupbodyfont[lucidaopentype]

\def\diamondsuit{\utfchar{"02662}}
\def\varspadesuit{\utfchar{"02664}}
\def\varheartsuit{\utfchar{"02665}}
\def\vardiamondsuit{\utfchar{"02666}}
\def\varclubsuit{\utfchar{"02667}}


\starttext

Test: $\vardiamondsuit$ and $\diamondsuit$

\stoptext


ctx-example17.pdf
Description: Adobe PDF document
___
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
___