expertanalytics / cvcreator

An automated tool for creating CVs on the fly.
6 stars 0 forks source link

propose new formatting for hyperlinks #82

Closed aless80 closed 2 years ago

aless80 commented 2 years ago

This is the similar to PR #81, but the link's text is the same as the link's url so that printed CVs still show the url.

I am proposing a new formatting for links. The links won't have a big light blue rectangular shape around them, but will look like real links in a webpage.

The following is not implemented in this PR but It would be possible to strip https:// from the link text by using the following code. I am not sure if this is desirable. For example, my GitHub url would show aless80.github.io instead of https://aless80.github.io

\usepackage{xstring}
..
\href{\VAR{github}}{\StrSubstitute{\VAR{github}}{https://}}
jonathf commented 2 years ago

I like the substitute idea. Question is what is the best implementation route.

Considering the current implementation in theory should support non-latex targets and Latex being anchient code which I feel maintainence wise should be kept as simple as possible, I am opting for adding the replace command in the jinja layer instead of in Latex.

In other words:

\href{\VAR{github}}{\VAR{github | replace("https://", "")}}