Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-06 Thread Jeroen via ntg-context
> > > One final question on this one. As per latest comments this works great, > but is there a way so the presentation pages in the appendix are made-up > landscape as they are now, but are rotated 90 degrees so they are created > in the pdf document as the first two pages.

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Pablo Rodriguez via ntg-context
On 7/31/21 10:23 PM, Jeroen via ntg-context wrote: > [...] >   \savebuffer[list=slides, file=\jobname_slides.tex, prefix=no] Sorry, Jeroen, this was my fault. A simpler approach to the command above reads: \savebuffer[list=slides, file=slides.tex] But then you have to invoke the file as

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Hans Hagen via ntg-context
On 8/1/2021 3:02 PM, Wolfgang Schuster wrote: Hans Hagen via ntg-context schrieb am 01.08.2021 um 13:56: On 7/31/2021 10:23 PM, Jeroen via ntg-context wrote: I worked around it, instead of simpleslides just use larger fonts to with regular pages Tne next version will have this (easy cheap

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 01.08.2021 um 13:56: On 7/31/2021 10:23 PM, Jeroen via ntg-context wrote: I worked around it, instead of simpleslides just use larger fonts to with regular pages Tne next version will have this (easy cheap extension): [...] after that you have a file

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Hans Hagen via ntg-context
On 7/31/2021 10:23 PM, Jeroen via ntg-context wrote: I worked around it, instead of simpleslides just use larger fonts to with regular pages Tne next version will have this (easy cheap extension): \definesavebuffer[slide] \startslide % styling \stopslide \starttext \startslide

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
I worked around it, instead of simpleslides just use larger fonts to with regular pages \startbuffer[slides] \setuptolerance[ horizontal, tolerant, stretch] \setuppapersize[ A4,landscape] \setuplayout[ width=middle, backspace=35mm, cutspace=35mm, height=middle, topspace=5mm,

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Thomas A. Schmitz via ntg-context
On 7/31/21 4:06 PM, Pablo Rodriguez via ntg-context wrote: BTW, I cannot get simpleslides working with LMTX. I had to make some slight adjustments but have been to lazy to upload a new and improved version. One reason being that I can't remember my username and password for the modules

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Thomas A. Schmitz via ntg-context
On 7/31/21 3:27 PM, Jeroen via ntg-context wrote: Is there an easy way to write a Context document and also code simpleslides in the same document so that the simpleslides are automatically added to the document as for example an appendix? Ie one tex document with Context code, perhaps with

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Pablo Rodriguez via ntg-context
On 7/31/21 3:27 PM, Jeroen via ntg-context wrote: > Is there an easy way to write a Context document and also code > simpleslides in the same document so that the simpleslides are > automatically added to the document as for example an appendix? Ie > one tex document with Context code, perhaps

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Henning Hraban Ramm via ntg-context
> Am 31.07.2021 um 15:27 schrieb Jeroen via ntg-context : > > Is there an easy way to write a Context document and also code simpleslides > in the same document so that the simpleslides are automatically added to the > document as for example an appendix? Ie one tex document with Context code,

[NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
Is there an easy way to write a Context document and also code simpleslides in the same document so that the simpleslides are automatically added to the document as for example an appendix? Ie one tex document with Context code, perhaps with some \input and something like a two-pass job. I was

Re: [NTG-context] code 139

2021-01-29 Thread Hans Hagen
On 1/29/2021 6:09 PM, Thomas A. Schmitz wrote: On 29. Jan 2021, at 17:55, Otared Kavian wrote: Out of curiosity I tested your MWE and I get mtx-context | fatal error: return code: 11 Maybe lmtx uses the random number generator to produce its return codes? :-) 139 is gcc mem

Re: [NTG-context] code 139

2021-01-29 Thread Thomas A. Schmitz
> On 29. Jan 2021, at 17:55, Otared Kavian wrote: > > Out of curiosity I tested your MWE and I get > > mtx-context | fatal error: return code: 11 Maybe lmtx uses the random number generator to produce its return codes? :-) Thomas

Re: [NTG-context] code 139

2021-01-29 Thread Otared Kavian
Hi Thomas, Out of curiosity I tested your MWE and I get mtx-context | fatal error: return code: 11 with LMTX (version 2021.01.28 18:22), while with mkiv it typesets correctly. Best regards: Otared > On 29 Jan 2021, at 14:42, Thomas A. Schmitz > wrote: > > > On 1/29/21 12:56 PM,

Re: [NTG-context] code 139

2021-01-29 Thread Thomas A. Schmitz
> On 29. Jan 2021, at 16:27, Hans Hagen wrote: > > fixed in next upload Thank you for the fix! Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] code 139

2021-01-29 Thread Hans Hagen
On 1/29/2021 2:42 PM, Thomas A. Schmitz wrote: On 1/29/21 12:56 PM, Hans Hagen wrote: Hard to say (probably some mem/stack issue) ... you can add a \tracingall around the place where the last message to the console happens ... i need to know where it happens (or you can themn make a mwe of

Re: [NTG-context] code 139

2021-01-29 Thread Thomas A. Schmitz
On 1/29/21 12:56 PM, Hans Hagen wrote: Hard to say (probably some mem/stack issue) ... you can add a \tracingall around the place where the last message to the console happens ... i need to know where it happens (or you can themn make a mwe of that bit). OK, here's a minimal example. I

Re: [NTG-context] code 139

2021-01-29 Thread Hans Hagen
On 1/29/2021 12:15 PM, Thomas A. Schmitz wrote: Hi all, a complex file with a metafun background does not compile anymore with lmtx. It compiles fine with mkiv. Compilation breaks off after 10 pages (maybe that's significant) with this message: pages   > flushing realpage 10,

[NTG-context] code 139

2021-01-29 Thread Thomas A. Schmitz
Hi all, a complex file with a metafun background does not compile anymore with lmtx. It compiles fine with mkiv. Compilation breaks off after 10 pages (maybe that's significant) with this message: pages > flushing realpage 10, userpage 10, subpage 10 mtx-context | fatal error:

Re: [NTG-context] Code lua in a table

2020-07-21 Thread Fabrice Couvreur
Hello, I am making progress and I almost get what I want to achieve but I still have two problems : how to color cells not containing numbers with the same color as the others ? how to color in salmon, for example, cells 1 2 ? 3

Re: [NTG-context] Code lua in a table

2020-07-20 Thread Jeong Dal
Dear Hans, Thank you for new methods! It would take some time for me to understand them fully. Learning Lua, metafun, lmtx, wiki is always a challenge for me. I also wonder where is the boundary of ConTeXt. I hope that you and all members in this list are well from COVID-19. Thank you again.

Re: [NTG-context] Code lua in a table

2020-07-20 Thread Hans Hagen
On 7/20/2020 2:40 PM, Jeong Dal wrote: I also wonder where is the boundary of ConTeXt. The boundaries are set and shift by users (the mailing list) and curiosity (personal). Hans - Hans

Re: [NTG-context] Code lua in a table

2020-07-20 Thread Fabrice Couvreur
Hi all, Thank you for your contributions, it allows me to progress. @Hans and Deal The code is impressive but does not correspond to the shape of the triangle that I have to make (by convention). Fabrice Le lun. 20 juil. 2020 à 10:36, Hans Hagen a écrit : > On 7/20/2020 7:56 AM, Jeong Dal

Re: [NTG-context] Code lua in a table

2020-07-20 Thread Jeong Dal
Dear Fabrice, You may split Binom(n,k) function into two functions as following: * \startluacode P={} combi = P function P.fact (n) if n <= 0 then return 1 else return n * P.fact(n-1) end end function P.ncr(n,r) return P.fact(n)/(P.fact(r)*P.fact(n-r)) end combi = {

Re: [NTG-context] Code lua in a table

2020-07-20 Thread Hans Hagen
On 7/20/2020 7:56 AM, Jeong Dal wrote: Dear Fabrice, You may split Binom(n,k) function into two functions as following: > see original mail > Dalyoung Best stay in a protected namespace ... \startluacode local function fact (n) if n <= 0 then return 1 else

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Otared Kavian
> On 18 Jul 2020, at 23:35, Otared Kavian wrote: > > > >> On 18 Jul 2020, at 22:25, Fabrice Couvreur >> wrote: >> >> Hi Wolfgang, >> >> It works but why did you ask this question since I finally use context ? >> Are you sure you want to use context(...) here? >> How not to display the .0

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Otared Kavian
> On 18 Jul 2020, at 22:25, Fabrice Couvreur > wrote: > > Hi Wolfgang, > > It works but why did you ask this question since I finally use context ? > Are you sure you want to use context(...) here? > How not to display the .0 ? Besides what Wolfgang suggested, ou can also use

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 18.07.2020 um 22:25: Hi Wolfgang, It works but why did you ask this question since I finally use context ? Are you sure you want to use context(...) here? In your first version you used the context function in the loop to print the output of the Binom but the

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Small correction : \starttext \startluacode function Binom(n,k) if k > n then return 0 elseif (n == 0 or k == 0) then return 1 else return (n*Binom(n-1,k-1))/k end end context.startxtable({"align={middle,lohi},

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Hi Wolfgang, It works but why did you ask this question since I finally use context ? > Are you sure you want to use context(...) here? > How not to display the .0 ? Fabrice Le sam. 18 juil. 2020 à 22:22, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 18.07.2020 um 22:09: Hi, I improved the code to be able to display the grid but I cannot display the coefficients. Thank you Fabrice \starttext \startluacode      function Binom(n,k)        if k > n then              return 0        elseif (n == 0 or k == 0)

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Hi, I improved the code to be able to display the grid but I cannot display the coefficients. Thank you Fabrice \starttext \startluacode function Binom(n,k) if k > n then return 0 elseif (n == 0 or k == 0) then return 1 else return

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 18.07.2020 um 20:05: Hello, I want to display the values of Pascal's triangle in a table. Unfortunately my knowledge of Lua is not sufficient to run this code. Thank you. Fabrice \starttext \startluacode      function Binom(n,k)      if k > n then              

[NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Hello, I want to display the values of Pascal's triangle in a table. Unfortunately my knowledge of Lua is not sufficient to run this code. Thank you. Fabrice \starttext \startluacode function Binom(n,k) if k > n then return 0 elseif (n == 0 or k == 0) then

[NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread Akira Kakuto
What is wrong with this code? Interestingly it seems to work in mkii, probably because mkii calls external metafun: context --pdftex --passon=--shell-escape test.tex test.pdf is attached. Best, Akira test.pdf Description: Adobe PDF document

Re: [NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread Hans Hagen
On 2/1/2015 12:29 PM, DesdeChaves wrote: I'm trying to draw some random arrows using Metapost. For that I use a piece of code from fpast that in found at stackexchange http://tex.stackexchange.com/questions/179745/generating-random-arrows-in-tikz/180111#180111 Unfortunately this code does not

Re: [NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread Akira Kakuto
Interestingly it seems to work in mkii, probably because mkii calls external metafun: Sorry, I didn't notice explanation by Hans. Best, Akira ___ If your question is of interest to others as well, please add an

[NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread DesdeChaves
I'm trying to draw some random arrows using Metapost. For that I use a piece of code from fpast that in found at stackexchange http://tex.stackexchange.com/questions/179745/generating-random-arrows-in-tikz/180111#180111 Unfortunately this code does not work in context (request for a solution

Re: [NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread Hans Hagen
On 2/1/2015 3:31 PM, Akira Kakuto wrote: Interestingly it seems to work in mkii, probably because mkii calls external metafun: Sorry, I didn't notice explanation by Hans. The problem with variables in metapost is that they are global by default (unless 'save'd in a group or vardef). This

[NTG-context] Code Called Twice?

2013-10-11 Thread Thangalin
Hi, I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show \MPstring{heading:title}; draw textext( \MPstring{heading:title} ) rotated 5 withcolor blue; \stopuseMPgraphic

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Philipp Gesang
···date: 2013-10-10, Thursday···from: Thangalin··· I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show \MPstring{heading:title}; draw textext(

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Marco Patzer
On 2013–10–10 Thangalin wrote: I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show \MPstring{heading:title}; draw textext( \MPstring{heading:title} ) rotated 5

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Thangalin
Hi, typeset using TeX. After it's typeset MP picks it up in a second run. That also explains why the spacing between words is correct (I didn't think MP could typeset text). Maintain a vector with the last two elements to check against. An interesting approach; I used a Boolean flag as per

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Hans Hagen
On 10/11/2013 1:00 PM, Philipp Gesang wrote: ···date: 2013-10-10, Thursday···from: Thangalin··· I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Philipp Gesang
···date: 2013-10-11, Friday···from: Hans Hagen··· On 10/11/2013 1:00 PM, Philipp Gesang wrote: ···date: 2013-10-10, Thursday···from: Thangalin··· I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle}

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Hans Hagen
On 10/12/2013 2:09 AM, Philipp Gesang wrote: Btw. the behavior of mfun_trial_run is not very intuitive. I’d expect it to work like \iftrialtypesetting, but in a single-pass context it evaluates to true: keep in mind that one really needs to process the text in order to get the dimensions

Re: [NTG-context] code after \stopbuffer

2013-02-14 Thread Meer, H. van der
Thanks, got the following now working: \def\startxmlbuffer{\grabbufferdata[xmlbuffer][startxmlbuffer][stopxmlbuffer]} \def\stopxmlbuffer{\endinput} .. \xmlprocessbuffer{dvd}{xmlbuffer}{} Hans van der Meer On 13 feb. 2013, at 22:34, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am

[NTG-context] code after \stopbuffer

2013-02-13 Thread H. van der Meer
Is it possible to have a command automatically executed each time \stopbuffer has been read? Preferably coupled to a specific named \startbuffer[this_one], iff possible at all of course. Thus: \startbuffer[this_one] ..contents.. \stopbuffer % in execution followed by \command Hans van der Meer

Re: [NTG-context] code after \stopbuffer

2013-02-13 Thread Wolfgang Schuster
Am 13.02.2013 um 17:49 schrieb H. van der Meer h.vanderm...@uva.nl: Is it possible to have a command automatically executed each time \stopbuffer has been read? Preferably coupled to a specific named \startbuffer[this_one], iff possible at all of course. Thus: \startbuffer[this_one]

[NTG-context] Code in contextref-env.tex

2012-08-22 Thread john Culleton
In the file contextref-env.tex I find code like the following: \setupsectionblock[\v!frontpart] [\c!page=\v!yes] \setupsectionblock[\v!bodypart] [\c!page=\v!yes] \setupsectionblock[\v!appendix] [\c!page=\v!yes] \setupsectionblock[\v!frontpart] [\c!before=,\c!after=] I have no idea what the

Re: [NTG-context] Code in contextref-env.tex

2012-08-22 Thread Aditya Mahajan
On Wed, 22 Aug 2012, john Culleton wrote: In the file contextref-env.tex I find code like the following: \setupsectionblock[\v!frontpart] [\c!page=\v!yes] \setupsectionblock[\v!bodypart] [\c!page=\v!yes] \setupsectionblock[\v!appendix] [\c!page=\v!yes] \setupsectionblock[\v!frontpart]

Re: [NTG-context] Code in contextref-env.tex

2012-08-22 Thread Sietse Brouwer
I have no idea what the sequences like \v!and \c! etc. mean. Are they references to modes? I asked much the same question on tex.stackexchange.com two months ago, except mine was not so nice and focused. Aditya gave a very nice explanation of what the letters do; clearer than the one on the

Re: [NTG-context] Code in contextref-env.tex

2012-08-22 Thread Hans Hagen
On 22-8-2012 23:02, Sietse Brouwer wrote: I have no idea what the sequences like \v!and \c! etc. mean. Are they references to modes? I asked much the same question on tex.stackexchange.com two months ago, except mine was not so nice and focused. Aditya gave a very nice explanation of what the

Re: [NTG-context] code

2010-04-17 Thread R. Bastian
On Sat, 17 Apr 2010 06:37:02 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: [...] the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs |text | the message: File ended while use of \next \type{|} works To

Re: [NTG-context] code

2010-04-17 Thread Wolfgang Schuster
Am 17.04.10 10:51, schrieb R. Bastian: what is the sense of |text | ? http://wiki.contextgarden.net/Composed_words Wolfgang ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b

Re: [NTG-context] code

2010-04-16 Thread luigi scarso
On Fri, Apr 16, 2010 at 11:31 AM, R. Bastian rbast...@free.fr wrote: 1. I use 'context -result=y source.tex'; is this mkii or mkiv ? It's mkiv For mkii use $ texexec source.tex -- luigi ___ If your question is

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
On Fri, 16 Apr 2010 11:31:00 +0200 R. Bastian rbast...@free.fr scribit: On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex:

Re: [NTG-context] code

2010-04-16 Thread Wolfgang Schuster
Am 16.04.10 11:31, schrieb R. Bastian: 2. what is the Context font for cmitt10 ? ConTeXt use Latin Modern by default, to get italic typewriter you can write \tt\it ... or \ttit ... or \definefont[italictypewriter][MonoItalic] and use the font with \italictypewriter ... or

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
On Fri, 16 Apr 2010 11:36:47 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 16, 2010 at 11:31 AM, R. Bastian rbast...@free.fr wrote: 1. I use 'context -result=y source.tex'; is this mkii or mkiv ? It's mkiv For mkii use $ texexec source.tex ok, but there is a bug in mkii:

Re: [NTG-context] code

2010-04-16 Thread Wolfgang Schuster
Am 16.04.10 11:46, schrieb R. Bastian: 2. what is the Context font for cmitt10 ? {\it{} ...} works - but i would the same as \bold{} \italic{...} Wolfgang ___ If your question is of interest to others as

Re: [NTG-context] code

2010-04-16 Thread luigi scarso
On Fri, Apr 16, 2010 at 11:49 AM, R. Bastian rbast...@free.fr wrote: On Fri, 16 Apr 2010 11:36:47 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 16, 2010 at 11:31 AM, R. Bastian rbast...@free.fr wrote: 1. I use 'context -result=y source.tex'; is this mkii or mkiv ? It's mkiv

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
On Fri, 16 Apr 2010 11:54:57 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 16, 2010 at 11:49 AM, R. Bastian rbast...@free.fr wrote: On Fri, 16 Apr 2010 11:36:47 +0200 [...] so i use context sorry, I don't understand --- can you post a minimal example ? no, _i_ was the

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV compiled by context (== mak iv ?) \startlines[style=mono] prints [style=mono] {\bf def} ra():

Re: [NTG-context] code

2010-04-16 Thread Wolfgang Schuster
Am 16.04.10 23:41, schrieb R. Bastian: %\startlines[style=mono] % works only in MkIV compiled by context (== mak iv ?) \startlines[style=mono] prints [style=mono] Direct setups are now gone because they produced unwanted side effects. What you can in Mark 4 (MkIV) is to define you own

[NTG-context] code

2010-04-09 Thread R. Bastian
Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr wrote: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } not a solution, but this works \starttext \font\fgras =

Re: [NTG-context] code

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr wrote: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 1:35 PM, R. Bastian rbast...@free.fr wrote: On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr wrote: Hello, how to translate in context the following plain tex:

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
On Fri, 9 Apr 2010 14:32:08 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 1:35 PM, R. Bastian rbast...@free.fr wrote: On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso luigi.sca...@gmail.com scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian rbast...@free.fr

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra(): a = 3 b = 4 \stoplines \stoptext Cheers, Peter -- Contact

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 5:24 PM, Peter Münster pmli...@free.fr wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra():    

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, luigi scarso wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; I'm not able to see any white space in mkiv Bastian refers to Wolfgang's solution with \setuplines[space=on]. Cheers, Peter -- Contact

Re: [NTG-context] code

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 13:35, schrieb R. Bastian Thanks Wolfhang. It goes better, but there is still a little bug: {\bf def} inserts a white space in front of the line Compare: {\bf def} ra(): def ra(): a = 3 b = 4 \startlines \bold{def} ra(): ... \stoplines Wolfgang

[NTG-context] code with reserved words

2010-03-23 Thread R. Bastian
Hello, is there a way to get Python code with reserved words highlighted ? Not colored as in http://wiki.contextgarden.net/Verbatim_with_LuaTeX but {\bf ...} I use context 2010.01.26 Mk IV or texexec Thanks -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/

Re: [NTG-context] code with reserved words

2010-03-23 Thread luigi scarso
On Tue, Mar 23, 2010 at 1:17 PM, R. Bastian rbast...@free.fr wrote: Hello, is there a way to get Python code with reserved words highlighted ? Not colored as in http://wiki.contextgarden.net/Verbatim_with_LuaTeX but {\bf ...} I use context 2010.01.26 Mk IV or texexec well, I'm working to a

Re: [NTG-context] code with reserved words

2010-03-23 Thread R. Bastian
On Tue, 23 Mar 2010 13:24:09 +0100 luigi scarso luigi.sca...@gmail.com scribit: On Tue, Mar 23, 2010 at 1:17 PM, R. Bastian rbast...@free.fr wrote: Hello, is there a way to get Python code with reserved words highlighted ? Not colored as in

Re: [NTG-context] code with reserved words

2010-03-23 Thread Erik Margraf
Based on the pretty printer in the wiki, I wrote my own. If I understood you well, you want a b/w pretty printer with reserved words bold. The pretty printer is capable of doing both. An example is attached. Probably missing is the functionality to control the typesetting of reserved words in TeX.

[NTG-context] code weaving (solved)

2007-06-08 Thread Steffen Wolfrum
Surprise, surprise: \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt,height=.79,depth=.21]\setupalign[block,hanging,hz]\parskip2pt}% ... sometimes I wish I had administrative access to the mailing

[NTG-context] code weaving

2007-06-08 Thread Steffen Wolfrum
Hi, my footnotes are nicely defined a such: \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt,height=.79,depth=.21]\parskip2pt}% Now I have to set the entire text with hanging/hz – same for the

[NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread VnPenguin
Hi, I'm preparing a document and I would like to product several versions PDF with different fonts. I dont know how to organize it : is there simple structure if-then-else ? could I use ConTeXt's mode or environment for this goal ? Any idea or example is very appreciated. Thank you in advance,

Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Adam Lindsay
VnPenguin said this at Sun, 20 Feb 2005 18:58:41 +0100: I dont know how to organize it : is there simple structure if-then-else ? could I use ConTeXt's mode or environment for this goal ? These are all possibilities. It depends on how you want to change them. Modes sound promising if you want to

Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread VnPenguin
On Sun, 20 Feb 2005 18:09:47 +, Adam Lindsay [EMAIL PROTECTED] wrote: VnPenguin said this at Sun, 20 Feb 2005 18:58:41 +0100: I dont know how to organize it : is there simple structure if-then-else ? could I use ConTeXt's mode or environment for this goal ? These are all

Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Adam Lindsay
VnPenguin said this at Sun, 20 Feb 2005 19:17:41 +0100: I'm preparing a document and I would like to product several versions PDF with different fonts. I would like to use command line. Could you give me a simple example please. % I've adapted this for gwTeX default encodings. % Convert back to

Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread VnPenguin
On Sun, 20 Feb 2005 18:34:20 +, Adam Lindsay [EMAIL PROTECTED] wrote: VnPenguin said this at Sun, 20 Feb 2005 19:17:41 +0100: I'm preparing a document and I would like to product several versions PDF with different fonts. I would like to use command line. Could you give me a simple

Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Willi Egger
If you have the modes defined in a layout.tex you can say in the main file: \enablemode[times] %\enablemode[palatino] %\enablemode[..] \environment layout. So by adding the appropriate \enablemode you even do not need to run the commandline ... Willi Adam Lindsay wrote: VnPenguin said this at