Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm really new to the whole LyX(2.0.5.1) thing I'm usually using LibreOffice Writer and it's Latex like "formulas".

But I've heard so many good things about LyX, so I've decided to give it a try but I'm having some difficulties particularly when using Hebrew. Yes I've completed the tutorial, searched the Use guide, the internet and just tried to tinker with it but to no avail. I'm trying write homework answers(view image) that usually have the following format:

 1.
   a. (although it would be nice know how to replace this numbering with Hebrew letters).

The main problems are:

  1. When generating a PDF it uses a very small portion of the page when in "Enumerate" area.
  2. Equations that are too "long" for that tiny area are divided incorrectly as the Hebrew text is not "equal" to anything.
  3. When I'm trying to use "Display Mode" the equation it simply cuts the equation.

I've added something that's supposed to be a MWE, I apologize if it's long but as I said I've been trying to use LyX only for a few days so I wouldn't really know which Latex parts are more important then the others.

% Preview source code

%% LyX 2.0.5.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english,hebrew]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9,cp1255]{inputenc}
\usepackage{amsmath}
\usepackage{esint}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{theorem}
\theorembodyfont{\upshape}
\newtheorem{theorem}{\R{משפט}}[section]
\AtBeginDocument{\make@lr\thetheorem}
\usepackage{enumitem}       % customizable list environments
\newlength{\lyxlabelwidth}      % auxiliary length 

\makeatother

\usepackage{babel}
\begin{document}

\title{ליקס}


