Re: [NTG-context] Nested itemize horizontal/column problem

2016-09-18 Thread Henri Menke
You can start itemize only in vertical mode.  To switch to vertical mode use 
\blank.  To kill the empty line which is inserted use \blank[-line].

\starttext
\startitemize[n]
\item \blank[-line]
\startitemize[a,horizontal,three]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote:
> Hi
> 
> 1) the following code
> 
> \starttext
> \startitemize[n]
> \item
> \startitemize[a,horizontal,three]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
> 
> generates the error
> 
> tex error   > tex error on line 9 in file
> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
> in restricted horizontal mode
> 
> Isn't it possible to have nested itemize with key horizontal?
> 
> 2) If I change the horizontal key to columns, then there is an extra
> line (the extra line in nested itemization has been discussed before,
> but not with these keys given, as far as I could see). I.e. the file
> 
> \starttext
> \startitemize[n]
> \item
> \startitemize[a,columns,three]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
> 
> gives the attached pdf file, where I would have exptected the first a.
> in the inner itemize to be on the same line as the 1. in the outer
> itemize.
> 
> Anyone has an idea on what is going on here?
> 
> Best regards, 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://tex.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in \not\in?

2016-09-18 Thread Henri Menke
On 09/18/2016 08:44 PM, Mohammad Hossein Bateni wrote:
> Hi,
> 
> When using \not\in in math, the two symbols do not overlap as they should.  
> Am I missing something?
> 
> 
> \starttext
> $v\not\in S$.
> \stoptext

Use \notin.  This will also give you the correct Unicode symbol.
> 
> 
> I am using 2016.09.12 18:27 beta on Linux with LuaTeX Version 0.98.3 (TeX 
> Live 2017/dev).
> 
> Thanks,
> ~MHB
> 
> 
> ___
> 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://tex.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Bug in \not\in?

2016-09-18 Thread Mohammad Hossein Bateni
Hi,

When using \not\in in math, the two symbols do not overlap as they should.
Am I missing something?


\starttext
$v\not\in S$.
\stoptext


I am using 2016.09.12 18:27 beta on Linux with LuaTeX Version 0.98.3 (TeX
Live 2017/dev).

Thanks,
~MHB
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ANN: Updated Vim scripts for METAFONT/MetaPost

2016-09-18 Thread Nicola

On 2016-09-18 12:09:12 +, luigi scarso said:


On Sun, Sep 18, 2016 at 12:46 PM, Nicola  wrote:

Hello,
as a Vim user, I was not satisfied with its support for MetaPost
(especially indenting). I have updated the {mf,mp}.vim scripts
in Vim, which you find attached, and which I have forwarded to
the respective maintainers. Hopefully, they will be included in
a future release of Vim. For the time being, just unpack and put
in your .vim folder.


Thank you very much !


Mini ascii-cast: https://asciinema.org/a/9a101ghqmipqqmw3x61erwmx8

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Simple input vs component structure

2016-09-18 Thread Malte Stien
Hi all,

I have a set of reference manuals that consist of a number of chapters. Those 
documents pull in the individual chapters via \input commands.

I have just recently discovered that ConTeXt actually DOES support a 
project/product/component structure. So, I have been experimenting with making 
the individual reference manuals ‘products’ and converting all chapters into 
‘components’. However, I wonder what that actually gains me? What are the 
benefits of this product/component structure? It looks like I can reference 
other sections in these other components, but I can do that now even with the 
simple \input.

What am I missing?

Another related question in this context is: What do I actually expect when I 
run the project file, as in:

  $ context project.tex

ConText runs for a little while, and actually states in the log somewhere

  result saved in file: project.pdf, compresslevel 3, objectcompresslevel 3

but no such file is generated; it also does not build the individual 
components? What does it do? Or what should I expect it to do?

Thank you,
Malte

