[NTG-context] filter module: before print, it puts new line

2014-07-28 Thread Xan
$11x – 18 = 4$ \item $56x + 33 = -23$ \item $5x + 25 = 125$ \stopitemize \starttextrule{Solucions} \startitemize[a,text] \item \startpython from sympy.solvers import solve from sympy import Symbol from sympy import Eq x = Symbol('x') for solucio in solve(Eq(3*x + 2, 35), x): print(solucio

Re: [NTG-context] filter module: before print, it puts new line

2014-07-28 Thread Xan
equacions següents i comprova'n la solució \startitemize[a,columns] \item $3x + 2 = 35$ \item $11x – 18 = 4$ \item $56x + 33 = -23$ \item $5x + 25 = 125$ \stopitemize \starttextrule{Solucions} \startitemize[a,text] \item \startpython from sympy.solvers import solve from sympy import

Re: [NTG-context] Anyone could help me with this error in filter module?

2014-07-28 Thread Wolfgang Schuster
. What you have to do in this case is to use the \startmode or \startnotmode commands. \usemodule[filter] \defineexternalfilter [python] [filtercommand={python \externalfilterinputfile\space \externalfilteroutputfile},cache=force] \starttext \startmode[solucions] \starttextrule

Re: [NTG-context] Anyone could help me with this error in filter module?

2014-07-28 Thread Aditya Mahajan
\startmode[solucions] \starttextrule{Solucions} \startpython \stoppython \stoptextrule \stopmode \stoptext Another option is (untested): \defineexternalfilter [python] [ filtercommand={...}, before={\starttextrule{Solutions}}, after={\stoptextrule}, ] \startmode

Re: [NTG-context] problem between textrule and setupindenting ?

2014-05-06 Thread Hans Hagen
On 5/3/2014 9:34 AM, Bertrand Masson wrote: Hello, In the following code, the second ruleis indented. How to remove this indentation ? %code% \setuppapersize[A5] \setupindenting[small,yes] \setuptextrules[inbetween=\noindentation] \starttext \starttextrule{introduction} Once upon a time

[NTG-context] problem between textrule and setupindenting ?

2014-05-03 Thread Bertrand Masson
Hello, In the following code, the second ruleis indented. How to remove this indentation ? %code% \setuppapersize[A5] \setupindenting[small,yes] \setuptextrules[inbetween=\noindentation] \starttext \starttextrule{introduction} Once upon a time \unknown \stoptextrule \stoptext %code% Many thanks

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-16 Thread Hans Hagen
not that convinced if that correction always looks right (i've reenabled it but it might become an option) And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204) in either mkii mliv. This does work for me: \starttext blah

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-15 Thread Wolfgang Schuster
Am 14.09.2012 um 23:50 schrieb Alessandro Perucchi alessan...@perucchi.org: And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204) in either mkii mliv. This does work for me: \starttext blah blah blah

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-15 Thread Alessandro Perucchi
On 15 sept. 2012, at 09:28, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Remove [top] from \starttextrule. All possible combinations are: (...) Hello Wolfgang, Thanks, now I understand how this command works. So probably it would be good to correct the documentation accordingly

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-14 Thread Wolfgang Schuster
!depth\directtextrulesparameter\c!rulethickness\s!height\zeropoint\s!width\availablehsize}}} {\pack_textrule_with_text{#1}}% \ifvmode \prevdepth\zeropoint \fi} And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-14 Thread Alessandro Perucchi
version: 2012.09.11 20:36 And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204) in either mkii mliv. This does work for me: \starttext blah blah blah \starttextrule{Testing head} blah blah blah \stoptextrule

[NTG-context] MKII MKIV difference between \textrule

2012-09-13 Thread Alessandro Perucchi
near the text, and I need to add something like \blank[halfline] to have a similar behavior as mkii. And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204) in either mkii mkiv. Am I missing something? Sincerely yours

Re: [NTG-context] Title in textrule

2011-04-12 Thread Aditya Mahajan
\startbuffer %D \setuptextrules %D [width=90pt,distance=12pt,rulecolor=blue, %Dbodyfont=small,style=\sc,color=red] %D %D \starttextrule{Ship Building Tools} %D \nl \setuptolerance[tolerant] \input materie %D \stoptextrule %D \stopbuffer %D %D \bgroup \typebuffer \getbuffer \egroup %D %D

Re: [NTG-context] Title in textrule

