Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-20 Thread Nicola

On 21/10/2016 00:22, Sandiford Kevin wrote:

 Hi  Nicola,

Thanks for the vim scripts, I've been looking for something like this
for a while.

Just a minor problem, on windows the :make or :ConTeXt commands fail if
there is a space in the path or file name.

Changing fnameescape() to shellescape() in the definition of l:makeprg
in line 21 of compiler/context.vim seems to fix this


Good catch, thanks! Could you please try the attached version, which 
should fix that and has other changes?


Please note that in the current version, :make does not `cd` any more 
(that was causing other issues), so you have to do it yourself before 
typesetting (using :cd or :lcd). That said, :ConTeXt should be a better 
option under all circumstances.


Nicola



context.tgz
Description: GNU Zip compressed data
___
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] ANN: Updated Vim scripts for ConTeXt

2016-10-20 Thread Sandiford Kevin

 Hi  Nicola,

Thanks for the vim scripts, I've been looking for something like this 
for a while.


Just a minor problem, on windows the :make or :ConTeXt commands fail if 
there is a space in the path or file name.


Changing fnameescape() to shellescape() in the definition of l:makeprg 
in line 21 of compiler/context.vim seems to fix this, i.e.


let :makeprg =
\   'cd ' . shellescape(fnamemodify(bufname("%"), ':p:h'))
\ . ' && ' . get(b:, 'context_mtxrun', get(g:, 'context_mtxrun', 
'mtxrun'))

\ . ' --script context --autogenerate --nonstopmode --synctex='
\ . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? 
'1' : '0')
\ . ' ' . get(b:, 'context_extra_options', get(g:, 
'context_extra_options', ''))

\ . ' ' . shellescape(expand('%:p:t'))

Regards,
Kevin

-- Original Message --
From: "Nicola" 
To: ntg-context@ntg.nl
Sent: 11/10/2016 10:46:30
Subject: Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt


On 2016-10-11 09:33:36 +, Henning Hraban Ramm said:


Am 2016-10-11 um 09:26 schrieb Nicola :

No, everything just works(tm) :) See :help ftplugin-overrule for the 
details.


No, unfortunately not everything:

Error detected while processing /Users/hraban/.vim/syntax/context.vim:
line   22:
E121: Undefined variable: v:t_list
E15: Invalid expression: type(s:context_include) ==# v:t_list
Error detected while processing 
/Users/hraban/.vim/ftplugin/context.vim:

line   18:
E539: Illegal character : formatoptions+=tjcroql2


Maybe my vim is too old?
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 23 2016 20:20:57)


Yes, the scripts are meant to be used with Vim 8. You should be able to
work around those errors by replacing v:t_list with 3 and removing 'j'
from formatoptions, but other things, like asynchronous typesetting,
won't work anyway.

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
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] bug in font size switches?

2016-10-20 Thread Csikos Bela
Pablo Rodriguez írta:
>Dear list,
>
>from the previous message from Csikos, I have generated the following
>sample:
>
>\setupbodyfontenvironment[default][a=5, x=8, xx=6]
>\starttext
>Default {\tfa Larger} {\tfx Smaller1} {\tfxx Smaller1} \\
>Default \tfa Larger \tfx Smaller2 \tfxx Smaller2
>\stoptext
>
>I can set a different value for a, but not for x or xx. The values for x
>and xx seem to be hardcoded.

Just for clarity, my problem was not that I couldn't change the value of x and 
xx.
My problem was that \tfx and \tfxx behave differently than \tfa \tfb etc.
I expected that \tfx and \tfxx change the font size to x and xx size compared to
the default/normal size and not compared to the currently used/environment
font size. According to the reference manual that would be the expected 
behavior. 
The reference manual [pages 106-107 (108-109 pdf pages)] writes:

"Besides these two-letter commands, there is a series of font selector commands 
with a
size suffix attached. Some examples of that are:
\tfx \bfx \slx \itx
\tfa \tfb \tfc \tfd \tfxx
The a suffix selects a somewhat larger font size than the default. Each of the 
ordered
alphabetic suffixes a, b, … select a somewhat larger actual font than the 
previous suffix. The x and xx suffixes select smaller and yet smaller versions. 
Note that these commands select font sizes relative to the default, not 
relative to whatever font size is currently in effect."

I don't see how the fixed values for x and xx is related to this.

Best regards,

bcsikos

___
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] font size switching

2016-10-20 Thread Csikos Bela
"Thomas A. Schmitz" írta:
>On 10/17/2016 07:31 PM, Csikos Bela wrote:
>> Do you mean it's better to use e.g. {\bf some text} then \bf{some text}?
>
>The latter is not valid syntax. You want to read the wiki section on 
>font switching: http://wiki.contextgarden.net/Font_Switching

Thanks. I mixed it up with the mnemonic font switching commands.
I guess I thought that these (\bf \it etc) can be used similarly to \bold etc.

[]

>> then I have Smaller1 in (x) size and Smaller2 in default size. Why?
>> I would expect Smaller2 to be in (x) size too (as the manual implies).
>>
>I'm not sure where you found the sentence you copied in your first mail. 
>My copy of contextref.pdf says p. 107:

