Jim Ottaway | 7 Aug 22:00
Favicon

Re: Re: embedding images in pdfs

Michael Olson <mwolson <at> gnu.org> writes:

> Jim Ottaway <j.ottaway <at> lse.ac.uk> writes:
>
>> Yes. It looks as though muse-latex-markup-specials-url is not quite
>> right:
>>
>> (defcustom muse-latex-markup-specials-url
>>   '((?\\ . "\\\\")  ;; this should most likely be "\\textbackslash{}", not
>>                     ;;  a LaTeX newline command
>
> Upon testing, neither "\\\\" nor "\\textbackslash{}" works with
> embedded images.  I'm having a hard time finding something that does
> work here.  "\\textbackslash{}" does work better for URLs though.
>
>>     (?\_ . "\\_")   ;; this should probably not be here at all
>
> Looks like you're right when it comes to embedded images.  With URLs,
> though, it is needed.  I'll have to make a new specials category for
> embedded images, I guess.
>
>>     (?\# . "\\#") ;; this should probably not be here at all either
>
> It doesn't work by itself for embedded images.  Neither does it work
> with that escape.  I'm not sure what to do.

I had a quick look at the code, but I am similarly stymied at the
moment.  Could the problem be something to with the fact that the
different latex commands used for urls have different requirements for
characters: \href allows #, ~ according to the hyperref documentation,
and it appears, by my own trial and error, to allow $ unescaped as well.
\url, on the other hand is like verbatim: anything except a } is
permissible.

The \footnote commands after the \href commands in each url link type
would, of course, require the same special character handling as normal
text [i.e., different from the \href command].  

\ref and \label take any alphanumeric character and also only -_+=.:;,

Mind you I am not sure how relevant this all is: I haven't any
experience of using images in muse so far [nor urls for that matter].  I
don't actually understand what the different kinds of image are [what is
an embedded image, and what is a non-embedded one?], and I am not quite
clear on the relationship between images and urls.

Regards,

--

-- 
Jim Ottaway


Gmane