Re: [NTG-context] issue with lpath containing a hyphen

2016-11-20 Thread Pablo Rodriguez
On 11/20/2016 12:13 PM, Hans Hagen wrote: > On 11/18/2016 11:32 PM, Pablo Rodriguez wrote: >> [...] >> The only way to get the Knuth in the quote is to remove "\letterpercent" >> in the lpath. > > so why do you use the \letterpercent then It was a minimal sa

Re: [NTG-context] issue with lpath containing a hyphen

2016-11-20 Thread Hans Hagen
='a\letterpercent-b']} {xml:a:b} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:a:b \input knuth \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo

[NTG-context] issue with lpath containing a hyphen

2016-11-18 Thread Pablo Rodriguez
Hans, I have the following sample: \startbuffer[demo] is it working \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc}{xml:*} \xmlsetsetup{#1} {div[@id='a\letterpercent-b']} {xml:a:b

Re: [NTG-context] PDF/A generation

2016-10-13 Thread Henri Menke
;subtitle=SUBTITLE, >author=AUTHOR, >keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] > > %% For PDF/A > \setupbackend[ > format={pdf/a-1a:2005}, % or pdf/a-1a:2005 > profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}, > intent=ISO coated v2 300\letterpe

Re: [NTG-context] PDF/A generation

2016-10-13 Thread luigi scarso
%% For PDF/A \setupbackend[ format={pdf/a-1a:2005}, % or pdf/a-1a:2005 profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=ISO coated v2 300\letterpercent\space (ECI)] %% Tagged PDF %% method=auto ==> default tags by Adobe \setupbackend[export=yes] \setupstructure[state=start,met

Re: [NTG-context] url with umlaut

2016-07-15 Thread Peter Münster
rozzi/object/RegiomontanusJohannesMullerVonKönigsbergAstrolabe.html)] Perhaps this would work: "K\letterpercent C3\letterpercent B6nigsberg" (not tested) -- Peter ___ If your question is of interest to others as well, please add an entry t

Re: [NTG-context] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Hans Hagen
} {span[contains(@class,'tex\letterpercent-logo')]} {xml:tex:logo} Is there no way to merge both in one? (The basic rule a|b doesn’t seem to work here, altough I may be missing everything :-(.) it all depends on what you want to do eventually \xmlsetsetup{\xmldocument} {span

Re: [NTG-context] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Pablo Rodriguez
{\xmldocument} {span[@label or contains(@class,'tex\letterpercent-logo')]} {xml:logo} Many thanks for your reply, Hans. This is what I intended and everything is clear now. Many thanks for your help, Pablo -- http://www.ousia.tk

[NTG-context] optional lpaths to merge \xmlsetsetup?

2015-05-10 Thread Pablo Rodriguez
Hans, many thanks for the explanation with \xmlsetup. I have one more question for today concerning lpaths. I have the following commands: \xmlsetsetup{\xmldocument} {span[@label]} {xml:logo} \xmlsetsetup{\xmldocument} {span[contains(@class,'tex\letterpercent

Re: [NTG-context] hyphen in class (from XML)

2015-03-23 Thread Pablo Rodriguez
On 03/23/2015 10:12 AM, Hans Hagen wrote: On 3/22/2015 7:08 PM, Pablo Rodriguez wrote: [...] Unless I remove the hyphen from the class and from the setups (or replace both hyphens with an underscore hyphen), I won’t get the \TeX logo. Have I hit a bug or is it a feature? \letterpercent

Re: [NTG-context] hyphen in class (from XML)

2015-03-23 Thread Hans Hagen
the setups (or replace both hyphens with an underscore hyphen), I won’t get the \TeX logo. Have I hit a bug or is it a feature? \letterpercent- (unless we decide to auto-escape) Hans - Hans

Re: [NTG-context] File name to print to include %

2015-03-18 Thread luigi scarso
%} -- (obviously) produces error. So what to write into \hyphenatedfilename to get %Home%? \hyphenatedfilename\expandafter{\letterpercent Home\letterpercent} -- luigi ___ If your question is of interest to others

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-19 Thread Christoph Reller
\ as \\, # as \# and % as \letterpercent. Let me know if you have a better solution. Christoph ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg

Re: [NTG-context] hyperlinks with special characters

2014-08-29 Thread Hans Hagen
it from interfering with url(). It turns out that DBpedia does not like these codes, and requires the actual characters. Is there another way I put them in `\goto{...}[url(...)]`? you can use: \letterpercent

Re: [NTG-context] hyperlinks with special characters

2014-08-29 Thread Prashanth N Rao
escape codes, `%28` and `%29`, to keep it from interfering with url(). It turns out that DBpedia does not like these codes, and requires the actual characters. Is there another way I put them in `\goto{...}[url(...)]`? you can use: \letterpercent

Re: [NTG-context] How to create a PDF/A file with mkii?

2014-07-03 Thread luigi scarso
, subtitle=SUBTITLE, author=AUTHOR, keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] %% For PDF/A \setupbackend[ format={pdf/a-1b:2005}, profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=ISO coated v2 300\letterpercent\space (ECI)] \starttext \chapter[chap:testing]{Testing} \input

Re: [NTG-context] How to create a PDF/A file with mkii?

2014-07-02 Thread Otared Kavian
}, intent={% ISO coated v2 300\letterpercent\space (ECI)} ] %% Tagged PDF %% method=auto == default tags by Adobe \setupstructure[state=start,method=auto] I could get a PDF which looks fine: but now I have to make sure that it is PDF/A compliant. Right now I don’t hav etime to check this, but in any

Re: [NTG-context] How to create a PDF/A file with mkii?

2014-07-02 Thread luigi scarso
}, profile={default_cmyk.icc, default_rgb.icc,default_gray.icc}, intent={% ISO coated v2 300\letterpercent\space (ECI)} ] %% Tagged PDF %% method=auto == default tags by Adobe \setupstructure[state=start,method=auto] I could get a PDF which looks fine: but now I have to make sure