2011-04-12 Thread Flavien Lambert
\kap{cd} \quote {Passion}. \textrule From pack-rul,mkiv %D \startbuffer %D \setuptextrules %D [width=90pt,distance=12pt,rulecolor=blue, %Dbodyfont=small,style=\sc,color=red] %D %D \starttextrule{Ship Building Tools} %D \nl \setuptolerance[tolerant] \input materie %D

Re: [NTG-context] \showmathcharacters problems with TeXlive 2009 on Win 7 64bit

2010-02-10 Thread Hans Hagen
\showmathmodern\zerocount \fi \gdef\showmathcharacters% nearly \showcharacters {\par \bgroup \ifcase\showmathmodern\or\ifx\modern\undefined\chardef\showmathmodern\zerocount\fi\fi \setuptextrules[\c!bodyfont=,\c!style=] \starttextrule{math characters -- \currentmathcollection} \whitespace

Re: [NTG-context] about \starttextrule{Title}

2009-10-16 Thread Dalyoung
Dear Hans, After updating the minimal, it works fine. Thank you so much. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] about \starttextrule{Title}

2009-10-13 Thread Dalyoung
Dear Hans, I compiled following code using LuaTeX and the title is not appeared in the top hairline while it is appeared when I compile it using ConTeXt. \starttext \starttextrule{Title} \input knuth \stoptextrule \stoptext I am using minimal under OSX and LuaTeX: this is luatex, version

Re: [NTG-context] about \starttextrule{Title}

2009-10-13 Thread Hans Hagen
Dalyoung wrote: Dear Hans, I compiled following code using LuaTeX and the title is not appeared in the top hairline while it is appeared when I compile it using ConTeXt. \starttext \starttextrule{Title} \input knuth \stoptextrule \stoptext I am using minimal under OSX and LuaTeX

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
\starttable[text|name] \stoptable \starttables[text|name] \stoptables \starttabulate[text][settings] \stoptabulate # \startTEXpage \stopTEXpage # \starttext \stoptext # \starttextbackground \stoptextbackground # \starttextdata \stoptextdata \starttextrule[top|bottom]{text} \stoptextrule \starttyping

[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
Hello, I want to convert my following code into a custom \start \stop pair. \starttextrule{Use Case: Logging-On}\startpacked Text \stoppacked\stoptextrule It seems to me that using \definestartstop[usecase][...] command is the most approprate, but I cannot get how to achieve different

[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
={\starttextrule{Use Case: Logging-On}\startpacked\startmypar{\bf User Intentions}\mypar{\bf System Responsibilities}\stopmypar}, after={\stoppacked\stoptextrule}] Best, Vyatcheslav ___ If your question is of interest

Re: [NTG-context] \definestartstop with arguments

2007-07-13 Thread Peter Rolf
This is the basic construct, the rest is parameter evaluation and some additional whatever. HTH, Peter My current startstop definition is \definestartstop[usecase][before={\starttextrule{Use Case: Logging-On}\startpacked\startmypar{\bf User Intentions}\mypar{\bf System Responsibilities

Re: [NTG-context] textrules

2006-10-21 Thread Thomas A. Schmitz
inbetween but this is not interfaced with \textrule. It only becomes active inside a \starttextrule. \starttextrule{whatever} \input knuth \textrule \input knuth \stoptextrule To use this, you can define your own rule as \def\midtextrule{\dosinglegroupempty\domiddletextrule

Re: [NTG-context] textrules

2006-10-20 Thread Hans Hagen
with \textrule. It only becomes active inside a \starttextrule. \starttextrule{whatever} \input knuth \textrule \input knuth \stoptextrule To use this, you can define your own rule as \def\midtextrule{\dosinglegroupempty\domiddletextrule} \setuptextrules[inbetween={\blank[big

Re: [NTG-context] textrules

2006-10-19 Thread Aditya Mahajan
--- (rule) inbetween \textrule[bottom] does inbetween -- after \textrule with no argumet is equal to \textrule[bottom] There is a \domiddletextrule that does inbetween inbetween but this is not interfaced with \textrule. It only becomes active inside a \starttextrule

[NTG-context] starttextrule different from manual

2006-08-11 Thread Hans van der Meer
The manual says (p.204):\starttextrule[.1.]{.2.}...\stoptextrule.1. top bottom.2. textBut parameter [.1.] is not picked up and the code in core-rul.tex is:\def\starttextrule#1%instead of the expected \def\starttexrule{\dosingleargument\dostarttextrule} etc.Is this a deliberate change from