Autblk-paketin automaattisen laskennan käyttö affil-komennossa
On helmikuu 10, 2021 by adminNykyinen koodaukseni on liittolinkin numero manuaalisesti.
\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}
Mutta haluan, että yhteyslinkin numero syötetään automaattisesti kuten laskuri concept.suggest ratkaisu
Esimerkki:
\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}
kommentit
- Sinä ' olet täysin muuttanut kysymystä, ei liittymäluettelon pyytämisestä automaattiseen numerointiin. Ehdotan, että älä tee tätä, koska se tekee olemassa olevat vastaukset täysin pätemättömiksi. Pikemminkin esitä uusi jatkokysymys .
Vastaa
En ole varma, mitä logiikkaa odotat \affil
-tilassa.
-palvelut.
Ensimmäinen lomake
\author{Name1} \affil{Affiliation1} \author{Name2a} \author{Name2b} \affil{Affiliation 2}
(mikä tahansa määrä tekijöitä voi edeltää \affil
-komento, joka viittaa kyseiseen tekijäryhmään). Sinun tapauksesi:
\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}
tuottaa
Toinen muoto
Jos jäsenyydet eivät noudata kirjoittajien järjestystä, on siirryttävä toiseen muotoon, jossa valinnainen argumentti on tarpeen:
\author[1]{Name1a} \author[2]{Name2} \author[1]{Name1b} \affil[1]{Affiliation1} \affil[2]{Affiliation2}
Joten jos sinun tapauksessasi Lindsey on samanlainen kuin Liu, kirjoita
\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
ja sinä ” d get
Vaihtoehtoinen tapa
Jos sinulla on yhteys kullekin kirjailijalle ja haluat automaattisen numeroinnin, voit tehdä sen muuttamalla komentojen toimintaa.
\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}
Saat kuitenkin täsmälleen saman tuloksen käyttämällä ensimmäistä lomaketta, joka on mielestäni selkeämpi syöttö.
\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}
Toinen mahdollisuus (tässä tarvitaan valinnainen argumentti \author
-kohdan viereen):
\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}
Kommentit
- En anna mitään valinnaisia argumentteja, kuten " \ affil [1] "
- En anna mitään valinnaisia argumentteja, kuten " \ affil [1 ] " Annan vain " \ affil {teksti täällä} ". Jos siellä on vain yksi jäsen, numero on " 1 " ei näytetä " osoite yksi ". Useammalle kuin yhdelle kumppanille annetaan numero, joka lasketaan automaattisesti, kuten " 1 osoite yksi, 2 osoite kaksi " .. Haluaisin työskennellä tämä logiikan automaattinen laskenta
- @SaravanakkhumarC Lisää kysymykseesi joitain selvennyksiä (ja esimerkkejä).
- muokkaan ja tallennan selvennystäni. Ehdota ratkaisuasi.
- @Vetri Lisäsin koodin, mutta mielestäni ensimmäinen muoto on mielestäni parempi, koska tällä tavoin yhteys liitetään välittömästi suhteellisen kirjoittajan perään.
vastaus
Jos haluat, että yhdellä merkinnällä ei ole numeroa, voit käyttää \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}
Jos haluat kaikki \affil
numeroiden mitätöimiseksi voit lisätä johdanto-osaan seuraavat:
\usepackage[noblocks]{authblk} \let\oldaffil\affil% Store a copy of \affil in \oldaffil \renewcommand{\affil}{\oldaffil[ ]}% Update \affil to *always* use \affil[ ]
Yllä oleva muutos tekee \affil
oletuksena \affil[ ]
, joten sinun ei tarvitse enää antaa valinnaista argumenttia.
\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}
Kommentit
-
$\null$
? Todella? 😉 - @egreg: On ' s järkevää olla /
\null
kuuluminen.\relax
muokkaaminen siitä on yhtä hyvä. - Ei,
\relax
wouldn ' t toimivat, koska komento tekee\if\relax#1\relax
. Kumpikaan\null
ei toimi, koska\if
vertaisi\relax
ja\hbox
. Yksinkertaisempi:\affil[ ]
. Testin tulee olla tietysti\ifx\hfuzz#1\hfuzz
(myös kaikki primitiivit, joita argumentissa ei odoteta, ovat hyviä).
Vastaa