How to remove hyperlink symbol in latex? [closed] - latex

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last year.
Improve this question
I am trying to make a new CV on overleaf using the modern Deedy template - here
Currently, it looks like this
Under the first project - desktop application for pair trading, I don't have a link to provide for the code so I just want to remove the small symbol which leads to another link.
In the code, the segment for this part is like this
\projectHeadingwithoutLink{DESKTOP APPLICATION FOR PAIR TRADING}{https://github.com/devangmukherjee/random-zomato-restaurant}{Python, Selenium, Tkinter, Yahoo Finance API}
Made a desktop application for finding correlation between two stocks and looking for divergence using density curve formula which sold multiple copies at 500 USD each.\\
\sectionsep
\projectHeading{LOCATION BASED RESTAURANT SUGGESTION}{https://github.com/devangmukherjee/random-zomato-restaurant}{NodeJS, ExpressJS, Mongoose, MongoDB}
A full-stack website which can suggest the best restaurants in an area using Zomato API and filtered according to user ratings.\\
\sectionsep
and the section of projectHeading looks like this
% Create project heading. Parameters: Name, link, Tech stack
\newcommand{\projectHeading}[3]{\Project{#1}{#2}
\descript{#3}\\}
How can I edit it to remove the hyperlink symbol while keeping the names of the languages on the right?

Modify the resume-openfont.cls file.
At line 125 of the resume-openfont.cls comment the command \faExternalLink, which inserts such symbol and the link. The \Project command is the one that inserts the hyperlink.
% Project command
\newcommand{\Project}[2]{
\runsubsection{%
\href{#2}{\uppercase{#1}} %\,\faExternalLink}
}
\hfill
}

Related

Is there a way to label Python code in LaTeX? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
We have made a few examples of code in Python and inserted them into a LaTeX/overleaf document. We are currently looking into making a label for them, so they can be referenced at various points, however using the \begin(python) doesn't seem to allow us to add a \label{}, which works and can be referenced.
A similar example of what we are looking for would be
\documentclass[11pt,a4paper,twoside,openany,english]{book}
\usepackage{pythonhighlight}
\begin{python}\label{SO-test}
value_a = 1
value_b = 2
print(value_a + value_b)
\end{python}
Any tips or tricks are appreciated.
Behind the scenes the pythonhighlight uses the much more common listings package. The listings package allows you to add a caption and label as optional argument of the lstlistings environment.
However even though the pythonhighlight sets up its python environment with the possibility to add an optional argument, it never uses this argument. Thus the information is never forwarded to the lstlistings environment.
To work around this, you can set up your own environment:
\documentclass[11pt,a4paper,twoside,openany,english]{book}
\usepackage{pythonhighlight}
\lstnewenvironment{mypython}[1][]{\lstset{style=mypython,#1}}{}
\begin{document}
\begin{mypython}[caption={some text to produce a caption},label=SO-test]
value_a = 1
value_b = 2
print(value_a + value_b)
\end{mypython}
Reference: \ref{SO-test}
\end{document}
I tried to just include this in a comment, but I'm too new to stack overflow.
Have you tried just using regular verbatim instead of making it explicitly python? Is there something wrong with that?
\begin{verbatim}
Text enclosed inside \texttt{verbatim} environment
is printed directly
and all \LaTeX{} commands are ignored.
\end{verbatim}
I also saw this thing about minted in their library.
It makes a reference to \begin{minted}{python}
https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted

Latex Hyperref with Pagenumber [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
i want to use hyperref in my latex document to link to labels
and i want to show the page number of the label.
so for example:
\label{subsubsec:foo}
\hyperref[subsubsec:foo]{See foo on page ???}
How can i get the page number of the label?
First note that hypperef is only used to create hyperlink in PDF document (see https://en.wikibooks.org/wiki/LaTeX/Hyperlinks ).
In order to get the page number of a label, use the \pageref command and provide it the name of the label as first argument (see https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing ).
Your code should be:
\usepackage{hyperref}
[...]
\label{subsubsec:foo}
[...]
See foo on page \pageref{subsubsec:foo}
As a consequence of the inclusion of the hypperef package, hyperlinks will be present in the generated PDF document.

Ruby - converting a hashtag to actual word(s) ? (#contentmarketing => content marketing) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Hashtags sometimes combine two or more words, such as:
content marketing => #contentmarketing
If I have a bunch of hashtags assigned to an article, and the word is in that article, i.e. content marketing. How can I take that hash tag, and detect the word(s) that make up the hashtag?
If the hashtag is a single word, it's trivial: simply look for that word in the article. But, what if the hash tag is two or more words? I could simply split the hashtag in all possible indices and check if the two words produced were in the article.
So for #contentmarketing, I'd check for the words:
c ontentmarketing
co ntentmarketing
con tentmarketing
...
content marketing <= THIS IS THE ANSWER!
...
However, this fails if there are three or more words in the hashtags, unless I split it recursively but that seems very inelegant.
Again, this is assuming the words in the hash tag are in the article.
You can use a regex with an optional space between each character to do this:
your_article =~ /#{hashtag.chars.to_a.join(' ?')}/
I can think of two possible solutions depending on the requirements for the hashtags:
Assuming hashtags must be made up of words and can't be non-words like "#abfgtest":
Do the test similar to your answer above but only test the first part of the string. If the test fails then add another character and try again until you have a word. Then repeat this process on the remaining string until you have found each word. So using your example it would first test:
- c
- co
- ...
- content <- Found a word, start over with rest
- m
- ma
- ...
- marketing <- Found a word, no more string so exit
If you can have garbage, then you will need to do the same thing as option 1. with an additional step. Whenever you reach the end of the string without finding a word, go back to the beginning + 1. Using the #abfgtest example, first you'd run the above function on "abfgtest", then "bfgtest", then "fgtest", etc.

What can cause \ref{} of LaTex output a [??] [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I include a figure like this
\begin{figure*}
\begin{center}
\includegraphics[width=6.7in]{pic/recall_details.png}
\caption{ Recalls of test query MB002-MB049}
\label{ recall_details}
\end{center}
\end{figure*}
And then I refer it using \ref{recall_details}. Instead of getting numbers like 1, 2, I get ??. Literally I mean ??. What is wrong with my codes? How to make the references show correctly?
You should "compile" your latex code twice to get numbers instead of question marks
The issue is that you're referencing \ref{recalls_details}, but you've defined \label{ recalls_details}. That extra space before recalls_details is what gets you ?? instead of the figure number. You should either change the \ref to \ref{ recalls_details} or the \label to \label{recalls_details}.
On another note, I suggest you add a modifier at the start of the label, such as fig: in this case: \label{fig:recalls_details}. This is useful when you have different types of labels (e.g. to sections, sec:, and to equations, eqn:).
The bottom line is to always use the exact string you give within the \label{} in the relevant \ref{}.

How should I add an author subtitle under a chapter title? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Had trouble knowing what exactly to Google, so I'll ask here.
I'm typesetting a series of annotations to papers. Each chapter will be on a paper, so I'd like to put the paper authors right under the chapter names (the paper titles).
I can think of a hacky way of doing this, but I figured I'd ask the fine folks over at SO first for something more elegant / contribute to the knowledge base.
You can use the substr package in addition of titlesec (with explicit option) for create a semantic way of putting authors in titles.
Then, you can write your chapter on this way:
\chapter{About random things on Internet, and another
procrastination issues. Alice Marigold}
In this case the title and the author are separated for a ". " (You can use another separator if you use periods in one of your titles). Then you can modify the \chapter format with titlesec. With the explicit option you can access directly to the title content with #1. Then you can separate the title and the author with the commands \BeforeSubString and \BehindSubString of the substr package, respectively. They have two arguments: the separator token (in this case is ". ") and the string (the title. author).
For a simple example:
\titleformat{\chapter}[hang]{}{%
\Huge \thechapter.
}{1cm}{%
\LARGE \scshape \BeforeSubString{. }{#1}\\
{\Large \itshape ---\BehindSubString{. }{#1}---}%
}
The result is similar to this.
You can make very different forms of place titles and authors, including putting it on the left. This is a example I used in a LaTeX demonstration, with the calc package:
\titleformat{\chapter}[hang]{}{%
\Huge \thechapter.
}{1cm}{%
\LARGE \scshape \BeforeSubString{. }{#1}\\
\makebox[\textwidth - (1cm + \widthof{\Huge \thechapter.})][r]{\Large \itshape \BehindSubString{. }{#1}}%
}
About the table of contents, you can ignore it putting the title without the author in the \chapter optional argument, or modify it with titletoc.
And there are infinite possibilities of writing multi-information titles with these two packages...
PD: Sorry, but for some reason I can't put the CTAN links to the packages.
Why not use a package designed for things like conference proceedings, such as this one?
Grubbing around on CTAN a bit brought me to the bits package which appears to do exactly what you want. From the description:
A LaTeX package that provides a programmer's interface for a new idea called a “bit”, which is like an environment but has a title, author, and other attributes usually only associated with the document environment.
Be warned that the package claims to be "unsupported".
There is also combine:
The combine class lets you bundle individual documents into a single document, such as when preparing a conference proceedings. The auxiliary combinet package puts the titles and authors from \maketitle commands into the main document's Table of Contents. The package cooperates with the abstract and titling packages.
and there may be others, but as you say, it is not easy to search for.

Resources