Re: [NTG-context] How to create a PDF/A file with mkii?

2014-07-02 Thread Otared Kavian
[ format={pdf/a-1a:2005}, profile={default_cmyk.icc, default_rgb.icc,default_gray.icc}, intent={% ISO coated v2 300\letterpercent\space (ECI)} ] %% Tagged PDF %% method=auto == default tags by Adobe \setupstructure[state=start,method=auto] I could get a PDF which looks fine: but now I

Re: [NTG-context] suggestion on [option=TEX]

2014-02-12 Thread Pablo Rodriguez
On 02/07/2014 12:36 AM, Wolfgang Schuster wrote: Am 06.02.2014 um 19:29 schrieb Pablo Rodriguez: [...] After reading the document, I think it could be achieved with: [...] But this doesn’t work. I must be missing something obvious. You have to add a comma after \letterpercent. You should

Re: [NTG-context] suggestion on [option=TEX]

2014-02-06 Thread Wolfgang Schuster
\stoptext But this doesn’t work. I must be missing something obvious. What am I doing wrong here? Many thanks for your help, You have to add a comma after \letterpercent. You should also be careful with the text in the comments because commands are expanded, e.g. take a look at the \TeX

[NTG-context] Tabulator in database file not passed to Lua

2014-01-23 Thread Joshua Krämer
: \usemodule[database] \defineseparatedlist [Data] [ before=, after=, separator={}, commentchar=\letterpercent, command=\Tabrow, ] \startluacode function explode(sep,str) if (sep==) then return false end local pos,arr = 0,{} -- for each separator found

Re: [NTG-context] Tabulator in database file not passed to Lua

2014-01-23 Thread Hans Hagen
consider the following minimal working example: \usemodule[database] \defineseparatedlist [Data] [ before=, after=, separator={}, commentchar=\letterpercent, command=\Tabrow, ] \startluacode function explode(sep,str) if (sep==) then return false end local

Re: [NTG-context] Comment after \startseparatedlist[...]

2014-01-21 Thread Wolfgang Schuster
You can add “commentchar=\letterpercent” to your separatedlist definition which will make % the character for comments, the setups hack isn’t necessary. Wolfgang On 21.01.2014 23:13:25, Joshua Krämer joshua.krae...@gmail.com wrote: Am Tue, 21 Jan 2014 17:51:17 +0100 schrieb Hans Hagen pra

Re: [NTG-context] Comment after \startseparatedlist[...]

2014-01-21 Thread Joshua Krämer
Am Tue, 21 Jan 2014 23:19:43 +0100 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: You can add “commentchar=\letterpercent” to your separatedlist definition which will make % the character for comments, the setups hack isn’t necessary. Thank you, I have added it to the Wiki. Kind

