Articles
affil 명령에서 authblk 패키지 자동 카운트 사용
On 2월 10, 2021 by admin현재 내 코딩은 제휴 링크 번호를 수동으로 삽입하는 것입니다.
\title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author[1]{Junli Liu} \author[2]{James Rowe} \author[3]{Keith Lindsey} \affil[1]{address one} \affil[2]{address two} \affil[3]{address three}
하지만 카운터 개념과 같이 제휴 링크 번호를 자동으로 입력하고 싶습니다. 제안 솔루션
예 :
\title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author[1]{Junli Liu} \author[2]{James Rowe} \author[3]{Keith Lindsey} \affil{address one} \affil{address two} \affil{address three}
댓글
- 귀하는 ' 제휴 목록 요청에서 자동 번호 매기기로 질문을 완전히 변경했습니다. 내 제안은 기존 답변을 완전히 무효화하므로 이렇게하지 않는 것입니다. 오히려 새로운 후속 질문 을하세요.
답변
\affil
에서 예상하는 논리가 무엇인지 잘 모르겠습니다.
시설.
첫 번째 양식
\author{Name1} \affil{Affiliation1} \author{Name2a} \author{Name2b} \affil{Affiliation 2}
(모든 작성자가 명령 (해당 작성자 그룹을 참조 함). 귀하의 경우입니다.
\documentclass[twocolumn]{article} \usepackage[noblocks]{authblk} \begin{document} \title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author{Junli Liu} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \author{James Rowe} \author{Keith Lindsey} \affil{Some other laboratory, Elsewhere} \maketitle \end{document}
제작
두 번째 양식
소속이 저자의 순서를 따르지 않으면 두 번째 양식으로 이동해야합니다. 여기서 선택적 인수가 필요합니다.
\author[1]{Name1a} \author[2]{Name2} \author[1]{Name1b} \affil[1]{Affiliation1} \affil[2]{Affiliation2}
귀하의 경우 Lindsey가 Liu와 동일한 제휴 관계를 가지고 있다면
\documentclass[twocolumn]{article} \usepackage[noblocks]{authblk} \begin{document} \title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author[1]{Junli Liu} \author[2]{James Rowe} \author[1]{Keith Lindsey} \affil[1]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \affil[2]{Some other laboratory, Elsewhere} \maketitle
그리고 당신을 입력해야합니다. ” d get
다른 방법
각 저자에 대한 소속이 있고 자동 번호 매기기를 원하면 명령 작동 방식을 변경하여 수행 할 수 있습니다.
\documentclass[twocolumn]{article} \usepackage[noblocks]{authblk} \usepackage{letltxmacro,xpatch} \newcounter{affiliations} \LetLtxMacro{\authblkauthor}{\author} \LetLtxMacro{\authblkaffil}{\affil} \renewcommand{\author}[1]{% \authblkauthor[\theauthors]{#1}% } \renewcommand{\affil}[1]{% \stepcounter{affiliations}% \authblkaffil[\theaffiliations]{#1}% } \begin{document} \title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author{Junli Liu} \author{James Rowe} \author{Keith Lindsey} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \affil{Some other laboratory, Elsewhere} \affil{Another laboratory, Somewhere Else} \maketitle \end{document}
하지만 첫 번째 양식을 사용하면 정확히 동일한 결과를 얻을 수 있습니다. 제 생각에는 더 명확한 입력이 있습니다.
\documentclass[twocolumn]{article} \usepackage[noblocks]{authblk} \begin{document} \title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author{Junli Liu} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \author{James Rowe} \affil{Some other laboratory, Elsewhere} \author{Keith Lindsey} \affil{Another laboratory, Somewhere Else} \maketitle \end{document}
또 다른 가능성 (여기서는 \author
옆에 선택적 인수가 필요함) :
\documentclass[twocolumn]{article} \usepackage[noblocks]{authblk} \usepackage{letltxmacro,xpatch} \newcounter{affiliations} \LetLtxMacro{\authblkaffil}{\affil} \renewcommand{\affil}[1]{% \stepcounter{affiliations}% \authblkaffil[\theaffiliations]{#1}% } \begin{document} \title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author[1]{Junli Liu} \author[2]{James Rowe} \author[3]{Keith Lindsey} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \affil{Some other laboratory, Elsewhere} \affil{Another laboratory, Somewhere Else} \maketitle \end{document}
댓글
- " \ affil [1] "
- " \ affil [1과 같은 선택적 인수를 제공하지 않습니다. ] " 저는 " \ affil {text here} " 만 제공합니다. affil이 하나만있는 경우 번호는 " 1 "가 표시되지 않습니다. " 주소 1 ". 둘 이상의 affil이 주어지면 번호는 " 1 주소 1, 2 주소 2 "와 같이 자동으로 계산됩니다 .. 일하고 싶습니다. 이 논리 자동 계산
- @SaravanakkhumarC 질문에 몇 가지 설명 (및 예제)을 추가하십시오.
- 설명을 편집하고 저장합니다. 해결책을 제안하십시오.
- @Vetri 코드를 추가했지만 해당 응용 프로그램의 경우 첫 번째 양식이 더 낫다고 생각합니다. 이런 방식으로 상대 작성자 다음에 소속이 즉시 입력되기 때문입니다.
답변
한 항목에 숫자가 포함되지 않도록하려면 \affil[ ]{<stuff>}
:
\documentclass[twocolumn]{article} \usepackage[noblocks]{authblk} \begin{document} \title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author[1]{Junli Liu} \author[2]{James Rowe} \author[2]{Keith Lindsey} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \affil[$\relax$]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \maketitle \end{document}
\affil
숫자가 없으면 서문에 다음을 추가 할 수 있습니다.
\usepackage[noblocks]{authblk} \let\oldaffil\affil% Store a copy of \affil in \oldaffil \renewcommand{\affil}{\oldaffil[ ]}% Update \affil to *always* use \affil[ ]
위의 수정은
기본값은 \affil[ ]
이므로 더 이상 선택적 인수를 전달할 필요가 없습니다.
\documentclass[twocolumn]{article} \usepackage[noblocks]{authblk} \let\oldaffil\affil \renewcommand{\affil}{\oldaffil[ ]} \begin{document} \title{Hormonal crosstalk for root development: a combined experimental and modeling perspective} \author[1]{Junli Liu} \author[2]{James Rowe} \author[2]{Keith Lindsey} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \maketitle \end{document}
댓글
-
$\null$
? 정말요?;-) - @egreg : '가없는 것이 논리적으로 합리적입니다. /
\null
제휴.\relax
에 대해 잘 알고있는 것이 좋습니다. - 아니요,
\relax
는 '이 명령은\if\relax#1\relax
를 수행하므로 작동하지 않습니다.\null
둘 다 작동하지 않습니다.\if
는\relax
와 . 더 간단 함 :\affil[ ]
. 물론 테스트는\ifx\hfuzz#1\hfuzz
이어야합니다 (인수에 예상되지 않은 모든 기본 요소도 좋습니다).
답글 남기기