stofsynonyms
Command/ completeregister
Command/ copylabeltext
Command/ ctxfunction
Command/ ctxfunctiondefinition
Command/ currentlabel
Command/ delimitedtext
Command/ description
Command/ enumeration
Command/ fence
Command/ fraction
Command/ framed
Command/ framedtext
Command/ getbuffer
Command/ hbox
Command
tline" will be in the next upload so with the
current one you need to use the also posted here for ... endfor variant
also when i edit the code and replace metapost part like this:
\startMPcode
draw lmt_outline [
kind = "outline",
text
lmt_outline [
kind = "outline",
text = "\getbuffer[MyText]",
]
withcolor red
;
\stopMPcode
it produces a selectable hidden text on top of body and red text that drawn
by metapost below of that.
How can this problem be solved?
i attach
ox\scratchbox\hbox\bgroup
\startMPcode
draw lmt_outline [
kind = "outline",
text = "\getbuffer[MyText]",
]
withshademethod "linear"
withshadedirection down
withshadecolors (red, blue)
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR
\stoptabulate
\stopbuffer
\nohyphencollapsing
\getbuffer
\setupbodyfont[pagella]
\getbuffer
\dohyphencollapsing
\getbuffer
tabulate
\stopbuffer
\getbuffer
\setupbodyfont[pagella]
\getbuffer
\stoptext
detail: it is not a real fontfeature (as tlig in mkiv) but implemented
differently with a bit more control, so we have
\nohyphencollapsing
\dohyphencollapsing
etc too as control options. These collapsed hyphens are also
ere are
many dashes in unicode which look similar in the input and output files.
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR
\stoptabulate
\stopbuffer
\getbuffer
\setupbodyfont[
olor[darkblue] \getbuffer \stopcolor
We hope that the highly respected Swedish Academy will consider our prose in
their upcoming evaluations. Our first submission to the leading \TEX\ journal
was
however rejected. We are currently on a major revision in order to satisfy the
hopefully less critical
]
\strut
\blank
\bold{[\Schema]}
\vfill
This is page \recurselevel
\vfill
\stopbuffer
\starttext
\dorecurse{\Pages}{\getbuffer[Fakepage]\page}
\stoptext
___
If your question is of interest to others
aybe it is meaningful to delete the old
version.
Best
Gerion
From 187f2bf0901d414bf55869054d29ee2c4bec1a64 Mon Sep 17 00:00:00 2001
From: Gerion Entrup
Date: Tue, 16 Jan 2024 23:40:40 +0100
Subject: [PATCH] units-mkiv: improve
- typos
- remove getbuffer without context
- demonstrate usage of
would be greatly appreciated!
> >
> > Dean
>
> Hi,
>
> Hans will add some annotation mechanism (already on my computer to
> test a bit). In your case you can use the first example here:
>
> \startbuffer
> \unframed
> [align=middle,toffset=0.5cm]
> {fir
r to
test a bit). In your case you can use the first example here:
\startbuffer
\unframed
[align=middle,toffset=0.5cm]
{firstline\crlf secondline}
\stopbuffer
$
\underbrace
[mindepth=0.5cm]
{\tf x + y + z}
_
{\mtext{\getbuffer}}
\quad
\mathannotation
[bottom={\getbuffer}]
{\underbrace
[minde
{} and
\tfrac{} ?
\frac switches the math style while \tfrac (textstyle), \dfrac
(displaystyle) and \sfrac (scriptstyle) enforce a certain style.
begin example
\startbuffer[frac]
\frac{1}{2} + \dfrac{1}{2} - \tfrac{1}{2} + \sfrac{1}{2}
\stopbuffer
\starttext
\startformula
\getbuffer[frac
nd
related Unicode control characters
Hi,
I found it ...
\startbuffer
\definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d
\stopbuffer
\getbuffer
\start
\setcharacterstripping[1]
\getbuffer
\stop
so now, being its only user, you have to wikify it ...
Ah, there it is! Many tha
Hi,
I found it ...
\startbuffer
\definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d
\stopbuffer
\getbuffer
\start
\setcharacterstripping[1]
\getbuffer
\stop
so now, being its only user, you have to wikify it ...
Hans
...
\stopbuffer
\startbuffer spanish
...
\stopbuffer
\startsetups [document:stop]
...
\stopsetups
\startdocument
[spanisabstract={\getbuffer[spanish]},
]
...
\stopdocument
untested, just keyed
الْأَسْمَرُ السَّرِيعُ يَقْفِزُ فَوْقَ الْكَلْبِ الْكَسُولِ!
The quick brown fox jumps over the lazy dog!
\stoplines
\stopbuffer
{\tfxx \type{\tfxx} \getbuffer}
{\tfx \type{\tfx} \getbuffer}
\type{\tf} \getbuffer
{\tfa \type{\tfa} \getbuffer}
{\tfb \type{\tfb} \getbuffer}
{\tfc \type{\tfc} \getbuffer
On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote:
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
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
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) as per the default for typing.
What were you
\mainlanguage[ru] {\hsize3cm \getbuffer[sample]}
\mainlanguage[ua] {\hsize3cm \getbuffer[sample]}
\stoptext
hyphenates differently and eventually reports
mkiv lua stats > loaded patterns: en::1 ru::22 ua::23
so best not mess with setting up languages that already have been set up.
H
Gerben Wierda via ntg-context schrieb am 29.05.2023 um 16:19:
If I do something like:
\startbuffer[version]20230529a\stopbuffer
Version: \getbuffer[version]-en
I get whitespace between the content of the buffer and “-en”
What is the proper LMTX way to do this?
You need the \inlinebuffer
If I do something like:
\startbuffer[version]20230529a\stopbuffer
Version: \getbuffer[version]-en
I get whitespace between the content of the buffer and “-en”
What is the proper LMTX way to do this?
Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R Enterprise Archit
女ッ除稿イ輔余た研弔カ被悪テヘ業購ヘタ詳支ルれ身日だがん出療ずー盛趣なばぐ離女放佳怖れずへ。理じかぐ討15枠制8五袋ヒク選会ソアシカ主手付みとこ猪月メ語経マオヱミ社接フセユア幌財ー香口衆ンろ著瀬なこン身個供悪射窃どスあ。切テセ重購ニホ覧権じゆむげ影文ヒヘ相断66哉ノホテフ黒植くね氏員更あきぱゆ文記ふわひ載更上ぜいひば。
\stopbuffer
\rm \getbuffer
\page
\ss \getbuffer
\stoptext
end example
Thank you very much, it is a perfect solution.
El 16/3/23 a las 12:19, Bruce Horrocks escribió:
I don't have the answer to your explicit question, but a work-around might be
to put the footnotes into buffers instead of \footnotetext and then use
/footnote[...]{\getbuffer[name]} in the body
I don't have the answer to your explicit question, but a work-around might be
to put the footnotes into buffers instead of \footnotetext and then use
/footnote[...]{\getbuffer[name]} in the body. That way ConTeXt sees them in
order of appearance in the body and so the numbering should be as you
\def\mycommand#=#=#=#=#:[#5]%
> {\ifparameter#1\or(1:#1)\fi
> \ifparameter#2\or(2:#2)\fi
> \ifparameter#3\or(3:#3)\fi
> \ifparameter#4\or(4:#4)\fi
> \ifparameter#5\or[5:#5]\fi}
>
> \startbuffer
> \mycommand{aa}{bb}{cc}
> \mycommand{aa}{bb}{cc}{dd}
> \mycom
{aa}{bb}{cc}
\mycommand{aa}{bb}{cc}{dd}
\mycommand{aa}{bb}{cc}{dd}[ee]
\stopbuffer
\typebuffer
\startlines \getbuffer \stoplines
\stoptext
I'm not saying that it's the best solution, you can add \protected in
front of the \def if needed.
Hans
ional features).
>
> A few (important) observations on floats:
>
> \startplacefloat
> \stopplacefloat
> triggers a paragraph break.
>
> I therefore locate them always at the beginning or at the end of a paragraph
> of text.
> (A trick is to enclose them
r within a
paragraph, typically where a figure call -
\in{figure}[figureReference] - is to be located. Then to place
the \getbuffer at the beginning or end of a paragraph. See
example below.)
The keys location=top/bottom will place the float at the top or bottom
of th
\startbuffer[address]
Name \crlf
Address 1 \crlf
A long line that wraps \crlf
Town \crlf
Postcode
\stopbuffer
\framed[width=3cm,align=flushleft]{\getbuffer[address]}
\framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}}
\stoptext
\starttext
\startbuffer[address]
Name
Address
\startbuffer[address]
Name \crlf
Address 1 \crlf
A long line that wraps \crlf
Town \crlf
Postcode
\stopbuffer
\framed[width=3cm,align=flushleft]{\getbuffer[address]}
\framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}}
\stoptext
Did you try \framedtext instead of \framed
that wraps \crlf
Town \crlf
Postcode
\stopbuffer
\framed[width=3cm,align=flushleft]{\getbuffer[address]}
\framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}}
\stoptext
—
Bruce Horrocks
Hampshire, UK
-fallback]
\stoptypescript
\definefontfamily[mainface][mm][mainface]
\definefontfamily[mainface][rm][pagella][bf=style:bold]
\usetypescript[mainface]
\setupbodyfont[mainface]
\startbuffer
The quick brown fox jumps over the lazy dog
\stopbuffer
\starttext
% \rm % works
{\rm \getbuffer}\par
{\ss
]
\registerhyphenationexception[any][macOS]
\registerhyphenationexception[it][macOS]
\startbuffer
\currentlanguage: \hyphenatedword{macOS}
\stopbuffer
\starttext
\startTEXpage[offset=1em]
\getbuffer
\language[it]\getbuffer
\stopTEXpage
\stoptext
I think this is better than having other commands
cell three \NC \darkblue cell three \NC \NR
\TM[a] \NC \darkred cell four \NC \darkgray cell four \NC \NR
\TM[b] \NC \darkgreen cell four \NC \darkblue cell four \NC \NR
\stoptabulate
\stopbuffer
\start \showmakeup[line] \showstruts \ruledvbox{\getbuffer[b]} \stop
\start
three \NC \darkblue cell three \NC \NR
\TM[a] \NC \darkred cell four \NC \darkgray cell four \NC \NR
\TM[b] \NC \darkgreen cell four \NC \darkblue cell four \NC \NR
\stoptabulate
\stopbuffer
\start \showmakeup[line] \showstruts \ruledvbox{\getbuffer[b]} \stop
\start
ironment [env_corrige]
\starttext
\startsubject[title={Astérix}]
\startluacode
Eleve = {
structure = "analyse très fine",
NoteStructure = 2,
}
\stopluacode
\getbuffer [grille]
\stopsubject
\startsubject[title={Obélix}]
Eleve = {
eve = {
structure = "analyse très fine",
NoteStructure = 2,
}
\stopluacode
\getbuffer [grille]
\stopsubject
\startsubject[title={Obélix}]
Eleve = {
structure = "le détail doit être travaillé. Pensez à la finesse de
vos menhirs…"
NoteStru
tgreen\getbuffer\vss}}
{\ruledvbox to
5cm{\setupalign[hz,tolerant,stretch]\tred\getbuffer\vss}}
\stopoverlay
\stopTEXpage
\stoptext
Normally an expansion factor is small and used for both stretch and
shrink, but we can have them independendent. So, here we stretch rather
extreme but
roll.
\stopbuffer
\starttext
\startOliver
{\bf Definition: Hello World}
\blank[medium]
\placefigure[right,none]{This is an example of a
logo.}{\externalfigure[dummy]}
\getbuffer[sampletext]
\stopOliver
\startDefinition[title={Hello World}]
\placefigure[right,none]{This is an example
igits {12,345.67e89}$
51 \setdigitmode {5} \setdigitorder{1} $\digits {12,345.67e89}$
61 \setdigitmode {6} \setdigitorder{1} $\digits {12,345.67e89}$
\stopbuffer
\typebuffer
This is typeset as:
\startlines \getbuffer \stoplines
In text, the \type{\digits} command works fine:
\setdigitmo
stanza
\stoplines
\stopbuffer
\startbuffer[lines2]
\startlines[inbetween={\blank}]
this
is
a
poem
with
some
stanzas
here is
another one
and another one
\stoplines
\stopbuffer
\starttext
Just the buffers.
One:
\getbuffer[lines1]
Two:
\getbuffer[lines2]
Via paragraphs
\defineparagra
to achieve this?
Best,
Denis
%%%
\startbuffer[lines]
\startlines[after={\blank}]
this
is
a
poem
with
two
stanzas
\stoplines
\stopbuffer
\starttext
With a blank between the stanzas:
\getbuffer[lines]
Without a blank between the stanzas:
\starttabulate[|p|p|]
\NC \getbuffer
ers[math.dictionaries]
\starttext
\definemathgroupset[demoa][binary arithmic,nary relation]
\definemathgroupset[demob][binary relation,nary relation]
% \tracingmath2 \tracingonline2 \showmakeup[mathglue]
\startbuffer[a]
$ a \leq b \geq c < d > e = \naturalnumbers = ℕ$
\stopbuffer
\getbuffer[a] \blank
➊ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
> 9 U+0FFFD � REPLACEMENT CHARACTER
> stop missing characters
> start missing characters: cambriai.ttf
> 266 U+0276C ❬ MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT
> 266 U+0276D ❭ MEDIUM RIGHT-POINTING ANGLE BRACKET ORN
e]
\startlines
\getbuffer[example]
{\ss\getbuffer[example]}
\stoplines
\tex{abra}\arg{...}
\type{kadabra} \type{~~~}
\stoptext
"""
What’s wrong?
Hraban
___
If your question is of interest to other
RIGHT-POINTING ANGLE BRACKET ORNAMENT
stop missing characters
\stopbuffer
\typebuffer[example]
\startlines
\getbuffer[example]
{\ss\getbuffer[example]}
\stoplines
\tex{abra}\arg{...}
\type{kadabra} \type{~~~}
\stoptext
""
}}} \quad + \quad
{\PettyMatha=b^2 + \sqrt[3]{\frac{1}{x}}} \quad + \quad
{\PatheticMath a=b^2 + \sqrt[3]{\frac{1}{x}}}
\stopformula
\stopbuffer
\input tufte
\getbuffer
\input tufte
\typebuffer
\stoptext
\fi
> \tt
> \installscitecommandsinline
> \module_scite_inherit_typing
> \dontcomplain
> \getbuffer[lex]%
> \removeunwantedspaces
> \endgroup}
Many thanks for the fix, Hans.
It works perfectly fine now.
Pablo
_
> 2$ %
test $\darkgreen a + b + c + #1 + d + e + f > 2$ %
}
\stopbuffer
\setuptolerance[verytolerant,stretch]
\starttext
\start
\mathforwardpenalties 0
\mathbackwardpenalties 0
\getbuffer
\par
\stop
\page
}%
\fi
\tt
\installscitecommandsdisplay
\module_scite_inherit_typing
\dontcomplain
\raggedright
\startscitelines
\getbuffer[lex]
\stopscitelines
\endgroup}
Many thanks for your code, Hans.
I’m afraid I cannot make it work for the inline buffer
; \else
> \clf_scitelexbuffer{#1}{tex}%
> \fi
> \tt
> \installscitecommandsdisplay
> \module_scite_inherit_typing
> \dontcomplain
> \raggedright
> \startscitelines
> \getbuffer[lex]
> \stopscitelines
> \endgroup}
Many thanks for
\module_scite_inherit_typing
\dontcomplain
\raggedright
\startscitelines
\getbuffer[lex]
\stopscitelines
\endgroup}
some day i need to make an lmtx version (less code)
Hans
tartxcell\inlinebuffer\stopxcell}
\stopxrow}
\stopxtable
\stopbuffer
\getbuffer[table]
\page
\setuppapersize[A3, landscape]
\getbuffer[table]
\stoptext
Again, just in case it helps,
Pablo
___
If your
txcell\inlinebuffer\stopxcell}
\stopxrow}
\stopxtable
\stopbuffer
\getbuffer[table]
\page
\setuppapersize[A3, landscape]
\getbuffer[table]
\stoptext
Just in case it helps,
Pablo
___
If your qu
}{NO}
\doifnothingelse{\empty}{YES}{NO}
\stopbuffer
\typebuffer \getbuffer
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http
τευτα φτωχός αν δεν υπήρχαν οι
Έλληνες. Μάλιστα, αν θέλουμε να είμαστε ειλικρινείς, δεν θα
υπήρχε καθόλου κόσμος, χωρίς τις επιστήμες, τη δημοκρατία,
τις πόλεις, τα φωνήεντα, τη φέτα, το φραπέ, το ούζο και το
χταποδάκι στα κάρβουνα.
\stopbuffer
\starttext
\gr \ge
value. When you use something like 2\measure{...}
>> ConTeXt uses the "2" followed by the value of the measure, the following
>> example demonstrates this in the second output.
>>
>> begin example
>> \definemeasure [point] [1pt]
>>
>>
nTeXt uses the "2" followed by the value of the measure, the following
> example demonstrates this in the second output.
>
> begin example
> \definemeasure [point] [1pt]
>
> \starttext
>
> \startbuffer
> \tex{measure}: \measure{point}
>
> \tex{measure
typebuffer \getbuffer
\startbuffer
2\tex{measure}: 2\measure{point}
2\tex{measured}: \the\dimexpr2\measured{point}\relax
\stopbuffer
\typebuffer \getbuffer
\stoptext
end example
Wolfgang
___
If your question is o
riQuranColored.ttf*colored]\input{khatt-ar}}
>
> {\definedfont[file:Lohit-Devanagari.ttf*devaA]\getbuffer[hindi]}
> \blank[line]
> {\definedfont[file:Lohit-Devanagari.ttf*devaB]\getbuffer[hindi]}
> \stoptext
Aditya
___
में विकसित होकर आधुनिक भारतीय आर्य भाषाओं के रूप में
अभिहित हुईं। अपभ्रंश का जो भी कथ्य रूप था - वही आधुनिक बोलियों में विकसित
हुआ।
\stopbuffer
\starttext
{\righttoleft\definedfont[file:AmiriQuranColored.ttf*colored]\input{khatt-ar}}
{\definedfont[file:Lohit-Devanagari.ttf*devaA]\getbuffer[hindi
\dontleavehmode\ruledhbox{$x__2 + x$}\blank
\stopbuffer
\startTEXpage[offset=3pt]
\getbuffer
\Umathspaceafterscript \textstyle0pt
\Umathspacebeforescript\textstyle0pt
\getbuffer
\Umathextrasupspace\textstyle20pt
\Umathextrasubspace\textstyle40pt
startlinenumbering[step=3]
>\dorecurse{25}
> {a\footnote{b} }
>\stoplinenumbering
>\stopbuffer
>
>\getbuffer
> \placenotes[footnote]
>\stoptext
>
> I get no paragraph notes with \setupnote[footnote][location=text,
> paragraph
\startlinenumbering[step=3]
\dorecurse{25}
{a\footnote{b} }
\stoplinenumbering
\stopbuffer
\getbuffer
\placenotes[footnote]
\stoptext
I get no paragraph notes with \setupnote[footnote][location=text,
paragraph=yes].
What am I missing here?
Many thanks for your help,
Pablo
\stopbuffer
\getbuffer
\placenotes[linenote]
\stoptext
I cannot compile it. ConTeXt complains about "\placenotes[linenote]"
being undefined.
Is there something I’m missing or have I hit a bug?
Many thanks for your help,
can you check with
\unprotect
\def\strc_linenotes
Dear list,
I have the following sample:
\setuplinenote[location=text, paragraph=yes]
\starttext
\startbuffer
\startlinenumbering[step=3]
\dorecurse{25}
{a\linenote{b} }
\stoplinenumbering
\stopbuffer
\getbuffer
\placenotes[linenote]
\stoptext
I
}
>
> \let\stopMyCommand\relax
>
> \normalexpanded{\def\noexpand\dostartMyCommand[#1]#2\expandtoken\notcatcodes92
> stopMyCommand}%
> {\endgroup
> % whatever #1 does
> \setbuffer[foo]#2\endbuffer
> \typebuffer[foo]
> \getbuffer[foo]}
>
> or
>
[#1]%
{\begingroup
\setcatcodetable\notcatcodes
\dostartMyCommand[#1]}
\let\stopMyCommand\relax
\normalexpanded{\def\noexpand\dostartMyCommand[#1]#2\expandtoken\notcatcodes92
stopMyCommand}%
{\endgroup
% whatever #1 does
\setbuffer[foo]#2\endbuffer
\typebuffer[foo]
\getbuffer
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
gt;header=empty,
>footer=chpaterfooter,
>sectionsegments=chapter,
>before={\setups[chapter:before]},
>after={\setups[chapter:after]}]
>
> \startsetups chapter:before
> \page[left]
> \noheaderandfooterlines
> \startalignment[left,nothyphen
\startalignment[flushright,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\page[right]
\stopsetups
\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote
[chapter]
[page=,
header=empty,
footer=chpaterfooter,
sectionsegments=chapter,
before={\setups[chapter:before]}]
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote
,
header=empty,
footer=chpaterfooter,
sectionsegments=chapter,
before={\setups[chapter:before]},
after={\setups[chapter:after]}]
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[
> \startsetups chapter:before
> \page[left]
> \noheaderandfooterlines
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \em \getbuffer[chapter:quote]
> \stopnarrower
> \stopalignment
> \resetsetups[quote:text]
>
]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
%\noheaderandfooterlines % I want the enumber in the footer here
\blank[force,2*big]
\stopsetups
\startsetups chapter:after
\blank[3*big
starttabulate()
> > context.NC()
> > context("Current page")
> > context.EQ()
> > context(structures.counters.get("realpage",1,"number"))
> > context.NC()
> > context.NR()
> > con
tructures.counters.get("realpage",1,"last"))
context.NC()
context.NR()
context.stoptabulate()
\stopluacode
\stopbuffer
\starttext
\dorecurse
{\randomnumber{5}{10}}
{\getbuffer[pagenumber]
\page}
\stoptext
As addendum ... The problem in general with macro
C()
context.NR()
context.stoptabulate()
\stopluacode
\stopbuffer
\starttext
\dorecurse
{\randomnumber{5}{10}}
{\getbuffer[pagenumber]
\page}
\stoptext
Wolfgang
___
If your question is of interest to
of the buffer.
\starttext
\startnointerference
\samplefile{knuth}
\stopnointerference
\typebuffer[knuth]
\getbuffer[knuth]
\stoptext
\starttext
\ctxlua{buffers.assign(
"hvdm-is-not-afraid-of-some-lua",
io.loaddata(resolvers.findfile("tufte.tex"))
)}
}
\stopnointerference
\typebuffer[knuth]
\getbuffer[knuth]
\stoptext
Wolfgang
___
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
t;> content (using the \getbuffer[…] approach for the moment).
>> If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one
>> could think of similar commands that test for empty "objects".
>> Is there an option for testing blocks? (I actually use
On 8/2/2021 8:54 PM, Benjamin Buchmuller via ntg-context wrote:
That's great, I wikified a Note for testing if a buffer exists or has content
(using the \getbuffer[…] approach for the moment).
If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one could think
of similar
On 8/2/2021 8:54 PM, Benjamin Buchmuller via ntg-context wrote:
That's great, I wikified a Note for testing if a buffer exists or has content
(using the \getbuffer[…] approach for the moment).
If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one could think
of similar
That's great, I wikified a Note for testing if a buffer exists or has content
(using the \getbuffer[…] approach for the moment).
If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one
could think of similar commands that test for empty "objects".
Is there
Hans Hagen via ntg-context schrieb am 02.08.2021 um 17:17:
On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote:
On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote:
Hi,
How can I check if a buffer or block has content (or is empty)
before a \useblocks or \getbuffer statement
4:43 PM, Aditya Mahajan via ntg-context wrote:
>> On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote:
>>> Hi,
>>>
>>> How can I check if a buffer or block has content (or is empty) before a
>>> \useblocks or \getbuffer statement?
>>>
&
On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote:
On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote:
Hi,
How can I check if a buffer or block has content (or is empty) before a
\useblocks or \getbuffer statement?
I would like to typeset a headline only if the buffer
On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote:
> Hi,
>
> How can I check if a buffer or block has content (or is empty) before a
> \useblocks or \getbuffer statement?
>
> I would like to typeset a headline only if the buffer/block has been used in
>
Hi,
How can I check if a buffer or block has content (or is empty) before a
\useblocks or \getbuffer statement?
I would like to typeset a headline only if the buffer/block has been used in a
particular section and want to avoid headlines with empty sections.
Thanks!
Benjamin
finehighlight[emph][style={\em}]
\definehighlight[strong][style=boldface]
\starttext
\startbuffer
Some Text \emph{emphasized} normal \strong{strong} \emph{emph \emph{inner emph}
end}.
\stopbuffer
\getbuffer
{\switchtobodyfont[ss]\getbuffer}
{\hw\getbuffer}
{\switchtobody
=shiftblock]
\setuppagenumbering
[alternative=doublesided]
\starttext
\startbuffer
\dorecurse{2}{\input knuth\par}
\startuserdata[shiftblock]
\input ward
\stopuserdata
\dorecurse{2}{\input zapf\par}
\stopbuffer
\dorecurse{10}{\getbuffer}
\stoptext
I'll try
[shiftblock]
\input ward
\stopuserdata
\dorecurse{2}{\input zapf\par}
\stopbuffer
\dorecurse{10}{\getbuffer}
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry
{\em The YIVO and the problems of our time}, and also as
{\em The YIVO faces the post-war world}.
\stopbuffer
\starttext
\getbuffer[Test]
\stoptext
--
Rik
___
If your question is of interest to ot
next time.
\starttext
\startbuffer[first]
First paragraph.
\stopbuffer
\startbuffer[second]
Second paragraph.
\stopbuffer
\start
\setupbuffer[before=,after=]
\getbuffer[first]%
\getbuffer[second]
\stop
\blank
\getbuffer[first,second]
\stoptext
Wolfgang
,liga=yes]
\definefontfeature[default:block][default][blockligatures=yes]
% block certain ligatures globally, but not f|fl, f|fi
\blockligatures [ft,fft,fj,ffj,fk]
\definefontfamily[times][rm][Times New Roman]
\startbuffer[test]
fj\\
ffi\\
ffl\\
ff\\
fi
\stopbuffer
\starttext
\getbuffer[test
\dorecurse{20}{\ruby[spread]{XYZ}{fooledbar} }\par
\dorecurse{20}{\ruby{extremely}{wide} }\par
\dorecurse{20}{\ruby{wide}{extremely} }\par
stopbuffer
\testfeatureonce{1}{\start \setupinterlinespace[16pt]
\setupruby[location=none] \getbuffer \stop \page}
\testfeatureonce
tance=4mm,
location=righthanging]
\startbuffer[caption]
\dorecurse{60}{very long caption }
\stopbuffer
\starttext
\startplacefigure[title={\getbuffer[caption]}]
\externalfigure[cow][height=40mm,width=80mm]
\stopplacefigure
\stoptext
Thank you,
1 - 100 of 971 matches
Mail list logo