Use showlabel package with newcommand loadnote











up vote
0
down vote

favorite












Inside my main.tex I inserted a function called loadnote which refers to an external file notepie.tex in which are considered the footnotes (with reference to this discussion) .



usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}


I have repeatedly the following error :



Latexmk: Summary of warnings from last run of (pdf)latex: Latex found
3 multiply defined reference(s)


and in the search discovered a convenient package usepackage{showlabels} that allows viewing the position of footnotes and references to equations.



I would like to understand if it was possible to implement the changes regarding the footed notes written with the command loadnote{}.



for example :



1.file notepie.tex:



documentclass[8pt]{article}

begin{document}
%<*notes004>
footnote{La mia footnotes è questa.}
%</notes004>

end{document}


2.in the main.tex file :



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


the loadnote is not a label, I would like to know if it is possible to implement something to make sure that the lateral reference to the note is highlighted



thanks very much :)



enter image description here










share|improve this question




















  • 1




    yes probably you just need SK@def loadnote something.... A small test document showing loadnote use would help answer the quesion
    – David Carlisle
    2 days ago










  • @DavidCarlisle if I enter SK@def , I have many errors and the file is not compiled
    – Antonio
    2 days ago










  • that's what I meant by "something". showlabels lets you use SK@def to hook into existing commands but the details depend on the command. you need SK@defloadnote#1{.....} where a small test file would help test what the .... has to be. (I see you added one thanks, I'll look in a bit)
    – David Carlisle
    2 days ago












  • @DavidCarlisle I do not understand how to insert SK@def, in the command newcommand{loadnote}[1]{% ExecuteMetaData[notepie.tex]{notes#1}% }, because if I insert, I get errors.
    – Antonio
    2 days ago















up vote
0
down vote

favorite












Inside my main.tex I inserted a function called loadnote which refers to an external file notepie.tex in which are considered the footnotes (with reference to this discussion) .



usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}


I have repeatedly the following error :



Latexmk: Summary of warnings from last run of (pdf)latex: Latex found
3 multiply defined reference(s)


and in the search discovered a convenient package usepackage{showlabels} that allows viewing the position of footnotes and references to equations.



I would like to understand if it was possible to implement the changes regarding the footed notes written with the command loadnote{}.



for example :



1.file notepie.tex:



documentclass[8pt]{article}

begin{document}
%<*notes004>
footnote{La mia footnotes è questa.}
%</notes004>

end{document}


2.in the main.tex file :



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


the loadnote is not a label, I would like to know if it is possible to implement something to make sure that the lateral reference to the note is highlighted



thanks very much :)



enter image description here










share|improve this question




















  • 1




    yes probably you just need SK@def loadnote something.... A small test document showing loadnote use would help answer the quesion
    – David Carlisle
    2 days ago










  • @DavidCarlisle if I enter SK@def , I have many errors and the file is not compiled
    – Antonio
    2 days ago










  • that's what I meant by "something". showlabels lets you use SK@def to hook into existing commands but the details depend on the command. you need SK@defloadnote#1{.....} where a small test file would help test what the .... has to be. (I see you added one thanks, I'll look in a bit)
    – David Carlisle
    2 days ago












  • @DavidCarlisle I do not understand how to insert SK@def, in the command newcommand{loadnote}[1]{% ExecuteMetaData[notepie.tex]{notes#1}% }, because if I insert, I get errors.
    – Antonio
    2 days ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Inside my main.tex I inserted a function called loadnote which refers to an external file notepie.tex in which are considered the footnotes (with reference to this discussion) .



usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}


I have repeatedly the following error :



Latexmk: Summary of warnings from last run of (pdf)latex: Latex found
3 multiply defined reference(s)


and in the search discovered a convenient package usepackage{showlabels} that allows viewing the position of footnotes and references to equations.



I would like to understand if it was possible to implement the changes regarding the footed notes written with the command loadnote{}.



for example :



1.file notepie.tex:



documentclass[8pt]{article}

begin{document}
%<*notes004>
footnote{La mia footnotes è questa.}
%</notes004>

end{document}


2.in the main.tex file :



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


the loadnote is not a label, I would like to know if it is possible to implement something to make sure that the lateral reference to the note is highlighted



thanks very much :)



enter image description here










share|improve this question















Inside my main.tex I inserted a function called loadnote which refers to an external file notepie.tex in which are considered the footnotes (with reference to this discussion) .



usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}


I have repeatedly the following error :



Latexmk: Summary of warnings from last run of (pdf)latex: Latex found
3 multiply defined reference(s)


and in the search discovered a convenient package usepackage{showlabels} that allows viewing the position of footnotes and references to equations.



I would like to understand if it was possible to implement the changes regarding the footed notes written with the command loadnote{}.



for example :



