\hangindent 및 RTL 텍스트

\hangindent 및 RTL 텍스트

\hangindent는 왼쪽에서 오른쪽으로의 텍스트에는 완벽하게 작동하지만 bidi를 사용하는 RTL 텍스트에는 작동하지 않습니다.

xelatex로 실행하는 이 예를 참조하세요.

\documentclass{article}
\usepackage{polyglossia}
\usepackage{libertine}
\setmainlanguage{french}
\setotherlanguage{hebrew}
\begin{document}
\begin{hebrew}
  \parindent=0em
\hangindent=4em
\hangafter=1
בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְהֹ֑ום וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃
וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י אֹ֑ור וַֽיְהִי־אֹֽור׃
יַּ֧רְא אֱלֹהִ֛ים אֶת־הָאֹ֖ור כִּי־טֹ֑וב וַיַּבְדֵּ֣ל אֱלֹהִ֔ים בֵּ֥ין הָאֹ֖ור וּבֵ֥ין הַחֹֽשֶׁךְ׃
\end{hebrew}

  \parindent=0em
\hangindent=4em
\hangafter=1
1Au commencement Dieu créa le ciel et la terre.
2La terre était un chaos, elle était vide ; il y avait des ténèbres au-dessus de l'abîme, et le souffle de Dieu tournoyait au-dessus des eaux.
3Dieu dit : Qu'il y ait de la lumière ! Et il y eut de la lumière.
4Dieu vit que la lumière était bonne, et Dieu sépara la lumière et les ténèbres
\end{document}

답변1

\hangindent < 0오른쪽부터 들여쓰기하도록 설정할 수 있습니다 . \par히브리어 단락 끝에 도 (또는 빈 줄)이 필요하다는 것을 알았습니다 .

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{french}
\setotherlanguage{hebrew}
\newfontfamily{\hebrewfont}{SBL BibLit}[Script=Hebrew,Contextuals=Alternate]
\begin{document}
\begin{hebrew}
  \parindent=0em
  \hangindent=-4em
  \hangafter=1
  בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
  וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְהֹ֑ום וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃
  וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י אֹ֑ור וַֽיְהִי־אֹֽור׃
  יַּ֧רְא אֱלֹהִ֛ים אֶת־הָאֹ֖ור כִּי־טֹ֑וב וַיַּבְדֵּ֣ל אֱלֹהִ֔ים בֵּ֥ין הָאֹ֖ור וּבֵ֥ין הַחֹֽשֶׁךְ׃

\end{hebrew}

\parindent=0em
\hangindent=4em
\hangafter=1
1Au commencement Dieu créa le ciel et la terre.
2La terre était un chaos, elle était vide ; il y avait des ténèbres au-dessus de l'abîme, et le souffle de Dieu tournoyait au-dessus des eaux.
3Dieu dit : Qu'il y ait de la lumière ! Et il y eut de la lumière.
4Dieu vit que la lumière était bonne, et Dieu sépara la lumière et les ténèbres
\end{document}

산출

답변2

arabluatex및 를 사용하면 enumitem다음과 같은 MWE가 있습니다.

%!TEX TS-program = lualatex
%!TEX encoding = UTF-8 Unicode

\documentclass{report}
\usepackage{fontspec}
    \newfontfamily\arabicfont[Script=Arabic]{Amiri}
\usepackage{arabluatex}

\usepackage{enumitem}
    \newlist{hangar}{itemize}{1}
    \setlist[hangar]{label={},itemindent=-2em,leftmargin=2em}

\begin{document}
\Huge

\begin{arab}
\begin{hangar}
\item 
kalimAt kalimAt kalimAt kalimAt kalimAt kalimAt 
kalimAt kalimAt kalimAt kalimAt kalimAt  

\item
kalimAt kalimAt kalimAt kalimAt kalimAt kalimAt 
kalimAt kalimAt kalimAt kalimAt kalimAt  
\end{hangar}
\end{arab}

\end{document}

RTL 내어쓰기 샘플

관련 정보