5 如何得到图中作者的排版效果?

发布于 2024-07-22 14:13:22

想实现图1和图2的排版效果.其中甲乙是共一,丙是通讯。机构的排版用的是authblk宏包,但是和footnotemark[]命令冲突,想到的一种办法是用$^\dagger$。想问问有无其他方法。谢谢!
image.png
image.png
其中图2是脚注.
这是MWE
MWE.zip

查看更多

关注者
0
被浏览
593
1 个回答
Sagittarius Rover
Sagittarius Rover 2024-07-22
我要成为Typst糕手/(ㄒoㄒ)/~~

https://tex.stackexchange.com/questions/289539/how-does-thanks-work-in-latex-article-class


@u73169 上面的链接确实有点儿用,但不够多....

20250209更新

可以尝试下面的例子,虽然和你的还有点区别...要交换#1变为1#需要修改authblk的命令...(TBC,我再努力试试)

\documentclass{ctexart}
\usepackage{authblk}
\makeatletter
\def\@fnsymbol#1{%
  \ensuremath{%
    \ifcase#1\or {\#}\or *\or \dagger\or \ddagger\or
    \mathsection\or \mathparagraph\or \|\or {\#\#}\or **\or
    \dagger\dagger\or \ddagger\ddagger\else\@ctrerr\fi%
  }%
}%重新定义内部控制序列 \@fnsymbol 的次序
\makeatother
\newcommand\CoAuthorMark{\footnotemark[\arabic{footnote}]} 
\title{这是一个示例文档}
\author[1]{张三\thanks{共同一作}}
\author[2]{李四\protect\CoAuthorMark}
\author[3]{王五\thanks{这是本文的二作}}
\affil[1]{北京大学}
\affil[2]{清华大学}
\affil[3]{家里蹲大学}

\begin{document}

\maketitle

\section{引言}
这是一个使用 \texttt{authblk} 宏包的示例文档\footnote{这是正常的正文注释}。作者和机构信息已经按照要求格式化\footnote{这是正常的正文注释}。

\end{document}

BTW,lampart序列以*\dagger开始而不用#也许是因为#1TeX中表示第一个参数,建议还是遵循默认用lampart序列不要修改为好。


20250216更新

\documentclass{ctexart}
\usepackage{authblk}

\makeatletter
\def\@fnsymbol#1{%
  \ensuremath{%
    \ifcase#1\or {\#}\or *\or \dagger\or \ddagger\or
    \mathsection\or \mathparagraph\or \|\or {\#\#}\or **\or
    \dagger\dagger\or \ddagger\ddagger\else\@ctrerr\fi%
  }%
}
\RenewDocumentCommand{\author}{O{}mo}{% trailing optional argument is for thanks
      \ifnewaffil\addtocounter{affil}{1}%
       \edef\AB@thenote{\arabic{affil}}\fi
      \if\relax#1\relax\def\AB@note{\AB@thenote}\else\def\AB@note{#1}%
        \setcounter{Maxaffil}{0}\fi
      \ifnum\value{authors}>1\relax
      \@namedef{@sep\number\c@authors}{\Authsep}\fi
      \addtocounter{authors}{1}%
      \begingroup
          \let\protect\@unexpandable@protect \let\and\AB@pand
          \def\thanks{\protect\thanks}\def\footnote{\protect\footnote}%
         \@temptokena=\expandafter{\AB@authors}%
         {\def\\{\protect\\[\@affilsep]\protect\Affilfont
              \protect\AB@resetsep}%
              \xdef\AB@author{\AB@blk@and#2}%
       \ifnewaffil\gdef\AB@las{}\gdef\AB@lasx{\protect\Authand}\gdef\AB@as{}%
           \xdef\AB@authors{\the\@temptokena\AB@blk@and}%
       \else
          \xdef\AB@authors{\the\@temptokena\AB@as\AB@au@str}%
          \global\let\AB@las\AB@lasx\gdef\AB@lasx{\protect\Authands}%
          \gdef\AB@as{\Authsep}%
       \fi
       \gdef\AB@au@str{#2}}%
         \@temptokena=\expandafter{\AB@authlist}%
         \let\\=\authorcr
         \xdef\AB@authlist{\the\@temptokena
           \protect\@nameuse{@sep\number\c@authors}%
           \protect\Authfont#2\AB@authnote{\AB@note}%
           \IfValueT{#3}{#3}%
      }%
      \endgroup
      \ifnum\value{authors}>2\relax
      \@namedef{@sep\number\c@authors}{\Authands}\fi
      \newaffilfalse
}
\makeatother

\NewDocumentCommand\CoAuthorMark{}{\footnotemark[\arabic{footnote}]} 

\title{这是一个示例文档}
\author[1]{张三}[\thanks{共同一作}]
\author[2]{李四}[\CoAuthorMark]
\author[3]{王五}[\thanks{这是本文的二作}]
\affil[1]{北京大学}
\affil[2]{清华大学}
\affil[3]{家里蹲大学}

\begin{document}

\maketitle

\end{document}

image.png

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览