[NTG-context] XML: Correct usage of hash symbol in url

2023-08-25 Thread denis.maier
Hi, I need to process URLs in XML documents differently depending on the target. Thanks to Hans and Thomas I can now deal with the attributes. Now I need to prefix certain kind of targets with a certain URL (a web viewer for IIIF images in this particular case). The prefix contains a #, which

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-23 Thread Hamid,Idris
Hi Vincent, On Aug 22, 2023, 2:56 PM -0600, Vincent Hennebert , wrote: I don’t know about its quality, but Adobe makes the Source Serif font available under the SIL Open Font License, with 5 optical sizes and 6 weights. I’m working on a typescript file that allows to use all those variants, would b

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen
On 8/22/2023 10:53 PM, Vincent Hennebert wrote: On Tue, 2023-08-22 at 15:45 +, Hamid,Idris wrote: On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context , wrote: On 8/22/2023 6:31 AM, Hamid,Idris wrote: I'm not going to look into this until there is a complete test case for this which m

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Vincent Hennebert
On Tue, 2023-08-22 at 15:45 +, Hamid,Idris wrote: > On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context cont...@ntg.nl>, wrote: > > On 8/22/2023 6:31 AM, Hamid,Idris wrote: > > I'm not going to look into this until there is a complete test case > > for > > this which means: > > > > - f

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hamid,Idris
need it in a project i can waste the time on it, otherwise i rather spend the time on things we (and users) can actually use and have fun with. At some point in the future, will aim to put together some typescripts using Latin Modern as base, and probably New Computer Modern (Greek, Hebrew, Coptic

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Wolfgang Schuster
Hamid,Idris schrieb am 22.08.2023 um 17:45: On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context , wrote: On 8/22/2023 6:31 AM, Hamid,Idris wrote: Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen
or context dev without any restriction of usage because we might want to show them in manuals or articles or presentations and there is no reason to spend time on them unlees we're paid for it. I think that my version is/will be more complete - except for mathematics. Once some

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hamid,Idris
On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context , wrote: On 8/22/2023 6:31 AM, Hamid,Idris wrote: Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: You can s

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 6:31 AM, Hamid,Idris wrote: Dear gang, Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: You can still do it but for all these years only cm has design siz

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 8:51 AM, Andres Conrado Montoya wrote: Apologies, I just found the solution: https://wiki.contextgarden.net/Command/setinjector El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (< andresconr...@gmail.com>) escribió: I'm trying to force a page break in a table

[NTG-context] Re: Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
Apologies, I just found the solution: https://wiki.contextgarden.net/Command/setinjector El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (< andresconr...@gmail.com>) escribió: > I'm trying to force a page break in a table of contents, using what is > recom

[NTG-context] Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
I'm trying to force a page break in a table of contents, using what is recommended at https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break However, it does not work. Here's a MWE: \definelistextra[page][before=\page] \starttext \starttitle[title={Table of contents}] \pl

[NTG-context] Fallbacks for design sizes in the current typescripts regime

2023-08-21 Thread Hamid,Idris
Dear gang, Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: "at some point the decision was made to kick out these definitions and move the burden of figuring out

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread Hans Hagen
On 8/21/2023 10:24 AM, denis.ma...@unibe.ch wrote: -Ursprüngliche Nachricht- Von: Hans Hagen Gesendet: Freitag, 18. August 2023 17:10 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: Penalties and overprinting in tabulate On 8/18/2023 4:36 PM, denis.ma...@unibe.ch wrote: Dear list

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Freitag, 18. August 2023 17:10 > An: ntg-context@ntg.nl > Betreff: [NTG-context] Re: Penalties and overprinting in tabulate > > On 8/18/2023 4:36 PM, denis.ma...@unibe.ch wrote: > > Dear list, > >

[NTG-context] Re: An error which is not in .log file

2023-08-19 Thread Xavier B.
[scale=0.9] to starttikzpicture? > > It's a bug and should be fixed in the next context release. > > Wolfgang > ___ If your question is of interest to others as well, please add an entry to the Wiki! ma

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
On 8/18/2023 4:36 PM, denis.ma...@unibe.ch wrote: Dear list, typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting? Best,

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
On 8/18/2023 4:36 PM, denis.ma...@unibe.ch wrote: Dear list, typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting? Best,

[NTG-context] Penalties and overprinting in tabulate

2023-08-18 Thread denis.maier
Dear list, typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting? Best, Denis \startsetups[mypenalties] \setdefaultpena

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
dutch net-artist artist from the early days of the public web, and is often (volontary) mixing different natural nd machine langages. Not all snippets are HTML, but most of them are some sort of HTML pidgin. I see, the typing environment is in this case the safest option to ensure special

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster
Alex Leray schrieb am 17.08.2023 um 17:59: Hi, I think I need to use verbatim because I'm typesetting source code and I need it to be as verbatim as possible. For the moment, I'm manually inserting zero-width spaces... seems to do the trick, although it's becoming unreadable :P Which langu

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
lfgang Schuster a écrit : Alex Leray schrieb am 17.08.2023 um 14:41: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Do you need the verbatim environment or is the lines-environment su

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster
Alex Leray schrieb am 17.08.2023 um 14:41: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Do you need the verbatim environment or is the lines-environment sufficient. \se

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
Thanks, Unfortunatly, it doesn't work (no difference in output with or without the `setups` parameter) I'm not up-to-date, Should I update? Here is my version. mtx-context | current version: 2023.03.10 12:15 Many thanks Le 17/08/23 à 16:32, Hans Hagen a écrit : On 8/17/20

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Hans Hagen
On 8/17/2023 2:41 PM, Alex Leray wrote: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? For now do this: \appendtoks \usesetupsparameter\typing

[NTG-context] breakpoints in verbatim text

2023-08-17 Thread Alex Leray
Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? Below is my test code. Thanks, Alex * * * \setuppapersize[A7] \setbreakpoints[compound] \starttext 1. Th

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-17 Thread Vincent Hennebert
On Tue, 2023-08-15 at 18:22 +0200, Hans Hagen wrote: > On 8/15/2023 5:33 PM, Hamid,Idris wrote: > > > > so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular etc.? Interesting.. > > > check the lfg file ... On that note, there seems to be

[NTG-context] Re: startitemize[a, text] space in LMTX

2023-08-16 Thread Hans Hagen via ntg-context
On 8/16/2023 9:27 PM, Xavier B. wrote: OK. Thanks but it's about luatex [https://tracker.luatex.org/changelog_page.php]. Does we use luametatex? lmtx uses luametatex ... luatex dev is basically frozen (has to be stable because used by several macro packages now) Hans

[NTG-context] Re: startitemize[a, text] space in LMTX

2023-08-16 Thread Xavier B.
OK. Thanks but it's about luatex [https://tracker.luatex.org/changelog_page.php]. Does we use luametatex? On Wed, 16 Aug 2023 21:07:47 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 20:38: > > Thanks. > > Anyway do ypu have public triaging bugs system for LMTX and ConTe

[NTG-context] Re: startitemize[a, text] space in LMTX

2023-08-16 Thread Wolfgang Schuster
Xavier B. schrieb am 16.08.2023 um 20:38: Thanks. Anyway do ypu have public triaging bugs system for LMTX and ConTeXt? There is https://tracker.luatex.org/my_view_page.php but the normal way is to report bugs on the mailing list. Wolfgang

[NTG-context] Re: startitemize[a, text] space in LMTX

2023-08-16 Thread Xavier B.
Thanks. Anyway do ypu have public triaging bugs system for LMTX and ConTeXt? On Wed, 16 Aug 2023 19:58:28 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 15:20: > > Hi, > > > > Is it possible that in LMTX there is almost no space b

[NTG-context] Re: startitemize[a, text] space in LMTX

2023-08-16 Thread Wolfgang Schuster
Xavier B. schrieb am 16.08.2023 um 15:20: Hi, Is it possible that in LMTX there is almost no space between "(a)" and item? \startitemize[a, text] \item This is an item \stopitemize Fixed in today's context up

[NTG-context] Re: An error which is not in .log file

2023-08-16 Thread Xavier B.
On Wed, 16 Aug 2023 17:02:53 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 09:15: > > Mmmm thanks. > > How can I pass so [scale=0.9] to starttikzpicture? > > It's a bug and should be fixed in the next context release. > > Wolfga

[NTG-context] Re: An error which is not in .log file

2023-08-16 Thread Wolfgang Schuster
Xavier B. schrieb am 16.08.2023 um 09:15: Mmmm thanks. How can I pass so [scale=0.9] to starttikzpicture? It's a bug and should be fixed in the next context release. Wolfgang ___ If your question

[NTG-context] startitemize[a, text] space in LMTX

2023-08-16 Thread Xavier B.
Hi, Is it possible that in LMTX there is almost no space between "(a)" and item? \startitemize[a, text] \item This is an item \stopitemize Thanks in advance, Xavier ___ If your question is of interest to

[NTG-context] Re: An error which is not in .log file

2023-08-16 Thread Aditya Mahajan
On Wed, 16 Aug 2023, Wolfgang Schuster wrote: > 3. \starttikzpicure doesn't allow arguments which results in font error > messages (char ... missing). This is an error in the ConTeXt version of the > \starttikzpicture command and should be fixed. Looking at m-tikz.mkxl, \starttikz

[NTG-context] Re: An error which is not in .log file

2023-08-16 Thread Xavier B.
orgot to close the following environment: > \startexercici[reference=exercici:problemes-de-fraccions-13, > title={tasca per fer junts}] > > 3. \starttikzpicure doesn't allow arguments which results in font error > messages (char ... missing). This is an error in t

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster
nd \stoptext at the begin and end of your example file. 2. You forgot to close the following environment: \startexercici[reference=exercici:problemes-de-fraccions-13, title={tasca per fer junts}] 3. \starttikzpicure doesn't allow arguments which results in font error messages (char ...

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
Ah, the goodies files.. Got it and thanks for the clarifications. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 On Aug 15, 2023, 10:22 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/15/2023 5:33 PM,

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
7;pgfmath' is not found structure > sectioning > section @ level 3 : 0.0.1 -> Problemes de fraccions structure > sectioning > subject @ level 3 : 0.0.1 -> Preguntes tex error > tex error on line 25 in file ./dev.tex: \textfont0 is undefined in ordinal, font i

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster
use \setuphead to force a pagebreak at the start of each new section and not with a \page command in the document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
On Tue, 15 Aug 2023 21:13:54 +0200 Wolfgang Schuster ha escrit: > > There is also something wrong with the structure of your document when > need \page[yes] after each file. Why is it trouble? ___ If your question

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 17:35, Xavier B. wrote: > I have the document split in several files. Hi Xavier, as someone already mentioned it, the way to check would be: mtxrun --scripts check your-document.tex But this doesn‘t parse \input, so you need to create a loop. In Unix, it would read something l

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster
The error message is about line 276 in one of your included files but we need the content of the faulty file. To get the faulty file comment your input line until the error disappears, ensure to delete the tuc file (context --purge) because sometimes index/register entries are the problem

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Mikael Sundqvist
Hi, I suggest to comment out/add \stoptext until the error go,and that way narrow it down. The usual way... /Mikael Den tis 15 aug. 2023 19:50Xavier B. skrev: > I don't have line 276. This is what I have (169 lines): > > % Fitxer ConTeXt MIV > > % carregam les opcions d'entorn > \environment n

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
I don't have line 276. This is what I have (169 lines): % Fitxer ConTeXt MIV % carregam les opcions d'entorn \environment ng-entorn-minimal.conTeXt \environment ng-entorn-taules.conTeXt \environment ng-entorn-teoria.conTeXt \environment ng-entorn-colors.conTeXt % bibliografia \usebtxdataset[defa

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hans Hagen
On 8/15/2023 5:33 PM, Hamid,Idris wrote: so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular etc.? Interesting.. check the lfg file ... Hans - Hans Hagen | P

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
I have the document split in several files. I don't know what is the line 296. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
e 12pt roman %D bodyfont. -) > well, in type-imp-latinmodern.mkiv i can find 'designsize' ... you're > not relying on some gpt driven search machine are you? No just the search files feature in Notepad++ -) Ok, looking at type-imp-latinmodern.mkiv, under latin-modern-desig

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Hans Hagen
On 8/15/2023 4:50 PM, Xavier B. wrote: After trying to compile a long file with LMTX (previously with MKIV all compiles perfectly), I get an error structures > bookmark: Referències structure > sectioning > chapter @ level 2 : 0.1 -> Referències publications> list > collecting en

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hans Hagen
the design size typescript Ok, where is that design size typescript? A search for, e.g., lmroman8-regular etc. in texmf-context/tex/context/base/mkiv yields no results, so it must be defined at some higher level of abstraction.. well, in type-imp-latinmodern.mkiv i can find 'desig

[NTG-context] An error which is not in .log file

2023-08-15 Thread Xavier B.
otf, lmsans10-boldoblique.otf, lmsans10-regular.otf, texgyreschola-bold.otf, texgyreschola-math.otf, texgyreschola-regular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 68 instances, 51 shared in backend, 8 common vectors, 43 common hashes, load time 1.181 seconds mkiv lua

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
n load the design size typescript Ok, where is that design size typescript? A search for, e.g., lmroman8-regular etc. in texmf-context/tex/context/base/mkiv yields no results, so it must be defined at some higher level of abstraction.. > (likely we will go for \enableexperiments[fonts.compac

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hans Hagen
} \stopTEXpage === In the log we have === mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman10-regular.otf === Is this behavior intentional? The needed sizes are certainly available (/texmf/fonts/data/gust/lm). yes, but there are also typescript that define the si

[NTG-context] Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
Dear gang, It seems that ConTeXt does not currently implement optical scaling for Latin Modern -- at least not by default. For example: === \startTEXpage[offset=1em] Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test} \stopTEXpage === In the log we have

[NTG-context] Re: split align in formulas

2023-08-14 Thread Mikael Sundqvist
x27;equació} \NR > \NC x = k - D = \NC \pm \sqrt{ D^2 - \frac{c}{a}} - D\quad \text{desfeim el > canvi} \NR > \stopalign > \stopformula > on $D = (\frac{b}{2a})$ i $x = k-D$. > > > and then the formula goes to next page. Is there any way to split align > environment? In wiki

