Re: [NTG-context] about the color of sidebar

2019-02-24 Thread Mohammad Hossein Bateni
I have never used the sidebar mechanism, but there is a "rulecolor" option
in setupsidebar.  Maybe that's what you're looking for.

You can look up the commands and their options in "i-context.pdf" file.

On Sun, Feb 24, 2019 at 6:36 PM Jeong Dal  wrote:

> Dear Hans,
>
> 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성:
>
> On 2/24/2019 12:25 AM, mf wrote:
>
> BTW \startsidebar ... \stopsidebar stopped working too.
>
> i'll upload a fix later today
>
> Hans
>
>
> It is good to know the commnad "\startsidebar … \stopsidebar” because I
> used the same style bar by defining a frame and overlay.
> Here is  a question: Is it possible to change the color of the bar or any
> other options?
> There is no commnad like “\setupsidebar” in the wiki.
>
> Thank you.
>
> 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
>
> ___
>
___
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] about the color of sidebar

2019-02-24 Thread Jeong Dal
Dear Hans,

> 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성:
> 
> On 2/24/2019 12:25 AM, mf wrote:
>> BTW \startsidebar ... \stopsidebar stopped working too.
> i'll upload a fix later today
> 
> Hans

It is good to know the commnad "\startsidebar … \stopsidebar” because I used 
the same style bar by defining a frame and overlay.
Here is  a question: Is it possible to change the color of the bar or any other 
options?
There is no commnad like “\setupsidebar” in the wiki.

Thank you.

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] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-24 Thread Jeong Dal
Dear Rudolf,


> 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성:
> 
> If you convert your sp-sizes into pt-sizes (1pt = 65536sp) you will get:
> (45126287sp,31048991sp) = (688.5725pt,473.7700pt)
> 
> What do you think, are these pt-values ok to you? In my opinion they seem to 
> be too
> small. How are they calculated?

I know 72pt per 1 incn, but don’t know well about sp and sp to pt conversion.
I think that someone in this list will answer to you soon.

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] markdown module vs pandoc

2019-02-24 Thread Saša Janiška
Pablo Rodriguez  writes:

> the code in my private repository is unnecessarily complex for too
> narrow cases.

OK.

>
> I think that the most valuable feature of environment itself (the file
> 'pandoc-xhtml.tex') is the practical introduction to “Dealing with XML
> in ConTeXt” (http://pragma-ade.com/general/manuals/xml-mkiv.pdf).

Thanks a lot for that url!!

> ConTeXt only requires XML source as input to typeset it.

That's great indeed. I have tried to typeset org-mode manual with your
environment and it worked great (~500p). :-)

> The published code is fine for what you want. The latest version would
> be misleading. It is crappy in many aspects (even for myself).

Good, good...

> ConTeXt deals with XML natively.

Yeah, next steps are to learn more ConTeXt and to study that manual.


Sincerely,
Gour

-- 
Not by merely abstaining from work can one achieve freedom
from reaction, nor by renunciation alone can one attain perfection.

___
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] t-downsample.lua

2019-02-24 Thread Peter Münster
On Sun, Feb 17 2019, Hans Hagen wrote:

>> +if width then
>> +hash = hash .. "[w:" .. width .. "]"
>> +end
>> +if height then
>> +hash = hash .. "[h:" .. height .. "]"
>> +end
>>
> hm that needs a bit of thinking because here we have cases where we downsample
> from say 600 to 150 dpi but then use that same one for all kind of sizes (and
> then a different wd/ht should not trigger an extra downsample)

Ok. Perhaps with a configuration option? Like "conversion-if-new-dimens=yes/no"?

-- 
   Peter
___
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] \setupmathematics with stylealternative not working

