What are the alternatives to have hyphenations in \texttt and PATHs.
Ideally the hyphanation should be
bla bla bla /very/long/
path/
and not
bla bla bla /very/long/- % dash
path/
--
Best Regards,
Ton 't Lam
The FAQ (see signature) would have pointed you to url.sty.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
UKTUG FAQ: <URL:http://www.tex.ac.uk/cgi-bin/texfaq2html>
> I have many \texttt{/very/long/path/}
> [snip]
FAQ. Check http://www.tex.ac.uk/cgi-bin/texfaq2html?label=setURL and
use url.sty .
--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybe...@cq.vasa.vg
url{} does what I want.
$ more try.tex
\documentclass{minimal}
\usepackage[obeyspaces,spaces]{url}
\begin{document}
bla bla bla % much more
\url{/abc/abc/abc}
bla bla bla
\url{abc abc abc}
\end{document}
--
Best Regards,
Ton 't Lam
P.S.
If you use the hyperref package then \url{/var/adm} will get referenced as well.
The solution is to use the path.sty. E.g. \path|/var/adm|
itym "made into an anchor".
>The solution is to use the path.sty. E.g. \path|/var/adm|
why? at the time it was released i found path.sty deeply pleasing,
but as a latex package it's pretty hopeless. among other things, it's
irremediably "fragile": back in 1994 i tried to use it as a basis for
the first printed edition of the faq, and had to give up. the faq
went on for ages with a weird set of macros for urls and paths and
things for ages until i finally got around to switching to \urldef
from of the url package.
i'ld say, use \path from url, and consign path.sty to its honourable
retirement.
--
Robin Fairbairns, Cambridge
Robin Fairbairns wrote:
>
> itym "made into an anchor".
>
> >The solution is to use the path.sty. E.g. \path|/var/adm|
>
> why? at the time it was released i found path.sty deeply pleasing,
> but as a latex package it's pretty hopeless. among other things, it's
> irremediably "fragile": back in 1994 i tried to use it as a basis for
> the first printed edition of the faq, and had to give up. the faq
> went on for ages with a weird set of macros for urls and paths and
> things for ages until i finally got around to switching to \urldef
> from of the url package.
>
> i'ld say, use \path from url, and consign path.sty to its honourable
> retirement.
> --
> Robin Fairbairns, Cambridge
But then you need to load url in advance
\usepackage[obeyspaces,spaces]{url}
\usepackage[pdftex,colorlinks,breaklinks=true]{hyperref}
...
\path{/my/very/log/path}
At least I don't know how to set obeyspaces,spaces afterwards.
I need this to prevent overfilled lines.
With regards to path.sty, I propose to obsolete that package,
or have a warning somewhere. The FAQ 151 is a bit to advertizing
for path.sty