[NTG-context] split align in formulas

2023-08-14 Thread Xavier B.
c{b}{2a})$ i $x = k-D$. and then the formula goes to next page. Is there any way to split align environment? In wiki I could not find nothing. Thanks in advance, ___ If your question is of interest to others as well

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Gerion Entrup
Am Montag, 14. August 2023, 13:44:44 CEST schrieb Mikael Sundqvist: > Hi, > > I do not understand what you want to have, so here is just something > weird, but probably you look for simplealign. > > \definemathsimplealign > [whatever] > > \starttext > \startformula > \startalign > \NC a = \NC (b

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Gerion Entrup
Am Montag, 14. August 2023, 13:33:33 CEST schrieb Hans Hagen: > On 8/14/2023 1:16 PM, Gerion Entrup wrote: > > Hi, > > > > I try to typeset a nested align in a formula. However, the results looks > > really wrong. Here is a MWE: > > > > ``` > > \st

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Mikael Sundqvist
= someother \NR \stopwhatever \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext /Mikael On Mon, Aug 14, 2023 at 1:20 PM Gerion Entrup wrote: > > Hi, > > I try to typeset a nested align in a formula. However, the results looks > really wrong. Here is a MWE: >

[NTG-context] Re: Nested aligns in formulasjj

2023-08-14 Thread Hans Hagen
On 8/14/2023 1:16 PM, Gerion Entrup wrote: Hi, I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE: ``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign

[NTG-context] Nested aligns in formulasjj

2023-08-14 Thread Gerion Entrup
Hi, I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE: ``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-13 Thread Hans Hagen via ntg-context
"up", 0.5*(data2.height or 0) }, { "slot", 0, 0x2D9, }, }, } end --end end a little lesson in efficiency attached Hans - Han

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
r 0) }, { "slot", 0, 0x2D9, }, }, } end --end end What are the virtual commands for scaling? Can they be added under "commands =" in the above? Or will that have to go under another local function? Of course, we may still have to insert the \sym

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
More precise \rlaps for the previous MWE: \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalhamzah}c}}% \hskip-.075em \ruledhbox {\transparentred c\symbol{glottalhamzah}c}} \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalayn}c}}% \hskip-.075em \ruledhbox

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
On Aug 12, 2023, 3:49 PM -0600, Hans Hagen , wrote: > you'll figure it out, right? I hope so and I'm working on it -- with your help -) > the demo shows both: x/.y scaling and 90/180/270 rotation Yes, here is what I have so far: == % % Hans' original template % \startsetups glyph:

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
not done vf magick before and i'm not going to debug code that i have little clue what it's about to do). Many thanks. Part of the context is that I have some updatable mission-critical documents that depended on \defineactivecharacter, which is apparently deprecated in LMTX. See earl

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
ick > before and i'm not going to debug code that i have little clue what it's > about to do). Many thanks. Part of the context is that I have some updatable mission-critical documents that depended on \defineactivecharacter, which is apparently deprecated in LMTX. See earlier th

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 8:05 PM, Hamid,Idris wrote: On Aug 12, 2023, 9:35 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/12/2023 4:03 PM, Hamid,Idris wrote: \tfx causes a switch to computer modern. Indeed. Something I need to discuss with Wolfgang as double checking is needed before I

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
ments that depended on \defineactivecharacter, which is apparently deprecated in LMTX. See earlier thread with that subject line. [BTW: Just this morning someone from the Persian Gulf asked for an updated version of a document whose compilation depended on \defineactivecharacter, so I need to get this

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
variant so that it adapts - you have to replace "Serif" with "YourFont" and map that one onto a file (YourFont YourFontBold etc) - more about these box manipulations in the low level manual \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \s

[NTG-context] Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
Dear gang, I. In Context, as is well known, scaling a character is not independent of switching the font: === \startTEXpage[offset=1em] \definefont[Times][times @ 14pt] \Times Test \tfx Test \setupinterlinespace \Times Test \switchtobodyfont[x]Test \Times Test \high{Test} \stopTEXpage

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-02 Thread Hamid,Idris
On Aug 1, 2023, 10:09 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/1/2023 4:18 PM, Hamid,Idris wrote: Dear gang, It appears that \defineactivecharacter does not work in lmtx: \starttext \defineactivecharacter Ḥ {\d{H}} \defineactivecharacter ḥ {\d{h}} \defineactivecharacter

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-01 Thread Hans Hagen
On 8/1/2023 4:18 PM, Hamid,Idris wrote: Dear gang, It appears that \defineactivecharacter does not work in lmtx: \starttext \defineactivecharacter Ḥ {\d{H}} \defineactivecharacter ḥ {\d{h}} \defineactivecharacter Ṣ {\d{S}} \defineactivecharacter ṣ {\d{s}} \stoptext This should not produce

[NTG-context] \defineactivecharacter in LMTX + composing characters

2023-08-01 Thread Hamid,Idris
Dear gang, It appears that \defineactivecharacter does not work in lmtx: \starttext \defineactivecharacter Ḥ {\d{H}} \defineactivecharacter ḥ {\d{h}} \defineactivecharacter Ṣ {\d{S}} \defineactivecharacter ṣ {\d{s}} \stoptext This should not produce any typeset output but in lmtx it does

[NTG-context] Re: caption for moved sidefloat in the margin

2023-07-30 Thread Henning Hraban Ramm
Am 30.07.23 um 14:46 schrieb Hans Hagen: On 7/30/2023 2:37 PM, Henning Hraban Ramm wrote: Hi again, I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well. Now I’d like to have their captions in the margin, below the

[NTG-context] Re: caption for moved sidefloat in the margin

2023-07-30 Thread Henning Hraban Ramm
Am 30.07.23 um 14:46 schrieb Hans Hagen: On 7/30/2023 2:37 PM, Henning Hraban Ramm wrote: Hi again, I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well. Now I’d like to have their captions in the margin, below the

[NTG-context] Re: caption for moved sidefloat in the margin

2023-07-30 Thread Hans Hagen
On 7/30/2023 2:37 PM, Henning Hraban Ramm wrote: Hi again, I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well. Now I’d like to have their captions in the margin, below the figure. If I set location=innermargin, then the

[NTG-context] caption for moved sidefloat in the margin

2023-07-30 Thread Henning Hraban Ramm
Hi again, I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well. Now I’d like to have their captions in the margin, below the figure. If I set location=innermargin, then the caption is beside the image, i.e. somewhere at

[NTG-context] Fwd: Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread Hans Hagen via ntg-context
Forwarded Message Subject: Re: [NTG-context] Re: Replacing %20 with spaces in xml attributes Date: Fri, 21 Jul 2023 17:50:04 +0200 From: Hans Hagen To: denis.ma...@unibe.ch On 7/21/2023 5:27 PM, denis.ma...@unibe.ch wrote: Thanks, but I'm still getting the same error

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
starttext \test{asdf%20} % -> does not work \stoptext Any ideas? Best, Denis Von: Hans van der Meer via ntg-context Gesendet: Freitag, 21. Juli 2023 16:26 An: NTG ConTeXt Cc: Hans van der Meer Betreff: [NTG-context] Re: Replacing %20 with spaces in xml attributes Here in Terminal on my Mac

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread Hans van der Meer via ntg-context
Here in Terminal on my Mac: 21 ~: lua Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio > string.gsub('a%20b', '%%20', ' ') a b 1 > (string.gsub('a%20b', '%%20', ' ')) a b > ^D 21 ~: The first call returns the 1 giving t

[NTG-context] Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
Hi, I'm typesetting an XML document where the links to the images contain spaces which are encoded as %20 Using this works in cases without spaces: \startxmlsetups xml:fig:graphic \externalfigure[\xmlatt{#1}{xlink:href}] \stopxmlsetups This also works for normal spaces, but is there

[NTG-context] Re: Suppress label in captions without suppressing number

2023-07-20 Thread Hans Hagen
On 7/20/2023 5:30 PM, denis.ma...@unibe.ch wrote: Hi, is there an option to suppress the label in captions without suppressing the number as well? I know, I can use \setuplabeltext[de][figure=,], but this will delete the label text globally... Is there a better way via \setupcaption

[NTG-context] Suppress label in captions without suppressing number

2023-07-20 Thread denis.maier
Hi, is there an option to suppress the label in captions without suppressing the number as well? I know, I can use \setuplabeltext[de][figure=,], but this will delete the label text globally... Is there a better way via \setupcaption? Best, Denis

[NTG-context] Re: Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread skrantajanneman
It does not highlight e.g \starttext keyword by default. The colorscheme seems adapted to LaTeX mode so I managed to fix this now for all \start - \stop commands with this code put in ~/.emacs.d/init.el (add-hook ’ConTeXt-mode-hook (lambda () (font-lock-add-keywords nil

[NTG-context] Re: Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread Henning Hraban Ramm
Am 19.07.23 um 15:38 schrieb Jan-Erik Hägglöf: Dear All! I've been using emacs AUCTEX for quite a while and found it very convenient to work with. One issue is the lack of syntax highlighting. https://wiki.contextgarden.net/Text_Editors says, Emacs has ConTeXt support including syntax highl

[NTG-context] Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread Jan-Erik Hägglöf
Dear All! I've been using emacs AUCTEX for quite a while and found it very convenient to work with. One issue is the lack of syntax highlighting. I've tried some elisp code and added the following hook when I'm in ConTeXt-mode: (add-hook 'ConTeXt-mode-hook (lambda

[NTG-context] Re: problem with symbols in index

2023-07-18 Thread Floris van Manen via ntg-context
On 17/07/2023 23:37, Henning Hraban Ramm wrote: Also, "context --purge" doesn’t delete the tuc file (don’t know if that changed), so the wrong entry stuck in there, and my code changes didn’t affect it. not does it remove th

[NTG-context] Re: access image properties in Lua

2023-07-18 Thread Henning Hraban Ramm
(I assume you didn’t reply privately on purpose and take this back to the mailing list.) Am 18.07.23 um 12:47 schrieb Alan Braslau: P.S. I have not used the built-in resolution= image conversion (using gm/ImageMagik). I imagine that ConTeXt is clever enough to store the converted file so that

[NTG-context] problem with symbols in index

2023-07-17 Thread Henning Hraban Ramm
I hunted for two days after an index error in my book: """ structure > sectioning > chapter @ level 2 : 0.1 -> Sachregister tex error > tex error on line 95 in file ./prd_test.tex: The file ended when scanning an argument. {\startregisterentrie

[NTG-context] Re: access image properties in Lua

2023-07-17 Thread Alan Braslau via ntg-context
rnalfigure. However, the resolution downsampler hooked into externalfigure as you suggest would not give the desired resolutions once resized in MP. A solution might be to use draw rawtextext("\externalfigure[MyFigure][width=\textwidth") ; which is OK for this simplified example but woul

[NTG-context] Re: access image properties in Lua

2023-07-17 Thread Henning Hraban Ramm
target resolution, say 300 dpi or perhaps better for printing. What raster widths are you printing with? More than 300 dpi would be only needed for very high resolution art prints with very fine details, possibly in FM raster. Usually, 200 dpi final resolution is enough – 300 dpi are sugges

[NTG-context] Re: access image properties in Lua

2023-07-17 Thread Alan Braslau via ntg-context
On 13/07/23 13/07/23, 09:19, Hans Hagen wrote: On 7/11/2023 2:22 PM, Henning Hraban Ramm wrote: What’s the current approved way to get image properties within a Lua function? very old: local pic = figures.getinfo(figures.current().status.fullname) used to work in 2019: local pic = img.scan

[NTG-context] Re: access image properties in Lua

2023-07-13 Thread Hans Hagen
On 7/11/2023 2:22 PM, Henning Hraban Ramm wrote: What’s the current approved way to get image properties within a Lua function? very old: local pic = figures.getinfo(figures.current().status.fullname) used to work in 2019: local pic = img.scan{filename = figures.current().status.fullname} if

[NTG-context] access image properties in Lua

2023-07-11 Thread Henning Hraban Ramm
What’s the current approved way to get image properties within a Lua function? very old: local pic = figures.getinfo(figures.current().status.fullname) used to work in 2019: local pic = img.scan{filename = figures.current().status.fullname} if I understand this right, "img" i

[NTG-context] Re: The use of \textfont in ConTeXt

2023-07-05 Thread Hans Hagen
imen6=\the\dimexpr\triggeredmathstyleparameter\Umathaxis % height of maths axis It seems that ConTeXt stores the math font in \textfont0 instead of \textfont2 as LaTeX does. i don't know what / how latex does it but in context we have these parameters in fam 0 Now my question is: is \textfont2 used at all

[NTG-context] The use of \textfont in ConTeXt

2023-07-05 Thread Leah Neukirchen
\dimen6=\the\dimexpr\triggeredmathstyleparameter\Umathaxis % height > of maths axis It seems that ConTeXt stores the math font in \textfont0 instead of \textfont2 as LaTeX does. Now my question is: is \textfont2 used at all? (I grepped occurences of \textfont0 and \textfont1) Then I could just copy the \textfont0 to \

[NTG-context] Problem with bibliography in apa

2023-06-27 Thread Marcelo Chaparro via ntg-context
Dear List, I am using ConTeXt with TeXlive 2023. This problem did not exist in TeXlive 2022. Also, I tried to use ConTeXt by installing it from the ConTeXt page and had the same problem. When I use the apa format in the bibliography, the text "internal(number)" appears at the beginni

Re: [NTG-context] error in column sets

2023-06-20 Thread Henning Hraban Ramm via ntg-context
Am 19.06.23 um 21:59 schrieb Henning Hraban Ramm via ntg-context: In a minimal example like this: \setuppapersize[A5] \definecolumnset[TwoColumns][n=2] \starttext \startcolumnset [TwoColumns]    \dorecurse{10}{\samplefile{knuth}} \stopcolumnset \stoptext … many columns start one line too

<    1   2   3   4   5   6   7   8   9   10   >