$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
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
.
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
\startmode[solucions]
\starttextrule{Solucions}
\startpython
\stoppython
\stoptextrule
\stopmode
\stoptext
Another option is (untested):
\defineexternalfilter
[python]
[
filtercommand={...},
before={\starttextrule{Solutions}},
after={\stoptextrule},
]
\startmode
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
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
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
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
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
!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
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
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
\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
\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
\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
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 :
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
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
\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
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
={\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
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
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
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
--- (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
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
26 matches
Mail list logo