Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
} \startleftbartext[framecolor=darkgreen, backgroundcolor=lightgreen] \setupalign[flushleft, verytolerant] % range={1,-1} not currently supported % See below for details \typefile[range={1,-1}]{#1} \stopleftbartext} \defineexternalfilter [R] [ filtercommand={R CMD

Re: [NTG-context] Filter module for R

2020-06-15 Thread Fabrice L
re={\blank[quarterline]\startleftbartext}, >after={\stopleftbartext}, > ] > > \define[1]\ShowOutput >{\typeRCODEfile{\externalfilterinputfile} > \startleftbartext[framecolor=darkgreen, backgroundcolor=lightgreen] > \setupalign[flushleft, verytolerant] >

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
\startleftbartext[framecolor=darkgreen, backgroundcolor=lightgreen] \setupalign[flushleft, verytolerant] \typefile[range={3,-1}]{#1} \stopleftbartext} \startbuffer[locale] Sys.setlocale(category="LC_ALL", locale="en_US.UTF-8") \stopbuffer \defineexternalfil

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
currently supported % See below for details \typefile[range={1,-1}]{#1} \stopleftbartext} \defineexternalfilter [R] [ filtercommand={R CMD BATCH -q --no-timing --save --restore \externalfilterinputfile\space \externalfilteroutputfile}, output=\externalfilterbasefile.out,

[NTG-context] Filter module for R

2020-06-14 Thread Fabrice L
utput=\externalfilterbasefile.out,     directory=output,     readcommand=\typefile,     read=no,     cache=yes,     purge=yes   ]\starttextSome text...\startR[read=yes]   pdf("RPlots/MyHistogram.pdf",5,5)   X <- rnorm(200,mean=10,sd=2)   hist(X, col =  "red3" ,  xlab="Score QI&qu

[NTG-context] Solved: Minimum example of problem getting curly braces printed in METAPOST

2020-04-03 Thread Gerben Wierda
ns[+]{doublefun} > > \stopMPinclusions > > \startMPdefinitions{doublefun} > vardef makeTeXLabel( expr w, h, name) = > show "NAME makeTeXLabel:", name; > save p; picture p ; > save s; string s; > s := "\framed{" & name & "}"; % Curly bra

[NTG-context] Minimum example of problem getting curly braces printed in METAPOST

2020-04-02 Thread Gerben Wierda
save p; picture p ;  save s; string s;  s := "\framed{" & name & "}"; % Curly braces will be missing. I need this to work.  % s := "\type-" & name & "-"; % Curly braces are displayed, but this must become a vbox in the end, so can't use it  show "

Re: [NTG-context] Splitting long floats

2018-10-17 Thread Hans Hagen
\bgroup \insidefloattrue} \unexpanded\def\stopsplittext {\egroup \handledirecttsplit \endgroup} \protect \usemodule[scite] \setupbodyfont[dejavu,8pt] \starttext \splitfloat {\placefigure{some caption}} {\startsplittext \typefile[option=TEX,before=,after=]{oeps.tex

[NTG-context] Splitting long floats

2018-10-17 Thread Henri Menke
that this is intended for tabular material. Is is possible to split other material as well? Cheers, Henri --- \definefloat[listing] \starttext \startplacelisting[title={math.h},location=split] \typefile{/usr/include/math.h} \stopplacelisting \stoptext

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread Alan Braslau
Can't one also use matching strings in the range={,}, (with the command \typefile)? Alan On Sat, 21 Apr 2018 17:29:58 +0200 Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > The verbatim commands have a range key which let you select parts of > the code, > you can u

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread N. Raghavendra
perfectly, with something like this: \starttext \typefile [range={beg:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156, end:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156}] {../coq/univalence/transport/total_path.v} \typefile [range={beg:8edf79a4:6fe4:4a0c:a1a4:5be2ab413b47, end:8edf79a4:6fe4:

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Hans Hagen
{} \protect \StartAditya Leading spaces And some more \StopAditya (1) \typebuffer[Aditya] (2) \typefile{test-temp.tmp} Does what you want but of course it's sort of ugly for a module to do that. What we can do is this which is still ugly but picking up verbatim is always ugly

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-16 Thread Hans Hagen
. This is a simplified version of what I use in the filter module:    \unprotect     \def\AnyFilename#1%     {\ctxcommand{getreadfilename("any",".","#1")}}     \def\ProcessFile#1%   {\edef\InputFile{\AnyFilename{#1}}%    \InputFile    \typefile[\InputFile]}

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-16 Thread Aditya Mahajan
module: \unprotect \def\AnyFilename#1% {\ctxcommand{getreadfilename("any",".","#1")}} \def\ProcessFile#1% {\edef\InputFile{\AnyFilename{#1}}% \InputFile \typefile[\InputFile]} \protect \starttext \ProcessFile{http://cim

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] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
the same name, i.e. \setuplinenumbering[TEX]? And if it finds such numbering style, it will use it? Best regards, Lukas \starttext \typefile[TEX]{\inputfilename} \stoptext Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dum

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Wolfgang Schuster
yping [TEX] [numbering=line] \starttext \typefile[TEX]{\inputfilename} \stoptext Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy tex

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
Hello, in the following example line numbering with \typefile works well except the last page - here it doesn't follow the style assigned. What's wrong? Best regards, Lukas \starttext Some text here \page \start \setupinterlinespace[1.8ex] \definefont

[NTG-context] Line numbering broken somehow?

2017-03-28 Thread Procházka Lukáš Ing .
Hello, in the following example line numbering with \typefile works well except the last page - here it doesn't follow the style assigned. What's wrong? Best regards, Lukas \starttext Some text here \page \start \setupinterlinespace[1.8ex] \definefontsize[z

Re: [NTG-context] keep interaction with \insertpages and \filterpages

2017-01-18 Thread Hans Hagen
[1.pdf][page=3,interaction=all]\stopTEXpage \setuplayout[page] \setupexternalfigure[interaction=all] \filterpages[1.pdf][1,2,3] \page \setuplayout[reset] \typefile{1.tex} \stoptext

Re: [NTG-context] Access ConTeXt dimensions in Lua

2016-10-09 Thread Hans Hagen
n... ;) \starttext \startluacode io.savedata("settings.txt", number.topoints(tex.dimen.textwidth)) \stopluacode \typefile{settings.txt} \stoptext - Hans Hagen | PRAGMA ADE

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] Buffer with syntax highlighting

2016-02-17 Thread Hans Hagen
On 2/17/2016 1:16 PM, Procházka Lukáš Ing. wrote: Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize

[NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize \item Hello! \stopitemize \stopbuffer which

Re: [NTG-context] Switching to landscape

2015-12-29 Thread Wolfgang Schuster
If the default "height" is kept, no manual reset is necessary. See this: %\setuplayout[height=277mm] % This value is useful for portrait orientation; try to un/comment \starttext Aaa \page \setuppapersize[A4,landscape] % "Height" should be reset \setuplayo

Re: [NTG-context] Switching to landscape

2015-12-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
height=277mm] % This value is useful for portrait orientation; try to un/comment \starttext Aaa \page \setuppapersize[A4,landscape] % "Height" should be reset \setuplayout Bbb \typefile{Text.txt} \stoptext Is there a way to "reset" to the default (landscape

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] Asymptote in Context

2015-01-02 Thread Context NTG
in the final docuement. \defineexternalfilter [ASY] [filtercommand={asy -tex context -View -outformat pdf -outname \externalfilteroutputfile\space \externalfilterinputfile}, output=\externalfilterbasefile.out, readcommand=\typefile, cache=force, location=text, continue=yes] \starttext \startASY

[NTG-context] Asymptote in Context

2014-12-08 Thread context context
] [filtercommand={asy -tex context -View -outformat pdf -outname \externalfilteroutputfile\space \externalfilterinputfile}, output=\externalfilterbasefile.out, readcommand=\typefile, cache=force, location=text, continue=yes] \starttext \startASY[myplot] draw((1,1)--(2,4)); \stopASY \externalfigure

[NTG-context] luatex lunatic

2013-12-18 Thread DesdeChaves
=\externalfilterbasefile.out, directory=output, readcommand=\typefile, read=no, cache=yes, ] Jorge ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] luatex lunatic

2013-12-18 Thread Hans Hagen
, readcommand=\typefile, read=no, cache=yes, ] Jorge ___ 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

