Re: [NTG-context] \typefile not including file and returning success

2023-02-21 Thread Marco Patzer via ntg-context
On Wed, 21 Dec 2022 13:17:15 +0100 Hans Hagen via ntg-context wrote: > The next upload will have: > > \adddefaultsuffix[foo,{},crap] > \adddefaultsuffix[{}] > > \typefile{./crapcrap} > \typefile{crapcrap} > > which someone has to document on the wiki Apologies for

Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Marco Patzer via ntg-context
gt; > \adddefaultsuffix[foo,{},crap] > \adddefaultsuffix[{}] > > \typefile{./crapcrap} > \typefile{crapcrap} Thanks Hans for looking into that. I'll play with it after the next update. > which someone

Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Hans Hagen via ntg-context
On 12/17/2022 6:27 PM, Marco via ntg-context wrote: On Sat, 17 Dec 2022 17:43:48 +0100 Otared Kavian wrote: Thanks for your quick reply. It seems that one can fool ConTeXt into typing a file without suffix by giving the path to that file… That works, I can confirm. \typefile{/Users

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 10:41:11 -0800 skyhorse--- via ntg-context wrote: > The context wiki says: > "When no file extension is specified the extension .tex is assumed." It's not on the page for typefile: https://wiki.contextgarden.net/Command/typefile And that surely mak

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread skyhorse--- via ntg-context
ontext wrote: > Hi Marco, > > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. However ConTeXt seems to dislike \typefile{bar} > when the filename has no suff

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco via ntg-context
On Sat, 17 Dec 2022 17:43:48 +0100 Otared Kavian wrote: Thanks for your quick reply. > It seems that one can fool ConTeXt into typing a file without suffix > by giving the path to that file… That works, I can confirm. > \typefile{/Users/kavian/Context/essais/mkiv/bar-bis} Hard-coded

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 16:25:01 +0100 Otared Kavian via ntg-context wrote: > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. I can confirm that. > However ConTe

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Otared Kavian via ntg-context
Hi Marco, If I create a file named « bar.txt » then \starttext Nothing to say\dots \typefile{bar.txt} \stoptext gives the correct result. However ConTeXt seems to dislike \typefile{bar} when the filename has no suffix. Best regards : Otared > On 17 Dec 2022, at 16:06, Marco Patzer via

[NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
Hi! In the following example the file “bar” is not included: # create file “bar” echo Bar > bar # t.tex \starttext Foo \typefile{bar} \stoptext Then run context --errors='*' t.tex The text “bar” is not included in the PDF, only Foo is. The log file shows: verbatims > fil

Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 11.11.2020 um 16:37: On 11/11/20 10:08 AM, n...@scorecrow.com wrote: Sorry for this really, really basic question but... I have the following 3 line source file: \starttext \typefile{test-listing.txt} \stoptext Hi Bruce, a MWE that shows your problem would

Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Pablo Rodriguez
On 11/11/20 10:08 AM, n...@scorecrow.com wrote: > Sorry for this really, really basic question but... > > I have the following 3 line source file: > > \starttext > \typefile{test-listing.txt} > \stoptext Hi Bruce, a MWE that shows your problem would be: \setupbodyfont

[NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread ntg
Sorry for this really, really basic question but... I have the following 3 line source file: \starttext \typefile{test-listing.txt} \stoptext The file "test-listing.txt" is UTF-8 and includes the character U+25B8 (black right-pointing small triangle) which is being dropped from

[NTG-context] MP background for text typeset by \typefile

2020-11-05 Thread context
Hello, is there a way to draw custom background (via MP) to a text typed by \typefile, which is so long so it spreads over more pages? - I'm asking because I know how to typeset some text via \typefile with: 1. this: \definetyping[Test] [before={\startbackground[background=color

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang, I found that the previous run “mtxrun - script font…” cheked the fonts for TeXLive 2017. So I run “setuptex” for ConTeXt standalone and run “mtxrun” again. After that I compiled the same file. The result is that \tt works as Nanum Gothic Coding but \ss still not working. “Nanum

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Pablo Rodriguez
On 02/19/2018 10:15 PM, Jeong Dal wrote: > Dear Wolfgang, > > Two months ago, you suggested an example for typefile with korean. I > just read it at that time and I try your sample today.  > Although there are Nanum Gothic and Nanum Gothic Coding in my system > font, no output

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang, Two months ago, you suggested an example for typefile with korean. I just read it at that time and I try your sample today. Although there are Nanum Gothic and Nanum Gothic Coding in my system font, no output of korean for \ss and \tt. I run ‘mtxrun —script font —reload —force

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Jeong Dal
can handle Korean, Chinese, and Japanese together. I heard that Unfonts are included in TeXLive. If not, you can downloaded it. I hope that you have no problem to compile the follwoing code. Best regards, Dalyoung % \setupbodyfont[unfonts] \starttext %\typefile[C][]{cjk.asy} 한자와 일본어는 어떤가요

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Alan Braslau
On Wed, 06 Dec 2017 23:32:45 +0100 Wolfgang Schuster wrote: > You’re using the command \cornflowerbluein in your setups (probably > for the header or footer) > to change the color of the page number but ConTeXt doesn’t create > individual commands > anymore for

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster
Wim Neimeijer 6. Dezember 2017 um 22:30 This is the output ConText gives me, when I use a newer version of ConText, output of run === mtx-context | run 1: luatex

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
gt; Thanks for all your input and help, but as said before I don't have the > time to upgrade and than to discover existing things don't work > resulting in a complete new thread to debug these existing things and/or > fix with a new beta installation. > > But that is perhaps not my biggest con

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
including some code examples via \typefile (with a bit of text in either Cyrillic, Chinese, Japanese or Korean) could be achieved with a simple local font switch, or setting a regime or via \setuptyping but not on a global level with \definefontsynonym, definefontfallback etc. My fix is to change

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Hans Hagen
On 12/6/2017 7:24 PM, Wim Neimeijer wrote: I disagree, a version from 2016 is not very old. I have a lot of documents using a ConText setup which works with this version of luatex and context. Last week I tried to use the latest beta with my documents and the beta was unable to run my

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Rik Kabel
On 2017-12-06 13:24, Wim Neimeijer wrote: I disagree, a version from 2016 is not very old. I have a lot of documents using a ConText setup which works with this version of luatex and context. Last week I tried to use the latest beta with my documents and the beta was unable to run my

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 07:24 PM, Wim Neimeijer wrote: > I disagree, a version from 2016 is not very old. I have a lot of > documents using a ConText setup which works with this version > of luatex and context. > > Last week I tried to use the latest beta with my documents and the beta > was unable to run

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
I disagree, a version from 2016 is not very old. I have a lot of documents using a ConText setup which works with this version of luatex and context. Last week I tried to use the latest beta with my documents and the beta was unable to run my documents. As it seems it is not backward compatible

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 06:16 PM, Wim Neimeijer wrote: > @Wolfgang, > > Ran your example (unsure about all these \definefontfamily commands), > but does not work, a lot of errors  > [...] > This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev)  > [...] > ConTeXt  ver: 2016.03.13 23:40 MKIV beta  fmt:

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Aditya Mahajan
On Wed, 6 Dec 2017, Wim Neimeijer wrote: @Wolfgang, Ran your example (unsure about all these \definefontfamily commands), but does not work, a lot of errors This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev) ConTeXt ver: 2016.03.13 23:40 MKIV beta fmt: 2016.3.23 int: english/english

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
@Wolfgang, Ran your example (unsure about all these \definefontfamily commands), but does not work, a lot of errors == mtx-context | warning: no (local) file './context_cjk', proceeding mtx-context | run 1: luatex

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster
Wim Neimeijer 6. Dezember 2017 um 00:32 The thing here is, I am not an ConText expert just an user. I am working on a manual (200+ pages) where including code snippets is just a small part of the document and not something isolated. Not sure what to do next as

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread luigi scarso
On Wed, Dec 6, 2017 at 9:53 AM, Hans Hagen wrote: > On 12/6/2017 12:32 AM, Wim Neimeijer wrote: >> >> The thing here is, I am not an ConText expert just an user. I am working >> on a manual (200+ pages) where including code snippets >> is just a small part of the document and not

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Henning Hraban Ramm
Am 2017-12-06 um 00:32 schrieb Wim Neimeijer : > The thing here is, I am not an ConText expert just an user. I am working on a > manual (200+ pages) where including code snippets > is just a small part of the document and not something isolated. Not sure > what to do next

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Hans Hagen
On 12/6/2017 12:32 AM, Wim Neimeijer wrote: The thing here is, I am not an ConText expert just an user. I am working on a manual (200+ pages) where including code snippets is just a small part of the document and not something isolated. Not sure what to do next as the wiki explains a lot but

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
, Hans Hagen <pra...@wxs.nl> wrote: > On 12/5/2017 11:10 PM, Wim Neimeijer wrote: > >> I wish it is that simple, but alas, I need to >> to inform \typefile of the font as well, >> possibly via setuptyping ? >> > if you mix scripts you need to either use font that

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Hans Hagen
On 12/5/2017 11:10 PM, Wim Neimeijer wrote: I wish it is that simple, but alas, I need to to inform \typefile of the font as well, possibly via setuptyping ? if you mix scripts you need to either use font that has the glyphs or you have to create a bodyfint with a combination of fonts ... i'm

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I wish it is that simple, but alas, I need to to inform \typefile of the font as well, possibly via setuptyping ? The following works with texlive 2017 (pdflatex), meaning I have the fonts installed. I also ran $ mtxrun --script font --reload \documentclass{article} \usepackage[T1]{fontenc

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread luigi scarso
On Tue, Dec 5, 2017 at 9:32 PM, Wim Neimeijer <wneimei...@gmail.com> wrote: > I am writing a manual where I include code snippets with typefile. Some of > the code snippets contain text in Japanese > but don't appear in the PDF document as typefile seems to skip the Japanese >

[NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I am writing a manual where I include code snippets with typefile. Some of the code snippets contain text in Japanese but don't appear in the PDF document as typefile seems to skip the Japanese characters MWE file cjk.asy Label L; L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily

Re: [NTG-context] typebuffer different from typefile

2016-04-24 Thread Meer, Hans van der
The point is not that I am without options for a practical solution here. My point is that the difference between \typebuffer and \typefile breaks the strict and so much appreciated congruence between like macro calls. Therefore my post must rather be seen as a plea to the maintainer(s

Re: [NTG-context] typebuffer different from typefile

2016-04-24 Thread Pablo Rodriguez
ame, because their > usage parallels each other? Hi Hans, I wonder whether any of these two options may help you: \setuptyping[buffer][style=\ttx] \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test][style=\ss\red] \typefile[style=\ttx

[NTG-context] typebuffer different from typefile

2016-04-24 Thread dr. Hans van der Meer
: \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test] \typefile[style=\ttx]{test.txt} \stoptext Hans van der Meer ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
during \typefile command? E.g. 10 spaces... \setuptyping[file][tab=10] Wolfgang -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038

[NTG-context] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way to specify width for a tabulator ('\t') being read in a text file during \typefile command? E.g. 10 spaces... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14

Re: [NTG-context] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz 24. August 2015 13:30 Hello, is there a way to specify width for a tabulator ('\t') being read in a text file during \typefile command? E.g. 10 spaces... \setuptyping[file][tab=10] Wolfgang

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Hans Hagen
On 11/20/2012 11:17 PM, Aditya Mahajan wrote: On my machine, I can read files **with an extension** from anywhere in the system, but \typefile{...} for a file without an extension results in: verbatimsfile abc does not exist ah .. but it makes sense to be explicit in what you want

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Sietse Brouwer
I think he means files of which the name does not have an extension. I.e. he is trying to type a file called 'xxx', not 'xxx.something'. Example of such a file: the shell script /usr/bin/ps2pdf. Cheers, --Sietse ___ If

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Hans Hagen
On 11/21/2012 11:18 AM, Sietse Brouwer wrote: I think he means files of which the name does not have an extension. I.e. he is trying to type a file called 'xxx', not 'xxx.something'. Example of such a file: the shell script /usr/bin/ps2pdf. hopefully fixed in next upload .. btw, testing can

[NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) The lines below is the trace output belonging to /tmp/xxx stat(tmp/xxx.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or directory

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Hans Hagen
On 11/20/2012 9:06 PM, Erik Margraf wrote: Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) I just tried a standalone on a xubuntu virtual machine. I had no problems with /data

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan
On Tue, 20 Nov 2012, Hans Hagen wrote: On 11/20/2012 9:06 PM, Erik Margraf wrote: Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) I just tried a standalone on a xubuntu virtual

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Sietse Brouwer
Compiling the evidence... all I can say is hmm == Erik == Version: 2012.11.16 on Linux Absolute path (parent dir): ??? Absolute path (non-parent dir): did not work == Aditya == Version: 2012.11.16 on Linux [system.outputmode]= restricted, [system.inputmode] = any, Absolute path

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
, which might help? On Tue, Nov 20, 2012 at 11:17 PM, Aditya Mahajan adit...@umich.edu wrote: On Tue, 20 Nov 2012, Hans Hagen wrote: On 11/20/2012 9:06 PM, Erik Margraf wrote: Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace

Re: [NTG-context] \typefile does not obey global path settings

2012-05-25 Thread Marco
On 2012-05-20 Marco net...@lavabit.com wrote: the \typefile command does not obey the \usepath setting any more. Still failing in current beta. % file: test.tex \usepath [code] \starttext % fails % \typefile{somefile} % works \typefile{code/somefile} \stoptext % file: code/somefile

Re: [NTG-context] \typefile does not obey global path settings

2012-05-25 Thread Hans Hagen
On 25-5-2012 12:29, Marco wrote: On 2012-05-20 Marconet...@lavabit.com wrote: the \typefile command does not obey the \usepath setting any more. Still failing in current beta. it was never part of the idea .. added in next beta % file: test.tex \usepath [code] \starttext % fails

[NTG-context] \typefile does not obey global path settings

2012-05-20 Thread Marco
Hi, the \typefile command does not obey the \usepath setting any more. Older versions did (before beta 2011.07.13 20:14). Example: % test.tex \usepath [code] \starttext Here is some source code: \typefile{somefile} \stoptext % code/somefile This should be printed. Marco

Re: [NTG-context] Disable line-break when \typefile

2011-06-14 Thread Aditya Mahajan
On Wed, 8 Jun 2011, Marco wrote: And what is “lines=no” for? What i get from the source for the “lines” key is: no (default) : no hyphenation yes : no hyphenation and left aligned text (align key is ignored) hyphenated : hyphenation Thanks for clarification. Though the

Re: [NTG-context] Disable line-break when \typefile

2011-06-10 Thread Aditya Mahajan
On Wed, 8 Jun 2011, Wolfgang Schuster wrote: Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to out-of-page area

Re: [NTG-context] Disable line-break when \typefile

2011-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
OK, thanks. I added some info into wiki. Lukas On Wed, 08 Jun 2011 22:44:41 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 08.06.2011 um 22:34 schrieb Marco: And what is “lines=no” for? What i get from the source for the “lines” key is: no (default) : no

[NTG-context] Disable line-break when \typefile

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to out-of-page area)? The following example: % This a very long line which should be typeset to one line even if there'll be overfull

Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Wolfgang Schuster
Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to out-of-page area)? The following example

Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Marco
On 2011-06-08 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Is there a way how to avoid this, how to force continuing on the same line? Add “space=fixed” to your setup. And what is “lines=no” for? Marco

Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Wolfgang Schuster
Am 08.06.2011 um 22:34 schrieb Marco: And what is “lines=no” for? What i get from the source for the “lines” key is: no (default) : no hyphenation yes : no hyphenation and left aligned text (align key is ignored) hyphenated : hyphenation Wolfgang

Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Marco
And what is “lines=no” for? What i get from the source for the “lines” key is: no (default) : no hyphenation yes : no hyphenation and left aligned text (align key is ignored) hyphenated : hyphenation Thanks for clarification. Though the options (also regarding

[NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered another problem with \typefile. This code crashes: --- \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace] \starttext \typefile[Model]{t2.txt} %{t.u8} %\startluacode context.typefile({Model}, t.u8)\stopluacode \stoptext --- Although a .pdf is generated

Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I just downloaded the last beta and it seems there is (again) a problem with \typefile a file with diacritics. Samples are attached. Best regards, Lukas On Tue, 12 Oct 2010 17:15:06 +0200, Hans Hagen pra...@wxs.nl wrote: this will work in the next beta (making zip now) -- Ing

Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Wolfgang Schuster
Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I encountered another problem with \typefile. This code crashes: --- \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace] You need \definetyping[Model][...]. Wolfgang

Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Wolfgang Schuster
Am 13.01.2011 um 11:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I just downloaded the last beta and it seems there is (again) a problem with \typefile a file with diacritics. Samples are attached. Save your file in utf-8 encoding, my editor shows me your t.txt

Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works now. (I've been using \setuptyping before and it used to work.) Lukas On Thu, 13 Jan 2011 11:58:28 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: You need

Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 13 Jan 2011 12:03:06 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.01.2011 um 11:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I just downloaded the last beta and it seems there is (again) a problem with \typefile a file with diacritics

Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Wolfgang Schuster
Am 13.01.2011 um 12:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: OSave your file in utf-8 encoding, my editor shows me your t.txt is currently encoded as “ISO 8859-7”. ... Yes, that's a possibility. But as I can remember, this was fixed and there was no requirement for the file to

[NTG-context] \typefile without breaking long lines

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to \setuptyping in the manner that long lines won't be broken? So to get: -\textwidth - a instead of: aAA AA Thank you in advance. Regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s.

[NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread luigi scarso
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

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-15 um 09:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). \typefile[default][start=10]{a_file.txt} % Start at line 10 According to older ML messages and the source, \typefile[start=10] should work

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). \starttext% 1 \typefile[range=3]{test.tex} % 2 bla % 3 bla % 4

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it doesn't seem to work. Let's have t-TypeF2.mkiv with the following content: --- \setuptyping[default][bodyfont=small,style={\ttx\setupinterlinespace}] % 1 % 2 \starttext % 3 \typefile[default][start=4]{t-TypeF2.mkiv} % = This file; 4 \typefile[default][start=4,stop=99]{t-TypeF2

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Yes, thanks, that's it: \typefile[default][range={3,5}]{t-TypeF2.mkiv} % If also the upper limit is to be specified Regards, Lukas On Fri, 15 Oct 2010 10:09:13 +0200, Peter Münster pmli...@free.fr wrote: On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'd need

[NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have problem. Suppose having t-TypeF.ctx which is to print itself: --- \enableregime[cp1250] \starttext ABC ŽŠČ \typefile[]{t-TypeF.ctx} \stoptext --- The letters ŽŠČ to be printed during \typefile are the problem. I get a long error message, where the key message is: l

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Peter Münster
On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \enableregime[cp1250] \starttext ABC ŽŠČ \typefile[]{t-TypeF.ctx} \stoptext --- The letters ŽŠČ to be printed during \typefile are the problem. Hello, It seems, that \typefile assumes utf8 independently

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 12 Oct 2010 08:45:25 +0200, Peter Münster pmli...@free.fr wrote: I would suggest to configure your environment (editor and so on) to use only utf8. It's a problem as the file which is \typefiled is generated by another program and I have no control of which characters or which

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Peter Münster
On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: All runs programs run under Windows and all [mentioned] are using CP 1250. Perhaps with a filter: windows-program | recode windows-1250..u8 output-file Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Hans Hagen
to support an regime option for \typefile but I need an example file then Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
| recode windows-1250..u8output-file it's not that complex to support an regime option for \typefile but I need an example file then There is one attached - t-TypeF.mkiv - it contains all Czech letters with diacritics. You can see also all letters with diacritics in Czech - Cz.txt (CP 1250

[NTG-context] \typefile without the last n lines

2010-08-25 Thread Peter Münster
Hello, Here a little feature request: \starttext \typefile[start=1, stop=-3]{test.tex} % printing this file without the % last 3 lines % line to print \stoptext % don't print this line % don't print this line % don't print this line TIA for any help! Peter

[NTG-context] How to add line number to verbatim typefile?

2010-01-21 Thread Joshua Lee
Hi all, Here's a little sample named test.tex, \starttext \setuptyping[file][numbering=line] \typefile[start=1,step=1]{test.tex} \stoptext But, it does not shows the line number, any questions about the code snippet, thanks. BR/JL

[NTG-context] typefile consorts (setup etc)

2009-10-06 Thread R. Bastian
Hello, is there a way to get reserved words to bz printed \bf (and maybe comments - \it, strings - \rm or another wise} I think it is possible with lua+mk IV ; but i am working with mk II. -- René Bastian www.pythoneon.org www.musiques-rb.org

Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread Henning Hraban Ramm
Am 2009-06-26 um 19:33 schrieb Gerben Wierda: \typefile balks on filenames with $ characters in their names. Anything I can do about that? Rename the file. It's an error if characters like that appear in a file name. You could even rename it using Lua from within your TeX code

Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread Gerben Wierda
On 28 Jun 2009, at 19:17, Henning Hraban Ramm wrote: Am 2009-06-26 um 19:33 schrieb Gerben Wierda: \typefile balks on filenames with $ characters in their names. Anything I can do about that? Rename the file. It's an error if characters like that appear in a file name. You could even

Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread Taco Hoekwater
Gerben Wierda wrote: I do not decide what the names of these files are, someone else produces them, and my work flow should be able to handle all valid filenames. I assume then the answer is no? (Con)TeX(t) can't handle this? kpathsea can't handle files with $ signs in them, unless the $

Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread luigi scarso
On Sun, Jun 28, 2009 at 8:59 PM, Gerben Wierda gerben.wie...@rna.nl wrote: On 28 Jun 2009, at 19:17, Henning Hraban Ramm wrote: Am 2009-06-26 um 19:33 schrieb Gerben Wierda: \typefile balks on filenames with $ characters in their names. Anything I can do about that? Rename the file

[NTG-context] \typefile with filenames with $ characters in their name

2009-06-26 Thread Gerben Wierda
\typefile balks on filenames with $ characters in their names. Anything I can do about that? G ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-26 Thread Hans Hagen
Gerben Wierda wrote: \typefile balks on filenames with $ characters in their names. Anything I can do about that? probeer eens: \expanded{\typefile{\detokenize{}}} - Hans Hagen

Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-26 Thread Gerben Wierda
On 26 Jun 2009, at 22:40, Hans Hagen wrote: Gerben Wierda wrote: \typefile balks on filenames with $ characters in their names. Anything I can do about that? probeer eens: \expanded{\typefile{\detokenize{}}} \def\typeSQLfile#1{\expanded{\typefile[SQL]{\detokenize{#1 \typeSQLfile

[NTG-context] Looks like a bug in \typefile[option=LANG]

2008-12-31 Thread Andrey Riabushenko
I have defined a new float environment for source file listings. \definefloat [listing] [listings] \definetyping[listing][numbering=file] \placelisting[lst:set]{Example of set tree} { \typefile[listing][option=C]{set.cpp} } It works just as expected. Then I have tried to change standard

Re: [NTG-context] typefile

2008-11-10 Thread Hans Hagen
Aditya Mahajan wrote: \starttext \typefile{test-aditya-001.tex} \stoptext Ah, this also works here. The error only shows if the file does not have an extension. this is fixed (hack, awaiting a proper split of supp-fil into mkii and mkiv) Hans

Re: [NTG-context] typefile

2008-11-10 Thread luigi scarso
On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen [EMAIL PROTECTED] wrote: Aditya Mahajan wrote: \starttext \typefile{test-aditya-001.tex} \stoptext Ah, this also works here. The error only shows if the file does not have an extension. this is fixed (hack, awaiting a proper split

Re: [NTG-context] typefile

2008-11-10 Thread Hans Hagen
luigi scarso wrote: On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Aditya Mahajan wrote: \starttext \typefile{test-aditya-001.tex} \stoptext Ah, this also works here. The error only shows if the file

Re: [NTG-context] typefile

2008-11-10 Thread Aditya Mahajan
On Mon, 10 Nov 2008, Hans Hagen wrote: bah, i'll fis this asap (when i do the split) For me this is not urgent as there is a manual workaround. \def\filepath{the current working directory} Thanks, Aditya ___ If

[NTG-context] typefile

2008-10-30 Thread Aditya Mahajan
Hi, Something is wrong with \typefile in latest context in MKIV. \starttext \typefile{somefile} \stoptext (the file 'somefile' should exist) gives ! Undefined control sequence. argument \filepath \pathplusfile #1#2-#1 \f!pathseparator #2 \mktypefileverbatim

  1   2   >