首页>LaTeX>source

我试图将两个图像放在另一个旁边,然后我注意到括号内的子标题之间有一个很大的间隙(?)!

知道如何避免这种情况吗?


\documentclass {article}
\usepackage {mwe}
\usepackage{xltxtra}
\usepackage{xunicode}
\usepackage{xgreek}
\usepackage[LGRx,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,greek]{babel}
\usepackage{alphabeta}
\usepackage{subcaption}
\usepackage{kerkis} % Fonts
\XeTeXlinebreaklocale "el"
\setmainfont[
    UprightFont = Kerkis,
    ItalicFont  = KerkisItalics,
    SlantedFont = KerkisItalics,
    BoldFont    = Kerkisb,
    BoldItalicFont  = Kerkisbi,
    BoldSlantedFont = Kerkisbi,
    SmallCapsFont    = KerkisSmallCaps]
    {Kerkis}
\newfontface\bfsc{KerkisSmallCaps-Bold}

\begin {document}
\blindtext
\begin {figure}
 \begin{subfigure}[b]{0.48\linewidth}
\includegraphics [width =\linewidth] {example-image-a}
\subcaption{Κάτι στα ελληνικά}
\label{Figure:FIG_A}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.48\linewidth}
\includegraphics [width =\linewidth] {example-image-b}
\subcaption{Something in English}
\label{Figure:FIG_B}
\end{subfigure}
\caption{Εικόνα Α (Αριστερά) και Εικόνα Β (Δεξιά)}
\label{Figure:FIG_A_B[![enter image description here][1]][1]}
\end{figure}
\end{document}
最新回答
  • 2019-12-5
    1 #

    如果我删除pdftex字体代码并切换到我可用的具有拉丁字母和希腊字母的字体,我就会得到上述内容。

    这意味着你的"差距"可能是一个缺失的 '   在您使用的字体中.检查 missing character的日志   警告.我没有Kerkis字体设置建议是否有可以在这里使用的兼容字符,但是将其作为部分答案发布以显示图像(使用Arial字体)。

    \documentclass {article}
    \usepackage {mwe}
    %\usepackage{xltxtra}
    %\usepackage{xunicode}
    \usepackage{fontspec}
    \usepackage{xgreek}
    %\usepackage[LGR,T1]{fontenc}
    %\usepackage[utf8]{inputenc}
    \usepackage[english,greek]{babel}
    \usepackage{alphabeta}
    \usepackage{subcaption}
    \usepackage{kerkis} % Fonts
    \XeTeXlinebreaklocale "el"
    \setmainfont{Arial}
    \begin {document}
    \blindtext
    \begin {figure}
     \begin{subfigure}[b]{0.48\linewidth}
    \includegraphics [width =\linewidth] {example-image-a}
    \subcaption{Κάτι στα ελληνικά}
    \label{Figure:FIG_A}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.48\linewidth}
    \includegraphics [width =\linewidth] {example-image-b}
    \subcaption{Something in English}
    \label{Figure:FIG_B}
    \end{subfigure}
    \caption{Εικόνα Α (Αριστερά) και Εικόνα Β (Δεξιά)}
    \label{Figure:FIG_A_B[![enter image description here][1]][1]}
    \end{figure}
    \end{document}
    

    重音来自于 \alph的巴贝尔希腊重新定义   对于字母编号,如果添加

    \renewcommand\thesubfigure{\arabic{subfigure}}
    
    subcaption之后   包装将标记为(1)和(2)。

  • LaTeX subfloats:将子图中的标题字体设置为与图相同
  • LaTeX tikz pgf:我想使用tikzpicture在LaTeX中绘制m-way搜索树/ B树