[NTG-context] verbatim text in MkIV and \installprettytype...

2011-06-12 Thread Julian Becker
Recently, I tried to typeset some verbatim MATLAB source codes in MkIV, but I can't seem to be able to grasp the concept of pretty printers. All the sample codes I found on the net/wiki/mailing list don't compile, complaining that \installprettytype is an unknown command...?! Is there any module

Re: [NTG-context] verbatim text in MkIV and \installprettytype...

2011-06-12 Thread Marco
On 2011-06-12 Julian Becker becker.jul...@gmail.com wrote: Recently, I tried to typeset some verbatim MATLAB source codes in MkIV, but I can't seem to be able to grasp the concept of pretty printers. All the sample codes I found on the net/wiki/mailing list don't compile, complaining

[NTG-context] [metafun] MPenvironment / font switching

2011-06-09 Thread Philipp Gesang
” flag -- in which case it will change the main body font as well. Also, inside mp’s “[verbatim|b]tex ... etex” font switches refuse to work. I’m really puzzled here, any hints? Thanks in advance Philipp pgpLHqqfA6WRe.pgp Description: PGP signature

Re: [NTG-context] [metafun] MPenvironment / font switching

2011-06-09 Thread Wolfgang Schuster
]MPenvironment doesn’t seem to have an effect at all unless called with the “global” flag -- in which case it will change the main body font as well. Also, inside mp’s “[verbatim|b]tex ... etex” font switches refuse to work. I’m really puzzled here, any hints? Thanks in advance ConTeXt postpones

Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Pontus Lurcock
my understanding that anything beyond ASCII is simply not supported by BibTeX. You can get away with it in fields that just get pasted verbatim into the output (usually), but the first three letters of the first author's name are used to construct the key (which is why ‘Schräger’ worked) so there's

Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Julian Becker
that anything beyond ASCII is simply not supported by BibTeX. You can get away with it in fields that just get pasted verbatim into the output (usually), but the first three letters of the first author's name are used to construct the key (which is why ‘Schräger’ worked) so there's no way around

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-26 Thread Peter Rolf
influence on the PDF file size. E. g. if a PNG is copied verbatim, and it contains lots of meta-data info, the PDF file will probably get larger, since normal PNG embedding removes all these info chunks. And what about icc profiles? Another factor influencing the size is if it's PDF-1.4 or PDF

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-26 Thread luigi scarso
helps. Anyway direct embedding or not can have positive or negative influence on the PDF file size. E. g. if a PNG is copied verbatim, and it contains lots of meta-data info, the PDF file will probably get larger, since normal PNG embedding removes all these info chunks. And what about icc

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-25 Thread Hartmut Henkel
flattening transparency also helps. Anyway direct embedding or not can have positive or negative influence on the PDF file size. E. g. if a PNG is copied verbatim, and it contains lots of meta-data info, the PDF file will probably get larger, since normal PNG embedding removes all these info chunks

[NTG-context] \type and linebreak (again)

2011-05-23 Thread Andreas Schneider
} \stopitemize \stoptext I tried with and without the \setupalign/\setuptolerance commands, without success; both lines exceed the margins. (Tested with ConTeXt ver: 2011.05.18 22:26 MKIV fmt: 2011.5.23) Is there anything else I can do/setup to get such long verbatim lines broken? I

Re: [NTG-context] \type and linebreak (again)

2011-05-23 Thread Wolfgang Schuster
) Is there anything else I can do/setup to get such long verbatim lines broken? I would also like an option for character-based line wraps; i.e. it should (optionally; not in this particular case for example) break a word even in the middle if necessary, and without hyphenation mark. Especially

Re: [NTG-context] Line break in verbatim

2011-05-03 Thread Wolfgang Schuster
Am 03.05.2011 um 01:26 schrieb Aditya Mahajan: You can also put the text in a \hbox with “\setuptype[command=\hbox]”. The command key from \setuptype is special because it accepts only box commands (\hbox, \vbox, \framed …). I don't see why that is the case. Looking at the code, it appears

