2

I need a specific divis / hyphen character or more than one randomly show

This code is not working at the present. Does anyone have any suggestions?

\documentclass{minimal} 
\usepackage{blindtext} 
\usepackage[htt]{hyphenat} 
\newsavebox\leftarrowbox 
\sbox\leftarrowbox{$\leftarrow$} 

\makeatletter
\renewcommand*{\BreakableSlash}{% 
\leavevmode \prw@zbreak /% 
\discretionary{\usebox\leftarrowbox}{}{}% 
\prw@zbreak } 
\makeatother 

\begin{document} 

\parbox{40mm}{% 
\texttt{/etc\fshyp really\fshyp long\fshyp directory\fshyp name/ \blindtext}% 
} 

\end{document}
5
  • Which engine are you using?
    – topskip
    May 16 '13 at 7:51
  • Does tex.stackexchange.com/questions/9358/… help?
    – topskip
    May 16 '13 at 7:51
  • This code not working.\documentclass{minimal} \usepackage{blindtext} \usepackage[htt]{hyphenat} \newsavebox\leftarrowbox \sbox\leftarrowbox{$\leftarrow$} \makeatletter \renewcommand*{\BreakableSlash}{% \leavevmode \prw@zbreak /% \discretionary{\usebox\leftarrowbox}{}{}% \prw@zbreak } \makeatother \begin{document} \parbox{40mm}{% \texttt{/etc\fshyp really\fshyp long\fshyp directory\fshyp name/ \blindtext}% } \end{document}
    – Pankracy
    May 16 '13 at 10:28
  • I get /etc/really/long/← as the first line.
    – egreg
    May 16 '13 at 22:56
  • this is not automatic You put \fshyp manulaly.
    – Pankracy
    May 17 '13 at 13:25

Browse other questions tagged or ask your own question.