Giter Club home page Giter Club logo

Comments (3)

muzimuzhi avatar muzimuzhi commented on August 12, 2024

描述问题
2. [...] \footnotemark\footnotetext{} 只能生成序号相同的脚注

传统上,(要为多个 \footnotemark 添加对应的 \footnotetext 时),得使用 \footnotetext[<number>]{<text>} 手动指定序号。
https://latexref.xyz/_005cfootnotetext.html

其他尝试
1. footnotes-in-tabulars ,但是均无法在中文环境下工作

好像至少 https://tex.stackexchange.com/a/35327 里提到的 tablefootnote 包就能在中文环境下工作。

其他:
1. 脚注位于表格底部或页面底部均可,脚注内容支持使用 \href 超链接

没懂后半句。

% !TeX TS-program = xelatex
\documentclass{ctexart}
\usepackage{float}
\usepackage{multirow,makecell}
\usepackage{tablefootnote}

\usepackage[colorlinks]{hyperref}

\begin{document}
\begin{table}[H]
    \centering
    \begin{tabular}{|c|c|}
        \Xhline{1.2pt}
        地点  & 习惯称呼          \\ \Xhline{1.2pt}
        XXX & A啊A\footnotemark \\ \Xhline{1.2pt}
        \multirow{3}{*}{YYY}
            & B斌B\footnotemark \\ \cline{2-2}
            & C草C\footnotemark \\ \cline{2-2}
            & D贷D\footnotemark \\ \Xhline{1.2pt}
    \end{tabular}
\end{table}
\footnotetext[1]{1壹1}
\footnotetext[2]{2贰2}
\footnotetext[3]{3叁3}
\footnotetext[4]{4肆4}

\begin{table}[H]
    \centering
    \begin{tabular}{|c|c|}
        \Xhline{1.2pt}
        地点  & 习惯称呼                \\ \Xhline{1.2pt}
        XXX & A啊A\tablefootnote{A啊A} \\ \Xhline{1.2pt}
        \multirow{3}{*}{YYY}
            & B斌B\tablefootnote{B斌B} \\ \cline{2-2}
            & C草C\tablefootnote{C草C} \\ \cline{2-2}
            & D贷D\tablefootnote{D贷D} \\ \Xhline{1.2pt}
    \end{tabular}
\end{table}

\newpage
content % 为了点击超链接后有跳转空间
\end{document}

image
image

from forum.

Mikachu2333 avatar Mikachu2333 commented on August 12, 2024

啊,发现了问题所在,昨天在生成的时候虽然没有报错,但是实际上并没有安装 tablefootnote 宏包,估计是由于忘记清理缓存文件所致。
今天清除缓存并重新安装宏包生成以后问题解决!

from forum.

muzimuzhi avatar muzimuzhi commented on August 12, 2024

昨天在生成的时候虽然没有报错,但是实际上并没有安装 tablefootnote 宏包

怎么会呢……

from forum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.