[NTG-context] Line break in verbatim

2011-05-02 Thread Aditya Mahajan
Hi, Why does verbatim text not line break properly. \setuppapersize[A5] \showframe \starttext % hyphenate is not the right word here; but illustrates the problem \type{a very very long line to see if it hyphenates or not, that can require a lot oftyping phew}. \stoptext Also

Re: [NTG-context] Line break in verbatim

2011-05-02 Thread Wolfgang Schuster
Am 02.05.2011 um 18:19 schrieb Aditya Mahajan: Hi, Why does verbatim text not line break properly. \setuppapersize[A5] \showframe \starttext % hyphenate is not the right word here; but illustrates the problem \type{a very very long line to see if it hyphenates or not, that can

Re: [NTG-context] Line break in verbatim

2011-05-02 Thread Aditya Mahajan
On Mon, 2 May 2011, Wolfgang Schuster wrote: Am 02.05.2011 um 18:19 schrieb Aditya Mahajan: Hi, Why does verbatim text not line break properly. \setuppapersize[A5] \showframe \starttext % hyphenate is not the right word here; but illustrates the problem \type{a very very long line to see

[NTG-context] Inline verbatim?

2011-04-27 Thread Alasdair McAndrew
Is there a ConTeXt version of the LaTeX \verb command, for inline typsetting of code fragments? Thanks, Alasdair ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] Inline verbatim?

2011-04-27 Thread Aditya Mahajan
On Thu, 28 Apr 2011, Alasdair McAndrew wrote: Is there a ConTeXt version of the LaTeX \verb command, for inline typsetting of code fragments? \type{...} or \type|...| (or any other character, just like \verb) Aditya

Re: [NTG-context] Inline verbatim?

2011-04-27 Thread Alasdair McAndrew
Thanks very much! -Alasdair On Thu, Apr 28, 2011 at 1:53 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 28 Apr 2011, Alasdair McAndrew wrote: Is there a ConTeXt version of the LaTeX \verb command, for inline typsetting of code fragments? \type{...} or \type|...| (or any other

[NTG-context] wikimedia2context: any existing solutions?

2011-03-30 Thread Mojca Miklavec
...} - all lines starting with a space should be printed verbatim - lines starting with * should be bulleted itemize - lines starting with # should be numbered itemize - some trivial replacements like gt; - some links: [[abc def]] should become symlinks to begining of sections with that title

Re: [NTG-context] wikimedia2context: any existing solutions?

2011-03-30 Thread Khaled Hosny
{...}, ... - replace ''...'' with {\bf ...}, '''...''' with {\it ...}, '...' with {\bi ...} - all lines starting with a space should be printed verbatim - lines starting with * should be bulleted itemize - lines starting with # should be numbered itemize - some trivial replacements like gt; - some links

[NTG-context] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread 尹冠皓
Did I miss anything? \usemodule[simplefonts] \setcjkmainfont[whatever] \starttext \type{'} % expect ', but get ’ \type{--}% expect --, but get – \stoptext ___ If your question is of interest to others as well,

Re: [NTG-context] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 13:33 schrieb 尹冠皓: Did I miss anything? Fixed. Wolfgang ___ 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] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread 尹冠皓
On Sat, Mar 19, 2011 at 01:46:15PM +0100, Wolfgang Schuster wrote: Fixed. Thanks. ___ 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] Why do \startlines and \crlf give different results in this example?

2011-03-12 Thread mathew
about verbatim linebreaks. mathew ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage

Re: [NTG-context] Verbatim text: intext colors (mkiv)

2011-03-12 Thread Wolfgang Schuster
Am 11.03.2011 um 20:46 schrieb Reviczky, Adam: Line numbers in the text as well as Works here with the last beta. I'm using the latest beta too. Attached is my PDF, do you get something different? I want to have intext numbers (inside the frame), not outside. As I said, works with mkii

Re: [NTG-context] Verbatim text: intext colors (mkiv)