1.file notepie.tex:



documentclass[8pt]{article}

begin{document}
%<*notes004>
footnote{La mia footnotes è questa.}
%</notes004>

end{document}


2.in the main.tex file :



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


the loadnote is not a label, I would like to know if it is possible to implement something to make sure that the lateral reference to the note is highlighted



thanks very much :)



enter image description here







footnotes labels showlabels






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









David Carlisle

476k3811061840




476k3811061840










asked 2 days ago









Antonio

11710




11710








  • 1




    yes probably you just need SK@def loadnote something.... A small test document showing loadnote use would help answer the quesion
    – David Carlisle
    2 days ago










  • @DavidCarlisle if I enter SK@def , I have many errors and the file is not compiled
    – Antonio
    2 days ago










  • that's what I meant by "something". showlabels lets you use SK@def to hook into existing commands but the details depend on the command. you need SK@defloadnote#1{.....} where a small test file would help test what the .... has to be. (I see you added one thanks, I'll look in a bit)
    – David Carlisle
    2 days ago












  • @DavidCarlisle I do not understand how to insert SK@def, in the command newcommand{loadnote}[1]{% ExecuteMetaData[notepie.tex]{notes#1}% }, because if I insert, I get errors.
    – Antonio
    2 days ago














  • 1




    yes probably you just need SK@def loadnote something.... A small test document showing loadnote use would help answer the quesion
    – David Carlisle
    2 days ago










  • @DavidCarlisle if I enter SK@def , I have many errors and the file is not compiled
    – Antonio
    2 days ago










  • that's what I meant by "something". showlabels lets you use SK@def to hook into existing commands but the details depend on the command. you need SK@defloadnote#1{.....} where a small test file would help test what the .... has to be. (I see you added one thanks, I'll look in a bit)
    – David Carlisle
    2 days ago












  • @DavidCarlisle I do not understand how to insert SK@def, in the command newcommand{loadnote}[1]{% ExecuteMetaData[notepie.tex]{notes#1}% }, because if I insert, I get errors.
    – Antonio
    2 days ago








1




1




yes probably you just need SK@def loadnote something.... A small test document showing loadnote use would help answer the quesion
– David Carlisle
2 days ago




yes probably you just need SK@def loadnote something.... A small test document showing loadnote use would help answer the quesion
– David Carlisle
2 days ago












@DavidCarlisle if I enter SK@def , I have many errors and the file is not compiled
– Antonio
2 days ago




@DavidCarlisle if I enter SK@def , I have many errors and the file is not compiled
– Antonio
2 days ago












that's what I meant by "something". showlabels lets you use SK@def to hook into existing commands but the details depend on the command. you need SK@defloadnote#1{.....} where a small test file would help test what the .... has to be. (I see you added one thanks, I'll look in a bit)
– David Carlisle
2 days ago






that's what I meant by "something". showlabels lets you use SK@def to hook into existing commands but the details depend on the command. you need SK@defloadnote#1{.....} where a small test file would help test what the .... has to be. (I see you added one thanks, I'll look in a bit)
– David Carlisle
2 days ago














@DavidCarlisle I do not understand how to insert SK@def, in the command newcommand{loadnote}[1]{% ExecuteMetaData[notepie.tex]{notes#1}% }, because if I insert, I get errors.
– Antonio
2 days ago




@DavidCarlisle I do not understand how to insert SK@def, in the command newcommand{loadnote}[1]{% ExecuteMetaData[notepie.tex]{notes#1}% }, because if I insert, I get errors.
– Antonio
2 days ago










2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










enter image description here



This just hooks the ref showkeys styling on to loadnote



documentclass{article}
usepackage{showkeys}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}
makeatletter
SK@defloadnote#1{SK@SK@@ref{#1}SK@loadnote{#1}}%
makeatother

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}





share|improve this answer





















  • the solution is excellent and very useful when mentioning the quations of which I often forget the position. I will have to read about this package. I am too new to latex and I often encounter difficulties in apparently trivial aspects
    – Antonio
    2 days ago


















up vote
1
down vote













Another possibility is to use the showlabels command of the showlabels package (which is a distinct package from showkeys):



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
X#1X% ExecuteMetaData[notepie.tex]{notes#1}%
}

usepackage{showlabels}
showlabels{loadnote} % handle loadnote like label

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


Example output below.



Example output






share|improve this answer





















  • Thanks. never stop learning. also your solution is very interesting and I find it very tidy.
    – Antonio
    17 hours ago











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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460265%2fuse-showlabel-package-with-newcommand-loadnote%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










enter image description here



This just hooks the ref showkeys styling on to loadnote



documentclass{article}
usepackage{showkeys}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}
makeatletter
SK@defloadnote#1{SK@SK@@ref{#1}SK@loadnote{#1}}%
makeatother

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}