Re: [NTG-context] Percent symbol inside \type{}?

2013-05-21 Thread Sander Maijers
\startlines \mono{foo \% bar} \mono{foo \letterpercent\ bar} \asciimode \mono{foo % bar} \stoplines \stoptext That works, thanks! Marco PS: Please don't hijack threads. Start a new thread for each new issue. I have used a new subject line. If you see any problem

Re: [NTG-context] Percent symbol inside \type{}?

2013-05-21 Thread Wolfgang Schuster
\letterpercent or \asciimode are the best solutions in this case. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl

Re: [NTG-context] Percent symbol inside \type{}?

2013-05-20 Thread Marco Patzer
} \mono{foo \letterpercent\ bar} \asciimode \mono{foo % bar} \stoplines \stoptext Marco PS: Please don't hijack threads. Start a new thread for each new issue. signature.asc Description: Digital signature

Re: [NTG-context] ! LuaTeX error [string \directlua ]:1: invalid escape sequence

2013-04-19 Thread Hans Hagen
[[ ]] for passing strings and \letterpercent , of do: \ctxlua{context.setxvalue(BzrRevision,os.resultof(bzr revno | tr -d '\string\n'))} Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] ! LuaTeX error [string \directlua ]:1: invalid escape sequence

2013-04-19 Thread Kip Warner
On Fri, 2013-04-19 at 09:07 +0200, Hans Hagen wrote: use [[ ]] for passing strings and \letterpercent , of do: \ctxlua{context.setxvalue(BzrRevision,os.resultof(bzr revno | tr -d '\string\n'))} Thanks Hans. That solved that problem. -- Kip Warner -- Software Engineer OpenPGP encrypted

Re: [NTG-context] date problem

2013-03-20 Thread Wolfgang Schuster
{march} 20 2013 The problem is essentially the same. \starttext \writestatus{***}{\cldcontext{os.date(\letterpercent Y\space\letterpercent m\space\letterpercent d)}} \stoptext I am most unhappy with this, because fixing the current date in some macro shouldn't be impossible. \starttext

Re: [NTG-context] What is changed?

2013-02-04 Thread Aditya Mahajan
: 2012.05.30 11:26 MKIV fmt: 2013.2.4 int: english/english What did change? Why? And how to repair? I noticed something similar a few days ago. IIRC, using \letterpercent still works (untested). Aditya ___ If your

Re: [NTG-context] What is changed?

2013-02-04 Thread Meer H. van der
]{ERROR}}{... Whereas in a previous Context all went well: ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2013.2.4 int: english/english What did change? Why? And how to repair? I noticed something similar a few days ago. IIRC, using \letterpercent still works (untested). Aditya

[NTG-context] MP \letterpercent

2013-01-27 Thread Procházka Lukáš
Hello, why the MP code doesn't draw % and # when it uses TeX's \U - inside MP block?: \def\T{TTT} \def\U{UUU \letterpercent\letterhash} \starttext \letterpercent \letterhash \par \startMPcode draw btex AAA etex; draw textext(\T); % draw btex \T etex; % Err draw

Re: [NTG-context] MP \letterpercent

2013-01-27 Thread Hans Hagen
On 1/27/2013 10:05 PM, Procházka Lukáš wrote: Hello, why the MP code doesn't draw % and # when it uses TeX's \U - inside MP block?: \def\T{TTT} \def\U{UUU \letterpercent\letterhash} \starttext \letterpercent \letterhash \par \startMPcode draw btex AAA etex; draw

Re: [NTG-context] luatex 0.74: invalid escape sequence near '\%

2013-01-04 Thread Peter Münster
On Fri, Jan 04 2013, Thomas A. Schmitz wrote: ! LuaTeX error [string \directlua ]:1: invalid escape sequence near '\%'. Workaround: \letterpercent -- Peter ___ If your question is of interest to others

Re: [NTG-context] luatex 0.74: invalid escape sequence near '\%

2013-01-04 Thread Hans Hagen
--pretty='\%h of \%aD' -1))} \crlf ConTeXt version: \contextversion] \stoptext and \letterpercent at the tex end, so \letterpercent h - Hans Hagen | PRAGMA ADE Ridderstraat 27

Re: [NTG-context] luatex 0.74: invalid escape sequence near '\%