--
“The Electric Monk was a labour-saving device, like a dishwasher or a video 
recorder... Electric Monks believed things for you, thus saving you what was 
becoming an increasingly onerous task, that of believing all the things the 
world expected you to believe. ― Douglas Adams, Dirk Gently's Holistic 
Detective Agency

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] [metapost] ANN: Updated Vim scripts for METAFONT/MetaPost

2016-09-18 Thread luigi scarso
On Sun, Sep 18, 2016 at 12:46 PM, Nicola  wrote:
> Hello,
> as a Vim user, I was not satisfied with its support for MetaPost
> (especially indenting). I have updated the {mf,mp}.vim scripts
> in Vim, which you find attached, and which I have forwarded to
> the respective maintainers. Hopefully, they will be included in
> a future release of Vim. For the time being, just unpack and put
> in your .vim folder.

Thank you very much !


-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ANN: Updated Vim scripts for METAFONT/MetaPost

2016-09-18 Thread Nicola

On 2016-09-18 10:46:44 +, Nicola said:


 I have updated the {mf,mp}.vim scripts in Vim



ConTeXt users will benefit from these scripts, too, inside MetaPost
environments.


Put these lines in ./vim/after/ftplugin/context.vim:

setlocal omnifunc=syntaxcomplete#Complete
let g:omni_syntax_group_include_context_mp='mf\w\+,mp\w\+'

(note the ..._context_mp) and set the filetype of your document as
follows:

:set ft=context.mp

The only drawback is that indentation rules are applied throughout the
whole document, not only to the MetaPost parts. Depending on how many
'if' and 'forever' there are in your novel, it might get annoying.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Nested itemize horizontal/column problem

2016-09-18 Thread Mikael P. Sundqvist
Hi

1) the following code

\starttext
\startitemize[n]
\item
\startitemize[a,horizontal,three]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

generates the error

tex error   > tex error on line 9 in file
/home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
in restricted horizontal mode

Isn't it possible to have nested itemize with key horizontal?

2) If I change the horizontal key to columns, then there is an extra
line (the extra line in nested itemization has been discussed before,
but not with these keys given, as far as I could see). I.e. the file

\starttext
\startitemize[n]
\item
\startitemize[a,columns,three]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

gives the attached pdf file, where I would have exptected the first a.
in the inner itemize to be on the same line as the 1. in the outer
itemize.

Anyone has an idea on what is going on here?

Best regards, Mikael


ctx-listexample14.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-09-18 Thread Mikael P. Sundqvist
On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan  wrote:
> On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote:
>>
>>
>> Is there a reason why the above does not work using \item, like
>>
>> \startitemize[a,horizontal,three]
>> \item $\int_0^2 1+2x\,dx$
>> \item $\int_0^{\ln 2} e^s\,ds$
>> \item $\int_0^{\ln 2} e^{2s}\,ds$
>> \item $\int_0^{\pi} \sin t\,dt$
>> \item $\int_0^{2\pi}\sin t\,dt$
>> \item $\int_0^1\frac{1}{1+x^2}\,dx$
>> \stopitemize
>>
>> but only with \startitem ... \stopitem? It is not that I have anything
>> against using the \start...\stop... mechanism, but just curiosity.
>
>
> I haven't looked at the code, but most likely reason is that it uses a two
> pass mechanism. It is easier to grab the content of a \start-stop pair
> rather than a command that could be terminated by either an \item or a
> \stopitem
>
> At least, that is the reason why random option only works with \startitem ..
> \stopitem
>
> Aditya
>
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Thanks Aditya, I'll accept that there is a reason.

Another related thing (sorry if I make this thread a bit difficult to read):

Does the horizontal keyword force the list to be packed (and
joinedup)? I tried to add unpacked, but with no luck

\starttext
Some text before.
\startitemize[a,horizontal,three,unpacked]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize
some text after.
\stoptext

I also tried to add some space before/after, like

\starttext
Some text before.
\startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize
some text after.
\stoptext

/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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___