Changing name reference of lstlisting code in LaTeXnewenvironment gives error with lstlistingLstlisting...
Is exact Kanji stroke length important?
Print name if parameter passed to function
Coordinate position not precise
How to prove that the query oracle is unitary?
quarter to five p.m
Was the picture area of a CRT a parallelogram (instead of a true rectangle)?
Modify casing of marked letters
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
Applicability of Single Responsibility Principle
Best way to store options for panels
The plural of 'stomach"
Cynical novel that describes an America ruled by the media, arms manufacturers, and ethnic figureheads
Do I need a multiple entry visa for a trip UK -> Sweden -> UK?
voltage of sounds of mp3files
Lay out the Carpet
Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?
What is the intuitive meaning of having a linear relationship between the logs of two variables?
Personal Teleportation as a Weapon
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?
Is it correct to write "is not focus on"?
How do I define a right arrow with bar in LaTeX?
The baby cries all morning
Minimal reference content
Efficiently merge handle parallel feature branches in SFDX
Changing name reference of lstlisting code in LaTeX
newenvironment gives error with lstlistingLstlisting format Java codeUseVerbatim equivalent for lstlistingEmphasize hex number in lstlisting using font colorUnderscore and asterisk color in lstlisting stringError to compile lstlistingStrange output of typeset C++ codeCustomize keyword lstlistinghow to use accents inside a lstlistinglstlisting and bold keywords
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 11 mins 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