Subject: mailing-list for TeXmacs Users
List archive
From : Norbert Nemec <address@hidden>- To: address@hidden
- Subject: How to work around implicit quoting in <hlink||> ?
- Date: Thu, 12 Apr 2007 13:29:24 +0200
To handle eprints in a bibliography, I have defined the following macro:
<assign|eprint|<macro|text|<hlink|<with|font-family|tt|[<arg|text>]>|http://arxiv.org/<arg|text>>>>
If the bibliography contains a tag like
<eprint|cond-mat/0612369>
this is supposed to display "[cond-mat/0612369]" and hyperlink to "http://arxiv.org/cond-mat/0612369"
Problem is - the concatenation of the two parts of the hyperlink does not seem to work. As soon as I click on the link, I get the following backtrace:
--------------------------------------
In unknown file:
?: 0* [link-follow-ids ("%8C37E6C-A239A10")]
?: 1* [ovl-apply (100 . #<procedure #f (ids)>) (("%8C37E6C-A239A10"))]
In /home/nen10015/local/NNlab/src/texmacs/TeXmacs/progs/kernel/texmacs/tm-overload.scm:
306: 2 (let* ((fun (ovl-resolve ovl args))) (if fun (apply fun args) ...))
In /home/nen10015/local/NNlab/src/texmacs/TeXmacs/progs/link/link-navigate.scm:
...
368: 3 [go-to-url {(concat "http://arxiv.org/" "cond-mat/0702295")} (0 672 1 30 1)]
338: 4* (with (name label) (decompose-url name-label) ...)
338: 5 [apply #<procedure #f (name label)> ...
338: 6* [decompose-url {(concat "http://arxiv.org/" "cond-mat/0702295")}]
330: 7 (with i (string-index s #\#) ...)
330: 8 (let* ((i (string-index s #\#))) (if (not i) (list s "") ...))
330: 9* [string-index {(concat "http://arxiv.org/" "cond-mat/0702295")} #\#]
/home/nen10015/local/NNlab/src/texmacs/TeXmacs/progs/link/link-navigate.scm:330:11: In procedure string-index in expression (string-index s #\#):
/home/nen10015/local/NNlab/src/texmacs/TeXmacs/progs/link/link-navigate.scm:330:11: Wrong type argument in position 1 (expecting string): (concat "http://arxiv.org/" "cond-mat/0702295")
--------------------------------------
So it seems, the <hlink||> tag does some kind of implicit quoting of the second argument. How would I work around this?
Greetings,
Norbert
- How to work around implicit quoting in <hlink||> ?, Norbert Nemec, 04/12/2007
Archive powered by MHonArc 2.6.19.