当前位置: 首页 > news >正文

【LaTex】Review后添加参考文献并标记颜色IEEE LaTex模板

文章目录

  • 参考
  • 一、\color{red} \color{black}
  • 一种新方法


参考

英文:How to change text color a particular reference in the bibliography in latex? (using ieee transactions bibliography style
中文博客:

  • latex 论文Revision中高亮修改部分及新增参考文献 bibColoredItems
  • latex中把某一个引用的参考文献标红
  • LATEX中设定某条参考文献为红色

问AI!

一、\color{red} \color{black}

在这里插入图片描述
确实可以,但是,它的名字是全称啊

@ARTICLE{Abdisarabshali2024,
  author={\color{red}Abdisarabshali, Payam and Liwang, Minghui and Rajabzadeh, Amir and Ahmadi, Mahmood and Hosseinalipour, Seyyedali},
  journal={IEEE/ACM Trans. Networking}, 
  title={Decomposition Theory Meets Reliability Analysis: Processing of Computation-Intensive Dependent Tasks Over Vehicular Clouds With Dynamic Resources}, 
  year={\color{black}2024},
  month={Feb.},
  volume={32},
  number={1},
  pages={475-490},
  keywords={Reliability;Switched mode power supplies;Vehicle dynamics;Mathematical models;Dynamic scheduling;Computational modeling;Stochastic processes;Event stochastic algebra;decomposition theory;vehicular cloud;semi-Markov process;stochastic analysis;reliable service provisioning;directed acyclic graphs (DAG) tasks/applications;undirected graph (UG) tasks/applications},
  doi={10.1109/TNET.2023.3286709}}

在这里插入图片描述
第一个字母没有变色!

@ARTICLE{Abdisarabshali2024,
  author={\color{red}{Abdisarabshali, Payam and Liwang, Minghui and Rajabzadeh, Amir and Ahmadi, Mahmood and Hosseinalipour, Seyyedali}},
  journal={IEEE/ACM Trans. Networking}, 
  title={Decomposition Theory Meets Reliability Analysis: Processing of Computation-Intensive Dependent Tasks Over Vehicular Clouds With Dynamic Resources}, 
  year={\color{black}2024},
  month={Feb.},
  volume={32},
  number={1},
  pages={475-490},
  keywords={Reliability;Switched mode power supplies;Vehicle dynamics;Mathematical models;Dynamic scheduling;Computational modeling;Stochastic processes;Event stochastic algebra;decomposition theory;vehicular cloud;semi-Markov process;stochastic analysis;reliable service provisioning;directed acyclic graphs (DAG) tasks/applications;undirected graph (UG) tasks/applications},
  doi={10.1109/TNET.2023.3286709}}

在这里插入图片描述
这样的话,名字又变成全称了,这和其他的又不统一了,烦就烦在这了!!!

一种新方法

\usepackage{color}
\usepackage{cite}
\usepackage{etoolbox}

% 备份原始 \bibitem 命令
\let\oldbibitem\bibitem

%重新定义 \bibitem,使某些特定文献变色
\renewcommand{\bibitem}[1]{%
  \ifstrequal{#1}{Liu2023rfid} {\color{blue}\oldbibitem{#1}}
  {\ifstrequal{#1}{Liwang2024} {\color{red}\oldbibitem{#1}}
    {\color{black}\oldbibitem{#1}}}%
}
\renewcommand{\bibitem}[1]{%
  \ifstrequal{#1}{Liu2023rfid}  
    {\color{blue}\oldbibitem{#1}} % Liu2023rfid 变蓝色
    {\ifstrequal{#1}{Liwang2024}  
      {\color{red}\oldbibitem{#1}} % Wang2024 变红色
      {\ifstrequal{#1}{Gao2022}  
        {\color{green}\oldbibitem{#1}} % Zhang2025 变绿色
        {\color{black}\oldbibitem{#1}} % 其他文献默认黑色
      }%
    }%
}

在这里插入图片描述
在这里插入图片描述
使用这个嵌套吧!看起来确实是麻烦些,如果又很多需要变色的话,但ai给的方案我试了都没有效果,只能先用这种方法凑合了,如果大家有更好的解决方法也可以分享在评论区!

ai的其他解决方案!我测试无效,不清楚是不是IEEE Trans.模板有某种限制!
在这里插入图片描述

相关文章:

  • Qt QScrollArea 总结
  • AD9268(16BIT 80M)与AD9643(14BIT 250M) LVDS芯片对比分析
  • C语言学习,快速排序
  • 融合DWRSeg扩张式残差网络的YOLOv8:小目标检测中的技术突破与优化探索
  • 【问题解决方案】随笔 - vscode里面出现双环境解决方案
  • VMware虚拟机Mac版安装Win10系统
  • Kubernetes 从入门到精通:解锁容器编排的终极指南 [特殊字符]
  • Jenkinsfile流水线构建教程
  • 3.15 AI Agent 技术全景解析:从核心能力到企业级应用实践
  • html中的css
  • 算法教程:香槟塔问题
  • SAP中什么是虚拟装配?
  • 智能合约安全 | 合约无效化攻击
  • 2025年- G19-Lc93-206.反向链接链表-java版
  • Mysql——约束与多表查询
  • DeepSeek 助力 Vue3 开发:打造丝滑的标签输入(Tag Input)
  • DeepSeek:我的AI助手之旅
  • 大白话React第七章深入学习 React 高级特性与优化阶段
  • 谷歌推出PaliGemma 2 mix:用于多任务的视觉语言模型,开箱即用。
  • Hive从入门到运用
  • 落实中美经贸高层会谈重要共识,中方调整对美加征关税措施
  • 今天北京白天气温超30℃,晚间为何下冰雹?
  • 硅料收储挺价“小作文”发酵光伏板块罕见大涨,知情人士:确实在谈
  • 顾家家居:拟定增募资近20亿元,用于家居产品生产线的改造和扩建等
  • 国防部:奉劝有关国家不要引狼入室,甘当棋子
  • 对话哭泣照被恶意盗用成“高潮针”配图女生:难过又屈辱