[NTG-context] Re: References to elements in hidden blocks

2025-08-12 Thread Hans Hagen via ntg-context
rence in the exercise displays ?? instead of 1.  Obviously, this is because the reference mechanism was not created to reference items that don't exist in the document... yet here I am ;). Would there be a way to retrieve the label text of a reference if that reference is in a block t

[NTG-context] References to elements in hidden blocks

2025-08-12 Thread Yves Debongnie
cause the reference mechanism was not created to reference items that don't exist in the document... yet here I am ;). Would there be a way to retrieve the label text of a reference if that reference is in a block that is not typeset? Similar to how enumeration counters get incremented for en

[NTG-context] Re: Audible footnotes

2025-08-11 Thread John Was
ote] > > > > [alternative=serried,% number in the paragraph > > > > headcommand=\groupedcommand{\hskip{8pt}}{},% space before the number > > > > distance=4pt,% space after the number > > > > numbercommand={\offset[y=-1ex]},% raise the number > > > >

[NTG-context] Re: Audible footnotes

2025-08-11 Thread Hans Hagen via ntg-context
\it \relax \externalfigure[cow] [width=0pt,height=0pt,label={Footnote: #1}]}} \starttext The phenomenon of colonialism extended borders well beyond traditional dynastic realms.\notetag{Among recent works, see David Graeber and Marshall Sahlins, {\it On Kings\/} (Chicago, 2017), and Elena Woodacre, Lu

[NTG-context] Audible footnotes

2025-08-11 Thread John Was
p{\let \it \relax \externalfigure[cow] [width=0pt,height=0pt,label={Footnote: #1}]}} \starttext The phenomenon of colonialism extended borders well beyond traditional dynastic realms.\notetag{Among recent works, see David Graeber and Marshall Sahlins, {\it On Kings\/} (Chicago, 2017), and Elen

[NTG-context] Re: Illustrations in running text.

2025-08-10 Thread Matthias Weber
terlinear spacing. If I wanted to do the same in ConTexT, what would >> > be the preferred method (both in the preamble and in the text itself)? >> >> Native support for Unicode in plain TeX is possible since more than 2 >> decades with the introduction of XeTeX. >

[NTG-context] Re: Illustrations in running text.

2025-08-10 Thread John Was
> small scans that appeared in running text without disturbing the > > interlinear spacing. If I wanted to do the same in ConTexT, what would > > be the preferred method (both in the preamble and in the text itself)? > > Native support for Unicode in plain TeX is possible since more than

[NTG-context] Re: Illustrations in running text.

2025-08-09 Thread Wolfgang Schuster
do the same in ConTexT, what would be the preferred method (both in the preamble and in the text itself)? Native support for Unicode in plain TeX is possible since more than 2 decades with the introduction of XeTeX. Ideally I would want the label option to work for the benefit of any

[NTG-context] Illustrations in running text.

2025-08-09 Thread John Was
preferred method (both in the preamble and in the text itself)? Ideally I would want the label option to work for the benefit of any visually impaired readers accessing the PDF. The following MWE doesn't seem to work (which means no more than that I am still regrettably ignorant of ConT

[NTG-context] Re: Pre-loading libraries by making custom format

2025-07-29 Thread Max Chernoff via ntg-context
interblocksep = [[\par]], string = false, paragraph = false, plain = false, inline_html_comment = function() end, block_html_comment = function() end, document = [[\starttext %s \stoptext]], blockquote = [[\startquotation %s \stopquotation ]], link = function(label, u

[NTG-context] Re: export and tagging

2025-07-26 Thread Matthias Weber
lthough there seem to have been a moment when it was supported, and we don't > want to mess with javascript) > >> 2) The HTML is missing one style sheet: add >> > > ? > >> 3) The label={text} parameter for images that provides tags for PDFs becomes >&g

[NTG-context] Re: export and tagging

2025-07-26 Thread Hans Hagen via ntg-context
t was supported, and we don't want to mess with javascript) 2) The HTML is missing one style sheet: add ? 3) The label={text} parameter for images that provides tags for PDFs becomes in HTML wasn't that fixed? we now have descriptiontext and alternativetext keys instead 4

[NTG-context] Re: export and tagging

2025-07-26 Thread Matthias Weber
ConText uses style sheets to provide a more customizable header structure. So I have to change the ConTeXt headers to .. . That’s about 50-100 lines of manual HTML editing, not too bad 2) The HTML is missing one style sheet: add 3) The label={text} parameter for images that provides tags for

[NTG-context] Re: ALT-text for images in HTML/EPUB export

2025-07-14 Thread Hans Hagen via ntg-context
On 7/14/2025 10:58 PM, Wolfgang Schuster wrote: Am 14.07.2025 um 08:44 schrieb Hans Hagen via ntg-context: so we have to reconsider using label and find another key instead, like 'comment' or 'description' or so, something that is not yet used as we might need it in

[NTG-context] Re: ALT-text for images in HTML/EPUB export

2025-07-14 Thread Wolfgang Schuster
Am 14.07.2025 um 08:44 schrieb Hans Hagen via ntg-context: so we have to reconsider using label and find another key instead, like 'comment' or 'description' or so, something that is not yet used as we might need it in more places .. maybe comment is best left for somethi

[NTG-context] Re: ALT-text for images in HTML/EPUB export

2025-07-13 Thread Hans Hagen via ntg-context
=Example] \startsection[title={Section}] \placefigure {} {\externalfigure[hacker.jpg][ label={Look, a $e^{\pi i}+1=0$ hacker!}] } \stopchapter \stoptext the figure becomes in the HTML export Figure 1.1 How do I turn this into an ALT text in the HTML? Or how do I have to

[NTG-context] ALT-text for images in HTML/EPUB export

2025-07-13 Thread Matthias Weber
}] \placefigure {} {\externalfigure[hacker.jpg][ label={Look, a $e^{\pi i}+1=0$ hacker!}] } \stopchapter \stoptext the figure becomes in the HTML export Figure 1.1 How do I turn this into an ALT text in the HTML? Or how do I have to provide the Alt text correctly? And what do I do

[NTG-context] Re: testing tagging for UA-2

2025-07-08 Thread Hans Hagen via ntg-context
most articles and text books actually are just that). But what if we start nesting, and do typographically interesting things. Say you have somethign that tags as label but it has an image in it. Or a (nested) link which has its own restrictions. If accessibility is really important one s

[NTG-context] Re: VSCode support

2025-06-30 Thread David Roderick
icrosoft.com/fwlink/?LinkId=733558 > // for the documentation about the tasks.json format > "version": "2.0.0", > "tasks": [ > { > "label": "ConTeXt", > "type": "shell", > "command": "

[NTG-context] Re: VSCode support

2025-06-28 Thread Hraban Ramm
t won’t ever open an external PDF viewer. I found a workaround via command substitution (backticks): { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": &q

[NTG-context] Re: Alternate text for figures that includes math

2025-06-19 Thread Matthias Weber
f math, >> and it would be nice if alternate text for math is provided >> consistently throughout the document. > > Dear Matthias, > > my background is in humanities. This is why I see that tagging is > lacking language (for mixed-languages documents 😅). > &

[NTG-context] Re: Alternate text for figures that includes math

2025-06-18 Thread Pablo Rodriguez via ntg-context
y I see that tagging is lacking language (for mixed-languages documents 😅). I wonder whether it would make sense to replace your label with: {\externalfigure[cow][label={A cow, contemplating}] {\blank[-3st]\color[white]{$e^{\pi i}+1=0$}}} % path Of course, full transparent text would make sens

[NTG-context] Alternate text for figures that includes math

2025-06-15 Thread Matthias Weber
] \setupstructure[state=start] \setupbackend [format=PDF/A-3a] \setupbackend[format=pdf/ua-1] \setupexternalfigures[location=default] \setupnote[mathnote][location=page] \enabletrackers[math.textblobs] \starttext \placefigure [here] [] % label {} % legend {\externalfigure[cow][label={A cow

[NTG-context] Re: upload

2025-06-12 Thread Rik Kabel
On 2025-06-12 17:33, Wolfgang Schuster wrote: Am 12.06.2025 um 22:08 schrieb Rik Kabel: The following example fails to generate a label in the makeup page. With 20250428 it does generate the label. With alternative=intext, all is as expected. The counter is incremented in all cases

[NTG-context] Re: upload

2025-06-12 Thread Wolfgang Schuster
Am 12.06.2025 um 22:08 schrieb Rik Kabel: The following example fails to generate a label in the makeup page. With 20250428 it does generate the label. With alternative=intext, all is as expected. The counter is incremented in all cases. \definelabel [X] % [alternative=intext

[NTG-context] Re: upload

2025-06-12 Thread Rik Kabel
ot make it into the lot eventually (if you run into bottlenecks, lets me know, with examples) if there are unexpected side effects, let me know and i'll fix and upload again The following example fails to generate a label in the makeup page. With 20250428 it does generate the label

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Wolfgang Schuster
2025.04.28 14:29): \enabledirectives [backend.usetags=testing] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a] \setupbackend[format=pdf/ua-1] \setupexternalfigures[location=default] \starttext \externalfigure[hacker][label={this is an image

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Ulrike Fischer
0250427 + ConTeXt LMTX 2025.04.28 14:29): >> >> \enabledirectives [backend.usetags=testing] >> \setuptagging[state=start] >> \setupstructure[state=start] >> \setupbackend >>[format=PDF/A-3a] >> \setupbackend[format=pdf/ua-1] >> \setupexternalfigur

[NTG-context] Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Matthias Weber
agging[state=start] > \setupstructure[state=start] > \setupbackend >[format=PDF/A-3a] > \setupbackend[format=pdf/ua-1] > \setupexternalfigures[location=default] > \starttext > \externalfigure[hacker][label={this is an image}] > > \startparagraph >a > \stoppar

[NTG-context] Re: upload

2025-04-29 Thread Pablo Rodriguez via ntg-context
ting] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a] \setupbackend[format=pdf/ua-1] \setupexternalfigures[location=default] \starttext \externalfigure[hacker][label={this is an image}] \startparagraph a \stopparagraph \stoptext If

[NTG-context] Re: upload

2025-04-29 Thread Steffen Wolfrum
only when > it's required by law they do it > > - adding some simple label is not helping the blind, while making a dedicated > document (or providing the sources) with more extensive description of what > this image is showing makes more sense > > - add audio resources to

[NTG-context] Re: Tagging Math

2025-04-16 Thread Matthias Weber
; -ActualText = actualtext or nil, > + -- ActualText = actualtext or nil, > @@ -1090 +1090 @@ > - -- Alt= alternate, > +Alt= actualtext or nil, > @@ -1092 +1092 @@ > -ActualText = actualtext or n

[NTG-context] Re: Tagging Math

2025-04-15 Thread Pablo Rodriguez via ntg-context
actualtext or nil, + -- ActualText = actualtext or nil, @@ -1141 +1141 @@ -Alt = pdfunicode(label ~= "" and label or "image"), + -- Alt = pdfunicode(label ~= "" and label or "image"), @@ -1142,0 +1143 @@ +parent.dict.Alt

[NTG-context] Re: Alternate text for images?

2025-04-15 Thread Pablo Rodriguez via ntg-context
fdictionary { > Type = pdf_mcr, > Pg = pageref, > MCID = last, > } > parent.dict.Alt = pdfunicode(label ~= "" and label or "image") Many thanks for your reply, Hans. This fixes the issue. >> It is

[NTG-context] Re: Alternate text for images?

2025-04-15 Thread Hans Hagen
On 4/15/2025 5:24 PM, Pablo Rodriguez via ntg-context wrote: On 4/14/25 11:57, Steffen Wolfrum wrote: There is an improvement: now the tags are identified as and ! But still the figures label={this is a cow} is missing. Sorry, Steffen, I thought I explained this in a previous message

[NTG-context] Re: Tagging Math

2025-04-15 Thread Matthias Weber
Thanks Pablo, I don’t understand how to do this. The following compiles, but I don’t think the label made it into the pdf. \enabledirectives [backend.usetags=crap] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a, intent=sRGB IEC61966

[NTG-context] Re: Tagging Math

2025-04-15 Thread Pablo Rodriguez via ntg-context
this: how do I make that automatic: have all formulas replaced > by a text that reads like a spoken formula? Sorry for the late comment, but I think an easier solution is adding label to provide alternative texts in formulas. This is required in PDF/UA-1 and afaIk not forbidden in PDF/UA-2. So,

[NTG-context] Re: Alternate text for images?

2025-04-15 Thread Pablo Rodriguez via ntg-context
On 4/14/25 11:57, Steffen Wolfrum wrote: > There is an improvement: now the tags are identified as and > ! > But still the figures label={this is a cow} is missing. Sorry, Steffen, I thought I explained this in a previous message. Alternative text is missing from \externalfigure, bec

[NTG-context] Re: Alternate text for images?

2025-04-14 Thread Steffen Wolfrum
There is an improvement: now the tags are identified as and ! But still the figures label={this is a cow} is missing. Steffen (with Acrobat Pro 2020 macOS, ConTeXt ver: 2025.04.01 12:45 LMTX) > Am 12.04.2025 um 18:37 schrieb Pablo Rodriguez via ntg-context > mailto:ntg-context@

[NTG-context] Re: Alternate text for images?

2025-04-09 Thread Pablo Rodriguez via ntg-context
be PDF document \enabledirectives [backend.usetags=testing] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a, intent=sRGB IEC61966-2.1, level=0] \setupbackend[format=pdf/ua-1] \setupexternalfigures[location=default] \starttext \externalfigure[cow][label

[NTG-context] Re: Alternate text for images?

2025-04-09 Thread Matthias Weber
AM, Matthias Weber wrote: >>> [...] >>> in order to provide screen readability (but the above doesn’t >>> work, the PDF doesn’t have the alternate text). >> >> This one will add an Alt to the element >> >>\externalfigure[cow][label={this is a

[NTG-context] Re: Alternate text for images?

2025-04-08 Thread Pablo Rodriguez via ntg-context
On 4/7/25 22:08, Hans Hagen wrote: > On 4/4/2025 3:37 AM, Matthias Weber wrote: >> [...] >> in order to provide screen readability (but the above doesn’t >> work, the PDF doesn’t have the alternate text). > > This one will add an Alt to the element > > \externa

[NTG-context] Re: Alternate text for images?

2025-04-07 Thread Hans Hagen
\externalfigure[cow][label={this is a cow}] \stoptext At least, the validator only complains for the use of /DocumentFragment (unknown to PDF-1.7). I think that (cf the tagging.pdf manual) \enabledirectives [backend.usetags=crap] should work and one can define ones own mappings BTW

[NTG-context] Re: Alternate text for images?

2025-04-07 Thread Hans Hagen
\startPDFalternativetext {this is a cow}{\externalfigure[cow]} \stopPDFalternativetext \stoptext in order to provide screen readability (but the above doesn’t work, the PDF doesn’t have the alternate text). This one will add an Alt to the element \externalfigure[cow][label={this is

[NTG-context] Re: Alternate text for images?

2025-04-05 Thread Matthias Weber
tate=start] >\setupbackend > [format=PDF/A-3a, > intent=sRGB IEC61966-2.1, > level=0] > >\setupexternalfigures[location=default] >\starttext >\externalfigure[cow][label={this is a cow}] >\stoptext > > At least, the validator only

[NTG-context] Re: pdfuaid metadata info not added to xmp

2025-04-05 Thread Ulrike Fischer
intent=sRGB IEC61966-2.1, >level=0] > > \setupexternalfigures[location=default] > \starttext > \externalfigure[cow][label={this is a cow}] > \stoptext Unrelated to context, but you shouldn't mix UA-2 with A-3. UA-2 is for pdf 2.0 and should be used to

[NTG-context] pdfuaid metadata info not added to xmp

2025-04-05 Thread Pablo Rodriguez via ntg-context
\externalfigure[cow][label={this is a cow}] \stoptext I’m afraid that veraPDF warns about ua-1 missing metadata info (https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFUA-Part-1-rules#rule-5-1). This should be the reason why veraPDF cannot autodetect that the output from the sample

[NTG-context] Re: Alternate text for images?

2025-04-05 Thread Pablo Rodriguez via ntg-context
upbackend[format=pdf/ua-1] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a, intent=sRGB IEC61966-2.1, level=0] \setupexternalfigures[location=default] \starttext \externalfigure[cow][label={this is a cow}] \sto

[NTG-context] Re: Alternate text for images?

2025-04-03 Thread Matthias Weber
ncludegraphics to add an alternate text to an image >> to make it accessible for screen readers? > > i suppose you mean \externalfigure .. we have > > \externalfigure[foo.pdf][label=whatever] > > and i thi

[NTG-context] Re: Alternate text for images?

2025-04-03 Thread Hans Hagen via ntg-context
On 4/3/2025 8:35 PM, Matthias Weber wrote: Hello, Is there an option for \includegraphics to add an alternate text to an image to make it accessible for screen readers? i suppose you mean \externalfigure .. we have \externalfigure[foo.pdf][label=whatever] and i think Pablo tested that with

[NTG-context] Re: Problem with \reference and \at. Sorry, forgot \starttext, and \stoptext

2025-03-24 Thread Aditya Mahajan
tart, >contrastcolor=cornflowerblue] > \starttext > \reference[other]{Seite 33} > \it Hinweis: Beachten Sie die Konvention aus \at{Seite 33}[other] die > Formulierung. > \stoptext > > > What is wrong here? \at[label] shows the page number where the label occur

[NTG-context] Re: Problem with JPEG2000 inclusion in 2025.02.28 update

2025-03-23 Thread Jim
regiously omitted from my first (over-)simplified example. I needed this before 2025.02.28 because up until then the .jpx extension was not known to ConTeXt, and some helpful person on this very mailing list suggested I add that to my context source files. However, including that line in the 2025

[NTG-context] Re: Structureuservariable and long lines

2025-03-12 Thread Wolfgang Schuster
...@unibe.ch: Hi, I have section headings where I need to output some descriptions after the label and before the heading title (which may be missing in some cases). I’ve thought the something like the example below should work, but the text from the variable overflows. What am I missing here? Is there

[NTG-context] Re: Structureuservariable and long lines

2025-03-12 Thread Denis Maier via ntg-context
> > I have section headings where I need to output some descriptions after > > the label and before the heading title (which may be missing in some > > cases). I’ve thought the something like the example below should work, > > but the text from the variable overflows. > &g

[NTG-context] Re: Structureuservariable and long lines

2025-03-12 Thread Wolfgang Schuster
Am 12.03.2025 um 14:23 schrieb denis.ma...@unibe.ch: Hi, I have section headings where I need to output some descriptions after the label and before the heading title (which may be missing in some cases). I’ve thought the something like the example below should work, but the text from the

[NTG-context] Re: Structureuservariable and long lines

2025-03-12 Thread Denis Maier via ntg-context
section headings where I need to output some descriptions after the label and before the heading title (which may be missing in some cases). I’ve thought the something like the example below should work, but the text from the variable overflows. What am I missing here? Is there maybe an easier way

[NTG-context] Structureuservariable and long lines

2025-03-12 Thread denis.maier
Hi, I have section headings where I need to output some descriptions after the label and before the heading title (which may be missing in some cases). I've thought the something like the example below should work, but the text from the variable overflows. What am I missing here? Is

[NTG-context] help with \writetolist alignment

2025-03-05 Thread jbf
How can I get 'Essays' to line up beneath Introduction? I thought because I am calling it a Title head it should follow what I have for title, viz., \setuplist[title][label=no,distance=.1cm,alternativ

[NTG-context] Re: month form \currentdate in Roman numerals

2025-03-02 Thread Mohammad Hossein Bateni
hould be used on lua side? Or to rewrite the lua table to use farsi as key not fa? > > If you want to add a language (parent of child) you need to check that > with Tomas Hala first because it has to into his label managagement > project (with international students). > &g

[NTG-context] Re: month form \currentdate in Roman numerals

2025-03-02 Thread Hans Hagen via ntg-context
x27;d add a language today we don't define the short ones as command any longer (we keep the existing ones for compatibility). If you want to add a language (parent of child) you need to check that with Tomas Hala first because it has to into his label managagement project (with international

[NTG-context] Re: margn text on makeup page -- how?

2025-02-27 Thread Rik Kabel
label placed in that margin. Updated example:     *\definelabel[Test]     [text=,alternative=inright,headcolor=red,before=,after=]     \showframe     \starttext     \startmakeup     \Test[]This is makeup page     \stopmakeup     \Test[]This is not a makeup page     \stoptext* Below is

[NTG-context] Re: margn text on makeup page -- how?

2025-02-27 Thread Wolfgang Schuster
://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either luatex or lmtx. \inmargin[scope=local]{...} Thank you. That works for the question I asked. Now, the question I should have asked: Is there a way to get a label placed in that margin. Updated example

[NTG-context] Re: margn text on makeup page -- how?

2025-02-26 Thread Rik Kabel
, results in no margin text in the makeup with either luatex or lmtx. \inmargin[scope=local]{...} Thank you. That works for the question I asked. Now, the question I should have asked: Is there a way to get a label placed in that margin. Updated example: *\definelabel[Test][text=,alternative

[NTG-context] Re: Description Lists with labels longer than a single line

2025-02-26 Thread Denis Maier via ntg-context
m > Betreff: [NTG-context] Re: Description Lists with labels longer than a single > line > > > > On 25/02/2025 14:57, denis.ma...@unibe.ch wrote: > > I have a list of description (used to typeset an index) where in a few > > cases the label is longer than a single line. Ap

[NTG-context] Re: Description Lists with labels longer than a single line

2025-02-25 Thread vm via ntg-context
On 25/02/2025 14:57, denis.ma...@unibe.ch wrote: I have a list of description (used to typeset an index) where in a few cases the label is longer than a single line. Apparantly, the label can’t span multiple lines: Or maybe there’s an easier solution? OR, maybe the descriptions are just

[NTG-context] Description Lists with labels longer than a single line

2025-02-25 Thread denis.maier
Hi, I have a list of description (used to typeset an index) where in a few cases the label is longer than a single line. Apparantly, the label can’t span multiple lines: %%% \definedescription[indexentry] [alternative

[NTG-context] Re: upload

2025-02-15 Thread Steffen Wolfrum
urnaround over 7 digits. A small but committed publisher, >> that is engaged in making PDF documents also accessible for blind people. > > - adding some Alt whatever to a pdf has been possible for ages but only when > it's required by law they do it > > - adding some s

[NTG-context] Re: upload

2025-02-15 Thread Pablo Rodriguez via ntg-context
same element, my fault. > Does it hurt? I suppose one is used for speach > and another for copy-paste and that viewers mix and match what they like > here. Alt is for speech and to replace non-textual elements. ActualText is intended only for textual elements (text itself or images that cont

[NTG-context] Re: upload

2025-02-14 Thread Hans Hagen
accessible for blind people. - adding some Alt whatever to a pdf has been possible for ages but only when it's required by law they do it - adding some simple label is not helping the blind, while making a dedicated document (or providing the sources) with more extensive description of

[NTG-context] Re: upload

2025-02-14 Thread Steffen Wolfrum
\setupexternalfigures[location=default] >>>> \starttext >>>> \startPDFalternativetext{this is a cow} >>>> \externalfigure[cow] >>>> \stopPDFalternativetext >>>> \stoptext >>>> Really?! If so, I will send it

[NTG-context] Re: upload

2025-02-14 Thread Hans Hagen
matraPDF), poppler (Evince/Okular), xpdf. PDF.js has only an open issue (https://github.com/mozilla/pdf.js/issues/12237). So should one set both? Does it hurt? I suppose one is used for speach and another for copy-paste and that viewers mix and match what they like here. Could have the same valu

[NTG-context] Re: upload

2025-02-14 Thread Hans Hagen
put an Alt on a specific image element (by setting label={...}) but for now it's disabled for now. Last time we checked some validators didn't like it and viewerd didn't do anything useful with it so ity made no sense to waste more time on it. Just putting stuff in a pdf for t

[NTG-context] Re: upload

2025-02-14 Thread Steffen Wolfrum
tupbackend >> [format=ua2] >> \setupexternalfigures[location=default] >> \starttext >> \startPDFalternativetext{this is a cow} >> \externalfigure[cow] >> \stopPDFalternativetext >> \stoptext >> Really?! If so, I will send it to the publishers so

[NTG-context] Re: upload

2025-02-14 Thread Hans Hagen
and did so because you indicated that your viewer gave some report. Of course you need to make sure not to introduce unwanted spaces (as in your example). We can actually put an Alt on a specific image element (by setting label={...}) but for now it's disabled for now. Last time we che

[NTG-context] Re: Weird date output

2025-01-14 Thread Wolfgang Schuster
Am 13.01.2025 um 19:02 schrieb Hans Hagen: On 1/13/2025 5:43 PM, Wolfgang Schuster wrote: Am 12.01.2025 um 06:16 schrieb autumnus: Thank you for your explanation. Regarding the space after the month, will it be added to the ConTeXt in the future? I'm worried that after I patch it, it will be

[NTG-context] Re: Lua question - table.save, table.load

2025-01-11 Thread Jeong Dal via ntg-context
codeTwo[]; uk := LineHeight; wd := 1.5uk; ht := uk+5pt; def KmapFrameNew(expr first,second) = codeOne[0] := "0"; codeOne[1] := "1"; codeTwo[0] := "00"; codeTwo[1] := "01"; codeTwo[2] := "11"; codeTwo[3] := &

[NTG-context] Re: Weird date output

2025-01-11 Thread Wolfgang Schuster
x27;t apply a number conversion for months. 2. You can switch languages to get label texts for chinese. \starttext \currentdate[month,day] \language[cn] \definedfont[name:adobesongstdlight] \currentdate[month,day:cn] \stoptext 3. The space after the month is inserted on purpose to get a space b

[NTG-context] Re: Touch my cow: Overlaying a picture with links to text

2025-01-11 Thread Axel Kielhorn
> Am 10.01.2025 um 01:09 schrieb Hans Hagen : > > > def touchtolink (expr a, b) (text t) = > label > ("\framed[background=color,backgroundcolor=transparentwhite,align=normal,corner=00,frame=no]{" > & t &"}", (a * xstep, b *

[NTG-context] Fwd: Touch my cow: Overlaying a picture with links to text

2025-01-09 Thread Hans Hagen
awarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .5mm withcolor mycolor; enddef ; % touchtolink def touchtolink (expr a, b) (text t) = label ("\framed[background=color,backgroundcolor=transparentwhite,align=normal,corner=00,frame=no]{" & t &a

[NTG-context] Touch my cow: Overlaying a picture with links to text

2025-01-09 Thread Axel Kielhorn
ink def touchtolink (expr a, b) (text t) = label ("\framed[background=color,backgroundcolor=transparentwhite,align=normal,corner=00,frame=no]{" & t &"}", (a * xstep, b * ystep)); enddef ; \stopMPinclusions \startMPpage % Picture draw e

[NTG-context] Re: playing with dates

2024-12-17 Thread Pablo Rodriguez via ntg-context
tring-\cldcontext{document.rcount}-last, week list, month label above left, month text={\feature[+][smallcaps]\%mt}, ] if (Sunday, equals=2025-04-20, equals=2025-04-18, equals=2025-04-19, equal

[NTG-context] Re: playing with dates

2024-12-16 Thread Aditya Mahajan
icture \calendar[dates=2025-01-01 to 2025-04-last,week list, month label above centered]; \stoptikzpicture \stoptext Also see https://tikz.dev/library-calender and https://texample.net/tikz/examples/feature/calendar-library/ (which, in principle, can be translated to ConTeXt rather

[NTG-context] Re: How to make this Metapost diagram adjust to the width of text?

2024-12-09 Thread Gavin via ntg-context
Hi Joel, Rather than using label to make and draw the labels at the end, use thelabel at the beginning to make pictures of the labels, then draw the labels at the end. (See mpman.pdf, pp. 21-22, 29.) This allows you to use the dimensions of the labels in calculations for the positions. Gavin

[NTG-context] Re: Why is framed text crashing into and overlapping other text?

2024-11-28 Thread Wolfgang Schuster
seemingly floating to weird locations and appearing over other text? While I think \framedtext should work, try a simple \vbox when you don’t need styling. A different solution is to use a label or enumeration for the first level (but keep itemize for the second level) which can be enclosed in a

[NTG-context] Re: On the use of btx datasets to manage images and plots

2024-11-25 Thread Hans Hagen
ram. In my idea, for each figure dataset the \placebtxrendering should plot the figure with the right label to refer to in the main text and the right caption. (Clearly for the metafun dataset it should not include the pdf of the diagrams but instead compile the metafun code). In this way,

[NTG-context] On the use of btx datasets to manage images and plots

2024-11-25 Thread marco . riggirello . 98
rnal programs; - a "metafun figures" dataset, pointing at the metafun code corresponding to some diagram. In my idea, for each figure dataset the \placebtxrendering should plot the figure with the right label to refer to in the main text and the right caption. (Clearly for the metafun

[NTG-context] Re: serial letters

2024-11-11 Thread Robert via ntg-context
Interesting question. You can use an xml database in which you collect your contacts and how to address them. I have been doing this for over 20 years now. Try this for a single letter: \startxmlsetups xml:setups \xmlfilter{#1}{contact[@label=‘labelMaryDoe']/command(xml:contact)} \xmlset

[NTG-context] Re: Problem with Metapost

2024-11-03 Thread Fabrice Couvreur
7[blue,white]; > > draw fuzz shifted(4u,1u) withcolor blue; > > drawoptions(withpen pencircle scaled 1pt); > > drawarrow z0 -- z0 shifted (4u,1u); > > drawarrow z1 -- z1 shifted (4u,1u); > > drawarrow z

[NTG-context] Re: Problem with Metapost

2024-11-03 Thread Mikael Sundqvist
draw fuzz shifted(4u,1u) withcolor blue; > drawoptions(withpen pencircle scaled 1pt); > drawarrow z0 -- z0 shifted (4u,1u); > drawarrow z1 -- z1 shifted (4u,1u); > drawarrow z2 -- z2 shifted (4u,1u); >

[NTG-context] Problem with Metapost

2024-11-03 Thread Fabrice Couvreur
shifted (4u,1u); drawarrow z2 -- z2 shifted (4u,1u); drawoptions(); label("\im{\vec{v}}", (3.5u,3u)); label.llft("\im{A}",z0); label.lrt("\im{B}",z0 shifted (4u,1u));

[NTG-context] Some suggestions for the current lang-txt.lua file and some questions about setting the labeltext and date

2024-10-24 Thread ai2472206007
lang-txt.lua % languagelabel current translation more common one % chinese intermezzi => 퉣=> 间奏曲 or 插曲 % japansese tables => 机 => 表 % % while logos means (principle?) % japaneselogos => 理性=> 理

[NTG-context] Re: crossreferences

2024-09-26 Thread Wolfgang Schuster
Jürgen Hanneder via ntg-context schrieb am 26.09.2024 um 13:27: I have a larger book, where crossreferences are made with \pagereference[label] and \at[label]. The problem is that references forward are resolved correctly, references backward result in ??. My file is complicated, so I tried

[NTG-context] Re: crossreferences

2024-09-26 Thread Mikael Sundqvist
: > > > I have a larger book, where crossreferences are made with > \pagereference[label] and \at[label]. > The problem is that references forward are resolved correctly, > references backward result in ??. > My file is complicated, so I tried to produce a simplified minimal >

[NTG-context] crossreferences

2024-09-26 Thread Jürgen Hanneder via ntg-context
I have a larger book, where crossreferences are made with \pagereference[label] and \at[label]. The problem is that references forward are resolved correctly, references backward result in ??. My file is complicated, so I tried to produce a simplified minimal file and everything is correct

[NTG-context] collector advice

2024-09-11 Thread jbf
all, hence the 5cm width. Problem is that that vertical label (Taken by...) is on the right hand side of the page, and I can't seem to adjust that with various offset attempts to bring it across to the right of the pic. How do I now get it to

[NTG-context] Inmargin labels fail to be placed on makeup pages

2024-09-11 Thread Rik Kabel
their validity. -- Abraham Lincoln\epi[epigraph]\ipe[EPIGRAPH] This page is numbered, but the number is not displayed. \stopmakeup Label TOP is on page \at[TOP]. Label top is on page \at[top]. Label epigraph is on page \at[epigraph]. Label EPIGRAPH is on page \at[EPIGRAPH

[NTG-context] Re: Steps to become a ConTeXt developer

2024-08-28 Thread Mojca Miklavec
the files get progressively better. Iterate between the Asymptote and ConTeXt developers until the results are fully satisfactory. It has been a while since I touched any asymptote, but I suspect that what you want to achieve is something like \starttext \startasymptote some graphics \stopasymptote \pla

[NTG-context] Re: Help with Metapopst code

2024-08-28 Thread Mikael Sundqvist
derstanding correct? Also, how can I label these vertices in a for > loop? > > On Wed, Aug 28, 2024 at 2:25 PM Shiv Shankar Dayal > wrote: > > > > Hi, > > > > Consider following code: > > > > vardef polygon_with_side(expr n, s) = > > sa

[NTG-context] Re: Help with Metapopst code

2024-08-28 Thread Shiv Shankar Dayal
I think it works like (0, r) rotated (a) -- (0, r) rotated (a * 2) -- ... (0, r) rotated (a*20) -- cycle Is my understanding correct? Also, how can I label these vertices in a for loop? On Wed, Aug 28, 2024 at 2:25 PM Shiv Shankar Dayal wrote: > > Hi, > > Consider following code

[NTG-context] Re: Wiki in Mobile(?) format

2024-08-01 Thread Gerion Entrup
ki.contextgarden.net" link. > > However, the mobile view is not feature complete (colors and renderings are > > missing). > > There is a link at the bottom of each wiki page. Its label is either “Mobile > view” (in your firefox) or “Desktop” (in your Qutebrowser). I am sure

  1   2   3   4   5   6   7   8   9   10   >