[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
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

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-10 Thread Hans Hagen
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

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
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

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread Hans Hagen
ox\scratchbox\hbox\bgroup \startMPcode draw lmt_outline [ kind = "outline", text = "\getbuffer[MyText]", ] withshademethod "linear" withshadedirection down withshadecolors (red, blue)

[NTG-context] Re: incosistent output of --- dash

2024-04-07 Thread vm via ntg-context
\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

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Hans Hagen
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

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Wolfgang Schuster
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[

[NTG-context] upload

2024-04-01 Thread Hans Hagen
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

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
] \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

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
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

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Dean Hung
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

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Mikael Sundqvist
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

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
{} 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

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
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

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen
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

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
... \stopbuffer \startbuffer spanish ... \stopbuffer \startsetups [document:stop] ... \stopsetups \startdocument [spanisabstract={\getbuffer[spanish]}, ] ... \stopdocument untested, just keyed

[NTG-context] Font switching, default features, and a request

2023-08-13 Thread Hamid,Idris
الْأَسْمَرُ السَّرِيعُ يَقْفِزُ فَوْقَ الْكَلْبِ الْكَسُولِ! 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

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Hans Hagen
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

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
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

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
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

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread 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) as per the default for typing. What were you

[NTG-context] Re: Ukrainian hyphenation?

2023-07-19 Thread Hans Hagen
\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

Re: [NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Gerben Wierda via ntg-context
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

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
女ッ除稿イ輔余た研弔カ被悪テヘ業購ヘタ詳支ルれ身日だがん出療ずー盛趣なばぐ離女放佳怖れずへ。理じかぐ討15枠制8五袋ヒク選会ソアシカ主手付みとこ猪月メ語経マオヱミ社接フセユア幌財ー香口衆ンろ著瀬なこン身個供悪射窃どスあ。切テセ重購ニホ覧権じゆむげ影文ヒヘ相断66哉ノホテフ黒植くね氏員更あきぱゆ文記ふわひ載更上ぜいひば。 \stopbuffer \rm \getbuffer \page \ss \getbuffer \stoptext end example

Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-16 Thread Joaquín Ataz-López via ntg-context
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

Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-16 Thread Bruce Horrocks via ntg-context
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

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-14 Thread Bruce Horrocks via ntg-context
\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

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-13 Thread Hans Hagen via ntg-context
{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

Re: [NTG-context] Float control

2023-03-02 Thread Denis Maier via ntg-context
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

Re: [NTG-context] Float control

2023-03-01 Thread Alan Braslau via ntg-context
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

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
\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

Re: [NTG-context] Problem using \scale

2023-02-09 Thread Henning Hraban Ramm via ntg-context
\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

[NTG-context] Problem using \scale

2023-02-09 Thread Bruce Horrocks via ntg-context
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

Re: [NTG-context] problem with Segoe Ui Symbol as fallback font

2023-01-04 Thread Jacob Kauffmann via ntg-context
-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

[NTG-context] language identifier for all languages

2022-12-30 Thread Pablo Rodriguez via ntg-context
] \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

Re: [NTG-context] new upload

2022-12-27 Thread Floris van Manen via ntg-context
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

[NTG-context] new upload

2022-12-27 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] filling buffers in cld documents

2022-11-27 Thread Hans Hagen via ntg-context
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 = {  

[NTG-context] filling buffers in cld documents

2022-11-27 Thread damien thiriet via ntg-context
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

[NTG-context] new upload

2022-11-14 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] Spacing issue with \digits in math mode

2022-10-04 Thread Gavin via ntg-context
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

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-30 Thread Denis Maier via ntg-context
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

[NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-26 Thread Denis Maier via ntg-context
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

Re: [NTG-context] update

2022-08-05 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] font fallbacks

2022-08-01 Thread Denis Maier via ntg-context
➊ 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

Re: [NTG-context] font fallbacks

2022-08-01 Thread Henning Hraban Ramm via ntg-context
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

[NTG-context] font fallbacks

2022-07-30 Thread Henning Hraban Ramm via ntg-context
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 ""

Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-07-27 Thread Hans Hagen via ntg-context
}}} \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

Re: [NTG-context] two issues with \sciteinlinebuffer

2022-07-09 Thread Pablo Rodriguez via ntg-context
\fi > \tt > \installscitecommandsinline > \module_scite_inherit_typing > \dontcomplain > \getbuffer[lex]% > \removeunwantedspaces > \endgroup} Many thanks for the fix, Hans. It works perfectly fine now. Pablo _

Re: [NTG-context] upload

2022-07-09 Thread Hans Hagen via ntg-context
> 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

Re: [NTG-context] two issues with \sciteinlinebuffer

2022-07-09 Thread Hans Hagen via ntg-context
}% \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

Re: [NTG-context] two issues with \sciteinlinebuffer

