Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3782916
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:09:01+00:00 2026-05-19T11:09:01+00:00

I am setting e.g. directory names in a typewriter font. These names can become

  • 0

I am setting e.g. directory names in a typewriter font. These names can become long. With the hyphenat package, I enabled hyphenation.
Now, what is missing, is that the hyphenation character is replaced e.g. by a backwards oriented arrow.
Thus, what I want to do is something like

\usepackage[htt]{hyphenat}
\newcommand{\origttfamily}{}%
\let\origttfamily=\ttfamily%
\renewcommand{\ttfamily}{\origttfamily \hyphenchar\font=\ensuremath{\hookleftarrow}}
\begin{document}
\texttt{/etc/really/long{\fshyp}directory{\fshyp}name/}
\end{document}

however, \ensuremath{\hookleftarrow} does not work in this case – it is not a single character.

Can somebody point me towards a solution? Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:09:02+00:00Added an answer on May 19, 2026 at 11:09 am

    You cannot set the \hyphenchar to a character from a different font, but you can redefine \BreakableSlash:

    \documentclass{minimal}
    \usepackage[htt]{hyphenat}
    \newsavebox\leftarrowbox
    \sbox\leftarrowbox{$\leftarrow$}
    \makeatletter
    \renewcommand*{\BreakableSlash}{%
      \leavevmode
      \prw@zbreak
      /%
      \discretionary{\usebox\leftarrowbox}{}{}%
      \prw@zbreak
    }
    \makeatother
    \begin{document}
    \parbox{20mm}{%
      \texttt{/etc\fshyp really\fshyp long\fshyp directory\fshyp name/}%
    }
    \end{document}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When setting up a new virtual directory for hosting a SOAP web service in
By default in windows application setting are saved in this directory: %USERPROFILE%\Local Settings\Application Data\<Company
I am copying a file to a directory, and then setting an environment variable
With the environment variable %allusersprofile% I can get the directory where common settings are
I was wondering how I can add a new directory in my perl settings
(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}), As you can see, I have a directory called media under
I'm trying to programatically create a new Active Directory user setting the sAMAccountName attribute
I'm having trouble setting the working directory of a shortcut created as part of
Noticed an interesting GUI based setting in MacVim, that seems useful but I can't
I'm creating an ejb jar via the ejbjar task in ant setting naming=directory but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.