[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Joel via ntg-context
I am using Linux, so those tools are available, but Bruce's solution is working great! Just had to make tiny changes to the file. I had no idea I could send an environment variable to ConTeXt...will be using that a lot from now! Thanks very much everyone for the help! On Friday, Sept

[NTG-context] Re: (ConTeXt LMTX 2.11.05) how do I make it so that sections, descriptions, and itemizations have just a space between some of the text that they produce

2024-09-16 Thread Wolfgang Schuster
ch=0,    shrink=0] \starttext \startdescription [title={I'm not a fan of the}] default spacing \stopdescription \stoptext end example For itemize you can use the fit keyword but be aware once you have more than 9 entries you get a bigger space between the number and content because th

[NTG-context] Re: Indentation in headings

2024-09-14 Thread Kirill Davidov
On 9/14/24 12:41, Wolfgang Schuster wrote: > You have to use the narrow environment and apply it with the > beforehead and afterhead command and in addition enable the aligntitle > option. > > Wolfgang Yeah, that does seem

[NTG-context] Re: Indentation in headings

2024-09-14 Thread Wolfgang Schuster
heading to poke out into the margins. That can be troublesome if the title is long enough. Example code to tinker with: [...] You have to use the narrow environment and apply it with the beforehead and afterhead command and in addition enable the aligntitle option. begin example

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-11 Thread Wolfgang Schuster
he box. I run your code and already found a few example where it fails, e.g. - when you have a very short text it is spread over the while line and you get a line break at the end - when you use it in the narrower environment you don't compensate the left/right indentations Regarding the pa

[NTG-context] Re: Inserting text between end notes

2024-09-03 Thread Rik Kabel
ng or bookmarking). I can hack the first requirement with: \define[1]\EndNoteChapter{\testpage[3] \blank \midaligned{\tfa{Chapter #1}} \blank} in the environment and \EndNoteChapter{6 How I Saved the World} at the end of the las

[NTG-context] Re: Inserting text between end notes

2024-09-01 Thread Bruce Horrocks
ers > (and should not, at least in my use case, require cross-referencing or > bookmarking). > I can hack the first requirement with: > \define[1]\EndNoteChapter{\testpage[3] > \blank > \midaligned{\tfa{Chapter #1}} >

[NTG-context] Inserting text between end notes

2024-08-31 Thread Rik Kabel
first requirement with: \define[1]\EndNoteChapter{\testpage[3]   \blank   \midaligned{\tfa{Chapter #1}}   \blank} in the environment and \EndNoteChapter{6 How I Saved the World} at the end of the last end note i

[NTG-context] horizontal line in math align environment

2024-08-26 Thread niklas
Hi everyone, I’m working on creating a horizontal line within a math align environment that spans the entire equation, rather than being restricted by the columns. My current "solution" is to use `\hl`, as shown below: ``` \startformula \startalign \NC a + b \NC = c \NR \NC d + e \

[NTG-context] Re: digits / units setup

2024-08-25 Thread Wolfgang Schuster
. Seems to be a problem of my environment. In a minimal example, \setupunit changes \unit, \setdigitmode changes \digits. The \digits mechanism was never extended to provide a basic setup mechanism which means you have to use the \set... commands to change the output. Wolfgang

[NTG-context] Re: Is there a short-cut to adding sub-categories for index entries?

2024-08-25 Thread Henning Hraban Ramm
used this: -- lookups.lua userdata = userdata or { } userdata.Mapping = { ["Albano"] = "Albano (Provinz Rom)", ["Altona"] = "Altona (Hamburg)", ["Aurich"] = "Aurich (Ostfriesland)", -- … } function userdata.Lookup(name) conte

[NTG-context] Re: digits / units setup

2024-08-24 Thread Henning Hraban Ramm
Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm: According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though. Seems to be a problem of my environment. In a

[NTG-context] how to set OSFONTDIR to find font under the path com_apple_MobileAsset_Font7 in macOS ?

2024-08-17 Thread ai2472206007
hi,lists In macOS, some fonts (e.g klee, stkaiti ,lihei) will be downloaded under the path --> /System/Library/AssetsV2/com_apple_MobileAsset_Font7/, and I set the system font environment like: --> export OSFONTDIR=/Library/Fonts/:/System/Library/Fonts:$HOME/Library/Fonts:/System/L

[NTG-context] Re: Nāgarī for Academics

2024-08-08 Thread Wolfgang Schuster
texts in a setups blocks and apply the block to a language. When you use now the \language command (or environment) all settings are now applied to the content. Below is a untested example. \definefontfamily [nagari] [rm] [adishila] [features=devanagari-one] \usetransliteration[indic

[NTG-context] Re: Error after latest update

2024-08-06 Thread Shiv Shankar Dayal
; >> I have defined a determinant environment like below: > >> > >> \definemathmatrix[determinant] > >>[matrix:bars] > >>[simplecommand=thedeterminant] > >> > >> and I create a determinant like below:

[NTG-context] Re: Error after latest update

2024-08-06 Thread Wolfgang Schuster
Mikael Sundqvist schrieb am 06.08.2024 um 18:27: Hi, On Tue, Aug 6, 2024 at 5:57 PM Shiv Shankar Dayal wrote: I have defined a determinant environment like below: \definemathmatrix[determinant] [matrix:bars] [simplecommand=thedeterminant] and I create a

[NTG-context] Re: Error after latest update

2024-08-06 Thread Shiv Shankar Dayal
rote: > > > > I have defined a determinant environment like below: > > > > \definemathmatrix[determinant] > > [matrix:bars] > > [simplecommand=thedeterminant] > > > > and I create a determinant like below: > &g

[NTG-context] Re: Error after latest update

2024-08-06 Thread Mikael Sundqvist
Hi, On Tue, Aug 6, 2024 at 5:57 PM Shiv Shankar Dayal wrote: > > I have defined a determinant environment like below: > > \definemathmatrix[determinant] > [matrix:bars] > [simplecommand=thedeterminant] > > and I create

[NTG-context] Error after latest update

2024-08-06 Thread Shiv Shankar Dayal
I have defined a determinant environment like below: \definemathmatrix[determinant] [matrix:bars] [simplecommand=thedeterminant] and I create a determinant like below: \startformula \startdeterminant\NC a_{11} \NC a_{12} \NC a_{13} \NC \cdots \NC a_{1n}\NR

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}} > > > > works ok (the \blank[-line] is a side-effect of using the environment > > inside a margin text). > can you test with > > \permanent\protected\tolerant\def\definealign[#1]#*[#2]%

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Hans Hagen
using the environment inside a margin text). can you test with \permanent\protected\tolerant\def\definealign[#1]#*[#2]% {\pushmacro\raggedcommand \pushmacro\updateraggedskips \edef\m_spac_align_named{#1}% \edef\m_spac_align_asked{#2}% \spac_align_add_to_cache \popmacro

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Taco Hoekwater
Hi, Something seems wrong with the align processing inside \setupmargindata, because using a macro like \def\Inmargin#1{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}} works ok (the \blank[-line] is a side-effect of using the environment inside a margin text

[NTG-context] Re: How to specify a default formatting for TABLE

2024-07-01 Thread Gerion Entrup
TR > \bTD C \eTD > \bTD D \eTD >\eTR > \eTABLE > > \blank > > \bTABLE[setups=table:b] >\bTR > \bTD A \eTD > \bTD B \eTD >\eTR >\bTR > \bTD C \eTD > \bTD D \eTD >\eTR > \eTABLE > > \stoptext

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-07-01 Thread Gerion Entrup
Am Freitag, 28. Juni 2024, 11:59:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 28.06.2024 um 11:40: > > > Do you know, why the groupedcommand solution does not work? > > The command and the environment which are created by \definestartstop > can't be

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-28 Thread Wolfgang Schuster
Gerion Entrup schrieb am 28.06.2024 um 11:40: Do you know, why the groupedcommand solution does not work? The command and the environment which are created by \definestartstop can't be interchanged when you use the before/after and left/right keys. begin example \usemodule[v

[NTG-context] Re: “call for articles” (context meeting 2023)

2024-06-26 Thread Pablo Rodriguez via ntg-context
On 6/24/24 07:25, Henning Hraban Ramm wrote: > [...] > Of course. Try \usemodule[cgj] – the module in the distribution is not > the same as the environment that I use for CGJ anymore, but it should > still work. I should update it, but it’s always in a preliminary state… “Work in prog

[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-24 Thread Hans Hagen via ntg-context
/context/tex/texmf-linuxmusl-64/bin/mtxrun.lua" --generate --redirected sh: luatex: not found I wonder if your test environment is really equivalent to a fresh Alpine install, or if there might be any previously installations that are allowing it to appear to succeed. Does it work if y

[NTG-context] Re: “call for articles” (context meeting 2023)

2024-06-23 Thread Henning Hraban Ramm
just thought about something similar to: \usemodule[article-basic] Or where are these start/stops (Article and Abstract) defined? This is to avoid having my own macros. Of course. Try \usemodule[cgj] – the module in the distribution is not the same as the environment that I use for CGJ

[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-23 Thread Henning Hraban Ramm
; --generate --redirected sh: luatex: not found I wonder if your test environment is really equivalent to a fresh Alpine install, or if there might be any previously installations that are allowing it to appear to succeed. Does it work if you try inside Docker? I'm not sure what else

[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-23 Thread Bryan Kaplan via ntg-context
generate > mtx-context | redirect luametatex -> luatex: luatex --luaonly --socket > "/opt/context/tex/texmf-linuxmusl-64/bin/mtxrun.lua" --generate --redirected > sh: luatex: not found I wonder if your test environment is really equivalent to a fresh Alpine install, or if ther

[NTG-context] Re: context / auctex problem?

2024-06-19 Thread Jim
r over thirty years, and have managed to never need to explicitly setq exec-path. How are you starting emacs? If you start it from a terminal session, it should inherit the PATH from your shell, which presumably has the directory where your context executable is found. If you are starting emacs by c

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-18 Thread Gerion Entrup
> > \color[m-indigo-800]{\structureuservariable{subtitle}} > > \stopfont > > \blank[3cm] > > > > \startextract[author={\structureuservariable{quoteauthor}}] > > \structureuservariable{quote} > >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-17 Thread Wolfgang Schuster
\stopfont \blank[3cm] \startextract[author={\structureuservariable{quoteauthor}}] \structureuservariable{quote} \stopextract \stopframed \stoplocalheadsetup \stopsetups The use

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-11 Thread Gerion Entrup
Am Montag, 10. Juni 2024, 15:53:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 10.06.2024 um 13:16: > > Hi, > > > > I'd like to scale something (actually a symbol drawn in TikZ) to the exact > > high of the char 'M'. I found the scale envi

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread Wolfgang Schuster
Gerion Entrup schrieb am 10.06.2024 um 13:16: Hi, I'd like to scale something (actually a symbol drawn in TikZ) to the exact high of the char 'M'. I found the scale environment for it but struggle to measure the correct font height. I found the "definemeasure/measure/measure

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread seyal zavira
text.} \stoptext On Mon, Jun 10, 2024 at 7:18 AM Gerion Entrup wrote: > Hi, > > I'd like to scale something (actually a symbol drawn in TikZ) to the exact > high of the char 'M'. I found the scale environment for it but struggle to > measure the correct font height

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread Hans Hagen
On 6/10/2024 1:16 PM, Gerion Entrup wrote: Hi, I'd like to scale something (actually a symbol drawn in TikZ) to the exact high of the char 'M'. I found the scale environment for it but struggle to measure the correct font height. I found the "definemeasure/measure/measure

[NTG-context] Scale content to height of the font, measure font height

2024-06-10 Thread Gerion Entrup
Hi, I'd like to scale something (actually a symbol drawn in TikZ) to the exact high of the char 'M'. I found the scale environment for it but struggle to measure the correct font height. I found the "definemeasure/measure/measured" commands but they define a dimens

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Wolfgang Schuster
in example \starttext \startlines «quoted text» « quoted text » \stoplines \setcharacterspacing[frenchpunctuation] \startlines «quoted text» « quoted text » \stoplines \stoptext end example 2. When you use the quotation command or environment ConTeXt adds a space between the quotation mar

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Alan Braslau via ntg-context
bla > >> \startquotation > >>Not Ok: a space is missing > >> \stopquotation > >> \stoptext > > > > It seems, that this workaround solves the problem: > > \setupquotation[before={\setcharacterspacing[reset]}] > > > The quotation environ

[NTG-context] Re: missing space with French quotation

2024-06-07 Thread Wolfgang Schuster
workaround solves the problem: \setupquotation[before={\setcharacterspacing[reset]}] The quotation environment doesn't rely on the characterspacing mechanism to add the spaces before and the after the quotes but uses language dependent skips. The example below shows how it works and where it

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
one would actually use context --environment xml-analyze-template.tex file.xml to typeset in a pdf file. But I would like to convert all the XML nodes into the ConTeXt typesetting language, and then edit/correct the text and maybe some structure in this *.tex file. And here comes m

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Hans Hagen
;t specify precisely enough. I have the following workflow in mind: 1. I have an XML file (TEI-XML), 2. then, following your brilliant suggestion, I will create an xml-analyze-template.tex file and customise it. 3. As you suggest, now one would actually use     context --environment xml-analyze-te

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Christoph Edenhauser
orkflow in mind: 1. I have an XML file (TEI-XML), 2. then, following your brilliant suggestion, I will create an xml-analyze-template.tex file and customise it. 3. As you suggest, now one would actually use     context --environment xml-analyze-template.tex file.xml     to typeset in a pdf file. B

[NTG-context] Re: Vanishing floats with location=split and \start ... \stopsplittext within

2024-06-04 Thread Hans Hagen via ntg-context
On 6/4/2024 3:57 PM, Давыдов, Кирилл Александрович wrote: Greetings, I have run into an issue whilst using \start ... \stopsplittext. I intended to use it for large code listings (using the t-vim module), however floats with location=split using that environment seem to vanish if there is

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Pablo Rodriguez via ntg-context
nTeXt file instead of typesetting a PDF file, for further editing? Hi Christoph, not clear to me whether you meant an environment (a format file) with the ConTeXt generated file. In that case, this might help: context --extra=xml --analyze --template your-file.xml With that template, you m

[NTG-context] Vanishing floats with location=split and \start ... \stopsplittext within

2024-06-04 Thread Давыдов , Кирилл Александрович
Greetings, I have run into an issue whilst using \start ... \stopsplittext. I intended to use it for large code listings (using the t-vim module), however floats with location=split using that environment seem to vanish if there is nearly not enough text before the float to fill a page. Not only

[NTG-context] Re: missing space with French quotation

2024-05-30 Thread Rik Kabel
My apologies to all, and thank you, Wolfgang. Time to update my notes. -- Rik On 2024-05-30 16:33, Wolfgang Schuster wrote: Rik Kabel schrieb am 30.05.2024 um 19:21:  From my basic environment file, a useful reminder:     %% \mainlanguage sets language used for labels (TOC, chapters

[NTG-context] Re: missing space with French quotation

2024-05-30 Thread Wolfgang Schuster
Rik Kabel schrieb am 30.05.2024 um 19:21: From my basic environment file, a useful reminder: %% \mainlanguage sets language used for labels (TOC, chapters, ...) %% \language sets language to use for hyphenation, quote rules, ... \mainlanguage includes all settings of \language. As

[NTG-context] Re: missing space with French quotation

2024-05-30 Thread Rik Kabel
From my basic environment file, a useful reminder: %% \mainlanguage sets language used for labels (TOC, chapters, ...) %% \language sets language to use for hyphenation, quote rules, ... -- Rik On 2024-05-30 11:34, Peter Münster wrote: Hi, When using \start/stopquotation in French

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
't get why. Otherwise, it looks quite nice. > > I also want to set everything except of the intro in a flushright > > environment but do not know how. I tried: > > As above: > \framedtext[align=flushright]{% That works, thank you! Best, Gerion > -- > > O

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
MyChapter{% \framedtext{% #1 #2:\\ \structureuservariable{subtitle}\\ (\structureuservariable{intro}) } } > I also want to set everything except of the intro in a flushright environment > but do not know how. I tried: As above: \framedtext[align=flushright]{% The best, To

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
ine breaks > > How can I achieve line breaks? > This does not work: > ``` > \define[2]\MyChapter{% > #1 #2:\\ > \structureuservariable{subtitle}\\ > (\structureuservariable{intro}) > } > ``` > (see 3.pdf) > > I also want to set everything except

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
e{intro}) } ``` (see 3.pdf) I also want to set everything except of the intro in a flushright environment but do not know how. I tried: ``` \define[2]\MyChapter{% \startalignment[flushright] #1 #2:\\ \structureuservariable{subtitle}\\ \stopalignment \structureuservariab

[NTG-context] Re: BibTeX choking on comments in database

2024-05-29 Thread Kip Warner
On Wed, 2024-05-29 at 06:49 -0600, Alan Braslau wrote: > 1) You appear to be using the long-frozen mkii bibliography code. I think you are right! I just realized that. I'm using in my Environment file... % \BIBTEX macro... \usemodule[abr-02] % Setup bibl

[NTG-context] Re: Number in a circle

2024-05-28 Thread Wolfgang Schuster
. I currently do the following in my environment file: \definecolor[colour_text][r=0.754,g=0.516,b=0.324] \setupcolors[state=start,textcolor=colour_text,pagecolormodel=rgb] Add framecolor=colour_text, to the frame settings. Wolfgang

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
s how to set the colour of the circle to match the other text on my page. I currently do the following in my environment file: \definecolor[colour_text][r=0.754,g=0.516,b=0.324] \setupcolors[state=start,textcolor=colour_text,pagecolormodel=rgb] -- Kip Warner OpenPGP signed/encrypted mail

[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
environment collects the content of the table cell-wise which means when TeX sees a \bTD in the input it reads the following text until it finds the corresponding \eTD. When you put the \eTD in the definition of another command the scanner will never find the end of a cell and you either run out of

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Wolfgang Schuster
\latexdesc{1541} some other event happened \latexdesc{1542} some event happened quite different \stoptext I found the above code (the first line) in the ConTeXt Wiki, as a way to create the equivalent of a desc environment from LaTeX. The items inside {} should be bold, then there is a

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Mikael Sundqvist
desc{1541} some other event happened > \latexdesc{1542} some event happened quite different > > \stoptext > > > I found the above code (the first line) in the ConTeXt Wiki, as a way to > create the equivalent of a desc environment from LaTeX. The items inside {} > shoul

[NTG-context] Why is this description environment not showing the correct title?

2024-05-05 Thread Joel via ntg-context
found the above code (the first line) in the ConTeXt Wiki, as a way to create the equivalent of a desc environment from LaTeX. The items inside {} should be bold, then there is a gap before the next text. I am using this to display a simple timeline. Though the formatting looks perfect, very

[NTG-context] Re: How to stop ConTeXt from thinking period is at the end of a sentence?

2024-05-05 Thread Denis Maier via ntg-context
https://wiki.contextgarden.net/French_spacing Joel via ntg-context hat am 05.05.2024 00:30 CEST geschrieben:     I noticed that some code is being rendered wrong, most especially apparent in a column environment where

[NTG-context] How to stop ConTeXt from thinking period is at the end of a sentence?

2024-05-04 Thread Joel via ntg-context
I noticed that some code is being rendered wrong, most especially apparent in a column environment where sometimes the text can get stretched a bit more to fit the column width nicer. If a sentence says "They appeared between c. 1200 BCE and c. 1500 CE." it appears ConTeXt think

[NTG-context] Re: \par and \startlines

2024-05-01 Thread Henning Hraban Ramm
pported by \startlines unless you add the normal linenumbering mechanism)     - support for lines which don't fit on a single page where the consecutive lines are indented but the module is outdated and relies on an old mkii style code base. A big difference between the \startlines envi

[NTG-context] Re: \par and \startlines

2024-05-01 Thread Wolfgang Schuster
module is outdated and relies on an old mkii style code base. A big difference between the \startlines environment and the format module is that the first treats each line in the input file as a separate line in the output while the format module requires begin/end tags for each line wh

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Wolfgang Schuster
Alan Bowen schrieb am 29.04.2024 um 19:37: I used TeXShop and PopChar Pro to get the letter ר so that it is l2r. Not a great solution but it works when one is working in r2l text. (Thank heaven for Unicode.) I will have a look at Visual Studio Code. I tested a few text editors with better R

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Wolfgang Schuster
doesn't matter because definecommand is just a wrapper for the implement function with the option to create a environment. Many thanks for your fast reply, Wolfgang. I’m reading it now in cld-mkiv.pdf. Is \protected the same as \unexpanded? Yes they are the same (\protected is the primitive

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Wolfgang Schuster
Alan Bowen schrieb am 29.04.2024 um 18:27: I discovered what the problem was. Just in case someone else may also wonder how to do this, one way (not necessarily the best) is to insert: {ר}high\ where the letter in parentheses (resh) should be entered in a l2r context, not r2l. Which editor do

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Alan Bowen
I discovered what the problem was. Just in case someone else may also wonder how to do this, one way (not necessarily the best) is to insert: {ר}high\ where the letter in parentheses (resh) should be entered in a l2r context, not r2l. Alan On Sun, Apr 28, 2024 at 4:23 PM Alan Bowen wrote: > I

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
oesn't matter because > definecommand is just a wrapper for the implement function with the > option to create a environment. Many thanks for your fast reply, Wolfgang. I’m reading it now in cld-mkiv.pdf. Is \p

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Wolfgang Schuster
st a wrapper for the implement function with the option to create a environment. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https:/

[NTG-context] ConteXt commands in an rtl environment

2024-04-28 Thread Alan Bowen
I am having trouble entering ConteXt commands in an rtl language, in this case Hebrew. How does one make the last(left hand) letter of the Hebrew word אשר a superscript? My experiments with \high{...} have not been successful so far in part, I think, because I have not got the brackets right. An

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
sually, you won't run into this because an empty line works, but with XML that's not am option.) As you've said, it looks like a bug then. The lines environment treats each line of the input as paragraph by adding \par at the end of it and adding another \par mak

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
markup as well. Usually, you won't run into this because an empty line works, but with XML that's not am option.) As you've said, it looks like a bug then. The lines environment treats each line of the input as paragraph by adding \par at the end of it and adding another \par ma

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
s, but with XML that's not am option.) As you've said, it looks like a bug then.   The lines environment treats each line of the input as paragraph by adding \par at the end of it and adding another \par makes no difference here. BTW: ConTeXt has a module for poems whi

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
not am option.) As you've said, it looks like a bug then. The lines environment treats each line of the input as paragraph by adding \par at the end of it and adding another \par makes no difference here. BTW: ConTeXt has a module for poems which can be loaded with

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-19 Thread Hans Hagen
nTeXt will still compile, even if something isn't displayed on screen as it should: (1) I tried placing a table inside a startitemize environment, as instead of it not compiling, it left a message in the document warning that wasn't supported. (2) In another case, I had an image that C

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-17 Thread Henning Hraban Ramm
;t displayed on screen as it should: (1) I tried placing a table inside a startitemize environment, as instead of it not compiling, it left a message in the document warning that wasn't supported. (2) In another case, I had an image that ConTeXt couldn't find, as I mispelled th

[NTG-context] How to isolate serious errors from warnings?

2024-04-17 Thread Joel via ntg-context
placing a table inside a startitemize environment, as instead of it not compiling, it left a message in the document warning that wasn't supported. (2) In another case, I had an image that ConTeXt couldn't find, as I mispelled the filenmame, and it fully compiled and made a PDF, without

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Hans Hagen
assed to say it was in my own environment file, not in the lmtx distribution. I have a Lua function that prints information about the computer model and the operating system into a layer. Unfortunately, there was an "elseif" in there somewhere which should catch exceptions (such as a r

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
On 4/7/24 19:44, Hans Hagen wrote: ok, so this "on" ... where does it come from .. you can try to run with \tracingall and then quit the run after the first and search the log for !on to get a clue Hans Found it - and I'm embarrassed to say it was in my own environment fi

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Hans Hagen
: it has one additional page. The first page of the document is empty and has the word "on" in the upper left hand corner of the text area. I have checked several times, it always comes out like this. Everything else is exactly the same - context version, file and environment files (

[NTG-context] Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
the document is empty and has the word "on" in the upper left hand corner of the text area. I have checked several times, it always comes out like this. Everything else is exactly the same - context version, file and environment files (everything under git, so really identical). The &quo

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
todo: use sequence for i=1,#interfaces do local interface = interfaces[i] local i_commands = { } local i_environments = { } local start = elements.start[interface] or elements.start.en local stop = elements.stop [interface

[NTG-context] Re: Visually balanced columns

2024-03-27 Thread Wolfgang Schuster
e the same vertical position -- no matter, how many lines there are in each column and how exactly they are aligned. If I understand correctly, that's how the multicols environment in LaTeX works, and that's how old-multicolumns worked -- but this module seems to be no longer supported

[NTG-context] Visually balanced columns

2024-03-27 Thread Alexey Kryukov
ines there are in each column and how exactly they are aligned. If I understand correctly, that's how the multicols environment in LaTeX works, and that's how old-multicolumns worked -- but this module seems to be no longer supported in lmtx. I tried to disable gridfitting for startcolumn

[NTG-context] Re: ConTeXt on RPI400

2024-03-26 Thread Andres Conrado Montoya
es, > > > I have set up the shell environment variable in my `~/.zshrc`, here it is > the output of `echo $PATH` under the shell: > > ``` > > /home/hf/WORKSPACE/TOOLS/Emacs/bin:/home/hf/WORKSPACE/TOOLS/ConTeXt/tex/texmf-linux-aarch64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:

[NTG-context] Re: ConTeXt on RPI400

2024-03-26 Thread hf
Hello Andres, I have set up the shell environment variable in my `~/.zshrc`, here it is the output of `echo $PATH` under the shell: ``` /home/hf/WORKSPACE/TOOLS/Emacs/bin:/home/hf/WORKSPACE/TOOLS/ConTeXt/tex/texmf-linux-aarch64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

[NTG-context] Re: issue with typing in footnotes

2024-03-18 Thread Pablo Rodriguez via ntg-context
On 3/17/24 23:58, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 17.03.2024 um 17:38: >> [...] >> As far as I know, this sample should be compiled without any issue. >> >> Could you be so kind to confirm the issue or explain me what am I missing? &

[NTG-context] Re: issue with typing in footnotes

2024-03-17 Thread Wolfgang Schuster
\stoptext Current latest (from 2024.03.11 09:34) breaks compilation with both LMTX and LuaTeX. As far as I know, this sample should be compiled without any issue. Could you be so kind to confirm the issue or explain me what am I missing? The footnote environment is just a fancy way for a

[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Joel via ntg-context
when I uncomment line #2, revealing the > cross-references work find when outside of a table. > > I also tried using a TABLE environment instead and the result was > similar, it wouldn't show the page number. > > What am I doing wrong? Tabulate and natural tables pro

[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Wolfgang Schuster
}{\pagereference[xyz]} \NC \NC\NR \stoptabulate \pagebreak \at{page}[xyz] \stoptext The code does work when I uncomment line #2, revealing the cross-references work find when outside of a table. I also tried using a TABLE environment instead and the result was similar, it wouldn't sho

[NTG-context] Why aren't cross-references working in tabulate?

2024-03-15 Thread Joel via ntg-context
, revealing the cross-references work find when outside of a table. I also tried using a TABLE environment instead and the result was similar, it wouldn't show the page number. What am I doing wrong? --Joel ___ If

[NTG-context] Re: Japanese

2024-03-11 Thread Wolfgang Schuster
paragraphs https://www.w3.org/TR/jlreq/#fig2_5_7 Use the narrower or blockquote environment for this. * tab setting https://www.w3.org/TR/jlreq/#fig2_6_1 Just use a table. * furiwake https://www.w3.org/TR/jlreq/#fig2_7_2 * jidori https://www.w3.org/TR/jlreq/#fig2_7_4

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
nteraction[state=start] \xmlprocessbuffer{main}{demo}{} \stoptext With \setupmetadata it breaks compilation. I know it is not the most elegant code, but in my real environment xml:title:author outputs text. Many thanks for your help, Pablo

[NTG-context] Re: Local alternative to \input

2024-03-04 Thread Denis Maier via ntg-context
] Re: Local alternative to \input With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment

[NTG-context] Re: Local alternative to \input

2024-03-03 Thread Jeroen
With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment \startenvironment bbb \samplefile

[NTG-context] Re: missing metadata in LMTX

2024-03-03 Thread Wolfgang Schuster
but none of the is very elegant and I hope Hans can help with a clean solution. The first solution works around the grouping issue of the xmlsetups environment and pushes the setting beyond the limit of it. \startxmlsetups xml:meta \aftergrouped{\setupinteraction [author={\xmltext{#1}{/author

[NTG-context] Re: typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
Am 24.02.24 um 13:53 schrieb Henning Hraban Ramm: Hi, I’m trying to use escaping in a typing environment. It works until I load the scite module. I need that only for btx highlighting, but I can’t limit it to that. What should I do? \usemodule[scite] \define[1]\SAY{\hfill{\rm #1

[NTG-context] typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
Hi, I’m trying to use escaping in a typing environment. It works until I load the scite module. I need that only for btx highlighting, but I can’t limit it to that. What should I do? \usemodule[scite] \define[1]\SAY{\hfill{\rm #1}} \setuptyping[TEX][ option=tex,% scite sets cld escape

  1   2   3   4   5   6   7   8   9   10   >