Re: [NTG-context] luatex lunatic

2013-12-18 Thread luigi scarso
--restore \externalfilterinputfile\space \externalfilteroutputfile}, output=\externalfilterbasefile.out, directory=output, readcommand=\typefile, read=no, cache=yes, ] Jorge I'm sorry to say that I cannot help you with luatex lunatic, luatex 0.42 is too old

Re: [NTG-context] luatex lunatic

2013-12-18 Thread Alan Braslau
\externalfilteroutputfile}, output=\externalfilterbasefile.out, directory=output, readcommand=\typefile, read=no, cache=yes, ] Jorge -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread john Culleton
is no frame around the text and there is no caption. Hi, this works here: --8---cut here---start-8--- \starttext \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\framed{\externalfigure[ex1

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread Wolfgang Schuster
the content to the given width. You can get the same effect with the \scale command, another way is to change the font size for the verbatim block with \typefile[bodyfont=small]{filename} or \typefile[bodyfont=8pt]{filename}. Wolfgang

[NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread john Culleton
Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. \startbuffer[ex1] \typefile[]{example1.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\externalfigure[ex1.buffer][width

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
] \typefile[]{test.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\framed{\externalfigure[ex1.buffer][width=.75\textwidth]}} \stoptext --8---cut here---end---8--- ConTeXt version: 2013.05.28 00:36 -- Peter

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Wolfgang Schuster
---cut here---start-8--- \starttext \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\framed{\externalfigure[ex1.buffer][width=.75\textwidth]}} \stoptext --8---cut here---end---8--- Why do

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
On Tue, Jul 30 2013, Wolfgang Schuster wrote: Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer Why do you use a buffer? Copy + paste ... ;) (brain was somewhere else... ;) -- Peter

[NTG-context] Does the R-Module work (or how)?

2013-06-18 Thread Erik Margraf
([[#1 ]])} \stopR #-\doifmode {*\v!first }\runR \typefile {\Rfile .out} l.20 \stopR -- I'm using: OS: Debian 7.0 64Bit context --version: mtx-context | current version

Re: [NTG-context] Does the R-Module work (or how)?

2013-06-18 Thread Aditya Mahajan
--ifchanged=\Rfile \space --direct R CMD BATCH -q --save --restore \ \executesystemcommand #1x-\ctxlua {os.execute([[#1 ]])} \stopR #-\doifmode {*\v!first }\runR \typefile

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
\typefile[framedfile]{knuth.tex} \stoptext To store text and reuse it buffers are the best tool: \startbuffer[ward] The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence

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] Strange bug with \ in footnotes

2012-08-05 Thread Hans Hagen
}% \ctxlua{str = \detokenize{#1} print(str) context(str) io.savedata(temp.tmp,str)}} \def\TestC#1% {\writestatus{Test C}{#1}% \edef\temp{#1}% \ctxlua{str = \detokenize\expandafter{\temp} print(str) context(str) io.savedata(temp.tmp,str)}% \typefile{temp.tmp}} \TestA{Test

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] footnotes: conversion = numberconversion

2011-06-20 Thread Hans Hagen
a footnote (e).} \typefile{symbols-001.tex} \stoptext I'll put a beta on the ftp (as I needed to adapt some description related code and as usual I'll have made some typos so you depend on Wolfgang's checking. Wolfgang: we have a new key 'symbol' for enumerations and footnotes.) On the agenda

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

Re: [NTG-context] bug with showlayout

2011-05-16 Thread Hans Hagen
!repeat]} \gdef\showframe {\dodoubleempty\doshowframe} \gdef\showsetups {\ctxcommand{showlayoutvariables()}} \gdef\showlayout % interfereert lelijk met een \typefile er na {\ctxcommand{showlayout()}} \gdef\showmargins {\starttabulate \NC asynchrone \NC \doifoddpageelse {odd} {even

[NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way how to disable wrapping (breaking) very long lines being processed by \typefile? E.g. with a \definetyping option? Kind 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

Re: [NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Hans Hagen
On 18-1-2011 5:26, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, is there a way how to disable wrapping (breaking) very long lines being processed by \typefile? E.g. with a \definetyping option? you have some control over spaces space=on|stretch|normal Hans

Re: [NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
it reaches that . - That's the thing I'd like to avoid, i.e. to force \typefile to treat lines with like any other line without . (\typefile is used to typeset some text files which may contain a bit longer header; the header contain spaces. And here the line break appears, so I get lines

[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

  1   2   3   >