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}
dustin
  • 18,617
  • 23
  • 99
  • 204
Pankracy
  • 319
  • Which engine are you using? – topskip May 16 '13 at 07:51
  • Does http://tex.stackexchange.com/questions/9358/replace-hyphenation-character-by-a-backwards-arrow help? – topskip May 16 '13 at 07: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

0 Answers0