首頁>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樹