2010/10/15 Procházka Lukáš Ing. - Pontex s. r. o. <l...@pontex.cz>: > Hello, > > I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). > > Is there such an option for \typefile macro? > (http://wiki.contextgarden.net/Reference/en/typefile is silent.) > > I tried: > > \typefile[default][lines={10}]{a_file.txt} % Start at line 10 > > \typefile[default][lines={10,+1}]{a_file.txt} % Start at line 10, step = 1 > > \typefile[default][start=10]{a_file.txt} % Start at line 10 > > \typefile[default][from=10]{a_file.txt} % Start at line 10 > > No success. > > (The last Ctx minimals, WinXP.) > > Lukas Not an answer, but quick recipe: With mkiv is trivial ; use lua to skip the first n-1 lines. With mkii just use luatex as lua interpreter to call with \executesystemcommand and then see previous point.
-- 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 ___________________________________________________________________________________