Re: [NTG-context] ec encoding and tcaron

2005-08-14 Thread Vit Zyka
to be fed into pdf specific data structures, in different encodings, with different kind of escapes etc) and that in for instance buffers, verbatim, multi-pass data and other situations one may need the original input; it all depends on how a macro package is build and deals with data and also

Re: [NTG-context] Verbatim with linebreaks sillyness

2005-08-06 Thread Eugene Toporov
Taco, Just tried this and it is really cool! But how can I make spaces without the special space character? ThanksOn 7/29/05, Taco Hoekwater [EMAIL PROTECTED] wrote: Hi,I saw this on the wiki: http://contextgarden.net/Verbatim_with_line_breaksand it seemed like a fun idea to play with for a

Re: [NTG-context] Verbatim with linebreaks sillyness

2005-08-06 Thread Taco Hoekwater
Eugene Toporov wrote: Taco, Just tried this and it is really cool! But how can I make spaces without the special space character? Like so: \def\BREAKtypeone#1% {\advance\BREAKcharcounter 1 \ifnum\BREAKcharcounter \BREAKmaxcharcount \hfil\break \BREAKcharcounter=1

[NTG-context] Verbatim with linebreaks sillyness

2005-07-29 Thread Taco Hoekwater
Hi, I saw this on the wiki: http://contextgarden.net/Verbatim_with_line_breaks and it seemed like a fun idea to play with for a bit. How's this? Cheers, Taco % % BREAK is a special pretty handler that auto-wraps lines % to fit the current hsize. \gdef\BREAKsetspecials%

Re: [NTG-context] how to number poetry?

2005-07-18 Thread Mojca Miklavec
of the TeXBOOK, typesetting verbatim. If I manage to fix that too, I'll post it here. %% % new counter for counting lines % it is set to 0 at the beginning, % but you can redefine it any time by saying \lineno=7 or similar \newcount\lineno % if 0, nothing happens, if 1, no line number

Re: [NTG-context] how to number poetry?

2005-07-18 Thread Hans Hagen
in Appendix D of the TeXBOOK, typesetting verbatim. If I manage to fix that too, I'll post it here. %% % new counter for counting lines % it is set to 0 at the beginning, % but you can redefine it any time by saying \lineno=7 or similar \newcount\lineno % if 0, nothing happens, if 1

Re: [NTG-context] Re: Confusion with font instructions

2005-07-04 Thread Hans Hagen
discussed last ntg meeting); for instance, - say that you want verbatim - and use ec encoding - and use kb names - and don't want --- ligatures and such impossible (with the current tex, less impossible with the next release of pdftex) .. so, you switch to texnansi - for which there are kb

[NTG-context] text backgrounds in bTABLE...

