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
\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
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
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
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
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
>
>
> $\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
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)
> 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
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
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
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
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} % <<
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
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'
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
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
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
>
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]
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,
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
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%
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}
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
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
\
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 {
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
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
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
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
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:
(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
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
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
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
35 matches
Mail list logo