led or disabled.
>
> %\enablemode[H]
>
> \startmode [H]
> \definestartstop [H] [color=blue]
> \stopmode
>
> \startnotmode [H]
> \define\startH{\ignoreupto\stopH}
> \stopnotmode
>
> \starttext
>
> xxx \startH yyy \sto
better define start and stop separately?
\def\startMyFigure[#1]{
% e.g. use utilities.parsers.settings_to_hash(#1)
}
\def\stopMyFigure{}
Probably I’ll need to catch the content (\externalfigure, might become
more) and use it in a \setlayer – so perhaps something like
\definebuffer[MyFigure
\startMyFigure[#1]{
% e.g. use utilities.parsers.settings_to_hash(#1)
}
\def\stopMyFigure{}
Probably I’ll need to catch the content (\externalfigure, might become
more) and use it in a \setlayer – so perhaps something like
\definebuffer[MyFigure]
\define\stopMyFigure{%
\setlayer[page]{\getMyFigure
Am 29.07.23 um 23:16 schrieb Hans Hagen:
On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote:
The setup for MyCode is not applied to \typeMyBuffer, and I don’t know
how it could; something like \typeMyBuffer[MyCode] doesn’t work.
These commands inherit from buffer, so \setupbuffer will work.
[MyCode]
[option=tex,
numbering=file]
\definebuffer
[MyBuffer]
[category=MyCode]
\setuptyping
[MyBuffer]
[option=TEX,
numbering=file]
% \setuptyping
% [buffer]
% [option=TEX,
%numbering=file]
\startMyBuffer
\fakewords{10}{20}
\stopMyBuffer
\starttext
\startMyCode
Am 29.07.23 um 22:49 schrieb Max Chernoff:
I'm on mobile now so I can't type out a complete solution, but I think that
what you're looking for is in this file:
https://github.com/gucci-on-fleek/unnamed-emoji/blob/master/documentation/unemoji-manual.mkxl
It doesn't exactly do what you
I'm on mobile now so I can't type out a complete solution, but I think that
what you're looking for is in this file:
https://github.com/gucci-on-fleek/unnamed-emoji/blob/master/documentation/unemoji-manual.mkxl
It doesn't exactly do what you specifically asked for, but I think that it's
Am 29.07.23 um 22:06 schrieb Bruce Horrocks:
Your example seems to work: I see the \getbuffer[MyBuffer] command typed (not
executed) with colour coding on the keyword and line numbered; then the block
text fakewords from the visual module; then the \fakewords macro shown (again
not executed)
Am 29.07.23 um 22:06 schrieb Bruce Horrocks:
Your example seems to work: I see the \getbuffer[MyBuffer] command typed (not
executed) with colour coding on the keyword and line numbered; then the block
text fakewords from the visual module; then the \fakewords macro shown (again
not executed)
""
> \usemodule[visual]
>
> \definetyping[MyCode]
>
> \setuptyping[MyCode][
> option=tex,
> numbering=file,
> ]
>
> \definebuffer[MyBuffer]
>
> \startMyBuffer
> \fakewords{10}{20}
> \stopMyBuffer
>
> \starttext
>
> \startMyCode
&g
Hi,
I’d like to use a custom buffer ("MyBuffer") to use a custom typing
style ("MyCode"). How does that work?
"""
\usemodule[visual]
\definetyping[MyCode]
\setuptyping[MyCode][
option=tex,
numbering=file,
]
\definebuffer[MyBuffer]
\startMyBuff
low, the first solution has the desired behavior. The
>>> second solution has the syntax I’d like, but it doesn’t make the space
>>> without a solution.
>>> Any ideas would be welcome! I am still pretty new to ConTeXt, so I struggle
>>> mixing things
>> second solution has the syntax I’d like, but it doesn’t make the space
>> without a solution.
>> Any ideas would be welcome! I am still pretty new to ConTeXt, so I struggle
>> mixing things like the plain tex \vbox and ConTeXt \start…\stop concepts.
>> Thanks,
>
.
Any ideas would be welcome! I am still pretty new to ConTeXt, so I struggle
mixing things like the plain tex \vbox and ConTeXt \start…\stop concepts.
Thanks,
Gavin
\definemode[solution][yes] % yes to enable solutions, no to disable
\definebuffer [solution] % Captures solution in a buffer
to ConTeXt, so I struggle
mixing things like the plain tex \vbox and ConTeXt \start…\stop concepts.
Thanks,
Gavin
\definemode[solution][yes] % yes to enable solutions, no to disable
\definebuffer [solution] % Captures solution in a buffer that isn't used
\startmode[solution
ile encountered
%
% \startMyCommand[is optional]
% Still?
%
% \beginMyBlock
% Block for something else.
% \endMyBlock
% \stopMyCommand
\definebuffer[MyBuffer]
\bf Here we test the buffer: Works \tf
\startbuffer[MyBuffer]
Buffer for something else.
\stopbuffer
\getbuffer[MyBuffer]
\bf Here we t
On Wed, 17 Nov 2021 10:56:46 -0700, Aditya Mahajan via ntg-context
wrote:
But you don't have to directly use the modes. The following will work:
\definestartstop[abridged]
% By default, don't show the unabridged text
\definebuffer[unabridged][local=yes, nested=yes]
\startmode[unabridged
]
\defineparagraphs[translation]
Then one authors the complete work in a single project, but you can
produce a variety of versions, depending on the mode chosen:
\definemode[unabridged]
etc.
Can one do this in context?
Yes!
This is what I do (for solutions in homework assignments):
\definebuffer[solution
gt;
> > > Then one authors the complete work in a single project, but you can
> > > produce a variety of versions, depending on the mode chosen:
> > >
> > > \definemode[unabridged]
> > > etc.
> > >
> > > Can one do this in conte
, depending on the mode chosen:
\definemode[unabridged]
etc.
Can one do this in context?
Yes!
This is what I do (for solutions in homework assignments):
\definebuffer[solution][local=yes,nested=yes]
\startmode[solution]
\defineenumeration[solution][fancy setup...]
\stopmode
Then, in the main
n the mode chosen:
>
> \definemode[unabridged]
> etc.
>
> Can one do this in context?
Yes!
This is what I do (for solutions in homework assignments):
\definebuffer[solution][local=yes,nested=yes]
\startmode[solution]
\defineenumeration[solution][fancy setup...]
is appreciated. Maybe I am doing this entirely the wrong way.
A couple notes: I considered using \definebuffer, but this doesn’t allow me to
create named buffers, which seems like a deal breaker. I considered using
\definefloat, but it don’t allow me include before and after commands, as far
ted. Maybe I am doing this entirely the wrong way.
A couple notes: I considered using \definebuffer, but this doesn’t allow me to
create named buffers, which seems like a deal breaker. I considered using
\definefloat, but it don’t allow me include before and after commands, as far
as I can
[ChangeRP]
[before={\startsidebar[rulecolor=green]},
after={\blank[overlay]\stopsidebar}]
% \hideblocks[ChangePR]
\keepblocks[ChangePR]
% \keepblocks[ChangePR,ChangeRP]
\enablemode[wipe]
\doifelsemode {wipe} {
\definebuffer[ChangePP]
} {
\definestartstop
[ChangePP
text.> \endnltext> > \stopsection> > \stoptext It can also be done with buffers. \definebuffer [entext]\definebuffer [nltext] \defineselector [language] [max=2,n=1] \startmode[en] \setupselector[language][n=1] \def\stopentext{\getentext}\stopmode \startmode[nl] \setupsele
It can also be done with buffers.
\definebuffer [entext]
\definebuffer [nltext]
\defineselector [language] [max=2,n=1]
\startmode[en]
\setupselector[language][n=1]
\def\stopentext{\getentext}
\stopmode
\startmode[nl]
\setupselector[language][n=2]
\def\stopnltext{\getnltext
,
align=flushleft,
before=,
after=,
frame=off]
\definenarrower[poemnarrower]
\definelines
[poemlines]
[before={\startpoemnarrower[left]},
after=\stoppoemnarrower]
\definebuffer[poem]
\def\stoppoem{\setups{poems:buffer}}
\startsetups poems:buffer
\setupnarrower
add as many \startQuestions / \stopQuestions you wish.
Let me give a better explanation.
The line
\definebuffer [Questions]
serves two purposes:
1. It create a Questions environment (\startQuestions ...
\stopQuestions)
2. I gobbles the content of the environment.
When you
gt;>
>> Some other text...
>> %
>>
>> Otherwise to be:
>> %
>> Some other text...
>> %
>
> If you only set `ClassRoom` mode at compile tim
stion B….
>>
>> Some other text...
>> %
>>
>> Otherwise to be:
>> %
>> Some other text...
>> %
>
> If you only set `ClassRoom` mod
rwise to be:
%
Some other text...
%
If you only set `ClassRoom` mode at compile time (rather than setting and
unsetting it the middle of the document), then you can do:
\definebuffer[Questions]
\startmode[ClassRoom]
\define\StopQuestion
er
> [before=\blank\blackrule\startnarrower\BufferStyle,
> after=\stopnarrower\blackrule\blank]
>
> %% alternatively define custom buffers
> \definebuffer
> [foobar]
>
> \setupblackrules
> [width=1cm,
>height=1pt,
>color=gray]
>
> \defi
er has before and after keys which can be used. Example:
\setupbuffer
[before=\blank\blackrule\startnarrower\BufferStyle,
after=\stopnarrower\blackrule\blank]
%% alternatively define custom buffers
\definebuffer
[foobar]
\setupblackrules
[width=1cm,
height=1pt,
color=gray]
\definehighli
xpanded ?
>
> end
>
> \stopluacode
>
> \definebuffer[ZZZBuffer]
>
> \def\StartZZZ{\grabbufferdata[ZZZBuffer][StartZZZ][StopZZZ]}
>
> \def\StopZZZ{\ctxlua{zzz_function(buffers.getcontent('ZZZBuffer'))}}
>
> \StartZZZ
>
> \
On 11/26/2018 3:19 PM, Joseph Canedo wrote:
\startluacode
function zzz_function(text)
- How to process ‘text’ to get bits which are macros, groups etc… ?
Eventually expanded ?
end
\stopluacode
\definebuffer[ZZZBuffer]
\def\StartZZZ{\grabbufferdata[ZZZBuffer][StartZZZ][StopZZZ]}
\def
function zzz_function(text)
- How to process ‘text’ to get bits which are macros, groups etc… ? Eventually
expanded ?
end
\stopluacode
\definebuffer[ZZZBuffer]
\def\StartZZZ{\grabbufferdata[ZZZBuffer][StartZZZ][StopZZZ]}
\def\StopZZZ{\ctxlua{zzz_function(buffers.getcontent('ZZZBuffer'))}}
\StartZZZ
:
\unprotect
\def\buff_start_indeed#1#2#3#4%
{\edef\p_strip{\namedbufferparameter{#1}\c!strip}%
\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}\ifx\p_strip\v!no\zerocount\else\plusone\fi}}
\protect
\definebuffer[Aditya][strip=no]
\startAditya
Leading spaces
And some more
set up a particular section to be wrapped in a particular
mode (if that makes any sense at all).
Is this possible?
Here is how I usually do this:
\definemode[showexamples][keep]
\doifmodeelse{showexamples}
{\definehead[example][subject][style=\bfc]}
{\definebuffer[example]}
\starttext
macros that
>>> behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv).
>>> But in this case, there is a simpler solution:
>>>
>>> \defineframed
>>> [CodeExampleFramed]
>>> [
>>> frame=off,
>>>
;
> \defineframed
> [CodeExampleFramed]
> [
>frame=off,
>width=0.5\textwidth,
>align=normal,
> ]
>
> \definebuffer
>[CodeExample]
>
> \define\stopCodeExample
>{\placesidebyside
> {\CodeExampleFramed{\typeCodeExample}}
> {\C
ur own macros that
behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv).
But in this case, there is a simpler solution:
\defineframed
[CodeExampleFramed]
[
frame=off,
width=0.5\textwidth,
align=normal,
]
\definebuffer
[CodeExample]
\define\stopCodeE
===
\newconditional\SkipSlide \setfalse\SkipSlide
\definebuffer[Slide]
\def\stopSlide
{\ifconditional\SkipSlide \else
\page \getbuffer[\thedefinedbuffer{Slide}]%
\fi
\setfalse\SkipSlide}
\starttext
\startSlide
First Slide
\stopSlide
\settrue\SkipSlide
\startSlide
===
\newconditional\SkipSlide \setfalse\SkipSlide
\definebuffer[Slide]
\def\stopSlide
{\ifconditional\SkipSlide \else
\page \getbuffer[\thedefinedbuffer{Slide}]%
\fi
\setfalse\SkipSlide}
\starttext
\startSlide
First Slide
\stopSlide
\settrue\SkipSlide
\startSlide
Second Slide
\stopSlide
\definebuffer[Slide]
\def\stopSlide
{\ifconditional\SkipSlide \else
\page \getbuffer[\thedefinedbuffer{Slide}]%
\fi
\setfalse\SkipSlide}
\starttext
\startSlide
First Slide
\stopSlide
\settrue\SkipSlide
\startSlide
Second Slide
\stopSlide
\startSlide
Third Slide
\stopSlide
.
Perhaps Modes ?
http://wiki.contextgarden.net/Modes
\starttext
\definebuffer[Slide]
foo
% \skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide
bar
\stoptext
-François.
On 07 Nov 2014, at 12:38, Hans Hagen pra...@wxs.nl wrote:
\starttext
\definebuffer[Slide]
foo
% \skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide
bar
\stoptext
--
Bonnefoi Pierre-Francois|E
\definebuffer[Slide]
foo
\startSlide
bla bla bla
\starttyping
language C code
\stoptyping
bla bla bla
\stopSlide
bar
\getbuffer[\thedefinedbuffer{Slide}]
\getSlide
\stoptext
Does a buffer work only for verbatim content ?
no, for everything
best regards,
Pierre-François.
On 07 Nov 2014
,
thank you for contributing to solve my problem.
I've tried your proposition : how can I get the content of the buffer
afterward ?
I've tried \getbuffer[Slide] with no success on MKIV beta that I've just
updated.
\starttext
\definebuffer[Slide]
foo
\startSlide
bla bla bla
}
{\defineenumeration[SOLUTION] % display the solutions
[text=\Word{solution},number=no,
after={\vskip1ex}]}
{\definebuffer[SOLUTION] % hide solutions,
\setupbuffer[SOLUTION][local=yes]}
}
\def\startsolution
adapted from Hans's \starthiding (which already exists):
\definebuffer[Hidden]
% uncomment the below to turn this into a non-hiding buffer.
% \setupbuffer[Hidden][after={\getbuffer[Hidden]}]
\startHidden
asdf asdf
\stopHidden
Cheers,
Sietse
Hello,
interesting trick; however, it doesn't work when used inside a macro:
\definebuffer[Hidden]
\def\WWW{
\startHidden
DDD
\stopHidden
}
\starttext
AAA
\startHidden
BBB
\stopHidden
\WWW
\stoptext
Any idea?
TIA.
Best regards,
Lukas
On Fri, 22 Mar 2013
) when there are
macros inside macros. But it might not be expansion.
I hope that helps, but it probably doesn't. ;-)
--Sietse
Hello,
interesting trick; however, it doesn't work when used inside a macro:
\definebuffer[Hidden]
\def\WWW{
\startHidden
DDD
\stopHidden
anyway. I will look into creating what I need on
my own. I already have an idea.
Just need to figure out the implementation.
You can use \definestartsetup or \definebuffer to create
your own environments.
Wolfgang
for the environment is misleading because columns is already taken as name.
Thank you anyway. I will look into creating what I need on my own. I already
have an idea.
Just need to figure out the implementation.
You can use \definestartsetup or \definebuffer to create your own
environments
multiple
paragraphs. The name
for the environment is misleading because columns is already taken as name.
Thank you anyway. I will look into creating what I need on my own. I already
have an idea.
Just need to figure out the implementation.
You can use \definestartsetup or \definebuffer
. The name
for the environment is misleading because columns is
already taken as name.
Thank you anyway. I will look into creating what I need on
my own. I already have an idea.
Just need to figure out the implementation.
You can use \definestartsetup or \definebuffer to create
your own environments
need to figure out the implementation.
You can use \definestartsetup or \definebuffer to create
your own environments.
Wolfgang
___
If your question is of interest to others as well, please add an
entry
Am 13.01.2012 um 11:16 schrieb Steffen Wolfrum:
Hi,
isn't it possible to use the short way?
\definebuffer[MottoSieben]
\startbuffer[MottoSieben]
\stopbuffer[MottoSieben]
% but shouldn't it also work like this:
%\startMottoSieben
%\stopMottoSieben
% ???
No because
Hi,
isn't it possible to use the short way?
\definebuffer[MottoSieben]
\startbuffer[MottoSieben]
\stopbuffer[MottoSieben]
% but shouldn't it also work like this:
%\startMottoSieben
%\stopMottoSieben
% ???
\starttext
test\footnote{note} text
\stoptext
Steffen
;
this is what I want to achieve:
\definebuffer[MyBuffer]
\def\MyGreatMacro#1#2#3%
{\item[#1] #2 \par
\appendtobuffer{MyBuffer}{\in[#1] #3}}
\starttext
\startitemize
\MyGreatMacro{1}{aa}{AA}
\MyGreatMacro{2}{bb}{BB}
\stopitemize
\page
\getbuffer[MyBuffer]
\resetbuffer[MyBuffer] % so I can reuse
this, so
here is some pseudo-code; this is what I want to achieve:
\definebuffer[MyBuffer]
\def\MyGreatMacro#1#2#3%
{\item[#1] #2 \par
\appendtobuffer{MyBuffer}{\in[#1] #3}}
\starttext
\startitemize
\MyGreatMacro{1}{aa}{AA}
\MyGreatMacro{2}{bb}{BB}
\stopitemize
\page
\getbuffer[MyBuffer
Solution
environment or define the environment as
\definebuffer[Solution][local=yes]
\startmode[solutions]
\setupbuffer[Solution][local=no]
\stopmode
\starttext
...
\startSolution
solution
\stopSolution
...
\stoptext
Wolfgang
this?
Use \startmode[...] ... \stopmode in your document without your own
Solution environment or define the environment as
\definebuffer[Solution][local=yes]
\startmode[solutions]
\setupbuffer[Solution][local=no]
\stopmode
\starttext
...
\startSolution
solution
\stopSolution
=no,before=\startframedtext,after=\stopframedtext]
\stopmode
In general, I agree with Wolfgang. It is better to redefine the macro at
an outer level. You can even do:
\defineframedtext[Solution]
\startnotmode[solution]
\definebuffer[Solution][local=yes]
\stopnotmode
However, in the few cases
In the default mode, the solution evironment should gobble its contents.
%D I copy the definition of \tex{starthiding} to {\em hide} the solutions.
\definebuffer [solution]
\setupbuffer [solution] [local=yes]
%D In solution mode, I redefine solution environment as an
%D enumeration without
of \definetype and \definebuffer.
Aditya
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http
On 4-8-2010 7:23, Aditya Mahajan wrote:
(that writes contents to file and inputs the result) but cannot easily
create \typevimTEX. For that I will need to reimplement all the catcode
trickery of \definetype and \definebuffer.
\definetype[TEXtype][option=TEX]
test \TEXtype{oeps \test{oeps
On Wed, 4 Aug 2010, Hans Hagen wrote:
On 4-8-2010 7:23, Aditya Mahajan wrote:
(that writes contents to file and inputs the result) but cannot easily
create \typevimTEX. For that I will need to reimplement all the catcode
trickery of \definetype and \definebuffer.
\definetype[TEXtype
and \definebuffer.
\definetype[TEXtype][option=TEX]
test \TEXtype{oeps \test{oeps}} test
But I want to store the argument oeps \test{oeps} in an external file,
process that external file with vim, and \input the result.
As pretty printing happens in lua, you can intercept the string there.
Just
Am 27.04.10 15:20, schrieb Antoine Cailliau:
This time, it is not working, and I do not have any idea why.
\defineenumeration[ENUM][]
\definebuffer[Entity,before=\startENUM,after=\stopENUM]
\definebuffer[Entity][before=\startENUM,after=\stopENUM]
\startEntity
...
\stopEntity
\getEntity
Damned, I didn't saw it.
Thanks a lot for your help.
On Wed, 2010-04-28 at 09:55 +0200, Wolfgang Schuster wrote:
Am 27.04.10 15:20, schrieb Antoine Cailliau:
This time, it is not working, and I do not have any idea why.
\defineenumeration[ENUM][]
\definebuffer[Entity,before=\startENUM
This time, it is not working, and I do not have any idea why.
\defineenumeration[ENUM][]
\definebuffer[Entity,before=\startENUM,after=\stopENUM]
\starttext
\startEntity
\input tufte
\stopEntity
\stoptext
fails with
! Missing \endcsname inserted.
to be read again
\let
All,
At one time I had a style file that handled my abstract.
\definebuffer[myAbstract]
\startmyAbstract In this activity you will learn how to solve
systems of linear equations using LU decomposition, with both
forward and back substitution. In addition, you will also be
introduced
David Arnold wrote:
All,
At one time I had a style file that handled my abstract.
\definebuffer[myAbstract]
\startmyAbstract In this activity you will learn how to solve
systems of linear equations using LU decomposition, with both
forward and back substitution. In addition, you will also
{\dosingleempty\dostartletter}
\def\dostartletter[#1]%
{\dostartbuffer[letter][startletter][stopletter]}
either use \definebuffer, or do
Did not work in my case.
\def\startletter
{\bgroup\obeylines\dosingleempty\dostartletter}
\def\dostartletter[#1]%
{\egroup\dostartbuffer[letter
renders buffers
useless for verbatim usage
because I won't force users of my letter module to put a \relax
after \startletter only because they use MkII.
did you try
\definebuffer[letter]
Hans
[letter][startletter][stopletter]}
either use \definebuffer, or do
\def\startletter
{\bgroup\obeylines\dosingleempty\dostartletter}
\def\dostartletter[#1]%
{\egroup\dostartbuffer[letter][startletter][stopletter
is not so importand because a empty line before the
\dorecurse did help.
because I won't force users of my letter module to put a \relax
after \startletter only because they use MkII.
did you try
\definebuffer[letter]
Seems to be work in my example, I will try it later with my module
]
\defineblock[name]
\definebodyfont[font size][type][files]
\definebodyfontenvironment[font size][dimensions]
\definebuffer[name]
# \definecollector
\definecolor[name]{colour values}
\definecolorgroup[name][colour model][colour values]
\definecombinedlist[name][list][settings]
\defineconversion[name][command
to go back to the
definebuffer and processbuffer as suggested in metafun manual.
I do not know if it makes sense to have a \edef version of
definesymbol. In any case, getting expansion to work with \getMPdrawing
is going to be difficult.
Aditya
case. You need to go back to the
definebuffer and processbuffer as suggested in metafun manual.
I do not know if it makes sense to have a \edef version of
definesymbol. In any case, getting expansion to work with \getMPdrawing
is going to be difficult.
Aditya
On Mon, 31 Jul 2006, Aditya Mahajan wrote:
On Mon, 31 Jul 2006, Hans van der Meer wrote:
The ConTeXt manual tells me on page 237:
You can define your own buffer with:
\definebuffer[...]
... name
After this command /getbuffer and \typebuffer are available where
buffer
On Aug 1, 2006, at 0:21, Aditya Mahajan wrote:
On Mon, 31 Jul 2006, Hans van der Meer wrote:
The ConTeXt manual tells me on page 237:
You can define your own buffer with:
\definebuffer[...]
... name
After this command /getbuffer and \typebuffer are available where
The ConTeXt manual tells me on page 237: You can define your own buffer with: \definebuffer[...] ... name After this command /getbuffer and \typebuffer are available where buffer is the name of the buffer.I do: \definebuffer[left] \startbuffer[left] left\crlf \stopbuffer \typeleftand it gives me
On Mon, 31 Jul 2006, Hans van der Meer wrote:
The ConTeXt manual tells me on page 237:
You can define your own buffer with:
\definebuffer[...]
... name
After this command /getbuffer and \typebuffer are available where
buffer is the name of the buffer.
I do
because it was
not enabled); i added a few lines to the buffer handler, so that now we
can say:
\definebuffer[mycomment][local=yes]
and have
\startmycomment
\stopmycomment
(this extension will be available in the next release)
(btw, in a similar fashion verbatim supports some nesting
that now we
can say:
\definebuffer[mycomment][local=yes]
and have
\startmycomment
\stopmycomment
(this extension will be available in the next release)
(btw, in a similar fashion verbatim supports some nesting, which was needed in
order to be able to write manuals)
Hans
Hello Gerben,
use your second try and *remove*
\definebuffer[chapter:quote]
from your environment. That's was all :)
Indeed! I have no idea why this worked, but it did. Thank you very much.
G
PS. Now I only need to know how I can use \placefigure in an endnote (and
not get the figure
Gerben Wierda wrote:
Hello Gerben,
use your second try and *remove*
\definebuffer[chapter:quote]
from your environment. That's was all :)
Indeed! I have no idea why this worked, but it did. Thank you very much.
G
PS. Now I only need to know how I can use \placefigure in an endnote
}
===
and in my environment file:
===
\definebuffer[chapter:quote]
\setuphead
[chapter]
[page=,
before={\setups[chapter:before]},
after={\setups[chapter:after]}]
\startsetups chapter:before
\page[left
Hello Gerben,
use your second try and *remove*
\definebuffer[chapter:quote]
from your environment. That's was all :)
Greetings,
Peter
Gerben Wierda wrote:
Thanks for the tip but I am having trouble getting this to work. I now
have in my main text
On Tue, 31 May 2005, Hans Hagen wrote:
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
end\egroup\blank]
[...]
Hello Hans and Taco,
thank you for your hints, but I think, I did not explain my question well
enough...
I fact, all I need is to know
This should help:
\def\startLST[#1]%
{\def\stopLST{End of #1}%
\dostartbuffer[LST][startLST][stopLST]}
This is almost the same as:
\definebuffer[LST]
\def\stopLST{End of LST}
Except that it is a little bit more low-level and thereby allows
an argument to \startLST. Using
I once made the option
\usememorybuffers
but i'm not sure if it does the same
Taco Hoekwater wrote:
This should help:
\def\startLST[#1]%
{\def\stopLST{End of #1}%
\dostartbuffer[LST][startLST][stopLST]}
This is almost the same as:
\definebuffer[LST]
\def\stopLST
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
end\egroup\blank]
\starttext
\input tufte
\startcrap
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
\stopcrap
\input tufte
\getcrap
\input tufte
95 matches
Mail list logo