Changing name reference of lstlisting code in LaTeX
What is the opposite of 'gravitas'?
Are there any thematic similarities between Shostakovichs' Symphony 5th and Beethovens' 7th symphony?
Modify casing of marked letters
What is the oldest known work of fiction?
Is it okay / does it make sense for another player to join a running game of Munchkin?
Can I convert a rim brake wheel to a disc brake wheel?
Finding all intervals that match predicate in vector
Teaching indefinite integrals that require special-casing
Opposite of a diet
Valid Badminton Score?
How to avoid InDesign adding pages automatically?
How can I replace every global instance of "x[2]" with "x_2"
Why "be dealt cards" rather than "be dealing cards"?
Why are all the doors on Ferenginar (the Ferengi home world) far shorter than the average Ferengi?
Is there any reason not to eat food that's been dropped on the surface of the moon?
Why is delta-v is the most useful quantity for planning space travel?
Will it be accepted, if there is no ''Main Character" stereotype?
Hide Select Output from T-SQL
Should my PhD thesis be submitted under my legal name?
How can I use the arrow sign in my bash prompt?
Is there a good way to store credentials outside of a password manager?
If a character can use a +X magic weapon as a spellcasting focus, does it add the bonus to spell attacks or spell save DCs?
Curses work by shouting - How to avoid collateral damage?
Cynical novel that describes an America ruled by the media, arms manufacturers, and ethnic figureheads
Changing name reference of lstlisting code in LaTeX
At my LaTeX document I use ref{MyCodeName.java} to reference a code as the image below. When I click on the blue link 5.1.1 it takes me to the code page.

So, it's possible to change this 5.1.1 referenced blue link to MyCodeName.java ?
There's is my LaTeX code using lstlisting and setting a label name:
begin{lstlisting}[title = {MyCodeName.java}, label={MyCodeName.java}]
public class DatabaseAddresses {
private static final String SERVER_IP = " ";
private static final String DATABASE_NAME_FOLDER = " ";
public static final String URL = SERVER_IP + DATABASE_NAME_FOLDER;
}
end{lstlisting}
lstlisting
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
At my LaTeX document I use ref{MyCodeName.java} to reference a code as the image below. When I click on the blue link 5.1.1 it takes me to the code page.

So, it's possible to change this 5.1.1 referenced blue link to MyCodeName.java ?
There's is my LaTeX code using lstlisting and setting a label name:
begin{lstlisting}[title = {MyCodeName.java}, label={MyCodeName.java}]
public class DatabaseAddresses {
private static final String SERVER_IP = " ";
private static final String DATABASE_NAME_FOLDER = " ";
public static final String URL = SERVER_IP + DATABASE_NAME_FOLDER;
}
end{lstlisting}
lstlisting
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
At my LaTeX document I use ref{MyCodeName.java} to reference a code as the image below. When I click on the blue link 5.1.1 it takes me to the code page.

So, it's possible to change this 5.1.1 referenced blue link to MyCodeName.java ?
There's is my LaTeX code using lstlisting and setting a label name:
begin{lstlisting}[title = {MyCodeName.java}, label={MyCodeName.java}]
public class DatabaseAddresses {
private static final String SERVER_IP = " ";
private static final String DATABASE_NAME_FOLDER = " ";
public static final String URL = SERVER_IP + DATABASE_NAME_FOLDER;
}
end{lstlisting}
lstlisting
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
At my LaTeX document I use ref{MyCodeName.java} to reference a code as the image below. When I click on the blue link 5.1.1 it takes me to the code page.

So, it's possible to change this 5.1.1 referenced blue link to MyCodeName.java ?
There's is my LaTeX code using lstlisting and setting a label name:
begin{lstlisting}[title = {MyCodeName.java}, label={MyCodeName.java}]
public class DatabaseAddresses {
private static final String SERVER_IP = " ";
private static final String DATABASE_NAME_FOLDER = " ";
public static final String URL = SERVER_IP + DATABASE_NAME_FOLDER;
}
end{lstlisting}
lstlisting
lstlisting
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 min ago
cellocamaracellocamara
1
1
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
cellocamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
cellocamara is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481597%2fchanging-name-reference-of-lstlisting-code-in-latex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
cellocamara is a new contributor. Be nice, and check out our Code of Conduct.
cellocamara is a new contributor. Be nice, and check out our Code of Conduct.
cellocamara is a new contributor. Be nice, and check out our Code of Conduct.
cellocamara is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481597%2fchanging-name-reference-of-lstlisting-code-in-latex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown