Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Taco, On Wed, 24 Aug 2016 09:56:20 +0200, Taco Hoekwater wrote: http://source.contextgarden.net does something similar. That is a ruby web application. If you want it, I could send you the source, I'd be very pleased. but you need to understand ruby. Lua would

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 11:24, Procházka Lukáš Ing. wrote: > Hello Mojca, > >> I'm sure Hans knows the invocation by heart, but I can look it up as well. >> This is how the output looks like: >> http://source2.contextgarden.net/tex/context/sample/sample-tex.html > > yes, that's the look I'd like

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, I'm sure Hans knows the invocation by heart, but I can look it up as well. This is how the output looks like: http://source2.contextgarden.net/tex/context/sample/sample-tex.html yes, that's the look I'd like to achieve. Lukas Mojca -- Ing. Lukáš Procházka |

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, I tried this: mtxrun --script scite --tree --numbers --source=Attach.mkiv --target=Attach.txt mtxrun --script scite --tree --numbers --source=d:/Lukas/ConTeXt/Test/Attach.mkiv --target=Attach.txt mtxrun --script scite --tree --numbers --source=d:\Lukas\ConTeXt\Test\Attach.mkiv

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 13:36, Procházka Lukáš Ing. wrote: > Hello Mojca, > > I tried this: > > mtxrun --script scite --tree --numbers --source=Attach.mkiv > --target=Attach.txt > mtxrun --script scite --tree --numbers > --source=d:/Lukas/ConTeXt/Test/Attach.mkiv --target=Attach.txt > mtxrun --script

[NTG-context] APA formatting and reference questions

2016-08-24 Thread Todd DeVries
Hello, I would like to use ConTeXt foracademic writing this year and am just scratching the surface of its capabilities. My first run at producing a document in APA format resulted in several questions. Below is abrief sample. In this excerpt, the following APA style formatting errors occur: 1.

Re: [NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Hi Otared, Thanks for the (very quick) reply. I’ve experiemented with that solution as well. However, the text can vary in length and this would required a lot of tweaking to try and get the formulas mid-aligned. I’m trying to find a fool proof solution that will get the formula mid-aligned

Re: [NTG-context] APA formatting and reference questions

2016-08-24 Thread Alan BRASLAU
On Wed, 24 Aug 2016 17:43:03 -0600 Todd DeVries wrote: > In this excerpt, the following APA style formatting > errors occur: > > 1. The first reference is cited as “Hartley, M.T. (2013).” There is > usually a space separating these initials. Between the M. and T. in > this

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, thanks for the answer. I need a COMMAND LINE solution for Windows - my intention is to process many (tens-hundreds) ConTeXt files into HTML - just to make their code better-readable. And - as e.g. Ctx wiki has pretty-printing Ctx source - I believe there is such tool... Best

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Jan U. Hasecke
Maybe this is a job for pandoc. See http://pandoc.org/ juh -- Das ZEN von Pandoc Bücher und E-Books einfach und professionell produzieren http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/ Paperback (232 Seiten) und E-Book

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 09:05, Procházka Lukáš Ing. wrote: > Hello Mojca, > > thanks for the answer. > > I need a COMMAND LINE solution for Windows - my intention is to process many > (tens-hundreds) ConTeXt files into HTML - just to make their code > better-readable. Vim *is* command-line, isn't

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 07:15, Lukáš Procházka wrote: > Hello, > > does anybody know about a tool (maybe ConTeXt has something like this > built-in) which would convert ConTeXt code into pretty-printed HTML code? > > E.g.: > > t.mkiv > \starttext > \foo[bar] baz > \stoptext > > > to be

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Taco Hoekwater
http://source.contextgarden.net does something similar. That is a ruby web application. If you want it, I could send you the source, but you need to understand ruby. Best wishes, Taco PS I just updated http://source.contextgarden.net to the newest ‘current’. > On 24 Aug 2016, at 09:27, Mojca

[NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Dear list, I would like to include text on the same line as a formula. The text needs to be left-aligned and the formula needs to be mid-aligned (as per normal). I’ve tried various solutions from the mathalign MyWay but have not succeeded to get the desired result sofar. Below a M-Not-WE.

Re: [NTG-context] align text and formula

2016-08-24 Thread Otared Kavian
Hi Jan, You can specify a certain horizontal distance in the second column, as in the following: %%% begin example.tex \starttext \setupformulas[align=flushleft] \startformula \startalign[n=2,align={left,middle}] \NC \text{Text1}\NC\qquad E = mc^2\NR \NC

Re: [NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Hi Otared, Thanks for the (very quick) reply. I’ve experiemented with that solution as well. However, the text can vary in length and this would required a lot of tweaking to try and get the formulas mid-aligned. I’m trying to find a fool proof solution that will get the formula mid-aligned

Re: [NTG-context] align text and formula

2016-08-24 Thread Otared Kavian
Hi Jan, I don’t know exactly what you want to achieve, but a possible solution is to put a column between the first and the last columns which contains only the spacement between the first column and the third one. Here is an example: %%% begin example-1.tex \starttext

Re: [NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Hi Otared, I apologize for not explaining it better. Maybe the below example will illustrate better what I’m trying to achieve. - The first formula is perfectly aligned. - The bottom three formulas do not line up with the top formula I’m trying to align all formulas regardless of the amount of

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Jan Tosovsky
On 2016-08-24 Lukáš Procházka wrote: > > does anybody know about a tool (maybe ConTeXt has something like this > built-in) which would convert ConTeXt code into pretty-printed HTML > code? For HTML I'd also consider javascript highlighters https://highlightjs.org/ http://prismjs.com/

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
... Great, that's it! Thanks again, Mojce. Best regards, Lukas On Wed, 24 Aug 2016 13:55:38 +0200, Mojca Miklavec wrote: mtxrun --script scite --tree --numbers --source=Attach.mkiv --target=Attach.txt I suspect that the script wants folders. Mojca --