2022-07-08 Thread Pablo Rodriguez via ntg-context
; \else > \clf_scitelexbuffer{#1}{tex}% > \fi > \tt > \installscitecommandsdisplay > \module_scite_inherit_typing > \dontcomplain > \raggedright > \startscitelines > \getbuffer[lex] > \stopscitelines > \endgroup} Many thanks for

Re: [NTG-context] two issues with \sciteinlinebuffer

2022-07-07 Thread Hans Hagen via ntg-context
\module_scite_inherit_typing \dontcomplain \raggedright \startscitelines \getbuffer[lex] \stopscitelines \endgroup} some day i need to make an lmtx version (less code) Hans

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Pablo Rodriguez via ntg-context
tartxcell\inlinebuffer\stopxcell} \stopxrow} \stopxtable \stopbuffer \getbuffer[table] \page \setuppapersize[A3, landscape] \getbuffer[table] \stoptext Again, just in case it helps, Pablo ___ If your

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Pablo Rodriguez via ntg-context
txcell\inlinebuffer\stopxcell} \stopxrow} \stopxtable \stopbuffer \getbuffer[table] \page \setuppapersize[A3, landscape] \getbuffer[table] \stoptext Just in case it helps, Pablo ___ If your qu

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Wolfgang Schuster via ntg-context
}{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

Re: [NTG-context] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-06 Thread Pablo Rodriguez via ntg-context
τευτα φτωχός αν δεν υπήρχαν οι Έλληνες. Μάλιστα, αν θέλουμε να είμαστε ειλικρινείς, δεν θα υπήρχε καθόλου κόσμος, χωρίς τις επιστήμες, τη δημοκρατία, τις πόλεις, τα φωνήεντα, τη φέτα, το φραπέ, το ούζο και το χταποδάκι στα κάρβουνα. \stopbuffer \starttext \gr \ge

Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
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] >> >>

Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
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

Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] Harfbuzz plugin and colors

2022-02-13 Thread Aditya Mahajan via ntg-context
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 ___

[NTG-context] Harfbuzz plugin and colors

2022-02-13 Thread Jairo A. del Rio via ntg-context
में विकसित होकर आधुनिक भारतीय आर्य भाषाओं के रूप में अभिहित हुईं। अपभ्रंश का जो भी कथ्य रूप था - वही आधुनिक बोलियों में विकसित हुआ। \stopbuffer \starttext {\righttoleft\definedfont[file:AmiriQuranColored.ttf*colored]\input{khatt-ar}} {\definedfont[file:Lohit-Devanagari.ttf*devaA]\getbuffer[hindi

Re: [NTG-context] new upload

2022-01-15 Thread Hans Hagen via ntg-context
\dontleavehmode\ruledhbox{$x__2 + x$}\blank \stopbuffer \startTEXpage[offset=3pt] \getbuffer \Umathspaceafterscript \textstyle0pt \Umathspacebeforescript\textstyle0pt \getbuffer \Umathextrasupspace\textstyle20pt \Umathextrasubspace\textstyle40pt

Re: [NTG-context] paragraph notes when located in text

2022-01-05 Thread Jean-Pierre Delange via ntg-context
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

[NTG-context] paragraph notes when located in text

2022-01-05 Thread Pablo Rodriguez via ntg-context
\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

Re: [NTG-context] issue with \placenotes[linenote]

2022-01-04 Thread Hans Hagen via ntg-context
\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

[NTG-context] issue with \placenotes[linenote]

2022-01-04 Thread Pablo Rodriguez via ntg-context
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

Re: [NTG-context] How to make \def accept block or buffer as part of (long) command argument

2022-01-02 Thread Benjamin Buchmuller via ntg-context
} > > \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 >

Re: [NTG-context] How to make \def accept block or buffer as part of (long) command argument

2022-01-02 Thread Hans Hagen via ntg-context
[#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

[NTG-context] How to make \def accept block or buffer as part of (long) command argument

2022-01-02 Thread Benjamin Buchmuller via ntg-context
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

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-25 Thread Bruce Horrocks via ntg-context
gt;header=empty, >footer=chpaterfooter, >sectionsegments=chapter, >before={\setups[chapter:before]}, >after={\setups[chapter:after]}] > > \startsetups chapter:before > \page[left] > \noheaderandfooterlines > \startalignment[left,nothyphen

Re: [NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Wolfgang Schuster via ntg-context
    \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

[NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Gerben Wierda via ntg-context
[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

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
, 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[

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
> \startsetups chapter:before > \page[left] > \noheaderandfooterlines > \startalignment[left,nothyphenated] > \startnarrower[4*left] > \em \getbuffer[chapter:quote] > \stopnarrower > \stopalignment > \resetsetups[quote:text] >

[NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
] \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

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-17 Thread Ramkumar KB via ntg-context
starttabulate() > > context.NC() > > context("Current page") > > context.EQ() > > context(structures.counters.get("realpage",1,"number")) > > context.NC() > > context.NR() > > con

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-16 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-16 Thread Wolfgang Schuster via ntg-context
C()     context.NR() context.stoptabulate() \stopluacode \stopbuffer \starttext \dorecurse     {\randomnumber{5}{10}}     {\getbuffer[pagenumber] \page} \stoptext Wolfgang ___ If your question is of interest to

Re: [NTG-context] file to buffer

2021-08-17 Thread Hans Hagen via ntg-context
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")) )}

Re: [NTG-context] file to buffer

2021-08-17 Thread Wolfgang Schuster via ntg-context
} \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

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Benjamin Buchmuller via ntg-context
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

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Benjamin Buchmuller via ntg-context
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

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Hans van der Meer via ntg-context
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? >>> &

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Aditya Mahajan via ntg-context
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 >

[NTG-context] How to check if buffer or block has content

2021-08-02 Thread Benjamin Buchmuller via ntg-context
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

[NTG-context] Additional font variants

2021-08-01 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-29 Thread Jan U. Hasecke
=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

Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-25 Thread Wolfgang Schuster
[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

Re: [NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-23 Thread Rik Kabel
    {\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

Re: [NTG-context] Concatenate buffers without newline

2021-06-22 Thread Wolfgang Schuster
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

[NTG-context] Ligatures blocking -- why block unspecified ligatures?

2021-05-12 Thread denis.maier
,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

Re: [NTG-context] What is the ConTeXt way to handle this \vbox trick?

2021-05-09 Thread Hans Hagen
\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

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Hans Hagen
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   2   3   4   5   6   7   8   9   10   >