[NTG-context] Re: List of invalid symbols

2025-08-05 Thread Max Chernoff via ntg-context
void > errors in a automatic build chain. Don't try and detect the special symbols, instead use \startasciimode/\stopasciimode (or \asciimode inside a group or "context.puretext." from Lua), which makes all characters inert except fo

[NTG-context] [m-database] How to properly add module arguments?

2023-02-25 Thread Paul Mazaitis via ntg-context
\eTR \eTABLEhead \bTABLEbody }, after={ \eTABLEbody \eTABLE }] \starttext test \startasciimode \processdatabasefile[PartsTable][parts_list-test.csv] \stopasciimode \stoptext --- end database-mwe.tex --- Some notes on database-mwe.tex: This actually works pretty well wi

Re: [NTG-context] never add a hyphen to break a URL

2022-10-24 Thread Pablo Rodriguez via ntg-context
nclose the url inside \startasciimode...\stopasciimode to avoid escaping the percent sign. The percent sign has to be escaped as \letterpercent (otherwise, you get \%) in text. A simpler approach would read (there is a single url, instead of two [less typos in the end]): \setupinteraction[state=start] \sta

Re: [NTG-context] tilde character

2022-03-14 Thread Marco Patzer via ntg-context
On Mon, 14 Mar 2022 18:36:08 +0100 Henning Hraban Ramm via ntg-context wrote: > How do I get the default tilde character from a font? \starttext \startasciimode a~b \stopasciimode a\textasciitilde b \stoptext Ma

Re: [NTG-context] Found a weird URL that breaks things

2021-12-19 Thread Bruce Horrocks via ntg-context
236)] >> \stoptext >> >> under "mtx-context | current version: 2021.12.10 11:41" >> >> \useURL fails as well so I assume it's in the URL parser. > > The hash (#) is a special character in TeX and you have to either replace it > with s

Re: [NTG-context] Found a weird URL that breaks things

2021-12-19 Thread Wolfgang Schuster via ntg-context
rl you can put all settings in a asciimode block, e.g. \startasciimode \useurl [...] \stopasciimode Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] ctxlua percentage format escape