The sentence I cited is on the same page (107/109), the top line.

> "The various commands will adapt 
>themselves to the actual setup of font and size." Which is exactly what 
>you see.

In my understanding this only means that if the current font is bold then an
\it changes the font to bold italic and not normal italic, and if the size is
for example (c) it will keep it and won't change back to normal size. It doesn't
mean that if you have size (b) and use a \tfa the size becomes a magnified
(b) (that is, (c).) According to my understanding using a \tfb should result
a (b) size font independently the currently used size according to the manual.
My question was why \tfx works differently than \tfa. I guess they answered this
in the meantime.

Thanks,

bcsikos

___
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] mathsf / mathversions in context

2016-10-20 Thread Csikos Bela
Wolfgang Schuster  írta:

Thank you again. Now I am even more confused.

>> 3. I found that if I write \definefontfamily [docuf] [mm] [TeX Gyre 
>> Pagella Math]
>> before \definefallbackfamily lines, the latter have no effect. Is this 
>> normal?
>> Shouldn't the order of definition lines be indifferent?
>The fallbackfamily settings are applied to a typeface and the 
>\definefontfamily commands creates the typeface, without \definefontfamily the
>fallbacks are never used because there is no font which can use the settings.

Sorry, but I don't understand the answer. If I have the code:

\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]
\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]

then Tex Gyre Adventor font is used for math (\definefallbackfamily has effect).

If I have this code:

\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]

then Tex Gyre Pagella is used for math (\definefallbackfamily has no effect).

According to your answer the opposite should happen, shouldn't?
I am confused.

>The x and xx perform not the same scaling as a, b etc. but you can 
>define your own sizes which behave the same way as a etc.
>
>\definefontsize[m]
>\definefontsize[n]
>
>\definebodyfontenvironment[default][m=0.8,n=0.9]

OK. How can I use this setting together with \definefontfamily and
\definefallbackfamily?

I have this code:

\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:uppercaseitalic]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasenormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasenormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:digitsnormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] 
[preset=math:digitsitalic]
\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[documentfont,10pt]

\definefontsize[m]
\definefontsize[n]

\definebodyfontenvironment[default][m=0.8,n=0.6]

\starttext

This paragraph contains text and $\tf math$.

{\tfa This paragraph contains text and $\tf math$.}

{\tfb This paragraph contains text and $\tf math$.}

\stoptext

The result in this case is italic math font. How can I have it upright?
(If I comment out \definefontsize and \definebodyfontenvironment lines,
the math font are upright.)

Thank you in advance,

bcsikos




___
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] Reduced whitespace when nesting different itemgroups

2016-10-20 Thread Florian Leupold
Dear list,

I have noticed a strange behavior when nesting different itemgroups: The 
whitespace before the lower-level group is reduced. This does not happen when 
nesting itemgroups of the same kind. And this can somehow be circumvented by 
setting [columns, one], see MWE below.

Is this expected behavior, or a bug?

Best regards,
Florian


MWE:

\starttext

\startitemize
\item Itemize 1.
\startitemize[columns, one]
\item Itemize 1.1
\item Itemize 1.2
\stopitemize
\stopitemize

\defineitemgroup[it]
\startitemize
\item Itemize 1.
\startit
\item It 1.1 (reduced whitespace above)
\item It 1.2
\stopit
\stopitemize

\startitemize
\item Itemize 1.
\startit[columns, one]
\item It 1.1
\item It 1.2
\stopit
\stopitemize

\stoptext


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] avoid newline after definestartstop

2016-10-20 Thread Michael Eidenbenz
hello,

how can I put the footnote number right after the quotationmarks without having 
a newline?
dontleavehmode does not work.

thanks michael




\definestartstop[Citation]
[before={\startnarrower[left,right]\startquotation},
 after={\stopquotation\stopnarrower\dontleavehmode}]

\starttext
\input tufte
\startCitation
  \input knuth
\stopCitation
\footnote{This is a Quote of Donald Knuth}
\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] FreeBSD binaries - was: Systemwide installation does not work

2016-10-20 Thread Nikola Lečić
On Tue, 18 Oct 2016 15:55:30 -0600
  in 
  Alan Braslau  wrote:

> Mailing list:
> 
> There was some fluctuation in the FreeBSD binaries being distributed
> on contextgarden.net.
> 
> With the recent introduction of FreeBSD 11.0, the GPL3-tainted GNU
> libstdc++ has been dropped in favor of a new, clean libc++. This
> follows on the switch from gcc to clang that took place with the
> introduction of FreeBSD 10.0. As a result, the new binaries compiled
> on FreeBSD 11.0 failed to work on older systems, i.e. FreeBSD 9.3
> (still in production/supported). We now take care to provide binaries
> compiled under FreeBSD 9.3 on the garden, at least until this version
> gets phased-out at the end of the year.

According to my experience, an official EOL rarely means the end of
real-world use. FWIW, I'd stick with 9.X for a while.

-- 
Nikola Lečić = Никола Лечић
fingerprint : FEF3 66AF C90E EDC3 D878  7CDC 956D F4AB A377 1C9B



signature.asc
Description: PGP signature
___
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
___