2종의 끝 각주에 대한 상호 참조(구분되고 다른 색상의 숫자)

2종의 끝 각주에 대한 상호 참조(구분되고 다른 색상의 숫자)

처음에는 두 가지로 구분된 끝 각주를 구별하기 위해 Parnote와 Endnote를 사용했습니다.


\documentclass{article}

\usepackage{changepage} % \begin{adjustwidth}{...cm}{...cm}

\usepackage[colorlinks=true,linkcolor=red]{hyperref} % colors endnotes red --- for hyperlinks --- hyperref permits use of color{blue}{...}
\usepackage{endnotes} % \endnote{...}
\input{hyperendnotes.sty} % LOADS (needs \usepackage{hyperref}) hyperendnotes.sty; which can be downloaded at
% https://github.com/bibliogum/latexamu/blob/master/hyperendnotes.sty

\def\enoteheading{} % endnotes without standard heading

\usepackage[breakwithin, roman]{parnotes} % parnotes

\makeatletter % needed for \renewcommand{...} and \patchcmd{...}
\renewcommand{\parnotemarkfmt}[1]{{{\color{blue}\PN@mark@set{#1}\hspace{0.5mm}}}} % color parnotes blue --- tweaks spacing --- adjusts size of parnotes to look like hyperendnotes (part 1)
\usepackage{etoolbox} % \patchcmd{...}
\patchcmd{\PN@parnote@real}
  {\parnotemarkfmt{PN@t}}
  {\textsuperscript{\hspace{1.23mm}\parnotemarkfmt{PN@t}\hspace{-0.67mm}}}
  {}{} % <<< adjusts size of parnotes to look like hyperendnotes (part 2) --- thanks a lot for this part @egreg; at
% https://tex.stackexchange.com/questions/219000/a-question-about-using-a-renewcommand-to-adapt-a-package/219007#219007
\makeatother % needed for \renewcommand{...} and \patchcmd{...}

\begin{document}

\noindent Some text \parnote{A parnote} \parnote{Another parnote} \endnote{An endnote} \parnote{Another parnote} \endnote{Another endnote} \endnote{Another endnote} \endnote{Another endnote} \parnote{Another parnote} \parnote{Another parnote} \parnote{Another parnote} \parnote{Another parnote} \endnote{Another endnote} \parnote{Another parnote} \endnote{Another endnote} \endnote{Another endnote} \endnote{Another endnote} \endnote{Another endnote} \endnote{Another endnote} \parnote{Another parnote} \endnote{Another endnote} \parnote{Another parnote} \parnote{Another parnote} \par
\noindent \textbf{Parnotes}
\parnotes
\textbf{Endnotes} \par
\begin{adjustwidth}{2.49mm}{0cm}
\theendnotes
\end{adjustwidth}

\end{document}

그래서 그들은~이었다분리되고 "라벨"이 잘 붙습니다(두 가지 "종류"의 미주가 얽혀 있는 경우에도 마찬가지입니다).

하지만 그건하지 않았다Parnotes에서 상호 참조(클릭 가능한 링크)를 얻으세요...

로드하면 hyperendnotes.sty클릭 가능한 상호 참조 "링크"가 '에 삽입되지만 ' \endnote{...}에는 삽입되지 않습니다 .\parnote{...}


따라서 @cfr 사용자는 enotez-package를 암시했습니다. 더 이상 \usepackage{enotez}추가 항목을 로드할 필요가 없기 때문에 적어도 더 쉽다는 것을 알았습니다 .hyperendnotes.sty

두 번째 시도에서는 미주만 사용했습니다(클릭 가능한 하이퍼링크를 얻을 수 없었기 때문에 미주를 생략했습니다.


두 번째 시도에서는 미주만 사용했습니다(클릭 가능한 하이퍼링크를 얻을 수 없었기 때문에 미주를 생략했습니다.

  • 주의: 이 두 번째 시험 코드 "회색 상자"는 두 번 컴파일해야 합니다. (-패키지로 인해 enotez).

\documentclass{article}

\usepackage{enotez}
\DeclareInstance{enotez-list}{section}{paragraph}{heading={}}
\setenotez{backref=true, list-style=section, reset, split-title=\noindent}

\usepackage{hyperref}
\hypersetup{colorlinks=true}
\usepackage{biblatex}

\begin{document}

\hypersetup{linkcolor=red}

Som text here \endnote{Endnote}. \par
Some more text \endnote{Endnote} before the first call of \colorbox{gray!20}{\textbackslash printendnotes}. 

\vspace{1em} \textbf{A first person's endnotes} \printendnotes \vspace{1em}

\setenotez{counter-format={roman}} \hypersetup{linkcolor=blue}

See? I can get clickable endnotes in two different colours, which is what I wanted. \endnote{Endnote}. \par {\large{But the problem is that ALL of the endnotes (of a certain colour) have to be grouped together and originate before the first \colorbox{gray!20}{\textbackslash printendnotes} and before ALL of the other endnotes (of another colour): there is no freedom to use the endnotes "interwoven", unfortunately.}} \endnote{Endnote}.


\vspace{1em} \textbf{A second person's endnotes} \printendnotes \vspace{2em}

\setenotez{counter-format={arabic}} \hypersetup{linkcolor=red}

You can get both footnote sections to truly follow each-other at the end of the document \endnote{Endnote} (which is what i wanted), by using a lot of \colorbox{gray!20}{\textbackslash vspace}'s (see the .tex-code below this line). But having to constantly adjust the \colorbox{gray!20}{\textbackslash vspace}'s doesn't seem very elegant at all. \endnote{Endnote}

\vspace{8.2em}% extra \vspace{...} to group the endnote sections together at the end of the .pdf

\vspace{1em} \textbf{A first person's endnotes} \printendnotes \vspace{1em}

\setenotez{counter-format={roman}} \hypersetup{linkcolor=blue}

\vspace{-15em}% extra \vspace{...} to group the endnote sections together at the end of the .pdf

See?\endnote{Endnote} Now the the sections are really together \endnote{Endnote} at the very end of the document. \par However: the {\large{origins of the two different types of endnotes still have to be grouped together, and cannot get interwoven, unfortunately.}}

\vspace{8em}% extra \vspace{...} to group the endnote sections together at the end of the .pdf

\vspace{1em} \textbf{A second person's endnotes} \printendnotes \vspace{1em}

\end{document}

이제 저기에는~이다모든 미주에 상호 참조(클릭 가능한 링크)가 있습니다!

하지만 다양한 종류의 미주더 이상은 될 수 없다짜여진.

이런 식으로(파노트 없이) 미주의 다양한 "유형"에 올바르게 코드 레이블을 지정할 수 있는 방법은 없습니다. "결합"된 경우 두 "유형"은 번호가 매겨지지 않고 문서 하단에 별도로 배치됩니다.


간단히 말해서. 다음 중 하나가 내 문제를 해결할 수 있습니다.

어느 하나:

  • parnotes에 대한 상호 참조를 얻는 중입니다.

또는 (상호 참조 가능한 미주로 작업할 때):

  • "미주 유형"(별도의 번호 매기기, 색상 및 숫자 사용)이라는 라벨을 지정하고 별도로 인쇄하도록 합니다.

솔루션이 제공될 수 있는지 궁금하기 시작했습니다.~ 아니다표준 각주, 미주 또는 각주를 전혀 사용하지 않습니까? 그러나 두 가지 유형의 "메모"를 구별하기 위해 다른 코드 레이블을 사용하고 위 첨자, 번호 매기기, 색상 지정("가짜" 미주에 대해)을 추가합니다. 그럼 따로 인쇄한 걸까요? 아마도 (최후의 수단으로) biblatex?

내 생각에 이 "가짜" 또는 "자율적으로 각주 정의"는 독일 QA 사이트 texwelt에서 수행된 것 같습니다.여기또는여기. 아래에 영어(약간 조정된) 버전을 게시하겠습니다.

\documentclass{article} 
\usepackage{xcolor}

%%%%%%%%%%%

\newcommand\newnotestype[2]{%
\newcounter{#1note}%
\expandafter\newwrite\csname the#1notes\endcsname
\expandafter\immediate\expandafter\openout\csname
the#1notes\endcsname=\jobname.#1\relax %
\expandafter\newcommand\csname  #1note\endcsname[1]{%
\stepcounter{#1note}%
{%
\tiny\textsuperscript\expandafter\textcolor{#2}{{%
\raisebox{1ex}{\hbox{\kern-0.0em\csname
the#1note\endcsname\kern-0.0em}}}}%
\expandafter\immediate\expandafter\write\csname the#1notes\endcsname%
{\csname the#1note\endcsname\ \unexpanded{##1 \par}}%
}}%

\expandafter\newcommand\csname display#1notes\endcsname[1]{%
\vspace{1\baselineskip}%
\expandafter\immediate\expandafter\closeout%
\csname the#1notes\endcsname%
\par\tiny\expandafter\textcolor{#2}{\textbf{##1}}\par%
\input\jobname.#1%
}}%

%%%%%%%%%%%

\newnotestype{first}{red}
\newnotestype{second}{blue}

%%%%%%%%%%%

\begin{document}

This is the test-text \firstnote{Endnote} \secondnote{Endnote} , some more \firstnote{Endnote} test-text, some more  \secondnote{Endnote} test-text \secondnote{Endnote}. 

%%%%%%%%%%%

\displayfirstnotes{A first person's endnotes}
\displaysecondnotes{A second person's endnotes}

\end{document}

이제 다양한 종류의 미주될 수 있다쉽게 라벨이 붙고 다시 엮여 있습니다.

그런데 또 있다더 이상은 없어상호 참조(클릭 가능한 링크)어느미주 중.

각주가 실제 "각주"가 아니기 때문에 간단한 기능은 \usepackage{hyperref}더 이상 작동하지 않습니다. 각주처럼 보이도록 "가짜"입니다.

그렇다면 이러한 "객체"에 대한 상호 참조(클릭 가능한 링크)를 얻을 수 있는 우아한 솔루션을 아는 사람이 있습니까?

다른 질문:

  • 이 마지막(세 번째) 시도 역시 미주 헤더에 색상을 지정했지만~ 아니다미주 번호(적어도 미주가 인쇄되는 위치는 아님). 누구든지 그곳의 미주 번호 매기기에 색상을 추가할 수 있다면 환영할 것입니다.
  • 또한: 이쪽, 저기더이상아라비아 숫자에서 로마자로 전환하는 쉬운 방법인 것 같습니다(일반적으로, 특히 한 "유형"의 미주의 경우).

많은 감사를 드립니다.

관련 정보