Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long link names cause horizontal overflow #185

Open
anschmieg opened this issue Oct 22, 2024 · 0 comments
Open

Long link names cause horizontal overflow #185

anschmieg opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@anschmieg
Copy link

anschmieg commented Oct 22, 2024

Describe the bug
When a link has a long title like

some extremely long name of a publication or site or whatever, just click it anyway

LaTeX does not add breaks in between. Note that I only tried this for the moderncv theme, but it may be applicable to the others as well.

Possible fix
To circumvent this, i changed the definition of \href in Header.j2.tex to the following. This uses the parbox environment instead of mbox.


% New command for external links:
\renewcommand{\href}[2]{
  \hrefWithoutArrow{#1}{
    \parbox[t]{\linewidth}{
      \color{color1}
      \allowbreak #2
      \raisebox{.15ex}{
        \footnotesize 
        \faExternalLink*
      }
    }
  }
}

Sorry that I didn't just create a pull request, I've never done that before and didn't want to figure it out right now.

@anschmieg anschmieg added the bug Something isn't working label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants