Hi Arthur,
The attached file contains an example for line overflow in Hebrew doc. The
tex file was compiled with xelatex.

Best,
       Yonatan.


‫בתאריך יום ג׳, 2 במרץ 2021 ב-13:24 מאת ‪Arthur Rosendahl‬‏ <‪
[email protected]‬‏>:‬

>         Hi Yonatan,
>
> On Mon, Mar 01, 2021 at 10:59:31PM +0200, Yonatan Zilpa wrote:
> > I'm looking for auto line breaking. Sometimes the line gets overflowed
> and
> > I need to run the \linebreak command. I would like to avoid the line
> > overflow issue.
>
>   I understand that, but can you give an example of such a case?
> Preferably in a real document.  What output does TeX give you and what
> would you like it to do differently?  How does \linebreak help?
>
>         Best,
>
>                 Arthur
>
\documentclass[12pt,oneside]{amsart}
\synctex=1 % For forward and inverse search latex
\usepackage{ulem}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri,calc}
\usepackage{amsmath,amsthm}
\usepackage{polyglossia}
\usepackage{bidihl}
\usepackage{polynom}
\usepackage{amsfonts,amssymb,color}
\setmainlanguage{hebrew}
\setotherlanguage{english}
% \newfontfamily{\hebrewfont}{Linux Libertine O}[Script=Hebrew]
\newfontfamily\hebrewfont{Arial}[Script=Hebrew] 
\makeatletter \def\textdef@#1#2#3{\hbox{{\everymath{#1} \let\f@size#2\selectfont \if@RTL\beginR\fi#3\if@RTL\endR\fi}}} \makeatother
\makeatletter \def\maketag@@@#1{\hbox{\m@th\normalfont\LRE{#1}}} \def\tagform@#1{\maketag@@@{(\ignorespaces#1\unskip)}} \makeatother
\pagestyle{empty}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\hpar}[1]{$)$#1$($}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\reals}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\K}{\mathbb{K}}
\newcommand{\define}[1]{\bidihl{#1}}
\renewcommand*\thesection{\arabic{section}}  
\renewcommand*\thesubsection{\arabic{section}.\arabic{subsection}}
%%%%%%%%%%%%%% Newtheorems %%%%%%%%%%%%%%%%%
\newtheorem{theorem}{משפט}[section]
\newtheorem{definition}{הגדרה}[section]
\newtheorem{exercise}{שאלה}[section]
\newtheorem{remark}{הערה}[section]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \newenvironment{question}{\begin{exercise} \ \vspace{.1cm}\\ }{\end{exercise}}
\newenvironment{question}{\begin{exercise}}{\end{exercise}}
% \newtheorem{exer}{שאלה}[exercises]
\linespread{1.2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagenumbering{roman}
\title{דוגמה לשורה גולשמ}
\author{}
\date{}
\maketitle
\pagestyle{headings}
\pagenumbering{arabic}
דוגמה לשורה גולשת: \\
מזה נובע שבפיתוח הבינום $(a+b)^{p^{n}}$ כל המקדמים, פרט לראשון
ולאחרון, מתחלקים ב- $p$ ובשדה $F$ בעל מאפיין $p$ הם שווים ל- $0$
לפיכך $(a+b)^{p^{n}}=a^{p^{n}}+b^{p^{n}}$. מקרה פרטי בו השתמשנו
לעיל הוא $(a+b)^{p}=a^{p}+b^{p}$
\end{document}

Attachment: example.pdf
Description: Adobe PDF document

Reply via email to