This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Re: Revisited JadeTeX problem: ULINKs extend out of the page margins


Karl EICHWALDER <ke@gnu.franken.de> writes:

> Sebastian Rahtz <sebastian.rahtz@computing-services.oxford.ac.uk> writes:
> 
> |   Thomas Andre Berger writes:
> 
> |    > I have the same problem with long filenames within <filename>.
> 
> |   load the "url" package, and wrap the text inside \url{....}
> 
> .................................................... \path{...} -- using
> \url{...} filenames will become clickable if you'll produce PDF.  But
> that's a minor point.

OK, I have now made a perl -pi script to replace the text inside
<filename> and <ulink> elements.  I changed the style sheet to
generate some magic text in front and after the element text.

I downloaded the latest version of jadetex (2.14) [ wow, that was easy
to install, thank you very much Sebastian!! ] and tried my simple
script.

#!/local/psm_dev/v3/bin/perl -pi

s/!!zyx-File-start!!/\\def\\UrlSpecials{}\\urlstyle{same}\\Url{/g;
s/!!zyx-File-end!!/}/g;

s/!!zyx-ulink-start!!/\\def\\UrlSpecials{}\\urlstyle{same}\\Url{/g;
s/!!zyx-ulink-end!!/}/g;

And I now get tex output like:

\Seq%
{\def\fFamName{Courier-New}\def\fSize%
{7.699\p@}}\def\UrlSpecials{}\urlstyle{same}\Url{dist}\endSeq{}\endNode{} appears in your current directory. Change to

after the tex filer is applied [see above].

I added the \def\UrlSpecials{} to make sure that jadetex directives
inside the <filename> element will be processed.  Well, maybe that is
compleatly wrong, it was just a wild guess after reading the url.sty
file.

But it seems that this makes jadetex barf:

! Extra \endgroup.
\endPar ...fi \endSetupICs \ifGroupMode \endgroup 
                                                  \fi \everypar {{\leavevmod...
l.8286 this directory:\endPar{}

Is there anyone out there that can give me a hint on how to let
jadetex/url.sty handle these cases well:

 * /tmp/osc_psm

 outputs:

    \def\UrlSpecials{}\urlstyle{same}\Url{/tmp/osc\char95{}psm}

 but it looks like \char95{} isn't handled well inside \Url,
 even though I tried to set no specials.

 * $CONFIG_DIR/license 

 outputs:

    \def\UrlSpecials{}\urlstyle{same}\Url{\$CONFIG\char95{}DIR/license}

 should be OK when no specials is defined, due to the \$ escaping.

What am I missing / doing wrong?  Jadetex just want process it.
What can I do to make \char95{} being processed, but keeping the \Url
wrapper.

When I removed the url stuff, all things worked great again.

--------------------------------------------------------------------------
 Thomas André Berger               Open Systems Computing a.s
 email: thomasbe@osc.no            Kongensgt. 9, N-0153 Oslo, Norway
                                   phone +47 2331 4758, fax +47 2220 0285
----------------------http://www.osc.no/----------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]