2011-03-12 Thread Reviczky, Adam
I’m Sorry, I missed the intext part. For MkIV you need “location=text” to move the numbers in the text. Yeah, I just figured it out, though there's still a % todo: text in page-lin.mkiv, but it works. Wolfgang Thanks again. Adam

Re: [NTG-context] Verbatim text: intext colors (mkiv)

2011-03-11 Thread Wolfgang Schuster
Am 11.03.2011 um 01:33 schrieb Reviczky, Adam: Hi, When using verbatim text (for source code) in mkiv: Line numbers in the text as well as Works here with the last beta. /BTEX … /ETEX (for colors) don't work. “option=commands” is now “escape=yes” Wolfgang

Re: [NTG-context] Verbatim text: intext colors (mkiv)

2011-03-11 Thread Reviczky, Adam
Line numbers in the text as well as Works here with the last beta. I'm using the latest beta too. Attached is my PDF, do you get something different? I want to have intext numbers (inside the frame), not outside. As I said, works with mkii though. /BTEX … /ETEX (for colors) don't work.

[NTG-context] Verbatim text: intext colors (mkiv)

2011-03-10 Thread Reviczky, Adam
Hi, When using verbatim text (for source code) in mkiv: Line numbers in the text as well as /BTEX … /ETEX (for colors) don't work. It is fine using mkii. Attached the two minimal examples. Adam \setupcolors[state=start] \starttext %% SC colors %% \definecolor [SCwhite] [r=1.0, g=1.0, b=1.0

[NTG-context] btex and DeclareGraphicsRule question

2011-02-24 Thread Rebecca Searls
written on xtest.log. -- xtext.mp % verbatimtex %latex \documentclass{book} \usepackage{dvidrv} \usepackage{hrefout} \usepackage{xbookjh} \usepackage{xstyle} \usepackage{verbatim} \begin{document} etex beginfig(1); label(Au dessus ,(0,0)); label(btex Au dessus etex, (0,0)); endfig; bye

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-17 Thread C.
00:00 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text On 16-2-2011 9:11, C. wrote: I tried your code. Does not work. Again, when I comment the line with \setupalign it works. I was using Minion via simplefonts, but it seems modern

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-17 Thread Hans Hagen
On 17-2-2011 2:16, C. wrote: C:\ConTeXt\texcontext --version mtx-context | main context file: C:/ConTeXt/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2011.02.16 19:30 that's new enough so you need to come up with an example that does fails at wolgangs

[NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread C.
I have a strange problem in one of my documents. When I uncomment the line with \setupalign[hz,hanging] everything works fine. When I use it, I get this error because of a verbatim typing segment: \obeyedline -\par \doverbatimendofline -\dostoptagged \obeyedline

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread Wolfgang Schuster
Am 16.02.2011 um 18:48 schrieb C.: I have a strange problem in one of my documents. When I uncomment the line with \setupalign[hz,hanging] everything works fine. When I use it, I get this error because of a verbatim typing segment: Can you test it with the latest beta, your example runs fine

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread Hans Hagen
On 16-2-2011 6:48, C. wrote: I have a strange problem in one of my documents. When I uncomment the line with \setupalign[hz,hanging] everything works fine. When I use it, I get this error because of a verbatim typing segment: \obeyedline -\par \doverbatimendofline -\dostoptagged \obeyedline

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread C.
-context] \setupalign[hz,hanging] breaks verbatim text On 16-2-2011 6:48, C. wrote: I have a strange problem in one of my documents. When I uncomment the line with \setupalign[hz,hanging] everything works fine. When I use it, I get this error because of a verbatim typing segment

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread Hans Hagen
On 16-2-2011 9:11, C. wrote: I tried your code. Does not work. Again, when I comment the line with \setupalign it works. I was using Minion via simplefonts, but it seems modern fonts are also affected. I'working on Windows 7 32bit and updated Context Minimals before testing. @Wolfgang: I

Re: [NTG-context] escape in verbatim text eats line breaks

