使用 longtblr 时,我需要在表格列表中删除引用

使用 longtblr 时,我需要在表格列表中删除引用

我有这张表:

\begin{longtblr}[
caption = {Gram Positive Bacteria.\cite{Bacterial_Classification}},
label = {Tab:Gram Positive Bacteria} ]{cells   = {font=\footnotesize\sffamily},
                      colspec = {@{} X[c] *{3}{X[0.8,c]} *{2}{X[1.5,c]} @{}},
                      colsep  = {7pt},
                      cell{11}{1} = {c=6}{},
                      row{1}  = {c, font=\bfseries},
                      rowhead = 1}
    \toprule

Name    &   Morphology  & O\textsubscript{2} Requirements
        &   Commensal   &   Reservoirs / Sites of colonization, Transmission
        &   Types of Infections \\
    \midrule
Staphylococci & Cocci in grape-like clusters & facultative anaerobe & Yes & Skin, nares / endogenous, direct contact, aerosol & Soft tissue, bone, joint, endocarditis, food poisoning \\
Streptococci & Cocci in pairs, chains & facultative anaerobe & Some species & Oropharynx, skin / endogenous, direct contact, aerosol & Skin, pharyngitis, endocarditis, toxic shock \\
Pneumonococci & Diplococci, lancet shaped & facultative anaerobe & Yes / No & Oropharynx, sinus / aerosol & Pneumonia, otitis, sinusitis, meningitis \\
Enterococci & Cocci in pairs, chains & facultative anaerobe & Yes & GI tract / endogenous, direct contact & UTI, GI, catheter-related infections \\
Bacilli & Rods, spore-forming & aerobic & Yes / No & Soil, air, water, animals / aerosol, contact & Anthrax, food poisoning, catheter-related infections \\
Clostridia & Rods, spore formers & anaerobic & Some Species & GI tract, soil / Breach of skin, endogenous, ingestion & Tetanus, diarrhea, gas gangrene, botulism \\
Corynebacterium & Rods, nonspore forming & facultative anaerobe & Some species & Skin & Catheter-related infections, diphtheria \\
Listeria & Rods, nonspore formers & facultative anaerobe & No & Animals, food products / Ingestion & Meningitis \\
Actinomyces & Irregular, filamentous, form sulfur granules & anaerobic & Yes & GI tract / endogenous & Skin, soft tissue \\
    \bottomrule
    \end{longtblr}

在表格列表中它显示为Gram Postive Bacteria [1]

我怎样才能在表格列表中为表格添加不同的标题(在此示例中,我不需要那里的引用)并在表格所在的位置添加不同的标题(我需要这里的引用)。

例如这样:在普通表中\caption[Gram Negative Bacteria.]{Gram Negative Bacteria.\cite{Bacterial_Classification}}使用命令时。\caption

答案1

您可以使用以下命令指定表列表的条目entry=...

\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}

\begin{longtblr}[
caption = {Gram Positive Bacteria.\cite{Bacterial_Classification}},
entry={short version for lot},
label = {Tab:Gram Positive Bacteria} ]{cells   = {font=\footnotesize\sffamily},
                      colspec = {@{} X[c] *{3}{X[0.8,c]} *{2}{X[1.5,c]} @{}},
                      colsep  = {7pt},
                      cell{11}{1} = {c=6}{},
                      row{1}  = {c, font=\bfseries},
                      rowhead = 1}
    \toprule

Name    &   Morphology  & O\textsubscript{2} Requirements
        &   Commensal   &   Reservoirs / Sites of colonization, Transmission
        &   Types of Infections \\
    \midrule
Staphylococci & Cocci in grape-like clusters & facultative anaerobe & Yes & Skin, nares / endogenous, direct contact, aerosol & Soft tissue, bone, joint, endocarditis, food poisoning \\
Streptococci & Cocci in pairs, chains & facultative anaerobe & Some species & Oropharynx, skin / endogenous, direct contact, aerosol & Skin, pharyngitis, endocarditis, toxic shock \\
Pneumonococci & Diplococci, lancet shaped & facultative anaerobe & Yes / No & Oropharynx, sinus / aerosol & Pneumonia, otitis, sinusitis, meningitis \\
Enterococci & Cocci in pairs, chains & facultative anaerobe & Yes & GI tract / endogenous, direct contact & UTI, GI, catheter-related infections \\
Bacilli & Rods, spore-forming & aerobic & Yes / No & Soil, air, water, animals / aerosol, contact & Anthrax, food poisoning, catheter-related infections \\
Clostridia & Rods, spore formers & anaerobic & Some Species & GI tract, soil / Breach of skin, endogenous, ingestion & Tetanus, diarrhea, gas gangrene, botulism \\
Corynebacterium & Rods, nonspore forming & facultative anaerobe & Some species & Skin & Catheter-related infections, diphtheria \\
Listeria & Rods, nonspore formers & facultative anaerobe & No & Animals, food products / Ingestion & Meningitis \\
Actinomyces & Irregular, filamentous, form sulfur granules & anaerobic & Yes & GI tract / endogenous & Skin, soft tissue \\
    \bottomrule
    \end{longtblr}


\listoftables

\end{document}

相关内容