Amir Seginer wrote:
OK, I have solved half of my problems. I can now write hebrew properly in the headers and footers: just put the commands \selectlanguage{hebrew} and \inputencoding{cp1255} within the \lhead command (see attached file).

However, Latex sometime exchanges the left and right headers, depending somehow on what I right within the body of the document. I've attached a small example of the problem (again, see attached file).

Thanks for any help,

Amir.



#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\lang hebrew

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
lhead{
\backslash 
selectlanguage{hebrew}
\backslash 
inputencoding{cp1255}
\end_inset 

����
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\lang hebrew

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
chead{
\backslash 
selectlanguage{hebrew}
\backslash 
inputencoding{cp1255}
\end_inset 

����
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\lang hebrew

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
rhead{
\backslash 
selectlanguage{hebrew}
\backslash 
inputencoding{cp1255}
\end_inset 

 ����
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Enumerate


\lang hebrew
����� ��� ������� �� ����: 
\lang english
in this page the order of headers is wrong 
\layout Standard
\pagebreak_top 

\lang hebrew
����� ��� ������� ����: 
\lang english
in this page the order of headers is correct
\the_end

Reply via email to