2011-01-21 Thread Stefan Müller
Because of the new beta I tried it again with a current Mk IV version (2011.01.18 19:34). The examples I provided (from the wiki, now abbreviated, with numbering) have correct line breaks but the second line does not get a number. \setuptyping[TEX][escape=yes, numbering=line] \startTEX

[NTG-context] new beta

2011-01-18 Thread Hans Hagen
been some fixes to linebreaks in verbatim. Hopefully I didn't mess things up too much. - An upcoming version will also have \nonknuthmode as default. You can test this by putting this macro in cont-new.mkiv. Hans

Re: [NTG-context] new beta

2011-01-18 Thread Renaud AUBIN
fixes to linebreaks in verbatim. Hopefully I didn't mess things up too much. - An upcoming version will also have \nonknuthmode as default. You can test this by putting this macro in cont-new.mkiv. Hans

[NTG-context] escape in verbatim text eats line breaks

2011-01-10 Thread Stefan Müller
Hi list, there seems to be something wrong with the escape mechanism in verbatim. Line breaks before escaped code are ignored. Consider the following example from the wiki [1] (e.g. the second line is printed right behind the first with no line break): \starttext \setuptyping[TEX][escape

Re: [NTG-context] mkiv: verbatim lua eats my quotes

2011-01-10 Thread Hans Hagen
On 9-1-2011 10:16, Thomas A. Schmitz wrote: \starttext \startLUA require 'lpeg' sep = lpeg.P(,) \stopLUA \stoptext I'll put a beta on the ftp for testing. You can configure the string content as well as the quotes. -

Re: [NTG-context] escape in verbatim text eats line breaks

2011-01-10 Thread Hans Hagen
On 10-1-2011 12:23, Stefan Müller wrote: Hi list, there seems to be something wrong with the escape mechanism in verbatim. Line breaks before escaped code are ignored. Consider the following example from the wiki [1] (e.g. the second line is printed right behind the first with no line break

Re: [NTG-context] escape in verbatim text eats line breaks

2011-01-10 Thread Stefan Müller
On 10.01.2011 15:38, Hans Hagen wrote: Is this a bug or am I missing something here? I get newlines here. I'm using minimals: ConTeXt version 2011.01.06 17:08 Just to clarify: My first line in the PDF result is sometexsometex \after Also \setuptyping[TEX][escape=//] seems to have no

Re: [NTG-context] escape in verbatim text eats line breaks

2011-01-10 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes: Is this a bug or am I missing something here? I get newlines here. Minimal example: \definetyping[Test][escape={/,/}] \starttext No line break between the blas: \startTest bla /bla/ \stopTest \stoptext -- Peter Münster Contact information:

Re: [NTG-context] mkiv: verbatim lua eats my quotes

2011-01-10 Thread Thomas A. Schmitz
On Jan 10, 2011, at 2:14 PM, Hans Hagen wrote: On 9-1-2011 10:16, Thomas A. Schmitz wrote: \starttext \startLUA require 'lpeg' sep = lpeg.P(,) \stopLUA \stoptext I'll put a beta on the ftp for testing. You can configure the string content as well as the quotes. Hi Hans,

[NTG-context] mkiv: verbatim lua eats my quotes

2011-01-09 Thread Thomas A. Schmitz
Hi all, is this a bug or a feature: in verbatim lua code, my double and ' single quotation marks are eaten up in mkiv (everything is colorless, but correct in mkii). Example: \starttext \startLUA require 'lpeg' sep = lpeg.P(,) \stopLUA \stoptext Thanks Thomas

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-22 Thread Philipp A.
2010/12/21 Wolfgang Schuster schuster.wolfg...@googlemail.com For mkii you need the texnansi encoding for the fonts, mkiv has no problems with \type but haven’t told which engine you use neither did you provide a full example. Run this and you will get the correct output for \type:

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-22 Thread Wolfgang Schuster
Am 22.12.2010 um 13:13 schrieb Philipp A.: i now found out that the simplefonts module cuses this: I’ll fix this, \setmonofont use the wrong font features. Wolfgang ___ If your question is of interest to others

Re: [NTG-context] Problem with PDF generating module documentation in Ctx minimals

2010-12-22 Thread Wolfgang Schuster
)!!! Has to do with the rewrite of the verbatim code in mkiv. Here is a minimal example which can be run with “context filename” to generate the error: \usemodule[mod-01] \startmodule[type=tex] \startdefinition \TeX \stopdefinition \stopmodule The problem is \startmodule[type=tex] produce

[NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
’. so what i ask for: 1. we should change the standard behavior of context to “don’t replace --, ' and whatnot in verbatim areas” 2. we should be able to trigger this globally, for people who have a useful keyboard layout and can type “special” characters as fast as ascii

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
2010/12/21 Wolfgang Schuster schuster.wolfg...@googlemail.com Make a example where this occurs, in the following example all dashes are correct in the typing environment with mkii and mkiv. \starttext \startlines - -- --- \stoplines \starttyping - -- --- \stoptyping \stoptext

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 15:19 schrieb Philipp A.: ok, sorry, \type{--} doesn’t work. (i thought i used the environment, but i only used the macro) it should work in \type, too, though. For mkii you need the texnansi encoding for the fonts, mkiv has no problems with \type but haven’t told which

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz
, working with strings (substitutions, etc.), conditionals, loops... You don't have to take my code verbatim; the darkred was just meant to show that you can apply certain code to a number if it matches a condition (here: be divisible by 5). This gets me what I wanted. Still fumbling greatly

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz
, working with strings (substitutions, etc.), conditionals, loops... You don't have to take my code verbatim; the darkred was just meant to show that you can apply certain code to a number if it matches a condition (here: be divisible by 5). This gets me what I wanted. Still fumbling greatly

Re: [NTG-context] colors for pretty-printing (was: Re: pret-c.lua - v-c.lua)

2010-12-07 Thread Aditya Mahajan
a standard interface for color and style configuration. Example: \setupstartstop[CSnippetComment][color=blue] So you can simplify t-pretty-c.mkiv: \unprotect \setupcolor[ema] \definestartstop [CSnippetName] [\c!color=darkgoldenrod, \c!style=] I have not looked into the new verbatim code yet

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Hans Hagen
not looked into the new verbatim code yet, but I have been thinking about a similar interface for a new module that uses external programs for syntax highlighting (sort of a superset of t-vim that will allow one to use other programs like pgyments, etc.). it all boils down hooking in a parser

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Aditya Mahajan
=darkgoldenrod, \c!style=] I have not looked into the new verbatim code yet, but I have been thinking about a similar interface for a new module that uses external programs for syntax highlighting (sort of a superset of t-vim that will allow one to use other programs like pgyments, etc.). it all

Re: [NTG-context] bug report/mkiv: verbatim text bug with tab parameter

2010-12-04 Thread Hans Hagen
On 3-12-2010 1:49, Peter Schorsch wrote: Hi, today I recognized that the tab parameter is not working in setuptyping anymore (actual beta). As soon the tab paramter is set and a tabulator is used in the text, ConTeXt breaks with following error message: ! LuaTeX error

Re: [NTG-context] Formating verbatim text

2010-12-04 Thread Khaled Hosny
On Fri, Dec 03, 2010 at 03:24:35PM +0100, Wolfgang Schuster wrote: Am 03.12.2010 um 10:40 schrieb Khaled Hosny: The following is listed on the wiki but does not work in MkIV, the commands are just typeset verbatim as well. The mechanism has changed in MkIV, you can now write

[NTG-context] Formating verbatim text

2010-12-03 Thread Khaled Hosny
The following is listed on the wiki but does not work in MkIV, the commands are just typeset verbatim as well. \setuptyping[option=commands] \starttext \starttyping /BTEX{\em aa}/ETEX \stoptyping \stoptext -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer

[NTG-context] bug report/mkiv: verbatim text bug with tab parameter

2010-12-03 Thread Peter Schorsch
Hi, today I recognized that the tab parameter is not working in setuptyping anymore (actual beta). As soon the tab paramter is set and a tabulator is used in the text, ConTeXt breaks with following error message: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/util-

Re: [NTG-context] Formating verbatim text

2010-12-03 Thread Wolfgang Schuster
Am 03.12.2010 um 10:40 schrieb Khaled Hosny: The following is listed on the wiki but does not work in MkIV, the commands are just typeset verbatim as well. The mechanism has changed in MkIV, you can now write \setuptyping[escape=yes] \starttyping normal /BTEX\em emphasized/ETEX normal

[NTG-context] custom colors for verbatim in mkiv

2010-12-02 Thread Thomas A. Schmitz
Hi all, pardon my ignorance, but how can I define custom colors for pretty printing xml in current mkiv? I tried defining a palet, I tried defining the usual colors prettyone etc., but to no avail. And, on a related note: are the files pret-lua.lua pret-mp.lua pret-tex.lua pret-xml.lua no

Re: [NTG-context] custom colors for verbatim in mkiv

2010-12-02 Thread Hans Hagen
On 2-12-2010 11:43, Thomas A. Schmitz wrote: Hi all, pardon my ignorance, but how can I define custom colors for pretty printing xml in current mkiv? I tried defining a palet, I tried defining the usual colors prettyone etc., but to no avail. And, on a related note: are the files

Re: [NTG-context] custom colors for verbatim in mkiv

2010-12-02 Thread Thomas A. Schmitz
On Dec 2, 2010, at 12:11 PM, Hans Hagen wrote: there is more granularity now: see v-xml.mkiv Ahh, I see! Yes, that's indeed a very nice way to define colors! Thanks a lot! Thomas ___ If your question is of

Re: [NTG-context] Tabs inside \starttyping \stoptyping

2010-11-24 Thread Hans Hagen
On 24-11-2010 11:07, Richard Stephens wrote: Hello again, I am using the latest beta (20.11.2010 12:15) and I've found that a file with a [tab] inside \starttyping...\stoptyping results in an error. the next beta will have a completely rewritten verbatim support for the moment you can try

Re: [NTG-context] XML pretty printer?

2010-11-21 Thread Hans Hagen
(which was not around when I did the first implementation). This is part of the work on cld (where verbatim has its own niche). As I think that there are different demands for pretty printing it will be easier for users to plug in code. Also, there will be less tex code involved as the cld

Re: [NTG-context] Second Try for help using Windows 7Winedt6.0 MiKTeX 2.9 to process ConTeXt

2010-11-21 Thread Ulrike Fischer
that in the actual file. (the value is a lua string) No there aren't quotes. The path is on one line, but apart from this it is a verbatim copy. -- Ulrike Fischer ___ If your question is of interest to others as well, please add

Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread Manfred Lotz
of converting ConTeXt to XML. You can then process XML using standard XML tools to get HTML. I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. \setupbackend[export=yes] ! Undefined control sequence. l.1 \setupbackend [export

Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread luigi scarso
and rtf/odt (would be nice to have). There is an experimental feature of converting ConTeXt to XML. You can then process XML using standard XML tools to get HTML. I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. \setupbackend[export=yes

Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread Hans Hagen
). There is an experimental feature of converting ConTeXt to XML. You can then process XML using standard XML tools to get HTML. I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. \setupbackend[export=yes] ! Undefined control sequence. l.1

[NTG-context] ConTexT conversion to html/rtf/odt

2010-11-06 Thread Manfred Lotz
Hi there, I'm in a situation where I have to do some documentation which should be available in html and rtf/odt (would be nice to have). I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. As a ConTeXt newbie I thought this might be a good idea

Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-06 Thread Aditya Mahajan
. I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. \setupbackend[export=yes] \starttext \section{Some section} \startitemize[1] \item bla bla \stopitemize \stoptext Run context filename. This will create a filename.export file in your

[NTG-context] Thoughts about counters

2010-10-20 Thread Bela Mulder
please bear with the amateurish formatting. I anyone can explain how to keep the annoying spurious spaces from cropping up in my verbatim typing environment with option=commands switched on, I would also be grateful. Thanks, in advance! -- Bela Mulder Group Leader Theory of Biomolecular

Re: [NTG-context] Thoughts about counters

2010-10-20 Thread Hans Hagen
It's also my first ConTeXt document, so please bear with the amateurish formatting. I anyone can explain how to keep the annoying spurious spaces from cropping up in my verbatim typing environment with option=commands switched on, I would also be grateful. do you have an example

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-07 Thread Hans Hagen
On 7-10-2010 12:02, Stefan Müller wrote: Thank you very much for your effort. Pretty amazing what's doable. Unfortunately there are two issues: The distance between numbers and source lines is too small for bigger line numbers. I just have to make distance=0em big enough for this to work,

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-07 Thread Alan BRASLAU
On Thursday 07 October 2010 09:19:42 Hans Hagen wrote: On 7-10-2010 12:02, Stefan Müller wrote: Splitting up long source code in several pieces (one per page) and put them in separate figures doesn't seem right to me. Setting it as numbered paragraph? Putting up a fake caption with

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-07 Thread Stefan Müller
On 07.10.2010 09:35, Alan BRASLAU wrote: On Thursday 07 October 2010 09:19:42 Hans Hagen wrote: On 7-10-2010 12:02, Stefan Müller wrote: Splitting up long source code in several pieces (one per page) and put them in separate figures doesn't seem right to me. Setting it as numbered paragraph?

[NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Stefan Müller
Hi list, I defined a float for typesetting algorithms, so I can reference them at other places in the document. \definefloat[algorithm][algorithms] When I now place such a figure with \placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{ \starttyping some source code

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
On 6-10-2010 4:26, Stefan Müller wrote: Hi list, I defined a float for typesetting algorithms, so I can reference them at other places in the document. \definefloat[algorithm][algorithms] When I now place such a figure with \placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
On 6-10-2010 4:26, Stefan Müller wrote: Hi list, I defined a float for typesetting algorithms, so I can reference them at other places in the document. \definefloat[algorithm][algorithms] When I now place such a figure with \placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Hans Hagen
also need to deal with consistent positioning as we need to make manuals in due time we started with verbatim (there will be several bidi models available; maybe Idris can send you the draft on bidi) anyhow, here's some more: in addition to align options we also will have locations reflecting

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Talal Al-Azem
to deal with consistent positioning as we need to make manuals in due time we started with verbatim (there will be several bidi models available; maybe Idris can send you the draft on bidi) anyhow, here's some more: in addition to align options we also will have locations reflecting

Re: [NTG-context] Verbatim text loaded from a file? (reduced attachments)

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
(I doubled this message to reduce size of attachments. Although the t.pdf.png is not very good, I believe it's enough to imagine proportions of letter height vs. line height and line number vs. letter [used for typing] height.) ... I keep on trying. I applied all your previous advice. But I

[NTG-context] Verbatim: Pascal pretty printer

2010-10-02 Thread Stefan Müller
Hi list, I wrote a custom pretty printer (verbatim) for Free Pascal/Turbo Pascal/Delphi source files. It's attached to this mail together with a ConTeXt test files that shows the features and some special cases. The pretty printer can handle: reserved words (bold

[NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to show contents of a (text) file like verbatim text (with a monospace font). So to do something being described at http://wiki.contextgarden.net/Verbatim_text using \startcode SOME TEXT \stop code, but the difference is that I don't need to write SOME TEXT manually but I

Re: [NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Henning Hraban Ramm
Am 2010-10-01 um 09:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: I'd need to show contents of a (text) file like verbatim text (with a monospace font). So to do something being described at http://wiki.contextgarden.net/Verbatim_text using \startcode SOME TEXT \stop code

Re: [NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Henning Hraban Ramm
Am 2010-10-01 um 11:06 schrieb Henning Hraban Ramm: Moreover, I'd need to have the following options: - To alter the font used for numbering lines, so that it would be smaller than the normal text. \definetyping[MyStyle] \setuptyping[MyStyle][style={\tfx\tt}] see

Re: [NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, Sorry, I guess I misunderstood you: You mean the font of the numbers? I mean font (or or its size) used for printing for line numbers - see http://ftp.cstug.cz/pub/CTAN/macros/latex/contrib/fancyvrb/fancyvrb.pdf, pg. 11: line numbers which are turned on by numbers=left are printed

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Aditya Mahajan
On Wed, 29 Sep 2010, Patrick Gundlach wrote: Is there any difference between \mono{...} and \type{...}? I guess that type does much more to catcodes, but apart from that, both seem to be similar. - \type typesets its argument verbatim (catcodes, spaces, etc). - \type has two variants \type

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Wolfgang Schuster
is verbatim mode Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http

[NTG-context] parsing custom syntax in lua

2010-08-31 Thread Vianney le Clément
Hello, What is the best way to pass verbatim text to lua for processing? I would like to write a lua parser for non-TeX text with a custom syntax (could be something like Markdown for instance). The interface would be \startMyFormat % custom syntax % \stopMyFormat

Re: [NTG-context] parsing custom syntax in lua

2010-08-31 Thread Wolfgang Schuster
Am 31.08.2010 um 11:01 schrieb Vianney le Clément: Hello, What is the best way to pass verbatim text to lua for processing? I would like to write a lua parser for non-TeX text with a custom syntax (could be something like Markdown for instance). The interface would be \startMyFormat

[NTG-context] Trouble with # character in TABLE environment...

2010-08-25 Thread Jaroslav Hajtmar
inside the program code for example: code\emddd/em/code, Maybe it's a dumb question, but may be inside emphasis inside verbatim (\startyping - \stoptyping) environment?? Yes, it's possible to use style commands in verbatim mode but the mechanism in MkII and MkIV are different and it's important

[NTG-context] Trouble with percent character in ConTeXt text (programm code typing)

2010-08-24 Thread Jaroslav Hajtmar
\startypingintext ... \stoptypingintext i.e. intext typing environment.. 2. in html code is often emphasis found inside the program code for example: code\emddd/em/code, Maybe it's a dumb question, but may be inside emphasis inside verbatim (\startyping - \stoptyping) environment?? Thanx Jaroslav

Re: [NTG-context] Trouble with percent character in ConTeXt text (programm code typing)

2010-08-24 Thread Wolfgang Schuster
, Maybe it's a dumb question, but may be inside emphasis inside verbatim (\startyping - \stoptyping) environment?? Yes, it's possible to use style commands in verbatim mode but the mechanism in MkII and MkIV are different and it's important to know which system you use. Wolfgang

Re: [NTG-context] Trouble with percent character in ConTeXt text (programm code typing)

2010-08-24 Thread Jaroslav Hajtmar
, Maybe it's a dumb question, but may be inside emphasis inside verbatim (\startyping - \stoptyping) environment?? Yes, it's possible to use style commands in verbatim mode but the mechanism in MkII and MkIV are different and it's important to know which system you use. Wolfgang

[NTG-context] an issue with line numbers in the verbatim text

2010-08-11 Thread 李延瑞
Hi all, this is an example. \setuptyping[numbering=line] \setuplinenumbering[location=intext] \showframe \starttext \starttyping This is the first line. Last line after an empty line. \stoptyping \stoptext the linenumbering setup of location=intext can not work. the line numbers still be

Re: [NTG-context] an issue with line numbers in the verbatim text

2010-08-11 Thread Hongwen Qiu
On 08/11/2010 08:23 PM, Li Yanrui (李延瑞) wrote: Hi all, this is an example. \setuptyping[numbering=line] \setuplinenumbering[location=intext] \showframe \starttext \starttyping This is the first line. Last line after an empty line. \stoptyping \stoptext the linenumbering setup of

<    1   2   3   4   5   6   7   8   >