2005-06-17 Thread Martin Kolarík
into cell as it is spread over all text width. The attached example contains corresponding TeX code -- a cell contains two pars and one verbatim with background. And the background flows out of the cell. Thank you and have a nice day, Martin tblverbatim.tex Description: Binary data

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Peter Münster
, how I could write some verbatim text between 2 commands (\startXXX...\stopXXX) into a file, but with my own macros. Here an example in detail: \newcount\LSTnum \newwrite\LSTfile \def\LSTfileprefix{\jobname-LST\LSTnum} \def\startLST[#1]#2\stopLST{% \immediate\openout\LSTfile=\LSTfileprefix.tmp

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Taco Hoekwater
: \definebuffer[crap] \setupbuffer[crap][before=\blank\bgroup here we start,after=and here we end\egroup\blank] [...] Hello Hans and Taco, thank you for your hints, but I think, I did not explain my question well enough... I fact, all I need is to know, how I could write some verbatim text

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Hans Hagen
did not explain my question well enough... I fact, all I need is to know, how I could write some verbatim text between 2 commands (\startXXX...\stopXXX) into a file, but with my own macros. Here an example in detail: \newcount\LSTnum \newwrite\LSTfile \def\LSTfileprefix{\jobname-LST\LSTnum} \def

Re: [NTG-context] typing questions

2005-04-28 Thread Nikolai Weibull
correctly, albeit a bit hackishly. It's not too fun working with the verbatim code, though. It's a bit restrictive in what can be done. Anyway, I've attached it here. Perhaps we can make something standard of it?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se

Re: [NTG-context] Another verbatim bug?

2005-04-19 Thread Hans Hagen
Taco Hoekwater wrote: Nikolai Weibull wrote: Idris Samawi Hamid, April 17: \type{texfont --help} The bug is apparently in \type: it only generates one dash. the Latin Modern fonts are in 'ec' encoding, and \type does not take that into account (yet). If you switch to texnansi encoding, the

[NTG-context] Another verbatim bug?

2005-04-17 Thread Idris Samawi Hamid
Dear gang, \type and \start-\stoptyping produce different results in the following instance: === % output=pdf interface=en \starttext \type{texfont --help} \starttyping texfont --help \stoptyping \stoptext === The bug is apparently in \type: it only

Re: [NTG-context] Another verbatim bug?

2005-04-17 Thread Nikolai Weibull
Idris Samawi Hamid, April 17: \type{texfont --help} The bug is apparently in \type: it only generates one dash. This doesn't happen on my system, but perhaps you're using a newer ConTeXt version than I am, nikolai (who's using the 2005.01.31 that ships with teTeX 3.0) -- Nikolai

Re: [NTG-context] Another verbatim bug?

2005-04-17 Thread Taco Hoekwater
Nikolai Weibull wrote: Idris Samawi Hamid, April 17: \type{texfont --help} The bug is apparently in \type: it only generates one dash. the Latin Modern fonts are in 'ec' encoding, and \type does not take that into account (yet). If you switch to texnansi encoding, the problem goes away:

Re: [NTG-context] Another verbatim bug?

2005-04-17 Thread Thomas A . Schmitz
Yeah, that appears to be a bug, I was in touch with Hans a couple of weeks ago about it. But a fairly harmless one... Best Thomas On Apr 17, 2005, at 4:26 PM, Idris Samawi Hamid wrote: The bug is apparently in \type: it only generates one dash. Best Idris

RE: [NTG-context] Possible bug in verbatim

2005-04-16 Thread Idris Samawi Hamid
Hi Willi = Original Message From Willi Egger [EMAIL PROTECTED] = Hi Idris, Asking for brace-trickery ... What about: \textbraceleft\type{A}\textbraceright Wow! that's ingenious;) Thank you Willi, Taco, and Hans for your help on this. best Idris Professor

Re: [NTG-context] Possible bug in verbatim

2005-04-15 Thread Hans Hagen
Taco Hoekwater wrote: Idris Samawi Hamid wrote: Dear cartel, \head\relax \type{ {A} } Not a solution, but a workaround: \head\relax \expandafter\type\scantokens{{ {A} }} (I don't know how to solve this) I do, but i have no idea how robust it is ... % in cont-new.tex \unprotect

Re: [NTG-context] Possible bug in verbatim

2005-04-15 Thread Willi Egger
Hi Idris, Asking for brace-trickery ... What about: \textbraceleft\type{A}\textbraceright Kind regards Willi (member of the gang) Idris Samawi Hamid wrote: Dear cartel, There is an apparent bug in the verbatim mechanism. In the following example, the `A' is typed but the curly brackets

Re: [NTG-context] Possible bug in verbatim

2005-04-15 Thread Nikolai Weibull
Idris Samawi Hamid, April 14: \type{ {A} } Wait, what? You can have nested braces in \type? I had no idea! That actually saves me a lot of trouble, thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in

[NTG-context] Possible bug in verbatim

2005-04-14 Thread Idris Samawi Hamid
Dear cartel, There is an apparent bug in the verbatim mechanism. In the following example, the `A' is typed but the curly brackets are not typed after \head. \type works as expected in the other two instances. I tried \relax (and a couple of other hacks) but that does not help. Please advise

Re: [NTG-context] footnote placement

2005-03-29 Thread Hans Hagen
indeed get a verbatim buffer (which is what type does); \dorecurse{100}{test \footnote{\input knuth } \endnote{eee}\endgraf} also works; put a space or \relax after \input, else tex keeps scanning; alternatively use \ReadFile{knuth} or \readfile{knuth}{}{} \page \placenotes[endnote] \stoptext

RE: [NTG-context] footnote placement

2005-03-29 Thread Idris Samawi Hamid
= Original Message From Hans Hagen [EMAIL PROTECTED] = \starttext \startbuffer[tufte] \input tufte \stopbuffer \startbuffer[knuth] \input knuth \stopbuffer \dorecurse{100}{test \footnote{\typebuffer[knuth]} \endnote{eee}\endgraf} it's \getbuffer else you indeed get a verbatim

Re: [NTG-context] patterns

2005-02-14 Thread Willi Egger
: Context Typographic Macros (ini) ) (c:\ALPHA-~1\tex\texmf-local/tex/context/base/verb-ini.tex loading : Context Verbatim Macros / Initialization ) (c:\ALPHA-~1\tex\texmf-local/tex/context/base/core-var.tex loading : Context Core Macros / Variables ) (c:\ALPHA-~1\tex\texmf-local

[NTG-context] XML question regarding special characters

2005-01-07 Thread Zeljko Vrba
Hi! I'm trying to design a universal markup that will be easy to convert both to PDF and HTML. I've come to code and equations. I don't want to use MathML and I want to output (and use in my documents!) verbatim TeX code of equations to HTML. What worries me is the following: I want to be able

Re: [NTG-context] algorithms style : need \starttyping with TeX and math feature

2005-01-03 Thread Maurice Diamantini
want: it disables math and expansion of TeX commands. Also, perhaps my request is simply an option of \startlines which keep not only the lines break, but also the first spaces of each line (in a verbatim font fors these space) Happy new year ! Thanks to Mojca and John, I use \startlines

Re: [NTG-context] algorithms style : need \starttyping with TeX and math feature

2004-12-27 Thread h h extern
an option of \startlines which keep not only the lines break, but also the first spaces of each line (in a verbatim font fors these space) In plain TeX you have a command \obeyspaces (apart from \obeylines). Nevertheless, whitespaces at the beginning of line are ignored when using \obeyspaces, so you

Re: [NTG-context] algorithms style : need \starttyping with TeX and math feature

2004-12-25 Thread John Culleton
of TeX commands. Also, perhaps my request is simply an option of \startlines which keep not only the lines break, but also the first spaces of each line (in a verbatim font fors these space) In plain TeX you have a command \obeyspaces (apart from \obeylines). Nevertheless, whitespaces

[NTG-context] algorithms style : need \starttyping with TeX and math feature

2004-12-24 Thread Maurice Diamantini
(in a verbatim font fors these space) Thank you for any help! -- Maurice Diamantini ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] algorithms style : need \starttyping with TeX and math feature

2004-12-24 Thread Maurice Diamantini
keep not only the lines break, but also the first spaces of each line (in a verbatim font fors these space) Thank you for any help! -- Maurice Diamantini ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] algorithms style : need \starttyping with TeX and math feature

2004-12-24 Thread Mojca Miklavec
of \startlines which keep not only the lines break, but also the first spaces of each line (in a verbatim font fors these space) In plain TeX you have a command \obeyspaces (apart from \obeylines). Nevertheless, whitespaces at the beginning of line are ignored when using \obeyspaces, so you

Re: [NTG-context] XML in ConTeXt verbatim text

2004-12-16 Thread Hans Hagen
;Some textlt;/pgt; lt;/bodygt; lt;/htmlgt; /programlisting I have defined the entity conversion: \defineXMLentity[gt]{\char`\{}} \defineXMLentity[lt]{\char`\{}} This works OK if the entities occur somewhere in the normal text but it doesn't matter in the verbatim text. Is there any solution

Re: [NTG-context] XML in ConTeXt verbatim text

2004-12-16 Thread Richard Gabriel
text but it doesn't matter in the verbatim text. Is there any solution for this? Maybe changing catcodes of the and ; characters? maybe it's enough to add \catcode`\=\active Hans - Hans Hagen

Re: [NTG-context] XML in ConTeXt verbatim text

2004-12-15 Thread Richard Gabriel
Hi Adam, I did so right now (thanks for the hint!). But in that file ther's only solved a case when each line of the verbatim text is placed in a special tag: verbatim lineDit \is nogal verbatim !/line lineDit is {nogal} verbatim !/line lineDit is nogal verbatim !/line /verbatim

[NTG-context] Re: mag-0008

2004-12-15 Thread Hans Hagen
=reference.type / ?context-block end references ? ?context-block begin unknown ? xsd:element name=unknown/ ?context-block end unknown ? ?context-block begin verbatim ? !-- string or anyType -- xsd:complexType name=verbatim.verbatim xsd:sequence maxOccurs=unbounded xsd:element name=line

Re: [NTG-context] XML in ConTeXt verbatim text

2004-12-15 Thread Hans Hagen
Richard Gabriel wrote: Hi Adam, I did so right now (thanks for the hint!). But in that file ther's only solved a case when each line of the verbatim text is placed in a special tag: verbatim lineDit \is nogal verbatim !/line lineDit is {nogal} verbatim !/line lineDit is nogal verbatim

[NTG-context] XML in ConTeXt verbatim text

2004-12-14 Thread Richard Gabriel
Hi all, I'm back here with the following problem: I'm processing XML files (DocBook DTD) which also may contain the programlisting tag with some preformatted text. In a sample TeX file, I've tested the following: \starttyping somecontext variable name=Var Value of Var /variable /somecontext

Re: [NTG-context] XML in ConTeXt verbatim text

2004-12-14 Thread Adam Lindsay
Richard Gabriel said this at Tue, 14 Dec 2004 16:48:05 +0100: So I defined a macro to process the programlisting tag from the XML file: \defineXMLenvironment[programlisting]{\starttyping}{\stoptyping} Richard, Have you taken a look at x-contml to see how it solves this problem with verbatim

Re: [NTG-context] Natural Table does not allow using defined typing in its cell

2004-09-23 Thread Hans Hagen
[background=screen,width=\hsize,style=\tttf\small] Hello World! Hello + txtName.text + ! \stopframedtext \eTD Why is this so? Do I miss something important? indeed, passing verbatim as argument does not work due to catcode wizzardy; so, try to use buffers instead \startbuffer

[NTG-context] verbatim pseudo-code

2004-08-31 Thread Nikolai Weibull
I would like to create a verbatim environment for writing pseudo-code in. Anyone have any suggestions/hints on how to go about it. I've looked at verb-*.tex, but they don't enlighten much. I basically want simple stuff like pseudo-code you'd find in one of Knuth's books or anything by Aho

[NTG-context] Re: verbatim pseudo-code

2004-08-31 Thread Nikolai Weibull
* Nikolai Weibull [EMAIL PROTECTED] [Aug 31, 2004 16:00]: I would like to create a verbatim environment for writing pseudo-code in. Anyone have any suggestions/hints on how to go about it. I've looked at verb-*.tex, but they don't enlighten much. I basically want simple stuff like pseudo

[NTG-context] Re: verbatim pseudo-code

2004-08-31 Thread Nikolai Weibull
* Nikolai Weibull [EMAIL PROTECTED] [Aug 31, 2004 17:20]: What I really need to know now (I got a small implementation I want to try out) is how to install the verbatim environment and then how to try it out. OK. Here's a preliminary implementation. Perhaps using a verbatim environment

Re: [NTG-context] defining a frame with embedded typing

2004-08-17 Thread Brooks Moses
verbatim environments, scans through the following text until it gets to the appropriate end text. It doesn't expand tokens while doing this; in particular, \stopTTinput never gets expanded, and so the sequence \stoptyping never shows up to end the input. Incidentally, there's also a bit more

[NTG-context] updates

2004-08-10 Thread Hans Hagen
and such. (interestingly this is no real problem for context since the control characters (32) are mostly used for file io, verbatim, pdf, metapost, javascript, xml etc). Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] accents in funny frame

2004-07-28 Thread Hans Hagen
]% \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,14pt] \stopMPenvironment i've fixed this (some merge of verbatim tex into textext problem); i'll send you a new texexec.pl btw, this saves keying: \startMPenvironment[global] \enableregime[il1

Re: [NTG-context] Re: listings.sty

2004-06-28 Thread Hans Hagen
), perhaps the capabilities of ConTeXt are already sufficient. On the other side, listings.sty is a very great package and mostly written in Plain TeX. So perhaps it's worth the effort. I don't know... A verbatim environment is tricky because one has to play with catcodes and the endcondition

Re: [NTG-context] Re: listings.sty

2004-06-28 Thread Peter Mnster
the LaTeX built in mechanisms are used (for example \addcontentsline{lol}{lstlisting}{...}. Here the LaTeX interface must be replaced by a ConTeXt interface. If some features are missing in the current verbatim environment (one of the older parts of context) i can add them if needed. On the other hand

[NTG-context] Re: Re: listings.sty

2004-06-28 Thread Nikolai Weibull
* Peter Münster [EMAIL PROTECTED] [Jun 28, 2004 20:00]: Personally for me, today I'm just looking for two features: - line breaking as suggested in my email from 19. June (- \hyphenatedfile) - support for C and C++ What I think would work best is if someone could document the verbatim

Re: [NTG-context] Wrapping \type{}

2004-06-01 Thread Hans Hagen
. \stopBNF \stoptext (cross your fingers that this does not interfere with reading files, but normallyare taken care of) an alternative is to write a plugin forthe verbatim environment (see verb-ini to get an idea of what nasty things are involved with catcode changes). Hans

Re: [NTG-context] verbatim problem

2004-04-27 Thread John Culleton
On Thursday 22 April 2004 08:59 am, Severin Obertüfer wrote: hello i have a little verbatim problem i used the \startEIFFEL \stopEIFFEL verbatim environment in a verry simple way like this: Similarly I needed to have the program obey line breaks as in \obeylines but interpet the lines

AW: [NTG-context] verbatim problem

2004-04-22 Thread Severin Obertüfer
-Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Willi Egger Gesendet: Donnerstag, 22. April 2004 21:51 An: [EMAIL PROTECTED] Betreff: Re: [NTG-context] verbatim problem Hi, Did you think of putting the information into a buffer

Re: [NTG-context] TaBle example fails

2004-04-01 Thread Christopher G D Tipper
On 31 Mar 2004 at 8:44, George N. White III wrote: On Tue, 30 Mar 2004, Christopher G D Tipper wrote: I am learning the TaBle package and I get the following from a verbatim example from the manual. ConTeXt uses heavily modified macros. There is \ObeyTableBarAndQuote, but you still

Re: [NTG-context] TaBle example fails

2004-03-31 Thread George N. White III
On Tue, 30 Mar 2004, Christopher G D Tipper wrote: I am learning the TaBle package and I get the following from a verbatim example from the manual. ConTeXt uses heavily modified macros. There is \ObeyTableBarAndQuote, but you still need to use the ConTeXt versions of the macros. See core

[NTG-context] TaBle example fails

2004-03-30 Thread Christopher G D Tipper
I am learning the TaBle package and I get the following from a verbatim example from the manual. \handleTABLEerror ...LE {columnspan too large}\SR \or \fillTABLEcolumns \ttt... l.54 \use2 control

[NTG-context] ConTeXt-live distribution

2003-12-10 Thread Maurice Diamantini
package which allows to do clever table - every package which allows to do verbatim, ... But ConTeXt is an independant, modern TeX based distribution (even if it don't (yet) know about simple html :-). So was do we need to be able to switch from LaTeX to ConTeXt? - a simple standard tetex distib

Re: [NTG-context] ConTeXt-live distribution

2003-12-10 Thread Zunbeltz Izaola
which allows to do clever table - every package which allows to do verbatim, ... But ConTeXt is an independant, modern TeX based distribution (even if it don't (yet) know about simple html :-). So was do we need to be able to switch from LaTeX to ConTeXt? - a simple standard tetex distib for our

[NTG-context] page backgrounds

2003-11-16 Thread Thomas A . Schmitz
These are my first forays into the unknown territories of Metapost. The following code is copied verbatim from the matafun-manual: \startuniqueMPgraphic{copyright} picture p ; p := btex COPYRIGHT etex rotated 90 ; setbounds p to boundingbox p enlarged 1pt ; draw p withcolor .8white

[NTG-context] Re: page backgrounds

2003-11-16 Thread Patrick Gundlach
Hello Thomas, These are my first forays into the unknown territories of Metapost. You'll enjoy your journey once you get MP working. The following code is copied verbatim from the matafun-manual: [...] But I don't see anything. The log shows that metapost calculated a background, but I

[NTG-context] Odp: ntg-context digest, Vol 1 #484 - 13 msgs

2003-09-24 Thread ^Nitram^
Hi, I try to define new command with typing in this way: Don't mess with verbatim stuff in commands. Don't ask why, just don't do it ;-) \definetyping [nitram] [before=\startframedtext, after=\stopframedtext] \starttext \startnitram crazy \stopnitram \stoptext It works

[NTG-context] Re: Odp: ntg-context digest, Vol 1 #484 - 13 msgs

2003-09-24 Thread Patrick Gundlach
Hi, It works but if I use \startnitram \getbuffer \stopnitram I have as result: \getbuffer ;) right, that is verbatim mode :) I would like to define some code in buffer and use it as example (typing this code) and show how it works (use this code). I can use \getbuffer

[NTG-context] Re: Typing in new command problems

2003-09-23 Thread Patrick Gundlach
^Nitram^ [EMAIL PROTECTED] writes: Hi, I try to define new command with typing in this way: \def\Command#1% { \framed[options] { \starttyping #1 \stoptyping } } Don't mess with verbatim stuff in commands. Don't ask why, just don't do it ;-) And: TeX != C. Don't write C-like

[NTG-context] Re: \type doen't type -- with latin-modern fonts.

2003-09-13 Thread Patrick Gundlach
with ligature building and one for verbatim, say: cmtt10.tfm cmtv10.tfm (cmvtt is already taken) and some more of the font mess let's see what Jacko says ... that would be good to hear. Patrick ___ ntg-context mailing list [EMAIL PROTECTED

Re: [NTG-context] ConTeXt, XML and verbatim

2003-09-04 Thread Pawel Jackowski na Onet
Hi! On Wed, Sep 03, 2003 at 09:49:40PM +0200, Simon Pepping wrote: Meybe someone knowns how to 'translate' verbatim environments for XML code? I mean how to define environment which I can use in this way [..] There are no verbatim environments in XML, and you cannot get literal

Re: [NTG-context] ConTeXt, XML and verbatim -- thanks

2003-09-04 Thread Hans Hagen
At 08:49 04/09/2003 +0200, you wrote: Hello! There are no verbatim environments in XML, and you cannot get literal content. Instead, you can have tags, like your verbatim above, that request line-oriented layout. programlisting is such a tag in Docbook. This is how docbook in context does

Re: [NTG-context] ConTeXt, XML and verbatim

2003-09-04 Thread Hans Hagen
At 21:09 04/09/2003 +0200, you wrote: Good question! As far as I'm concerned (but I'm not concerned far...) ConTeXt can handle some 'metadata' like !ENTITY But I don't know exaclty which levels of XML syntax is handled with ConTeXt core. I hope Hans will provide some workshops :) well,

[NTG-context] ConTeXt, XML and verbatim

2003-09-03 Thread Pawel Jackowski na WP
is that it DOESN'T work for nested XML files. How can I set someting like this for the whole XML structure, not only for file processed just 'under' ConTeXt? It works only for the file processed directly by the command \processXMLfile{...} II. Meybe someone knowns how to 'translate' verbatim environments

Re: [NTG-context] ConTeXt, XML and verbatim

2003-09-03 Thread Simon Pepping
On Wed, Sep 03, 2003 at 04:09:32PM +0200, Pawel Jackowski na WP wrote: II. Meybe someone knowns how to 'translate' verbatim environments for XML code? I mean how to define environment which I can use in this way verbatim /verbatim to get literal content of such XML tag

<    3   4   5   6   7   8