2019-02-24 Thread Henri Menke
On 2/24/19 10:23 PM, Mikael P. Sundqvist wrote:
> On Sat, Feb 23, 2019 at 8:17 AM Mikael P. Sundqvist  wrote:
>>
>> On Fri, Feb 22, 2019 at 7:25 PM Hans Hagen  wrote:
>> >
>> > On 2/22/2019 9:24 AM, Henri Menke wrote:
>> > > I can confirm.  My workaround which predates the stylealternative
>> > > mechanism also stopped working, so there must be an issue on the level
>> > > of font feature selection.
>> > >
>> > > \definefontfeature [math-text] [math-text] [ss04=yes]
>> > > \definefontfeature [math-script]   [math-script]   [ss04=yes]
>> > > \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes]
>> > > \setupbodyfont[lucidaot]
>> > > \starttext
>> > > \startTEXpage[offset=3bp]
>> > > $\mathcal A$
>> > > \stopTEXpage
>> > > \stoptext
>> > that is a nasty one ... in font-fil.mkvi : we cannot use an edef as that
>> > makes features get lost
>> >
>> > \def\font_basics_get_font_parameter_nop#key=#value,%
>> >{\if]#key%
>> >   \font_basics_get_font_parameter_nop_finish
>> > \else
>> >   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
>> > as we need to keep \mathsizesuffix
>> >   \expandafter\font_basics_get_font_parameter_nop
>> > \fi}
>> >
>> > \def\font_basics_get_font_parameter_yes#key=#value,%
>> >{\if]#key%
>> >   \font_basics_get_font_parameter_yes_finish
>> > \else
>> >   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
>> > as we need to keep \mathsizesuffix
>> >   \expandafter\font_basics_get_font_parameter_yes
>> > \fi}
>> >
>> > but even then, the official way to trigger such features is
>> >
>> > \setupmathematics[stylealternative=calligraphic]
>> >
>> >
>>
>> Works! Thanks! It is in the details... :)
>>
>> /Mikael
> 
> I just realized that there is still some problem with the stylealternative:
> 
> With the document
> 
> %% TEST 1
> \setupbodyfont[lucidaot]
> \setupmathematics[
> stylealternative={calligraphic},
> ]
> \starttext
> $x+\mathcal A$
> \stoptext
> %%%
> 
> I get both the calligraphic AND the italic keys enabled, even though
> the italic key should not be set. However, with the test file
> 
> %%% TEST 2
> \setupbodyfont[lucidaot]
> \setupmathematics[
> stylealternative={italic},
> ]
> \starttext
> $x+\mathcal A$
> \stoptext
> %%%
> 
> I do not get any of them enabled. In particular the italic key is not
> enabled, which I assume it should be.

I can confirm.  Temporary workaround for TEST 2 is to use the old method

\setupmathrendering[lucidaot][it=]

instead of

\setupmathematics[stylealternative=italic]

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

___
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] \setupmathematics with stylealternative not working

2019-02-24 Thread Mikael P. Sundqvist
On Sat, Feb 23, 2019 at 8:17 AM Mikael P. Sundqvist  wrote:
>
> On Fri, Feb 22, 2019 at 7:25 PM Hans Hagen  wrote:
> >
> > On 2/22/2019 9:24 AM, Henri Menke wrote:
> > > I can confirm.  My workaround which predates the stylealternative
> > > mechanism also stopped working, so there must be an issue on the level
> > > of font feature selection.
> > >
> > > \definefontfeature [math-text] [math-text] [ss04=yes]
> > > \definefontfeature [math-script]   [math-script]   [ss04=yes]
> > > \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes]
> > > \setupbodyfont[lucidaot]
> > > \starttext
> > > \startTEXpage[offset=3bp]
> > > $\mathcal A$
> > > \stopTEXpage
> > > \stoptext
> > that is a nasty one ... in font-fil.mkvi : we cannot use an edef as that
> > makes features get lost
> >
> > \def\font_basics_get_font_parameter_nop#key=#value,%
> >{\if]#key%
> >   \font_basics_get_font_parameter_nop_finish
> > \else
> >   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
> > as we need to keep \mathsizesuffix
> >   \expandafter\font_basics_get_font_parameter_nop
> > \fi}
> >
> > \def\font_basics_get_font_parameter_yes#key=#value,%
> >{\if]#key%
> >   \font_basics_get_font_parameter_yes_finish
> > \else
> >   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
> > as we need to keep \mathsizesuffix
> >   \expandafter\font_basics_get_font_parameter_yes
> > \fi}
> >
> > but even then, the official way to trigger such features is
> >
> > \setupmathematics[stylealternative=calligraphic]
> >
> >
>
> Works! Thanks! It is in the details... :)
>
> /Mikael

I just realized that there is still some problem with the stylealternative:

With the document

%% TEST 1
\setupbodyfont[lucidaot]
\setupmathematics[
stylealternative={calligraphic},
]
\starttext
$x+\mathcal A$
\stoptext
%%%

I get both the calligraphic AND the italic keys enabled, even though
the italic key should not be set. However, with the test file

%%% TEST 2
\setupbodyfont[lucidaot]
\setupmathematics[
stylealternative={italic},
]
\starttext
$x+\mathcal A$
\stoptext
%%%

I do not get any of them enabled. In particular the italic key is not
enabled, which I assume it should be.

/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] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-24 Thread Rudolf Bahr
On Sun, Feb 24, 2019 at 07:38:42AM +0900, Jeong Dal wrote:
> Dear Rudolf,
> 
> It is working for me.
> Using my figure, I got 
> (45126287sp,31048991sp) 
> 
> (1372,944) 
> 
> 
> As Hans said, either change ~ to some path or set the directory of 
> externalfigure.
> 
> Best regards,
> 
> Dalyoung

Hello Dalyoung,

thank you for your message!

Yes, "~" was the reason for my failure. Its use seems to be linux specific only.

If you convert your sp-sizes into pt-sizes (1pt = 65536sp) you will get:
(45126287sp,31048991sp) = (688.5725pt,473.7700pt)

What do you think, are these pt-values ok to you? In my opinion they seem to be 
too
small. How are they calculated?

Cheers,

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