Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在章节内放图的时候代码报错 #124

Closed
1 task done
jixinyuan1996 opened this issue May 29, 2024 · 1 comment
Closed
1 task done

在章节内放图的时候代码报错 #124

jixinyuan1996 opened this issue May 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jixinyuan1996
Copy link

jixinyuan1996 commented May 29, 2024

  • 我已阅读过提问前必读 (意思是如果没读就去读,读后请改括号内内容为 x)

软件信息(请补全,请务必填写准确)

  • 操作系统:[MacOS]
  • TeX 发行版:[MacTex]
  • TeX 编辑器:[pycharm]
  • 模板编译方式:[latexmk]

Bug 说明
我在论文里放Figure的时候出现了提示错误的波浪线,主要就是这句 我的图片也有放置在相应位置

\includegraphics[width=1\textwidth]{Figures/2_intro_excample.pdf}

最小代码示例
begin{figure}[H]
\centering
\subfigure[Label noise distribution on client $p$ and $q$. Black are correct labels and Red are noisy labels. ]{
\begin{minipage}{11.2cm}
\centering
% \includegraphics[width = 0.71 \textwidth]{figure/figure_Loss_distribution/_Loss.pdf}
\includegraphics[width=1\textwidth]{Figures/2_intro_excample.pdf}
\label{intro_excample}
\end{minipage}
}
\subfigure[CL with noisy labels & FL with heterogeneous noisy labels.]{
\begin{minipage}{6.1cm}
\centering
\includegraphics[width=1\textwidth]{Figures/2_FedAVG_noisy_label.png}
\label{intro_comparation}
\end{minipage}
}
\caption{(a): The heterogeneous label noise distributions encompass diverse true class samples or varying label noise transitions. (b): The performance comparison between CL and FL on CIFAR-10 with the rate of label noise 0.2, 0.5, and 0.8.}
\label{fig:figure1}
% \vspace{-4mm}
\end{figure}

error1

其他说明
其他值得提到的内容

@jixinyuan1996 jixinyuan1996 added the bug Something isn't working label May 29, 2024
@obster-y
Copy link
Owner

不清楚你是否解决了,我只能说我没见过这种用法,建议如果想要插入子图请参考此处示例

\begin{figure}[h]
\begin{subfigure}[b]{0.49\linewidth}
\centering
\includegraphics[width=.5\textwidth]{xjtu.pdf}
\subcaption{校名}
\end{subfigure}
\begin{subfigure}[b]{0.49\linewidth}
\centering
\includegraphics[width=.5\textwidth]{xjtu.pdf}
\subcaption{校名}
\label{subfigure:icon}
\end{subfigure}
\caption{校徽}
\label{figure:icon}
\end{figure}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants