startbuffer
Command/ startcolumnset
Command/ startcomment
Command/ startdelimitedtext
Command/ startdescription
Command/ starteffect
Command/ startenumeration
Command/ startfittingpage
Command/ startfloattext
Command/ startformula
Command/ startframedtext
Command/ starthelp
Command/ start
On Saturday, January 1, 2022 3:45:36 PM IST Hans Hagen wrote:
> \starteffect is kind of old (comes from mkii), but you could use the
> pseudo font feature effect in mkiv / lmtx which then makes a real font
> instance instead of mixing in some pdf magic
Thanks for the explanations Hans!
s follows to produce a stylized 'title' head:
\setupMPtext{TitleText}{%
\starteffect[stretch]\bfc\namedstructurevariable{title}{title}\stopeffect}
\useMPgraphic{TitleGraphic}
low level pdf magic ... so not done in mp
[colors "titlefg" and "titleoutline" are set using \define
gt; \stopuseMPgraphic
>
> which I tried to use as follows to produce a stylized 'title' head:
>
> \setupMPtext{TitleText}{%
> \starteffect[stretch]\bfc\namedstructurevariable{title}{title}\stopeffect}
> \useMPgraphic{TitleGraphic}
>
> [colors "titlefg" and
etupMPtext{TitleText}{%
\starteffect[stretch]\bfc\namedstructurevariable{title}{title}\stopeffect}
\useMPgraphic{TitleGraphic}
[colors "titlefg" and "titleoutline" are set using \definecolor]
But, the 'stretch' effect caused by \starteffect[stretch]…\stopeffect does not
work with 'outl
Dear Hans,
It is very interesting example.
Thank you for a new method.
Best regards,
Dalyoung
>
> \def\determinednoflines#1%
> {\localcontrolled{\determinenoflines{#1}}\noflines}
>
> \startbuffer
>\input tufte
> \stopbuffer
>
> \fillinrules[n=\determinednoflines{\getbuffer},
>
{\doifmode{hideSolution}{\starteffect[hidden]}}
\def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[\the\noflines*line
+ \the\noflines*halfline]}}
\enablemode[hideSolution]
\starttext
The first line.
\hrule
\StartHide
\samplefile{knuth}
\determinenoflines{\samplefile{knuth}}
\StopHide
\hrule
Dear Hans,
I found a command \determinenoflines by googling.
I made a MWE as following. It is working well.
But I have to write the paragraph twice for couning.
Is there a better way?
Thank you again.
Best regards,
Dalyoung
%%%
\def\StartHide{\doifmode{hideSolution}{\starteffect[hidden
Dear Hans,
Thank you for your answer.
>
> \framedtext[empty=yes]
>
Yes, it clears everything in the frame.
But the frame is also clean when I disable \hideSolution. In that case, texts
should be appeared.
What I want is the following:
If \hideSolution then
hide text and add more
On 3/12/2021 10:08 PM, Jeong Dal wrote:
Hi,
Sometimes, I need to hide the solution of a problem.
So I use \doifmode{} and \starteffect[hidden] as in the following sample
file.
Since I want to set more blank space if it is hidden, I add \blank[5cm]
when it is in the \enablemode[hideSolution
Hi,
Sometimes, I need to hide the solution of a problem.
So I use \doifmode{} and \starteffect[hidden] as in the following sample file.
Since I want to set more blank space if it is hidden, I add \blank[5cm] when it
is in the \enablemode[hideSolution].
It works well except the figures and bars
(0,1)
withshadecolors (red, blue) ;
\stopuseMPgraphic
\defineoverlay[MyShade][\useMPgraphic{MyShade}]
\setupbackgrounds[page][background=MyShade]
\startmakeup
\definedfont[SerifBold*default @ 50pt] \setupinterlinespace
\defineeffect[MyOutline][alternative=outer,rulethickness
[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]
\define[1]\TitlePage
{\begingroup
\defineoverlay[back][{\BigFontOne \blue \starteffect[outer]#1\stopeffect}]%
\framed[frame=off,background=back,align={hilo}]
{\kern-3pt{\BigFontOne\BigColorOne \starteffect[inner
; the intended look
>
>> I guess this gives a similar effect:
>>\starteffect[both]abc\stopeffect
>
> Sorry I wasn't completly clear: starteffect seems to work with
> attributes on nodes but I'm looking for an *font* option (so that I
> can create a faked bold font).
Ulr
embold feature (similar to the slanted
font feature) that fakes the bold font with
\starteffect[both]...\stopeffect and it doesn’t strecht the font?
much is possible if i can motivate myself
Good to know in order to propose new features :-).
Hm.
Fake bold / slanted / small caps / of a bas
be possible to add a embold feature (similar to the slanted
>>>> font feature) that fakes the bold font with
>>>> \starteffect[both]...\stopeffect and it doesn’t strecht the font?
>>>
>>> much is possible if i can motivate myself
>
> Good to kn
with
\starteffect[both]...\stopeffect and it doesn’t strecht the font?
much is possible if i can motivate myself
Good to know in order to propose new features :-).
This was already requested by Ulrike Fischer
(https://mailman.ntg.nl/pipermail/ntg-context/2017/090094.html).
hm, i don't like
On 03/26/2018 07:24 PM, Hans Hagen wrote:
> On 3/26/2018 4:55 PM, Hans Hagen wrote:
>> On 3/26/2018 1:40 PM, Pablo Rodriguez wrote:
>>> Hans,
>>>
>>> would it be possible to add a embold feature (similar to the slanted
>>> font feature) that f
On 3/26/2018 4:55 PM, Hans Hagen wrote:
On 3/26/2018 1:40 PM, Pablo Rodriguez wrote:
Hans,
would it be possible to add a embold feature (similar to the slanted
font feature) that fakes the bold font with
\starteffect[both]...\stopeffect and it doesn’t strecht the font?
much is possible if i
On 3/26/2018 1:40 PM, Pablo Rodriguez wrote:
Hans,
would it be possible to add a embold feature (similar to the slanted
font feature) that fakes the bold font with
\starteffect[both]...\stopeffect and it doesn’t strecht the font?
much is possible if i can motivate myself
This was already
Hans,
would it be possible to add a embold feature (similar to the slanted
font feature) that fakes the bold font with
\starteffect[both]...\stopeffect and it doesn’t strecht the font?
This was already requested by Ulrike Fischer
(https://mailman.ntg.nl/pipermail/ntg-context/2017/090094.html
On 10/22/2017 07:31 PM, Ulrike Fischer wrote:
> Am Sun, 22 Oct 2017 18:50:39 +0200 schrieb Pablo Rodriguez:
>> I guess this gives a similar effect:
>> \starteffect[both]abc\stopeffect
>
> Sorry I wasn't completly clear: starteffect seems to work with
> attributes
Am Sun, 22 Oct 2017 18:50:39 +0200 schrieb Pablo Rodriguez:
>> Is there anywhere an option to get an embolden effect as with the
>> following pdf literal? I found the extend option but it doesn't give
>> the intended look
> I guess this gives a similar effect:
>
On 10/22/2017 05:58 PM, Ulrike Fischer wrote:
> Is there anywhere an option to get an embolden effect as with the
> following pdf literal? I found the extend option but it doesn't give
> the intended look
Hi Ulrike,
I guess this gives a similar effect:
\starteffect[both]abc\stopef
ial takes so that can be put in manually in
> > front of the next paragraph?
>
> Martin,
>
> how about making the initial transparent?
>
> \definecolor[transparentblue][t=0, a=1]
> \setupwhitespace[medium]
> \starttext
> \placeinitial
> Knuth write
finecolor[transparentblue][t=0, a=1]
\setupwhitespace[medium]
\starttext
\placeinitial
Knuth writes:
\placeinitial \starteffect[hidden]K\stopeffect\input knuth
\setupinitial[color=transparentblue]
\placeinitial K\input knuth
\stoptext
The sample contains two methods.
Jus
=yellow]
\starttext
\startcolor[blue]\starteffect[outer]PQR\stopeffect\stopcolor
\stoptext
Still not there.
Is there a way to define the ? characters to remove their coloring in
the output of the following so that the background yellow appears
through the outline even within the portions
]\starteffect[outer]PQR\stopeffect\stopcolor
\stoptext
Still not there.
Is there a way to define the ? characters to remove their coloring in
the output of the following so that the background yellow appears
through the outline even within the portions of the ?s placed on the
blue heart? I
verted to paths and that it will only work when
\setupbackgrounds
[page]
[background=color,
backgroundcolor=yellow]
\starttext
\startcolor[blue]\starteffect[outer]PQR\stopeffect\stopcolor
\stoptext
-
Dear Hans,
Thank you for the comment.
>
> \startcolor[white] \stopcolor
>
It works fine. It is really good feature for me to prepare the class materials.
Best regards,
Dalyoung
___
If your question is of
On 11/22/2015 11:24 AM, Jeong Dal wrote:
Dear all,
I need to hide some part of the text while keep the space for them .
I found a very nice command “ \starteffct[hidden]”
It works well in most cases.
But it couldn’t hide horizontal bars in math mode. Is there a way to hide
horizontal bars
.
Dalyoung
%%%
\def\StartHide{\doifmode{nodetails}{\starteffect[hidden]}}
\def\StopHide{\doifmode{nodetails}{\stopeffect}}
\enablemode[nodetails]
\starttext
Here is the test file for hiding something.
Below, the same sentence is hiding.
Here is the test file for hiding
Hi,
I would like to get red text with black outlines.
The magic in ConTeXt that does the outline is
\starteffect[outer] Something \stopeffect
but I would like to combine normal filled glyphs with an outline.
While I'm able to come up with some magic to do this for single lines
(creating
On 9/30/2014 11:45 AM, Mojca Miklavec wrote:
Hi,
I would like to get red text with black outlines.
The magic in ConTeXt that does the outline is
\starteffect[outer] Something \stopeffect
but I would like to combine normal filled glyphs with an outline.
While I'm able to come up with some
\ell{{\def\periodswidth{.4em}\periods[5]}}
i'd keep the period constant and mess with the ellipses:
\defineeffect [ellipses] [alternative=both,rulethickness=.5pt]
test \starteffect[ellipses]\textellipsis\stopeffect .
Thanks, I did not know about \starteffect.
But this make *bigger
:
\defineeffect [ellipses] [alternative=both,rulethickness=.5pt]
test \starteffect[ellipses]\textellipsis\stopeffect .
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH
out well with for
instance cursive features)
anyhow, as it's probably uses for a rare cases you can try
\setupbodyfont[dejavu]
\defineeffect [thicker] [alternative=both,rulethickness=0.3pt]
\starttext
test \starteffect[thicker]test\stopeffect
\stoptext
these pseudo slant and bold
\NC Bahr, Franz\NR
\NC \starteffect[hidden]1800\stopeffect\NR
\noalign{\vskip4mm}
\NC *1833\NR
\NC Diwald, Katharina\NR
\stopmathcases
\stopformula
\vskip11.5mm
}
}
\stoptext
\stoptext
Hans changed the name of the command.
\starttext
Visible text: \input tufte
\starteffect[hidden]
Hidden text: \input tufte
\stopeffect
\stoptext
Wolfgang
___
If your question is of interest to others
Thanx Wolfgang.
Now is working. I fixed the problem on
http://wiki.contextgarden.net/Hiding_Content.
I noticed, that is in MkIV
Thanx.
Jaroslav Hajtmar
Dne 29.5.2013 8:15, Wolfgang Schuster napsal(a):
\starttext
Visible text: \input tufte
\starteffect[hidden]
Hidden text: \input tufte
at 50pt]
\starteffect[outline]
And here is the magic.
\stopeffect
\stopcolor
\stoptext
In this case CutContour is the name of the spot color, which is usually
used in the industry. Anyway, the plotter can require different spot
color name, or sometimes you can assign the color to be cut off
=.25pt]
\starttext
\startcolor[Contour]
\definedfont[Serif at 50pt]
\starteffect[outline]
And here is the magic.
\stopeffect
\stopcolor
\stoptext
Feel free to add this information to the wiki, since it remains
silent about this command until now.
Marco
On 27-4-2012 22:04, Troy Henderson wrote:
\starttext
\startitemize
\item Foo
\phantom{\item Bar}
\item Boo
\stopitemize
\stoptext
\starttext
\startitemize
\item Foo
\starteffect[hidden]
\item Bar
\stopeffect
\item Boo
important ones are
\defineviewerlayer[name][options]
\startviewerlayer[name]\stopviewerlayer
\viewerlayer[name]{...}
and
\defineeffect[name][options]
\starteffect[name]\stopviewerlayer
\effect[name]{...}
where we have predefined (as with former properties):
\defineeffect [inner
]\stopviewerlayer
\viewerlayer[name]{...}
and
\defineeffect[name][options]
\starteffect[name]\stopviewerlayer
\effect[name]{...}
where we have predefined (as with former properties):
\defineeffect [inner] [alternative=inner,rulethickness=.25pt]
\defineeffect [outer] [alternative
\viewerlayer[name]{...}
and
\defineeffect[name][options]
\starteffect[name]\stopviewerlayer
\effect[name]{...}
where we have predefined (as with former properties):
\defineeffect [inner] [alternative=inner,rulethickness=.25pt]
\defineeffect [outer] [alternative=outer,rulethickness=.25pt
with some displacement. Would this be possible?
Not by displacement, but you can use \starteffect[outer] in both mkii
and mkiv or some embolden option in XeTeX.
Mojca
___
If your question is of interest to others
be possible to do it inside PDF, but it's not implemented (yet?).
Thanks. Would be a nice feature for, e.g., invitation cards.
PDF uses 8 different kinds of text: filled, stroked (already
implemented with \starteffect[outline]...\stopeffect), ... and some
others.
See Chapter 5.2 of PDF reference
48 matches
Mail list logo