* Bug with vimtyping: no line numbers
@ 2014-08-11 15:37 Günter Kolousek
2014-08-12 15:36 ` Aditya Mahajan
2014-08-13 14:39 ` Aditya Mahajan
0 siblings, 2 replies; 10+ messages in thread
From: Günter Kolousek @ 2014-08-11 15:37 UTC (permalink / raw)
To: ntg-context
I think there is a bug in the (latest) beta that was not there earlier
this year. In particular, it worked (and still works) in the version
current version: 2014.03.19 23:11
but it show *no* line numbers at all in the (latest) beta:
current version: 2014.07.30 10:31
A minimal example follows:
\usemodule[vim]
\setupvimtyping[%
numbering=yes,%
numberdistance=2em]
\definevimtyping[cpp][syntax=cpp]
\starttext
\startcpp
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
}
\stopcpp
\stoptext
Sadly, I'm not a ConTeXt nor a lua expert so maybe anybody can help?
Regards,
Günter
p.s.: BTW, I still could not resolve the bug with integrating tikz but I
verified that it works with the stated version above (2014.03.19 23:11)
on my system (nothing else changed).
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Bug with vimtyping: no line numbers
2014-08-11 15:37 Bug with vimtyping: no line numbers Günter Kolousek
@ 2014-08-12 15:36 ` Aditya Mahajan
2014-08-12 20:07 ` Günter Kolousek
2014-08-13 14:39 ` Aditya Mahajan
1 sibling, 1 reply; 10+ messages in thread
From: Aditya Mahajan @ 2014-08-12 15:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 575 bytes --]
Hi,
On Mon, 11 Aug 2014, Günter Kolousek wrote:
>
> I think there is a bug in the (latest) beta that was not there earlier
> this year. In particular, it worked (and still works) in the version
>
> current version: 2014.03.19 23:11
>
> but it show *no* line numbers at all in the (latest) beta:
I do not have access to a computer that has the latest context right now.
I'll look into it when I get a chance.
In the meantime, can you check if
\starttext
\startlinenumbering
\input knuth
\stoplinenumbering
\stoptext
numbers the lines.
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Bug with vimtyping: no line numbers
2014-08-12 15:36 ` Aditya Mahajan
@ 2014-08-12 20:07 ` Günter Kolousek
0 siblings, 0 replies; 10+ messages in thread
From: Günter Kolousek @ 2014-08-12 20:07 UTC (permalink / raw)
To: ntg-context
Hi,
this works with the latest beta!
Günter
Am Tue, 12 Aug 2014 11:36:00 -0400 (EDT)
schrieb Aditya Mahajan <adityam@umich.edu>:
> Hi,
>
> On Mon, 11 Aug 2014, Günter Kolousek wrote:
>
> >
> > I think there is a bug in the (latest) beta that was not there
> > earlier this year. In particular, it worked (and still works) in
> > the version
> >
> > current version: 2014.03.19 23:11
> >
> > but it show *no* line numbers at all in the (latest) beta:
>
> I do not have access to a computer that has the latest context right
> now. I'll look into it when I get a chance.
>
> In the meantime, can you check if
>
> \starttext
> \startlinenumbering
> \input knuth
> \stoplinenumbering
> \stoptext
>
> numbers the lines.
>
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Bug with vimtyping: no line numbers
2014-08-11 15:37 Bug with vimtyping: no line numbers Günter Kolousek
2014-08-12 15:36 ` Aditya Mahajan
@ 2014-08-13 14:39 ` Aditya Mahajan
2014-08-13 14:52 ` Wolfgang Schuster
2014-08-14 8:19 ` Günter Kolousek
1 sibling, 2 replies; 10+ messages in thread
From: Aditya Mahajan @ 2014-08-13 14:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1213 bytes --]
On Mon, 11 Aug 2014, Günter Kolousek wrote:
>
> I think there is a bug in the (latest) beta that was not there earlier
> this year. In particular, it worked (and still works) in the version
>
> current version: 2014.03.19 23:11
>
> but it show *no* line numbers at all in the (latest) beta:
>
> current version: 2014.07.30 10:31
>
> A minimal example follows:
>
> \usemodule[vim]
>
> \setupvimtyping[%
> numbering=yes,%
> numberdistance=2em]
> \definevimtyping[cpp][syntax=cpp]
>
> \starttext
> \startcpp
> #include <iostream>
>
> int main() {
> std::cout << "Hello, world!" << std::endl;
> }
> \stopcpp
> \stoptext
>
> Sadly, I'm not a ConTeXt nor a lua expert so maybe anybody can help?
A quick work around is to add
numberlocation=left
in your setup. For example:
\usemodule[vim]
\setupvimtyping
[
numbering=yes,
numberdistance=1em,
numberlocation=left,
]
\definevimtyping[cpp][syntax=cpp]
\starttext
\startcpp
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
}
\stopcpp
\stoptext
numberlocation=left is the default anyways, so I don't know why the bug
occurs.
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Bug with vimtyping: no line numbers
2014-08-13 14:39 ` Aditya Mahajan
@ 2014-08-13 14:52 ` Wolfgang Schuster
2014-08-13 14:56 ` Aditya Mahajan
2014-08-14 8:19 ` Günter Kolousek
1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2014-08-13 14:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 311 bytes --]
Am 13.08.2014 um 16:39 schrieb Aditya Mahajan <adityam@umich.edu>:
> numberlocation=left is the default anyways, so I don't know why the bug occurs.
Could be a inheritance problem (maybe wrong parent setting) and vimtyping doesn’t fall back to the default syntaxhighlightingparameter values.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 998 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Bug with vimtyping: no line numbers
2014-08-13 14:39 ` Aditya Mahajan
2014-08-13 14:52 ` Wolfgang Schuster
@ 2014-08-14 8:19 ` Günter Kolousek
2014-08-14 16:16 ` Aditya Mahajan
1 sibling, 1 reply; 10+ messages in thread
From: Günter Kolousek @ 2014-08-14 8:19 UTC (permalink / raw)
To: ntg-context
It works with this workaround. Thanx for the help!
Regards
Günter
Am Wed, 13 Aug 2014 10:39:46 -0400 (EDT)
schrieb Aditya Mahajan <adityam@umich.edu>:
> On Mon, 11 Aug 2014, Günter Kolousek wrote:
>
> >
> > I think there is a bug in the (latest) beta that was not there
> > earlier this year. In particular, it worked (and still works) in
> > the version
> >
> > current version: 2014.03.19 23:11
> >
> > but it show *no* line numbers at all in the (latest) beta:
> >
> > current version: 2014.07.30 10:31
> >
> > A minimal example follows:
> >
> > \usemodule[vim]
> >
> > \setupvimtyping[%
> > numbering=yes,%
> > numberdistance=2em]
> > \definevimtyping[cpp][syntax=cpp]
> >
> > \starttext
> > \startcpp
> > #include <iostream>
> >
> > int main() {
> > std::cout << "Hello, world!" << std::endl;
> > }
> > \stopcpp
> > \stoptext
> >
> > Sadly, I'm not a ConTeXt nor a lua expert so maybe anybody can help?
>
> A quick work around is to add
>
> numberlocation=left
>
> in your setup. For example:
>
> \usemodule[vim]
>
> \setupvimtyping
> [
> numbering=yes,
> numberdistance=1em,
> numberlocation=left,
> ]
>
> \definevimtyping[cpp][syntax=cpp]
>
> \starttext
> \startcpp
> #include <iostream>
>
> int main() {
> std::cout << "Hello, world!" << std::endl;
> }
> \stopcpp
> \stoptext
>
> numberlocation=left is the default anyways, so I don't know why the
> bug occurs.
>
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Bug with vimtyping: no line numbers
@ 2014-08-12 22:12 Akira Kakuto
0 siblings, 0 replies; 10+ messages in thread
From: Akira Kakuto @ 2014-08-12 22:12 UTC (permalink / raw)
To: ntg-context
> \starttext
> \startlinenumbering
> \input knuth
> \stoplinenumbering
> \stoptext
The line numbers seem better in mkii than in mkiv.
Best regards,
Akira
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Bug with vimtyping: no line numbers
@ 2014-08-11 12:31 Günter Kolousek
0 siblings, 0 replies; 10+ messages in thread
From: Günter Kolousek @ 2014-08-11 12:31 UTC (permalink / raw)
To: ntg-context
I think there is a bug in the (latest) beta that was not there earlier
this year. In particular, it worked (and still works) in the version
current version: 2014.03.19 23:11
but it show *no* line numbers at all in the (latest) beta:
current version: 2014.07.30 10:31
A minimal example follows:
\usemodule[vim]
\setupvimtyping[%
numbering=yes,%
numberdistance=2em]
\definevimtyping[cpp][syntax=cpp]
\starttext
\startcpp
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
}
\stopcpp
\stoptext
Sadly, I'm not a ConTeXt nor a lua expert so maybe anybody can help?
Regards,
Günter
p.s.: BTW, I still could not resolve the bug with integrating tikz but I
verified that it works with the stated version above (2014.03.19 23:11)
on my system (nothing else changed).
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-08-14 16:16 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-11 15:37 Bug with vimtyping: no line numbers Günter Kolousek
2014-08-12 15:36 ` Aditya Mahajan
2014-08-12 20:07 ` Günter Kolousek
2014-08-13 14:39 ` Aditya Mahajan
2014-08-13 14:52 ` Wolfgang Schuster
2014-08-13 14:56 ` Aditya Mahajan
2014-08-14 8:19 ` Günter Kolousek
2014-08-14 16:16 ` Aditya Mahajan
-- strict thread matches above, loose matches on Subject: below --
2014-08-12 22:12 Akira Kakuto
2014-08-11 12:31 Günter Kolousek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).