I'm almost there:
\definetyping[SQL][option=color,numbering=line]
\defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}]
\starttext
\setuppapersize[A4,landscape][a4,landscape]
\setupbackgrounds[page][overlay=ifsqoverlay]
\typefile[SQL][]{details.pls}
\stoptext
Gets me the landscape, A4
\setuppapersize[A4,landscape][a4,landscape]
\setupbackgrounds[page][overlay=ifsqoverlay]
background=ifsqoverlay
\typefile[SQL][]{details.pls}
\stoptext
Gets me the landscape, A4, numbered output. It does not get me the
overlay. Some interaction between verbatim
as a background image)
G
\typefile[SQL][]{details.pls}
\stoptext
Gets me the landscape, A4, numbered output. It does not get me the
overlay. Some interaction between verbatim and overlay? I also do
not see any coloration.
Wolfgang
= containers.define(fonts, def, fonts.version, false)
--[[ldx--
pWe can prefix a font specification by typename:/type or
typefile:/type. The first case will result in a lookup in the
synonym table./p
typing
[ name: | file: ] identifier [ separator [ specification ] ]
/typing
pThe following function
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
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
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
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
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
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
On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
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
On Thu, 30 Oct 2008, luigi scarso wrote:
On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
Hi,
Something is wrong with \typefile in latest context in MKIV.
\starttext
\typefile{somefile}
\stoptext
(the file 'somefile' should exist)
gives
! Undefined control
On Thu, Oct 30, 2008 at 8:23 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
On Thu, 30 Oct 2008, luigi scarso wrote:
On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan [EMAIL PROTECTED]
wrote:
Hi,
Something is wrong with \typefile in latest context in MKIV.
\starttext
\typefile
=color]
\typefile{assignment1.bas}{vb}
--
Zhaopeng XING
Tinbergen Institute
___
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
]
\typefile{book.ind}
\stopcolumns
And the makeindex command I use is
makeindex -s alpha.ist book.idx
The alpha.ist file adjusts the default output of makeindex. The file
I use is here:
http://wexfordpress.com/tex/alpha.ist
Now I have a satisfactory
]
\typefile[name]{text}
\underbar{text}
\underbars{text text}
# \unexpanded
# \unprotect
# \unprotected
\useblocks[names][names]
\usecommands{text}
\usedirectory[names|reset]
\useencoding[names]
\useexternaldocument[name][file][text]
\useexternalfigure[name][file][options]
\useexternalfile[name][name][file
I have a situation where I wish to import a file and have the line
endings and the spaces honored as in \typefile. But I want any font
changes (e.g. \it) honored as well. I tried the plain TeX commands
\obeylines and \obeyspaces. The line endings and typeface changes
were honored
\input
and \typefile instead
Best wishes,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
of \stopNLE, you can replace
\input \NLfile.out with \typefile{\NLfile.out} in which case you will
not need to escape all the special characters. ConTeXt will do it for
you.
Your manual looks good, and easy to read. I think I will give newlisp
a try to try to understand what is the whole fuss about lisp
with \typefile{\NLfile.out} in which case you will
not need to escape all the special characters. ConTeXt will do it for
you.
OK. In fact I originally had two commands - one for verbatim-text,
the other for generating material to be included in 'ordinary
paragraphs'.
I originally had the code
think.
Another option is \typefile{tmp.out} which will display the file
verbatim, or \typevimfile[syntax=txt]{tmp.out} using txt.vim from
http://www.vim.org/scripts/script.php?script_id=1532
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http
%
{\processdisplayverbatim{#2}} % needs to be fixed
% typefile:
\def\mktypefileverbatim {\processfileverbatim \readfilename} % #1
\def\mktypefilelinesverbatim{\processfilelinesverbatim\readfilename} % #1 / #2#3
\protect \endinput
___
ntg-context mailing
] \setuptype [n\v!type] [style=\narrowtt]
anyhow, as i happen to use m-narrow last night (for an article) last night i
found out that typefile didn't listen to narrowtt but that is fixed now
Hans
I use the lines:
\typefile {samp.tex}{samp.tex}
\page[yes]
\stoptext % For debugging purposes
The file samp.tex contains ascii tex from the sample files
knuth, zapf and tufte, concluded by the single tag \bye.
The document compiles fine and displays fine in xpdf or kpdf
(Linux).
But Acrobat
On Wednesday 19 July 2006 11:21, Taco Hoekwater wrote:
John R. Culleton wrote:
The document compiles fine and displays fine in xpdf or kpdf
(Linux).
But Acrobat Reader 7.0 (Linux) comes up with the message there was a
problem with this document and displays two blank pages instead.
It
that
\stopmode
\egroup
\typeRout }
because \typefile doesnt need \obeylines
Cheers, Taco
--
Johan Sandblom N8, MRC, Karolinska sjh
t +46851776108 17176 Stockholm
m +46735521477 Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact
\egroup
\typeRout }
because \typefile doesnt need \obeylines
Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
{\executesystemcommand{R -q --save --restore \Rfile.r \Rfile.Rout}}
\def\typeRout
{\typefile{\Rfile.Rout}}
\protect \doifnotmode{demo}{\endinput}
\starttext
\startR
a - bla
b - blabla
ls()
\stopR
bla bla
\startRhidden
rm(list=ls())
save.image()
\stopRhidden
bla
\startR
ls()
ushape - c(rexp(50
: loading definition file fdf
(/usr/local/share/texmf-local/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
\openout0 = `typefile-mpgraph.mp'.
\openout0 = `mpgraph.mp'.
(./typefile.tuo) (./typefile.tuo) (./typefile.tuo) (./typefile.tuo
nico wrote:
Hello,
\typefile does not output a file not in the current directory but
available from a path defined by \usepath. It sounds like a bug since the
file is actually found; if not, a message telling that the file does not
exist would be printed.
Example:
\usepath[/path
nico wrote:
On Sun, 30 Apr 2006 12:33:20 +0200, Hans Hagen [EMAIL PROTECTED] wrote:
nico wrote:
Hello,
\typefile does not output a file not in the current directory but
available from a path defined by \usepath. It sounds like a bug since
the
file is actually found
\readfilename, but I'm not
sure to understand correctly the code.
\tracefilestrue
Hm, verbatim seems not using the file interface: there's no trace about
file found or not related to typefile. Another thing I did is to patch
\processfileverbatim to trace what is actually the file used:
\def
to
\makelocreadfilename seems to set improperly \readfilename, but I'm not
sure to understand correctly the code.
\tracefilestrue
Hm, verbatim seems not using the file interface: there's no trace about
file found or not related to typefile. Another thing I did is to patch
\processfileverbatim
where the file is, but a following call to
\makelocreadfilename seems to set improperly \readfilename, but I'm
not
sure to understand correctly the code.
\tracefilestrue
Hm, verbatim seems not using the file interface: there's no trace about
file found or not related to typefile. Another
On Sun, 30 Apr 2006 18:59:53 +0200, Hans Hagen [EMAIL PROTECTED] wrote:
nico wrote:
On Sun, 30 Apr 2006 15:22:49 +0200, Hans Hagen [EMAIL PROTECTED] wrote:
what version of context do you run? i though that i added support for
that some time ago
Version 2006.04.27.
\dodotypefile checks
Hello,
\typefile does not output a file not in the current directory but
available from a path defined by \usepath. It sounds like a bug since the
file is actually found; if not, a message telling that the file does not
exist would be printed.
Example:
\usepath[/path/to/my/file]
\typefile
*/
void do_this(int i){
int bla;
}
\stopC
Here we get \quotation{\type{! Missing number, treated as zero.}}:
\typefile{test.c}
\stoptext
Could you help again?
Cheers, Peter
--
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context
]
\starttext
Contents of file \type{test.c}:
\startC
/** Doing this and that.
\param i the index */
void do_this(int i){
int bla;
}
\stopC
Here we get \quotation{\type{! Missing number, treated as zero.}}:
\typefile{test.c}
\stoptext
Could you help again?
Sorry, this time I cannot
\myTestfile{\jobname-test.tmp}
\def\myTestbla{just a test}
\starttext
\immediate\write18{echo \myMacro{bla} \myMacro{blub} \myTestfile}
\typefile{\myTestfile}
\stoptext
Greetings, Peter
\def\myMacro#1{\ifundefined{myTest#1}Yes\else No\fi}
(see definition of \doifdefinedelse: it does some
][criterium=text]
test
\typefile{test.tuo}
\stoptext
this can be sped up (a bit) with
% \dostepwiserecurse{0}{255}{1}
% {\setevalue{rchr:\recurselevel}{\rawcharacter\recurselevel}}
% \def\rawcharacter#1{\getvalue{rchr:#1}}
this means that all chars are round tripped to themselves in output files
[latin2]
\starttext
\def\numcharacter#1{\rawcharacter{#1}}%
\let\dochar\numcharacter
\writetolist[chapter]{1}{Dobré ráno}
\expanded{\writetolist[chapter]{2}{Dobré odpoledne}}
\placelist[chapter][criterium=text]
test
\typefile{test.tuo}
\stoptext
this can be sped up (a bit
[chapter]{2}{Dobré odpoledne}}
\placelist[chapter][criterium=text]
test
\typefile{test.tuo}
\stoptext
this can be sped up (a bit) with
% \dostepwiserecurse{0}{255}{1}
% {\setevalue{rchr:\recurselevel}{\rawcharacter\recurselevel}}
% \def\rawcharacter#1{\getvalue{rchr:#1
Thomas A. Schmitz wrote:
Yes, same here, the file is missing, so generating the formats runs
into trouble:
loading : MetaPost Graphics / Stand Alone Graphics
) (/usr/local/teTeX/share/texmf.local/tex/context/base/core-pos.tex
loading : Context Positioning Support
)
! I
...
\processfileverbatim ...expandafter \readline \fi
\closein
\verbatiminput \e...
...
l.39 \typefile{/dev/shm/tmp_0.9.xtls}
-
Tobias
...expandafter \readline \fi
\closein
\verbatiminput \e...
...
l.39 \typefile{/dev/shm/tmp_0.9.xtls}
-
Tobias
Peter Rolf wrote:
\doifinset{\\currenttyping\c!option}{\v!commands,\v!slanted,\v!normal}
^^
looks like a bad placed marker :)
The problem is the double backslash (should be
..{\currenttyping\c!option}..
Peter
___
ntg-context
Peter Rolf wrote:
Peter Rolf wrote:
\doifinset{\\currenttyping\c!option}{\v!commands,\v!slanted,\v!normal}
^^
looks like a bad placed marker :)
The problem is the double backslash (should be
..{\currenttyping\c!option}..
it's worse, more is wrong
i'm
On Fri, 24 Mar 2006 22:50:09 +0100, Hans Hagen [EMAIL PROTECTED] wrote:
it's worse, more is wrong
i'm uploading a fixed version; for the source readers:
- page-str.tex
- page-plg.tex
- core-bar.tex
- m-streams.tex
are added; streams are rather experimental but promissing
Strange, I
Yes, same here, the file is missing, so generating the formats runs
into trouble:
loading : MetaPost Graphics / Stand Alone Graphics
) (/usr/local/teTeX/share/texmf.local/tex/context/base/core-pos.tex
loading : Context Positioning Support
)
! I can't find file `core-bar.tex'.
(hence the \begingroup ...
\endgroup in the code above)
Yes, right. Thanks much for your help.
actually, this verbatim specific numbering is not hooked into the typing
environments (only in the typefile stuff); so what you observe are side
effects
i'll send you a test patch off list
Patrick Gundlach wrote:
Hello again,
I know I can use \starttyping with commands by saying
\setuptyping[option=commands] and then /BTEX \red{a red text}}/ETEX.
Can I do the same for \typebuffer[mybuf]? So for example:
No, you can't because buffers are files, and \typefile explicitly
Taco Hoekwater wrote:
For example after command:
\defineshortcut [//] [] [style=\em]
I can get slash only by \textslash (which is expected) and it breaks
things like:
\typefile {some/dir/file}
So how to revert to previous meaning of '/'? It is possible to do it
only temporarily
Radhelorn wrote:
Taco Hoekwater wrote:
For example after command:
\defineshortcut [//] [] [style=\em]
I can get slash only by \textslash (which is expected) and it breaks
things like:
\typefile {some/dir/file}
So how to revert to previous meaning of '/'? It is possible to do it
only
is expected) and it breaks
things like:
\typefile {some/dir/file}
So how to revert to previous meaning of '/'? It is possible to do it
only temporarily?
Explicit \start a /b/ c \stop style grouping is normally best, but
a shortcut is just an active character with a closing defimiter,
so
Hello,
Wolfgang Zillig wrote:
I wan't to typset some programming code \starttyping code \stoptyping
works perfect. But is there a way to use directly the input of a file?
\typefile ?
Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http
Hello,
Wolfgang Zillig wrote:
I wan't to typset some programming code \starttyping code \stoptyping
works perfect. But is there a way to use directly the input of a file?
\typefile ?
Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http
. But is there a way to use directly the input of a
file?
\typefile ?
Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context
things like:
\typefile {some/dir/file}
So how to revert to previous meaning of '/'? It is possible to do it
only temporarily?
Explicit \start a /b/ c \stop style grouping is normally best, but
a shortcut is just an active character with a closing defimiter,
so this will work for you special
:
\typefile {some/dir/file}
So how to revert to previous meaning of '/'? It is possible to do it
only temporarily?
--
Radhelorn [EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
For my current e-book project I use \typefile to import some TeX
files as examples. The syntax is color coded which is very
useful.
Unfortunately on my screen at least the % character is in yellow so faint
as to be unreadable. So I dug into the source code and discovered
that the name
-cond] [default]
[encoding=texnansi]
\setupbodyfont[modern]
\starttext
\typefile{test}
\stoptext
I'd like to see the new dense encoding (discussed on dev list) being
supported as well, but we need to generate metrics for that (can be donw
with metatype tools)
Hans
examples in the manual.
But how do I get rid of the blank line in this example:
\framed
[align=flushleft]
{\typefile{tufte.tex}}
Thank you,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg
Mojca Miklavec wrote:
But how do I get rid of the blank line in this example:
\framed [align=flushleft,
strut=no]
{\typefile{tufte.tex}}
Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman
Taco Hoekwater wrote:
Mojca Miklavec wrote:
But how do I get rid of the blank line in this example:
\framed [align=flushleft,
strut=no]
{\typefile{tufte.tex}}
OK, sure. I didn't think about this one.
Thank you Taco,
Mojca
with options for typing,
e.g.
\typebuffer[A][TEX]
but the second param is ignored. It seems to me, the definition of
\typebuffer is preprepared for that, but not finnished.
Or is there some solution that I omitted?
(It is not crutial since I solved it by calling
\typefile[TEX][]{\jobname-A.tmp
any effect, I alwas get ^^I^^I for the two
tabs.
I have furthermore observed that typing of files via \typefile as well
as \starttyping..\stoptyping are affected, opposed to \typebuffer.
\typefile and the typing environment do never print ^^I for a tab, but
either a space or several spaces
]
\chapter{Bu\v{s}ina, Leopold}
\index{Bu\v{s}ina, Leopold} does not work!
\index{Polda}
\seeindex{Polda}{Bu\v{s}ina, Leopold} does not work!
\typefile{test.tuo}
\placeindex
\stoptext
-
Hans Hagen
rather
unacceptible in my humble opinion. It is,
perhaps, not a coincidence that his last name
is the as that of the color of poo.
\stoptyping
\stoplinenumbering
this works ok here
what is startfiletyping supposed to do?
\setuptyping[file][numbering=file] \typefile{test.tex}
Hans
solve processing XML files in this way. Typing (\typefile) and inputing
(\input) files are still the quest. --path seems not to work with this
commands
or I do something wrong. I'll look closely into it.
another option is to use:
\usepath[list of paths]
\usesubpath[list of subpaths]
Hans
Hi!
another option is to use:
\usepath[list of paths]
\usesubpath[list of subpaths]
Thanks again! It works almost like --path option -- files included with
\processXMLfile ARE included, but files included by
\input (or \typefile) ARE NOT. Anyway I've solved the problem already. I
in this way. Typing (\typefile) and inputing
(\input) files are still the quest. --path seems not to work with this
commands
or I do something wrong. I'll look closely into it.
Regards, Pawe/l
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl
Hello!
In some special cases I need to set paths for input files directly from
ConTeXt code not from config file.
In manuals \setupexternalfigures is described. Is there any similar command
for files that are inputed directly
by \input, \typefile \processXMLfile (the last is the most interesting
201 - 272 of 272 matches
Mail list logo