ons]
\starttextrule{Solucions}
\startpython
\stoppython
\stoptextrule
\stopmode
\stoptext
Another option is (untested):
\defineexternalfilter
[python]
[
filtercommand={...},
before={\starttextrule{Solutions}},
after={\stoptextrule},
]
\startmode[soluti
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{Solucions}
gt; \starttext
>
>
> Resol les 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}
>
> \st
5$
\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 Symbol
from sympy import Eq
x = Symbol('x')
for solucio in solve(Eq(3*x + 2, 35), x):
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
On 15 sept. 2012, at 09:28, Wolfgang Schuster
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
Am 14.09.2012 um 23:50 schrieb Alessandro Perucchi :
>>> 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:
Xt Process Management 0.60
mtx-context |
mtx-context | main context file:
/Users/ptitvert/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2012.09.11 20:36
>
>> And apparently the command \starttextrule ... \stoptextrule doesn't work
>>
lesparameter\c!rulecolor]
{\hrule\s!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'
s too 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?
S
s the {\em doudouk}. Other \quote {unknown} instruments are
>> used on his \kap{cd} \quote {Passion}.
>> \textrule
>>
>
> From pack-rul,mkiv
>
> %D \startbuffer
> %D \setuptextrules
> %D [width=90pt,distance=12pt,rulecolor=blue,
> %Dbodyfont=small,styl
k-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 \stoptextrule
%D \stopbuffer
%D
%D \bgroup \typebuffer \getbuffer \eg
l\chardef\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}
\w
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@ntg.
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 LuaTe
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
p \stopstandardmakeup
\startsymbolset[name] \stopsymbolset
\startsynchronization \stopsynchronization
\starttable[text|name] \stoptable
\starttables[text|name] \stoptables
\starttabulate[text][settings] \stoptabulate
# \startTEXpage \stopTEXpage
# \starttext \stoptext
# \starttextbackground \stoptext
hout #2]
\fi
[whatever before]
#3
[whatever after]
}
\let\stopFOO\relax % or define the [whatever after] stuff here
This is the basic construct, the rest is parameter evaluation and some
additional whatever.
HTH, Peter
> My current startstop definition is
>
> \definestart
inestartstop[usecase][before={\starttextrule{Use Case:
Logging-On}\startpacked\startmypar{\bf User Intentions}\mypar{\bf System
Responsibilities}\stopmypar},
after={\stoppacked\stoptextrule}]
Best,
Vyatcheslav
___
If
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
s a \domiddletextrule that does
>
> inbetween
>
> inbetween
>
> but this is not interfaced with \textrule. It only becomes active
> inside a \starttextrule.
>
> \starttextrule{whatever}
> \input knuth
> \textrule
> \input knuth
> \
ystery
>> thickens: what is before? :-)
>>
>
>
> \textrule[top] does
>
> before
> --- (rule)
> inbetween
>
> \textrule[bottom] does
>
> inbetween
> --
> after
>
> \textrule with no argumet is equal to \textrule[bottom]
>
\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.
\starttextrule{whatever}
\input knuth
\textrule
\input knuth
\stoptex
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 the
26 matches
Mail list logo