Apologies for posting in English.
I'm trying implement in footnote referring only to the line number and if the line number is the same as previous footnote, it's ignored. I save the line number in a counter using \setcounterref from refcount, and compare the counter with line number of the current footnote.
A minimal working example is as follows. If I use \mynoteref seems work as expected, but \rensuji{\mynoteref{foo}} does not.
Many thanks in advance.
\documentclass{utarticle}
\usepackage{lineno}
\usepackage[para*]{manyfoot}
\usepackage{refcount}
\DeclareNewFootnote[para]{A}[alph]
\newcounter{mynotecounter}
\newcounter{mynoterefctr}
\setcounter{mynoterefctr}{0}
\newcommand{\mynote}[2][]{%
\stepcounter{mynotecounter}%
\def\temp{#1}%
\ifx\temp\empty%
\FootnotetextA{}{#2}%
\else%
\FootnotetextA{}{{\linenumberfont\rensuji{#1}} #2}
% \FootnotetextA{}{#1 #2} % This works!
\fi%
}
\newcommand{\mynoteref}[1]{%
\ifnum \getrefnumber{#1}=\value{mynoterefctr}%
\else%
\setcounterref{mynoterefctr}{#1}%
\ref{#1}%
\fi}
\begin{document}
\linenumbers
Lorem ipsum dolor\linelabel{n1}\mynote[\mynoteref{n1}]{note 1} sit amet, consectetur adipiscing elit\linelabel{n2}\mynote[\mynoteref{n2}]{note 2}. Etiam a urna lacinia\linelabel{n20}\mynote[\mynoteref{n20}]{note 20}, eleifend nulla vel, ullamcorper lectus. Ut gravida odio erat, sed facilisis arcu aliquet sit amet. Mauris venenatis, orci eu pulvinar aliquet, nibh lacus faucibus massa, vel iaculis arcu eros eget lectus. Aenean sed vestibulum orci, et euismod ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in vulputate ligula. Phasellus euismod purus id dictum lobortis. \linelabel{n3}\mynote[\mynoteref{n3}]{note 3}
\end{document}