2013-01-04 Thread Thomas A. Schmitz
On 01/04/2013 02:18 PM, Hans Hagen wrote: and \letterpercent at the tex end, so \letterpercent h Thank you Peter and Hans, letterpercent works! Thomas ___ If your question is of interest to others as well, please

Re: [NTG-context] List of special characters

2011-08-15 Thread Wolfgang Schuster
\textbackslash\ or \letterbackslash \textbraceleft\ or \letterleftbrace\ or \{ \textbraceright\ or \letterrightbrace\ or \} \percent\ or \letterpercent\ or \% \textdollar\ or \letterdollar\ or \$ \letterampersand\ or \ \letterhash\ or \# \stoplines \asciimode % $ # %% this is a comment \stoptext

Re: [NTG-context] List of special characters

2011-08-15 Thread Cecil Westerhof
\startlines \textbackslash\ or \letterbackslash \textbraceleft\ or \letterleftbrace\ or \{ \textbraceright\ or \letterrightbrace\ or \} \percent\ or \letterpercent\ or \% \textdollar\ or \letterdollar\ or \$ \letterampersand\ or \ \letterhash\ or \# \stoplines \asciimode

Re: [NTG-context] Google Chart URL

2011-04-18 Thread Wolfgang Schuster
Am 16.04.2011 um 21:49 schrieb Aditya Mahajan: On Sat, 16 Apr 2011, Reviczky, Adam wrote: Hmm I still have some problems with this. How would it look like for this URL? I've tried asciimode and \letterbar + \letterpercent, but no luck. http://chart.apis.google.com/chart?chs=350x220cht

Re: [NTG-context] Google Chart URL

2011-04-16 Thread Reviczky, Adam
Hmm I still have some problems with this. How would it look like for this URL? I've tried asciimode and \letterbar + \letterpercent, but no luck. http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp

Re: [NTG-context] Google Chart URL

2011-04-16 Thread Aditya Mahajan
On Sat, 16 Apr 2011, Reviczky, Adam wrote: Hmm I still have some problems with this. How would it look like for this URL? I've tried asciimode and \letterbar + \letterpercent, but no luck. http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1

Re: [NTG-context] Typesetting url's in ConTeXt?

2011-04-10 Thread Marco Pessotto
this: \setupinteraction[state=start] \starttext \goto{\hyphenatedurl{http://domain.tdl:/id=15ln=test\letterpercent 20_test\#2}}[url(http://domain.tdl:/id=15ln=test\%20_test\#2)] \stoptext IIRC there has been a discussion about the percent (%) in url, so maybe this workaround isn't needed

Re: [NTG-context] Producing quotesingle glyph

2011-03-20 Thread Wolfgang Schuster
, \textdollar % : \letterpercent, \percent ^ : \letterhat _ : \letterunderscore, \textunderscore | : \letterbar, \textbar ~ : \lettertilde, \textasciitilde \ : \letterbackslash, \letterescape, \textbackslash / : \letterslash, \textslash ? : \letterquestionmark ! : \letterexclamationmark @ : \letterat

[NTG-context] Typescript Bodoni Old Fashion

2010-12-03 Thread Philipp Gesang
Řř Žž Áá Éé Íí Óó Úú Ůů Ďď Ľľ Ňň Ťť Ææ Åå Øø Āā Ēē Īī Ōō Ūū Ėė Įį Ǫǫ Ųų %% As expected, there’s no ‘ǫ’ {\addff{diphthong} Ae ae AE Oe OE oe} \par %% Non-Alphabetical - -- --- „“ “” „” ‚‘ ‘’ ‚’ «» . ! ? ‽ , ; · … : ° + - = \lettertilde\space \letterpercent

Re: [NTG-context] hyphenated url

2010-10-27 Thread Steffen Wolfrum
Hi, I tried an other approach: \useURL But here the letterpercent trick doesn't work at all ... ie. there is no clickable link at all anymore! \setupinteraction [state=start] \showframe \starttext \useURL[aurl] [http://www.kommers.se/upload/Analysarkiv/In\letterpercent English

Re: [NTG-context] hyphenated url

2010-10-27 Thread Peter Münster
transforms \% to \%25\footnote{\hyphenatedurl{www.test.com/\letterpercent/test}} ok\footnote{\hyphenatedurl{www.test.com/\letterpercent24/test}} ok\footnote{\hyphenatedurl{http://www.cirp.ru/conferences/new\letterpercent 20neighborhood\letterpercent20policy/publications/frellesen\letterpercent

Re: [NTG-context] hyphenated url

2010-10-27 Thread Philipp Gesang
On 2010-10-27 22:28:56, Steffen Wolfrum wrote: Hi, I tried an other approach: \useURL But here the letterpercent trick doesn't work at all ... ie. there is no clickable link at all anymore! Hi Steffen, if you consider an environment-style version of ‘\useURL’ appropriate, you could

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
\hyphenatedurl{www.test\letterpercent it.com} test.} text. Regards, Philipp PS: As I understand, the percent sign appears mostly in url-encoded strings. Couldn’t you just convert that to unicode and let the browser do the re-encoding when the url is accessed? \stoptext Thanks, Steffen

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
.} text. Ugly, but it works: text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. If setupinteraction is set [state=start] it does not work: ! Undefined control sequence. \normalhyphenatedurl ...phenatedurlnormal \let \b

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. Ugly, but it works: text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. If setupinteraction is set [state=start] it does not work: Did you try exactly this: ··8

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
with it ... Does someone has a fix? \starttext text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. Ugly, but it works: text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. If setupinteraction is set [state=start] it does not work: Did you try exactly

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
Am 25.10.2010 um 11:16 schrieb Philipp Gesang: text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. Regards, Philipp PS: As I understand, the percent sign appears mostly in url-encoded strings. Couldn’t you just convert that to unicode and let the browser do

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
you want. Sorry, I tried a lot but ‘\letterpercent’ is the only way it works for me. Concerning the urlencoding I referred to browsers automatically converting raw urls, like for instance http://www.google.com/search?q=ähre , which is encoded as http://www.google.com/search?q=%C3%A4hre by my

Re: [NTG-context] LuaTeX printf() function ?

2010-07-23 Thread Hans Hagen
On 23-7-2010 10:53, Vnpenguin wrote: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format(%0.2f,355/14))} \stopformula or \ctxlua{context(\letterpercent0.2f,355/14)} we can consider adding \let\pct\letterpercent but nice

Re: [NTG-context] LuaTeX printf() function ?

2010-07-23 Thread Vnpenguin
consider adding \let\pct\letterpercent but nice is:    \ctxluacode{context(%0.2f,355/14)} i'll add this but keep in mind that this will only work in the text stream, not in macro definitions or as arguments With the format %... it's better to call something like \clxluacode{contextf

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Hans Hagen
is as follows: ! Misplaced alignment tab character. l.1 \MPLIBsettext{1}{ \letterpercent - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Mojca Miklavec
\stopMPcode \stoptext The compile time error message is as follows:   ! Misplaced alignment tab character.   l.1 \MPLIBsettext{1}{ \letterpercent Or maybe \letterampersand if you want to get the desired glyph :) Alternatively you could try to use label(\sometxt{\},origin); Mojca

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Marco
(\),origin); % produces error \stopMPcode \stoptext The compile time error message is as follows: ! Misplaced alignment tab character. l.1 \MPLIBsettext{1}{ \letterpercent Doesn't work. I suppose you mean \letterampersand. If I change \ into \letterampersand I get exactly the same

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Mojca Miklavec
example. \starttext \  % OK \startMPcode label(textext(\),origin); % produces error \stopMPcode \stoptext The compile time error message is as follows:    ! Misplaced alignment tab character.    l.1 \MPLIBsettext{1}{ \letterpercent Doesn't work. I suppose you mean \letterampersand

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Aditya Mahajan
as expected. Have a look at the following example. \starttext \  % OK \startMPcode label(textext(\),origin); % produces error \stopMPcode \stoptext The compile time error message is as follows:    ! Misplaced alignment tab character.    l.1 \MPLIBsettext{1}{ \letterpercent Doesn't work. I

Re: [NTG-context] luacode inside xmlsetups

2010-03-30 Thread Hans Hagen
text ...rint(pi = .. (x - x\%0.01))} Is it not possible to directly use Lua inside these setups? If do, why the nonconforming behaviour? use \letterpercent or beter, define a nice function outside the setups and call that one inside the setup \startluacode function document.MyPiStuff() local

Re: [NTG-context] luacode inside xmlsetups

2010-03-30 Thread Hans van der Meer
the % with \% the result is no better: ! LuaTeX error main ctx instance:1: ')' expected near '\'. inserted text ...rint(pi = .. (x - x\%0.01))} Is it not possible to directly use Lua inside these setups? If do, why the nonconforming behaviour? use \letterpercent or beter, define a nice

[NTG-context] LuaTeX error main ctx instance:1: 'name' expected near '\'.

2010-02-18 Thread Peter Münster
]{{\letterdoublequote}0x}\s[Special]{{\letterpercent}lx}\s[Special]{{\letterbackslash}n}\s[Constant]{{\letterdoublequote}}\s[]{, ul);} I get this error, when compiling my product. When components are compiled one by one, there is no such error. I use pre-stepwise. Without this module, there is no such error

Re: [NTG-context] LuaTeX error main ctx instance:1: 'name' expected near '\'.

2010-02-18 Thread Hans Hagen
]{{\letterdoublequote}0x}\s[Special]{{\letterpercent}lx}\s[Special]{{\letterbackslash}n}\s[Constant]{{\letterdoublequote}}\s[]{, ul);} I get this error, when compiling my product. When components are compiled one by one, there is no such error. my guess is that t-vim is doing something funny with catcodes

Re: [NTG-context] format float numbers in luatex

2009-10-25 Thread Wolfgang Schuster
(0.3%f, a) ; text.print(aformat)} but that don't work because the % character \ctxlua{text.sprint(string.format(0.3\%f,sqrt(2)))} or \ctxlua{text.sprint(string.format(0.3\letterpercent f,sqrt(2)))} Wolfgang

Re: [NTG-context] type problems

2009-08-09 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang, it is amazing to see, that you are always able to draw a new white rabbit out of your context-hat! is \mono the youngest incarnation of \type, \retype ...? \starttext \mono{\%}\mono{\letterpercent} \mono{\{}\mono{\letterleftbrace} % \mono{\{} works only with MkIV \mono

Re: [NTG-context] type problems

2009-08-06 Thread Wolfgang Schuster
{\letterpercent} \mono{\{}\mono{\letterleftbrace} % \mono{\{} works only with MkIV \mono{\#}\mono{\letterhash} \startlines \mono{bla}blub \stoplines \stoptext why is in the following example '#' -- '##'? why is there a newline between 'bla' and 'blub'? Has to do with the way how \retype works, a solution

Re: [NTG-context] markiv, output written on...

2008-12-16 Thread Hans Hagen
that context --result might overload the name so we cannot use jobname here. to cont-new.mkiv add: \ctxlua{ ctx.register_statistics(result saved in file, \letterpercent s.\letterpercent s, function() return \outputfilename, (tex.pdfoutput0 and pdf) or dvi end) } then you can parse

Re: [NTG-context] modifying URL wrapping rules

2008-11-19 Thread Lars Huttar
'before' these characters for now). \sethyphenatedurlbefore \letterhash \sethyphenatedurlbefore \letterpercent \sethyphenatedurlbefore \letterampersand \sethyphenatedurlbefore , \sethyphenatedurlbefore - \sethyphenatedurlbefore . \sethyphenatedurlbefore = \sethyphenatedurlbefore ? \sethyphenatedurlbefore

Re: [NTG-context] catcode change in macros

2008-11-15 Thread Hans Hagen
of the predefined catcode tables. Another option is: [\c!format=\letterpercent d] Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

Re: [NTG-context] catcode change in macros

2008-11-15 Thread Wolfgang Schuster
in a Lua table and use it only in string.format, it never appears in the output. Another option is: [\c!format=\letterpercent d] No interest, if I want %d to format my string in Lua I want to write also in this format in TeX. Wolfgang

Re: [NTG-context] mplib errors

2008-10-01 Thread Taco Hoekwater
that are normally pre-defined in context \newdimen\onebasepoint \onebasepoint = 1bp \newbox\scratchbox {\catcode`\% =12 \gdef\letterpercent{%}} \directlua0{ tex.ctxcatcodes = 0 } % the three macros output by the context converter: \def\startMPLIBtoPDF#1#2#3#4% watch the transparency reset {\hbox

Re: [NTG-context] % in URL

2008-04-22 Thread Hans Hagen
://www.akira.ruc.dk/~jensh/Publications/2005%7BR%7D1_Folkerts_vol-1..PDF ] \starttext \from[Hoyrup2007bURL] \stoptext \expanded{\whatever[messycode\letterpercent andmore]} - Hans Hagen | PRAGMA ADE

[NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Peter Münster
=birthyear,sortB=key,command=FormatMember,file=thewho.txt] \IniFileFilter[comment][\%\% ][\\letterpercent\\space ] \IniFileFilter[comment][\%\%][\\letterpercent ] \setupTABLE[frame=off,width=0.5\textwidth] \nonknuthmode \def\IFbirthyear{} \def\FormatMember{ \edef\LastBirthyear{\IFbirthyear

[NTG-context] crash with pdftex-1.40

2007-01-04 Thread Peter Münster
0 [vdso] b7f1-b7f2a000 r-xp 03:02 114346 /lib/ld-2.4.so b7f2a000-b7f2c000 rw-p 00019000 03:02 114346 /lib/ld-2.4.so bfbda000-bfbef000 rw-p bfbda000 00:00 0 [stack] This is my input: \starttext \def\myCMD#1{% \immediate\write18{echo -n `#1`\letterpercent

Re: [NTG-context] List of special characters?

2006-12-28 Thread Mojca Miklavec
On 12/28/06, [EMAIL PROTECTED] wrote: This works great. But then I've got the following keywords: # ! | \ @ ^ + - * / % Just copied from Aditya's code :) \letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat \letterhat \letterslash \letterpercent, \% \letterless

Re: [NTG-context] List of special characters?

2006-12-28 Thread cormullion
\letterhat \letterslash \letterpercent, \% \letterless \lettermore \letterampersand, \ \letteropenbrace, \{ \letterclosebrace, \} Thanks - they all work great! A worthy addition to the manual...?! :-) ___ ntg-context mailing list ntg-context@ntg.nl

Re: [NTG-context] List of special characters?

2006-12-28 Thread Idris Samawi Hamid
On Thu, 28 Dec 2006 07:00:07 -0700, [EMAIL PROTECTED] wrote: Just copied from Aditya's code \letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat \letterhat \letterslash \letterpercent, \% \letterless \lettermore \letterampersand, \ \letteropenbrace

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-28 Thread Hans Hagen
\MPstaticwrite \immediate\openout\MPwrite=\MPgraphicfile.mp \setMPrandomseedfalse \enableincludeMPgraphics \def\sometxt##1{\string\sometxt{##1}}% \the\everyMPgraphic \presetMPdefinitions \theMPinclusions % brrr \writeMPgraphic{\letterpercent mpenvironment: \the\everyMPTEXgraphic

[NTG-context] staticMPfigures can overrun output streams

2006-09-24 Thread Sanjoy Mahajan
\MPinputtranslation\empty\else \immediate\write\MPwrite{\MPinputtranslation}% \immediate\write\MPwrite{verbatimtex \MPinputtranslation etex ;}% \fi \immediate\write\MPwrite{\letterpercent\space #2 graphics of job \jobname}% \writeMPgraph \setMPrandomseed \fi} \protect

Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-24 Thread Hans Hagen
\MPwrite{verbatimtex \MPinputtranslation etex ;}% \fi \immediate\write\MPwrite{\letterpercent\space #2 graphics of job \jobname}% \writeMPgraph \setMPrandomseed \fi} i'll add this ! No room for (\write) \H. e.g. try this file: \starttext \dorecurse{17}{\newwrite\H

Re: [NTG-context] \input introduces space

2006-02-28 Thread Taco Hoekwater
to 9 (ignored) also works. Here is a file demonstrating all four: \starttext % 1 \immediate\write18{echo -n X bla1.tex} X{\endlinechar=-1 \input bla1 }X % 2 \immediate\write18{echo -n X\letterpercent bla2.tex} X\input bla2 X % 3 \immediate \write18 {echo -n X\letterbackslash

Re: [NTG-context] Hyphenation of URLs with and without interaction

2004-01-26 Thread Willi Egger
\if#1\letterpercent \flushurl\splitbefore\%% \else\if#1\letterunderscore \flushurl\splitbefore\_% \else\if#1\letterquestionmark \flushurl\splitafter\letterquestionmark \else\if#1\letterat \flushurl\splitafter\letterat \else\if#1\letterslash \edef\savedurl{\savedurl

<    1   2