2021-05-29 Thread Adam Reviczky
> > > $\pi = \expression string.format("\letterpercent.6f", pi)\relax$ > > > %Changing catcodes so $ and % are letter characters > > \startasciimode > > \m{\pi = \expression ("%.6f"):format(pi) \relax} > > > \m{\pi = \ctxlua{context("%.6

Re: [NTG-context] ctxlua percentage format escape

2021-05-29 Thread Jairo A. del Rio
etterpercent.6f", pi)\relax$ %Changing catcodes so $ and % are letter characters \startasciimode \m{\pi = \expression ("%.6f"):format(pi) \relax} \m{\pi = \ctxlua{context("%.6f", math.pi)}} \stopasciimode \stoptext Regards, Jairo El sáb, 29 de may. de 2021 a la(s)

Re: [NTG-context] ASCII mode within \footnote

2019-11-07 Thread Wolfgang Schuster
> Hello, > > thanks Aditya and Wolfgang for "deep" explanation in several last > mails. > > We are approaching the goal... > > Aditya's ocde: > > > \starttext >\startasciimode > \footnote{\type{%APPDATA%\file.txt}} >\st

Re: [NTG-context] ASCII mode within \footnote

2019-11-05 Thread context
Hello, thanks Aditya and Wolfgang for "deep" explanation in several last mails. We are approaching the goal... Aditya's ocde: \starttext \startasciimode \footnote{\type{%APPDATA%\file.txt}} \stopasciimode \stoptext gives (in the footnote): " 1

Re: [NTG-context] ASCII mode within \footnote

2019-11-04 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 04.11.2019 um 15:05: On Mon, 4 Nov 2019, Aditya Mahajan wrote: That should have been: As Hans' mentioned, use: \startasciimode \footnote{\type{%APPDATA%\file.txt}} \stopasciimode In a longer document setting \asciimode at the begin can be the better sol

Re: [NTG-context] ASCII mode within \footnote

2019-11-04 Thread Aditya Mahajan
On Mon, 4 Nov 2019, Aditya Mahajan wrote: That should have been: As Hans' mentioned, use: \startasciimode \footnote{\type{%APPDATA%\file.txt}} \stopasciimode Aditya ___ If your question is of interest to o

Re: [NTG-context] ASCII mode within \footnote

2019-11-02 Thread context
s "%".) Best regards, Lukas On 2019-11-01 14:36, Hans Hagen wrote: On 11/1/2019 2:23 PM, cont...@vivaldi.net wrote: Hello, the following code doesn't compile: \starttext   \startasciimode %@$\stopasciimode   A   \footnote{\startasciimode %@$\stopasciimode} % <<

Re: [NTG-context] ASCII mode within \footnote

2019-11-01 Thread Hans Hagen
On 11/1/2019 2:23 PM, cont...@vivaldi.net wrote: Hello, the following code doesn't compile: \starttext   \startasciimode %@$\stopasciimode   A   \footnote{\startasciimode %@$\stopasciimode} % <<<< Try to comment this \stoptext When the line with \foot

[NTG-context] ASCII mode within \footnote

2019-11-01 Thread context
Hello, the following code doesn't compile: \starttext \startasciimode %@$\stopasciimode A \footnote{\startasciimode %@$\stopasciimode} % <<<< Try to comment this \stoptext When the line with \footnote is commented, compilation works fine. What'

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Wolfgang Schuster
e the asciimode environment to make TeX's special characters normal letters. \starttext \startasciimode % & # $ ^ ~ \stopasciimode \stoptext Wolfgang ___ If your question is of interest to others as well, please a

Re: [NTG-context] (My) problem with percent sign in URLs -- about Wiki

2017-08-15 Thread Pablo Rodriguez
it, it will crash inside the footnote) with \startasciimode...\stopasciimode works too: \setupinteraction[state=start] \unexpanded\def\mypersonalurl#1{% \bgroup\tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup} \starttext \startasciimode \footnote{\mypers

Re: [NTG-context] wrong handling of hash char in \useURL

2016-10-11 Thread Yi Qingliang
ki.contextgarden.net/Protrusion\#MkIV] > > I'm getting correct address on the screen but wrong link > (http://wiki.contextgarden.net/Protrusion/#MkIV). > > When I use > > \startasciimode > \useURL[protr][http://wiki.contextgarden.net/Protrusion#MkIV] > \stopasciimode >

[NTG-context] wrong handling of hash char in \useURL

2016-10-11 Thread Piotr Kopszak
Hello list, When I try to use hash in a URL like this \useURL[protr][http://wiki.contextgarden.net/Protrusion\#MkIV] I'm getting correct address on the screen but wrong link (http://wiki.contextgarden.net/Protrusion/#MkIV). When I use \startasciimode \useURL[protr]

Re: [NTG-context] removing # in XML identifiers

2015-05-07 Thread Pablo Rodriguez
ehash(str) tex.print(string.sub(str,2)) end \stopluacode \unexpanded\def\removehash#1% {\ctxlua{xml.functions.removehash("#1")}} \startasciimode\removehash{\xmlatt{#1}{href}}\stopasciimode \stopxmlsetups But for some reason unknown to me,

Re: [NTG-context] hyperlinks with special characters

2014-08-29 Thread Prashanth N Rao
ment{whatever}\) special\(operation{"argument{whatever"}\) And if they ever need a literal \ in their URL, they would have to write \\ In my examples above, I have escaped only ( and ) because they interefere with url(). If the any other character interferes with your code, they could es

Re: [NTG-context] hyperlinks with special characters

2014-08-29 Thread Hans Hagen
is already somewhat complex. Using the suggestion by @phg, I tried the following: \startasciimode Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \goto{it's link to DBPedia}[url(http://dbpedia.org/page/The_Dark_Knight_%28film%

[NTG-context] hyperlinks with special characters

2014-08-29 Thread Prashanth N Rao
code format in ConTeXt for use within `\goto{...}[url(...)]`? Using the suggestion by @phg, I tried the following: > \startasciimode > Lorem ipsum \goto{the LinkedMDB.org entry on The Dark > Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \goto{it's link > to DBPedia}

Re: [NTG-context] escaping % in urls

2012-01-01 Thread Pablo Rodríguez
On 01/01/2012 02:48 PM, Peter Münster wrote: > On Sun, Jan 01 2012, Pablo Rodríguez wrote: > >> Which is the proper way to do it? (Not replacing %20 with a blank space.) > > This works (I don't know, if proper way or not...): > > \startasciimode > \url{http://b

Re: [NTG-context] escaping % in urls

2012-01-01 Thread Peter Münster
On Sun, Jan 01 2012, Pablo Rodríguez wrote: > Which is the proper way to do it? (Not replacing %20 with a blank space.) This works (I don't know, if proper way or not...): \startasciimode \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos%20suspensivos} \stopasciimode or \

Re: [NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-12-01 Thread Raymond LeClair
Thanks for the reply! Found I needed to use \letterbackslash\letterhash for this to work. Does that make sense? On Nov 30, 2011, at 10:37 AM, Aditya Mahajan wrote: > Try: > > using \letterhash instead of \# > > or > > \startasciimode >> \def \FrontMatterTitle {

Re: [NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-11-30 Thread Aditya Mahajan
Try: using \letterhash instead of \# or \startasciimode \def \FrontMatterTitle { \startreusableMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} matter_paper_width := 4.25in; matter_paper_height := 6.875in; front_left_margin := 0.3889in; top_margin

[NTG-context] \url interaction and splitting

2011-09-15 Thread Aditya Mahajan
not support urlalternative for splitting url. Consider the following example from strc-ref: \startasciimode \useURL [test] [sentence_sentence%sentence#sentence~sentence/sentence//sentence:sentence.sentence] \stopasciimode \startlinecorrection \hbox to \hsize {\hss\en \setupreferencing[urlalte

Re: [NTG-context] List of special characters

2011-08-15 Thread Wolfgang Schuster
mple LaTeX uses >> \textbackslash which does not work in ConTeXt which uses \backslash. >> >> I could not find it at first (there are so many things), but one solution I >> found: >> \startasciimode >> %\backslash setupbackend[export=yes,xhtm

Re: [NTG-context] List of special characters

2011-08-15 Thread Cecil Westerhof
work in ConTeXt which uses \backslash. >> > > I could not find it at first (there are so many things), but one solution I > found: > \startasciimode > %\backslash setupbackend[export=yes,xhtml=yes,css=yes] > \stopasciimode > > And while searching a little fu

Re: [NTG-context] List of special characters

2011-08-15 Thread Wolfgang Schuster
Xt which uses \backslash. > > I could not find it at first (there are so many things), but one solution I > found: > \startasciimode > %\backslash setupbackend[export=yes,xhtml=yes,css=yes] > \stopasciimode > > And while searching a little further I also found:

Re: [NTG-context] List of special characters

2011-08-15 Thread Cecil Westerhof
(there are so many things), but one solution I found: \startasciimode %\backslash setupbackend[export=yes,xhtml=yes,css=yes] \stopasciimode And while searching a little further I also found: \type{%\setupbackend[export=yes,xhtml=yes,css=yes]} This has the added benefit

Re: [NTG-context] \copypages[file#.pdf]

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
strict it to a area with \startasciimode …\stopasciimode. After asciimode has been enabled you need %% to write a comment. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maill

Re: [NTG-context] \copypages[file#.pdf]

2011-07-19 Thread Wolfgang Schuster
gt; e.g. by > > \copypages[\MAKETEXT{TZ#001.pdf}] > > There was discussion about other "not-so-frequent" chars as well - ! # $ % @ > ^ & _ - any evolution? You can use \asciimode to make them character for the whole document or restrict it to a area with \startasciim

Re: [NTG-context] Pipe symbol

2011-01-25 Thread Wolfgang Schuster
t;>in text mode? >> >> >> http://wiki.contextgarden.net/Composed_words > > I see, but it is a feature I'd never need (not when typesetting Arabic > at least), is there a way to switch it off and get regular | instead? \asciimode \starttext a $ b % c _ d ^ e | f \formu