\author{וקיפדיה}
\maketitle
\begin{enumerate}
\item רעיון הבסיסי של א שאין צורך לטפל בעיצוב. ישנה רשימה של עיצובים קיימים
וניתן לבחור מתוכה את אופי הטקסט (כותרת ראשית, כותרת משנית, הערת שוליים
וכו'). כך, התוצאה הסופית אמורה להיות עקבית ובעלת מראה מקצועי. בנוסף,
מא יבה נוחה של משוואות מתמטיות ולכן נפוץ בקרב קהילת האקדמאים העוסקים
במדעים מדויקים.
\item משתמש ב־ כמנגנון עיבוד הטקסט. \L{$\int\limits _{a}^{k}\int\limits _{0}^{\pi}2\pi\frac{\rho_{0}}{4\pi}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\int\limits _{a}^{k}\int\limits _{0}^{\pi}\frac{\rho_{0}}{2}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\rho_{0}\int\limits _{a}^{k}\sin(\pi\frac{r-a}{b-a})dr=\rho_{0}\left[-\cos\left(\pi\frac{r-a}{b-a}\right)\frac{b-a}{\pi}\right]_{a}^{k}$}היא
תוכנה ותיקה בעלת יכולות נרחבות, שבעזרתה ניתן להפיק מ־ יכול לייצא גם
\L{$\int\limits _{a}^{k}\int\limits _{0}^{\pi}2\pi\frac{\rho_{0}}{4\pi}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\int\limits _{a}^{k}\int\limits _{0}^{\pi}\frac{\rho_{0}}{2}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\rho_{0}\int\limits _{a}^{k}\sin(\pi\frac{r-a}{b-a})dr=\rho_{0}\left[-\cos\left(\pi\frac{r-a}{b-a}\right)\frac{b-a}{\pi}\right]_{a}^{k}$}
\item דורש מהמשתמש לימוד ארוך יחסית למעבד תמלילים דוגמת וורד אך מפיק בדרך
כלל תוצאות איכותיות יותר, ומאפשר עבודה מהירה יותר למשתמש המיומן.\L{
\begin{align*}
\int\limits _{a}^{k}\int\limits _{0}^{\pi}2\pi\frac{\rho_{0}}{4\pi}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\int\limits _{a}^{k}\int\limits _{0}^{\pi}\frac{\rho_{0}}{2}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\rho_{0}\int\limits _{a}^{k}\sin(\pi\frac{r-a}{b-a})dr=\rho_{0}\left[-\cos\left(\pi\frac{r-a}{b-a}\right)\frac{b-a}{\pi}\right]_{a}^{k} & s
\end{align*}
}\L{
\[
\int\limits _{a}^{k}\int\limits _{0}^{\pi}2\pi\frac{\rho_{0}}{4\pi}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\int\limits _{a}^{k}\int\limits _{0}^{\pi}\frac{\rho_{0}}{2}\sin(\pi\frac{r-a}{b-a})\sin(\theta)d\theta dr=\rho_{0}\int\limits _{a}^{k}\sin(\pi\frac{r-a}{b-a})dr=\rho_{0}\left[-\cos\left(\pi\frac{r-a}{b-a}\right)\frac{b-a}{\pi}\right]_{a}^{k}
\]
}\end{enumerate}

\end{document}
share|improve this question
    
Welcome to TeX.sx! –  Peter Jansson Mar 17 '13 at 21:44
    
Thanks, I've tried to fix some things but I guess a .lyx file is not a valid MWE? or is it? –  SadStudent Mar 17 '13 at 22:27
    
Welcome! First of all, LaTeX (which is generated by LyX) is very different from LibreOffice Writer. Along your explorations of LyX, my suggestion is to get an overview of how LaTeX works (e.g. The (Not So) Short Introduction to LaTeX2e). Then you will better understand the background of LyX, which generates LaTeX... –  e-birk Mar 17 '13 at 23:20
    
Second, you can select "View > View Source" from the menu -- a new window will open -- and there select "Complete Source". This is the LaTeX source that LyX generates to create your PDF. Alternatively, "File > Export > LaTeX (pdflatex)" will put the code into a file with extension .tex. Then you can post either one but keep in mind to shorten your LyX document as much as possible first (since we like minimal working examples). –  e-birk Mar 17 '13 at 23:21
    
Third, that are several questions in one. Consider to make one post per question... To Question 1. That seems alright that enumerations are more indented... (But without a MWE - the picture seems not to show that - it is hard to say). To Quesiton 2 and 3. It seems that you have to break the equations by using several math environments. For display mode, also "Insert > Math > AMS align Environment" might be helpful. –  e-birk Mar 17 '13 at 23:30
show 2 more comments

2 Answers

up vote 2 down vote accepted

Elaborating my comment to an answer...

Question 1: "Enumerate" uses small portion of the page.

Answer: If you use enumerations in LyX / LaTeX, I guess, it does not matter whether you use a right-to-left or a left-to-right language, the indentation will always be the same amount (of course, on the right side if using right-to-left). LaTeX (which is generated by LyX) uses typesetting rules that are quite professional. You will also see that an average line (at least in English) has about 65 characters and thus, a quite big margin might be left. This limit on the length of a line is used for better readability. Here is an example.

indentation of enumeration

The example was simply created by using a new LyX document with

\usepackage[english]{babel}
\usepackage{blindtext}

put into "Document > Settings... > LaTeX Preamble" and

\blindtext \blindlistlist[2]{enumerate}[2] \blindtext

put as TeX code/ERT (<Crtl>-L) in the main document. (Note that the LaTeX package blindtext is used.)

Question 1a: How to replace this numbering with Hebrew letters.

Answer: As a quick workaround you can use the description environment instead. Then you should be able to put any label you want. (Furthermore, nesting of enumerations, itemizations, descriptions is possible in LyX.)

description environment

Otherwise see Robust method to apply Hebrew numeral in an enumeration list? (Possibly you need ask a separate question how to integrate that in LyX...)

Question 2: Long equations are divided incorrectly...

Answer: LaTeX break equations not at arbitrary points but usually after relation symbols. If you do not like the break up then - as a workaround - you can split the inline math environment into two or more.

You might also search on this site for questions tagged with math-mode and line-breaking.

Question 3: The equation is cut in "Display Mode".

Answer: A common way to deal with long formulas and many equations is to use "Insert > Math > AMS align Environment". Then you can add rows and break up the equations over several lines. It looks like in the following picture.

AMS align Environment in LyX

share|improve this answer
    
thanks for the ideas, additionally I've found out that using the fullpage package allows me to get the extra wide margins that I was after. –  SadStudent Mar 21 '13 at 0:11
add comment

I also suggest that you split your question into several different questions. And I'm not much of a LyX guy. However...

  • That doesn't really have much to do with the Enumerate environment. It just takes a little more than what are alread pretty wide margins. You might try \usepackage{fullpage} for smaller margins (or check out the geometry package for complete control of margins, spacing and such).
  • About the reversed parentheses: In LyX, this is a known bug with a patch, see here: It's supposed to switch the direction of the parentheses for you, but doesn't. Are you using LyX 2.0.5 or higher? If you're working with LaTeX directly (e.g. the exported LaTeX), see [this question(Right-to-left text in LaTeX - reversed numbers and parentheses) and specifically, my answer.
  • As for math equations overflowing - this is a problem in general, not just with right-to-left languages or with LyX. If LyX doesn't offer to arrange display-mode math for you somehow, consider doing it yourself, after reading section 3.5 of the not-so-short into to LaTeX.
share|improve this answer
    
I'm using 2.0.5.1... –  SadStudent Mar 18 '13 at 16:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.