share|improve this answer





















  • the solution is excellent and very useful when mentioning the quations of which I often forget the position. I will have to read about this package. I am too new to latex and I often encounter difficulties in apparently trivial aspects
    – Antonio
    2 days ago















up vote
2
down vote



accepted










enter image description here



This just hooks the ref showkeys styling on to loadnote



documentclass{article}
usepackage{showkeys}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}
makeatletter
SK@defloadnote#1{SK@SK@@ref{#1}SK@loadnote{#1}}%
makeatother

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}





share|improve this answer





















  • the solution is excellent and very useful when mentioning the quations of which I often forget the position. I will have to read about this package. I am too new to latex and I often encounter difficulties in apparently trivial aspects
    – Antonio
    2 days ago













up vote
2
down vote



accepted







up vote
2
down vote



accepted






enter image description here



This just hooks the ref showkeys styling on to loadnote



documentclass{article}
usepackage{showkeys}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}
makeatletter
SK@defloadnote#1{SK@SK@@ref{#1}SK@loadnote{#1}}%
makeatother

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}





share|improve this answer












enter image description here



This just hooks the ref showkeys styling on to loadnote



documentclass{article}
usepackage{showkeys}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
ExecuteMetaData[notepie.tex]{notes#1}%
}
makeatletter
SK@defloadnote#1{SK@SK@@ref{#1}SK@loadnote{#1}}%
makeatother

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









David Carlisle

476k3811061840




476k3811061840












  • the solution is excellent and very useful when mentioning the quations of which I often forget the position. I will have to read about this package. I am too new to latex and I often encounter difficulties in apparently trivial aspects
    – Antonio
    2 days ago


















  • the solution is excellent and very useful when mentioning the quations of which I often forget the position. I will have to read about this package. I am too new to latex and I often encounter difficulties in apparently trivial aspects
    – Antonio
    2 days ago
















the solution is excellent and very useful when mentioning the quations of which I often forget the position. I will have to read about this package. I am too new to latex and I often encounter difficulties in apparently trivial aspects
– Antonio
2 days ago




the solution is excellent and very useful when mentioning the quations of which I often forget the position. I will have to read about this package. I am too new to latex and I often encounter difficulties in apparently trivial aspects
– Antonio
2 days ago










up vote
1
down vote













Another possibility is to use the showlabels command of the showlabels package (which is a distinct package from showkeys):



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
X#1X% ExecuteMetaData[notepie.tex]{notes#1}%
}

usepackage{showlabels}
showlabels{loadnote} % handle loadnote like label

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


Example output below.



Example output






share|improve this answer





















  • Thanks. never stop learning. also your solution is very interesting and I find it very tidy.
    – Antonio
    17 hours ago















up vote
1
down vote













Another possibility is to use the showlabels command of the showlabels package (which is a distinct package from showkeys):



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
X#1X% ExecuteMetaData[notepie.tex]{notes#1}%
}

usepackage{showlabels}
showlabels{loadnote} % handle loadnote like label

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


Example output below.



Example output






share|improve this answer





















  • Thanks. never stop learning. also your solution is very interesting and I find it very tidy.
    – Antonio
    17 hours ago













up vote
1
down vote










up vote
1
down vote









Another possibility is to use the showlabels command of the showlabels package (which is a distinct package from showkeys):



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
X#1X% ExecuteMetaData[notepie.tex]{notes#1}%
}

usepackage{showlabels}
showlabels{loadnote} % handle loadnote like label

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


Example output below.



Example output






share|improve this answer












Another possibility is to use the showlabels command of the showlabels package (which is a distinct package from showkeys):



documentclass{article}

usepackage{catchfilebetweentags}
newcommand{loadnote}[1]{%
X#1X% ExecuteMetaData[notepie.tex]{notes#1}%
}

usepackage{showlabels}
showlabels{loadnote} % handle loadnote like label

begin{document}

Se ho necessità di riferirmi ad una notaloadnote{004},mentre la mia
equazione : $tau = mu,dot{theta}{t}$label{eq080}
end{document}


Example output below.



Example output







share|improve this answer












share|improve this answer



share|improve this answer










answered 18 hours ago









Norman Gray

5,51111929




5,51111929












  • Thanks. never stop learning. also your solution is very interesting and I find it very tidy.
    – Antonio
    17 hours ago


















  • Thanks. never stop learning. also your solution is very interesting and I find it very tidy.
    – Antonio
    17 hours ago
















Thanks. never stop learning. also your solution is very interesting and I find it very tidy.
– Antonio
17 hours ago




Thanks. never stop learning. also your solution is very interesting and I find it very tidy.
– Antonio
17 hours ago


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460265%2fuse-showlabel-package-with-newcommand-loadnote%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt