[NTG-context] \fillinrules with backgroundcolor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello All, Does anyone know if it is possible to have fillinrules with a background color? It would be even better if I didn't have the rule, just a gray background for example. This is the effect I like to see: Name: [ ] Address: [] [ ] Where [...] is a colored back ground. Example: \starttext \fillinrules[n=1,width=broad]{Name} \fillinrules[n=2,width=broad]{Address} \stoptext - -- Live long and prosper, Berend de Boer (PGP public key: http://www.pobox.com/~berend/berend-public-key.txt) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/ iD8DBQFAFMwlIyuuaiRyjTYRAnH0AJ4uBjSCK9V49sTzleVICgfKsvhqzACfQBj4 WDqfzuSOEpgi7R9f8wS2bJI= =NMfg -END PGP SIGNATURE- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] hyphenating urls....
It's the first time I try to use urls inside pdf output. I searched the mailing lists and found the following way: \useURL[ref][url][??(local file, I think)][displaytext (in my case the url itself)] \from[ref] (will print displaytext link to url) My problem now is that the url is not hyphenated and since I generate the doc from a database I have some really long ones So, what can I do. Or, where can I find some doc about it?? Thanks, Mathias virtual earth Mathias Picker Geschäftsführer Gesellschaft für Wissens re/prä sentation mbH [EMAIL PROTECTED] Fon +49 89 / 540 7425-1 Fax +49 89 / 540 7425-9 begin:vcard fn:Mathias Picker n:Picker;Mathias org;quoted-printable:virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH adr;quoted-printable:;;Westendstr. 147 Rg;M=C3=BCnchen;;80339;Germany email;internet:[EMAIL PROTECTED] title;quoted-printable:Gesch=C3=A4ftsf=C3=BChrer tel;work:+49 (0)89 540 7425 1 tel;fax:+49 (0)89 540 7425 9 tel;cell:+49 (0)176 2102 5479 x-mozilla-html:FALSE url:http://www.virtual-earth.de/ version:2.1 end:vcard
Re: [NTG-context] Hyphenation of URLs with and without interaction
Hello Mathias, your question forwarded by Tobias Burnus has been discussd a couple of days ago on this list. I send you the reply given by Hans Hagen: At 11:59 23/01/2004, you wrote: Hello, If you run the test case below, once with and once without \statupinteraction[state=start], you realize that this influences the hyphenation. Using interaction, the URL is only hyphenated at '/', '.' etc. Using no interaction, also the words are hyphenated. How can I get also hyphenated words with interaction enabled? --- \showframe \setupinteraction[state=start] \def\gotoURL#1{\useURL[foo][#1]\goto{\url[foo]}[url(foo)]} \starttext \hskip5cm\gotoURL{http://www.physik.fu-berlin.de/SomeVeryVeryVeryLongDirectory/And/AQuiteLongFileName.html} \stoptext --- in context, hyphenation of interactive references is a rather tricky thing; this has to do with the fact that i want comfortable clickable areas. (another reason is that it should work with several backends. Some day i may offer an alternative solution (backend dependent). In the case of url's it's even more tricky since one cannot for instance use hyphenation patterns for it, so we have to rely on parsing. And, with parsing, we run into those catcode handling situations. When i have time, i'll rewrite the parser for etex (time is near that we drop tex in favor of etex) which is cleaner (but not entirely upward compatible). Now to your problem. Hyphenation is not done here and does not make sense either (mixed case) \bgroup \catcode`\~=\active \catcode`\/=\active \unexpanded\gdef\hyphenatedurl#1% {}{} handles accents {\bgroup \ifnum\hyphenpenalty1 \else \def\discretionary##1##2##3{##1\allowbreak##2}% \fi \obeyhyphens \def\splitbefore##1% {\setbox\scratchbox=\hbox{##1{}{}}% \ifcase\urlsplitmode \box\scratchbox \or \postwordbreak\box\scratchbox\prewordbreak \or \prewordbreak\discretionary{\box\scratchbox}{}{\box\scratchbox}\prewordbreak \else \postwordbreak\box\scratchbox\prewordbreak \fi}% \def\splitafter##1% {\ifcase\urlsplitmode ##1{}{}% \or \prewordbreak\discretionary{##1{}{}}{}{##1{}{}}\prewordbreak \or \prewordbreak\discretionary{##1{}{}}{}{##1{}{}}\prewordbreak \else \prewordbreak\discretionary{}{##1{}{}}{##1{}{}}\prewordbreak \fi}% \def\flushurl% {\savedurl\let\savedurl\empty}% \def\\% {\spliturl\#}% \let\~=\lettertilde\let~=\~% \let\/=\letterslash\let/=\/% \let\savedurl\empty \scratchcounter\zerocount \handletokens#1\with\scanurl\savedurl \egroup} \egroup \def\scanurl#1% {\advance\scratchcounter\plusone \ifx#1\~% \flushurl\splitbefore\~% \else\ifx#1\#% \flushurl\splitbefore\#% \else\ifx#1\% \flushurl\splitbefore\% \else\ifx#1\%% \flushurl\splitbefore\%% \else\ifx#1\_% \flushurl\splitbefore\_% \else\if\noexpand#1\relax #1% \else\ifnum\catcode`#1=8 \flushurl\splitbefore\_% \else\ifnum\catcode`#1=6 \flushurl\splitbefore\#% \else\ifnum\catcode`#1=4 \flushurl\splitbefore\% \else\if#1\lettertilde \flushurl\splitbefore\~% \else\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\letterslash}% \else\if#1+% \flushurl\splitafter+% \else\if#1:% \flushurl\splitafter:% \else\if#1.% \flushurl\splitafter.% \else\if#1(% \flushurl\splitbefore(% \else\if#1)% \flushurl\splitafter)% \else \ifx\savedurl\empty\else \splitbefore\savedurl \let\savedurl\empty \fi \ifcase\urlhyphenmethod #1% \else \ifnum\scratchcounter\plusthree % so, \http: will not break \edef\savedurl{#1}% \else #1% \fi \fi \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} \chardef\urlhyphenmethod=0 \setupinteraction[state=start]\showframe \def\gotoURL#1{\useURL[foo][#1][#1]\goto{\url[foo]}[url(foo)]} \starttext \chardef\urlhyphenmethod=0 \hsize1pt\gotoURL{http://www.physik.fu-berlin.de/SomeVeryVeryVeryLongDirectory/And/AQuiteLongFileName.html} \chardef\urlhyphenmethod=1 \hsize1pt\gotoURL{http://www.physik.fu-berlin.de/SomeVeryVeryVeryLongDirectory/And/AQuiteLongFileName.html} \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: textbar
Hi, i'm not sure if \textbar is/should be in the encoding vectors ... since | is made active, we have to have some way to work around it. Or we should be able to use \| to get char 124. It does not have to be \textbar. \chardef\|=124 would be ok, wouldn't it? Patrick -- Morgen gibts kein ABC mehr... ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Editor questions: SciTE and Emacs
I recall that Hans came up with a ConTeXt mode for SciTE, but I can't find it. Is it still available? I've been playing with the AucTeX ConTeXt mode, but I find that it gets \start and \stop backwards. e.g. if I type C-c C-e itemize I get \stopitemize \startitemize Can anyone comment about this? There are two ConTeXt modes available. How do they compare? Thanks, Gary ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] url's and underscores
I must admit I don't get it :-) Using something like \useURL[foo]{attachments/1013-Comato_Zugriffe.zip} \goto{\url[attachments/1013-Comato_Zugriffe.zip]}[url(foo)] I get ! Missing $ inserted. (ok, trying to switch to math mode. I understand that.) Using \useURL[foo]{attachments/1013-Comato\_Zugriffe.zip} \goto{\url[attachments/1013-Comato\_Zugriffe.zip]}[url(foo)] I get ! Missing \endcsname inserted. to be read again \unhbox \leavevmode -\unhbox [EMAIL PROTECTED] \fakeunderscore -\leavevmode \hbox {\setbox \scratchbox \hbox {(}\scratchdi... \_...fmmode \mathunderscore \else \textunderscore \fi argument \v!file :::attachments/1013-Comato\_ Zugriffe.zip \getvalue #1-\csname #1 \endcsname ... l.23 \NC \NR\stoptabulate Which I don't understand... How can I use url's with underscores?? I looked, but I couldn't find anything useful with google. Thanks for any help, Mathias -- virtual earth Mathias Picker Geschäftsführer Gesellschaft für Wissens re/prä sentation mbH [EMAIL PROTECTED] Fon +49 89 / 540 7425-1 Fax +49 89 / 540 7425-9 begin:vcard fn:Mathias Picker n:Picker;Mathias org;quoted-printable:virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH adr;quoted-printable:;;Westendstr. 147 Rg;M=C3=BCnchen;;80339;Germany email;internet:[EMAIL PROTECTED] title;quoted-printable:Gesch=C3=A4ftsf=C3=BChrer tel;work:+49 (0)89 540 7425 1 tel;fax:+49 (0)89 540 7425 9 tel;cell:+49 (0)176 2102 5479 x-mozilla-html:FALSE url:http://www.virtual-earth.de/ version:2.1 end:vcard
Re: [NTG-context] url's and underscores
Hello, On Mon, Jan 26, 2004 at 09:25:07PM +0100, Mathias Picker wrote: Using something like \useURL[foo]{attachments/1013-Comato_Zugriffe.zip} \goto{\url[attachments/1013-Comato_Zugriffe.zip]}[url(foo)] Try this: \useURL[foo][attachments/1013-Comato_Zugriffe.zip] \goto{\url[foo]}[url(foo)] Tobias ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] hyperrefs and a) \useencoding[win] and b) opening other windows
Hopefully my last questions about context and pdf and urls a) I get url targets with buildextacc if I use urls with german umlauts and \useencoding[win] Any idea how to get german umlauts if the file is iso8859-15 and still get usefull links? b) when following links in the pdf I would like to open the documents in another window. My users view the pdf through a browser, and the pdf has links to many file types which I want to open in new browser windows, so the context of the main pdf file is not lost. Any way to do this?? Thanks a lot! Mathias -- virtual earth Mathias Picker Geschäftsführer Gesellschaft für Wissens re/prä sentation mbH [EMAIL PROTECTED] Fon +49 89 / 540 7425-1 Fax +49 89 / 540 7425-9 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context