나란히 있는 수치는 LOF(Bidi - XeTeX)에서 반전됩니다.

나란히 있는 수치는 LOF(Bidi - XeTeX)에서 반전됩니다.

XeLaTeX를 사용하여 아랍어 문서를 조판하고 있습니다. 나는 지금 약 1 년 동안 그것을 사용하고 있습니다.

아직 해결하지 못했거나 해결책을 찾지 못한 문제는 두 그림을 나란히 놓았을 때 문서에서는 그림이 올바른 순서(RTL)로 되어 있지만 그림 목록에서는 거꾸로 되어 있다는 것입니다.

내 최소한의 작업 예:

\documentclass{report}
\usepackage{polyglossia}
\setmainlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1]{KacstOne}

\newcommand{\dblimg}
  [7][ht]{{\begin{figure}[#1]
             \begin{minipage}{0.48\textwidth}\centering
               \includegraphics[width=#2\textwidth]{#3}
               \caption[#4]{\centering #4}
             \end{minipage}\hfill
             \begin{minipage}{0.48\textwidth}\centering
               \includegraphics[width=#5\textwidth]{#6}
               \caption[#7]{\centering #7}
             \end{minipage}
           \end{figure}
         }}

\begin{document}
\listoffigures
\dblimg{1}{a.jpg}{111}
       {1}{a.jpg}{222}

\end{document}

출력: 여기에 이미지 설명을 입력하세요

\dblimg두 이미지의 너비, 경로 및 캡션을 사용합니다.

보시다시피 그림 1(오른쪽)은 그림 2 앞에 나열되어 있습니다. 그림은 문서에서 올바른 순서로 되어 있지만 그림 목록에는 없습니다.

답변1

먼저 caption패키지를 사용하여 lof에서 그림을 제거한 \caption[]{your caption}다음 수동 입력으로 교체할 수 있습니다.

\addcontentsline{lof}{subsection}{\arabic{tempfig}\qquad your caption}

tempfig나란히 있는 이미지 이전의 숫자 카운터 값을 저장하는 카운터는 어디에 있습니까?

\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{polyglossia}
\setmainlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1]{Amiri}

\newcounter{tempfig}

\newcommand{\dblimg}
  [7][ht]{%
  \setcounter{tempfig}{\value{figure}}
  \stepcounter{tempfig}
  \addcontentsline{lof}{subsection}{\arabic{tempfig}\qquad #4}
  \stepcounter{tempfig}
  \addcontentsline{lof}{subsection}{\arabic{tempfig}\qquad #7}
  \begin{figure}[#1]
             \begin{minipage}{0.48\textwidth}\centering
               \includegraphics[width=#2\textwidth]{#3}
               \caption[]{\centering #4}
             \end{minipage}\hfill
             \begin{minipage}{0.48\textwidth}\centering
               \includegraphics[width=#5\textwidth]{#6}
               \caption[]{\centering #7}
             \end{minipage}
           \end{figure}
         }

\begin{document}

\listoffigures

\dblimg{1}{example-image}{111}
       {1}{example-image}{222}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보