Function names

2010-07-01 Thread Barak Sh
Hi,
When using function names predefined in LaTeX, such as \sin or \log, the
spacing between the name and variables before or after it (for example in
the expression "x \sin \theta") is correct. However, when using \mathrm or
\textrm to type functions that are not predefined (for example, erf or
sinc), any variables before or after are joined to the function name, with
no spacing at all, so one has to manually add spaces.
Is there a way to define function names such that spaces are automatically
added when needed, like in the predefined ones?
(In Wikipedia, \operatorname is used for this. However, I tried it in LyX
and it doesn't seem to work.)
Thanks,
Barak


Re: Multicol package - right to left alignment?

2010-06-20 Thread Barak Sh
Thanks!
It doesn't seem to work, though; when trying to export I get an error
"Undefined control sequence" on the line containing "\end{multicols}"
(although "\begin{multicols}{3}" generates no errors). Another error
"Missing number, treated as zero" also appears for some reason. I tried
writing "\end{multicols}{3}" but it didn't work.
Any ideas how to solve this?
Thanks again,
Barak

On Sun, Jun 20, 2010 at 8:36 PM, Ronen Abravanel  wrote:

> A Blog Post (In hebrew) by Yehoda Ronen regarding multicol and Hebrew:
> http://digitalwords.net/?p=122
>
>
> On Sat, Jun 19, 2010 at 1:04 PM, Barak Sh  wrote:
>
>> Thanks! However, the code does not seem to change anything.
>>
>> Barak
>>
>>
>> On Sat, Jun 19, 2010 at 1:01 PM, Vincent van Ravesteijn wrote:
>>
>>> Op 19-6-2010 11:56, Barak Sh schreef:
>>>
>>>  Hello,
>>>> I'm trying to use the multicol package in order to print a formula sheet
>>>> with 3 columns and a vertical line separating them. The document is in
>>>> Hebrew and should be aligned right to left.
>>>> When using the usual "Two-column document" setting in LyX, the columns
>>>> are aligned right to left as required. However, when using multicol, the
>>>> columns are aligned left to right.
>>>> Is there any way to solve this problem?
>>>> Thanks in advance,
>>>> Barak
>>>>
>>>
>>> see http://www.lyx.org/trac/ticket/6389.
>>>
>>> In this bug it was reported that using the normal "two-column document"
>>> the columns were aligned wrong.
>>>
>>> If you add the code in the last block to your preamble it should work.
>>> Please report back whether this fixes your problem.
>>>
>>> Vincent
>>>
>>
>>
>


Document class "article (more font sizes)" not working in Hebrew documents?

2010-06-19 Thread Barak Sh
Hello all,

I've tried to change an article's document class to "article (more
font sizes)", in order to use a smaller base size for fonts (8 instead
of 10).
However, I could not export the article; I got a LaTeX error
"\...@chapter undefined". This error appears even if I erase all
contents of the document, and only in Hebrew documents.
Any idea where this error could have come from, and how to solve it?

I would like to make the fonts smaller but still have larger fonts for
titles, how is that possible without changing the base font size (and
without painstakingly changing the individual font sizes of each title
and paragraph)?

Thanks,

Barak


Re: Multicol package - right to left alignment?

2010-06-19 Thread Barak Sh
Thanks! However, the code does not seem to change anything.

Barak


On Sat, Jun 19, 2010 at 1:01 PM, Vincent van Ravesteijn  wrote:

> Op 19-6-2010 11:56, Barak Sh schreef:
>
>  Hello,
>> I'm trying to use the multicol package in order to print a formula sheet
>> with 3 columns and a vertical line separating them. The document is in
>> Hebrew and should be aligned right to left.
>> When using the usual "Two-column document" setting in LyX, the columns are
>> aligned right to left as required. However, when using multicol, the columns
>> are aligned left to right.
>> Is there any way to solve this problem?
>> Thanks in advance,
>> Barak
>>
>
> see http://www.lyx.org/trac/ticket/6389.
>
> In this bug it was reported that using the normal "two-column document" the
> columns were aligned wrong.
>
> If you add the code in the last block to your preamble it should work.
> Please report back whether this fixes your problem.
>
> Vincent
>


Multicol package - right to left alignment?

2010-06-19 Thread Barak Sh
Hello,
I'm trying to use the multicol package in order to print a formula sheet
with 3 columns and a vertical line separating them. The document is in
Hebrew and should be aligned right to left.
When using the usual "Two-column document" setting in LyX, the columns are
aligned right to left as required. However, when using multicol, the columns
are aligned left to right.
Is there any way to solve this problem?
Thanks in advance,
Barak


Re: Reducing the number of pages in an article

2010-06-12 Thread Barak Sh
Guenter Milde  users.berlios.de> writes:

> 
> On 2010-06-12, Barak Sh wrote:
> > --0050450156d81d9ee90488d09573
> > Content-Type: text/plain; charset=ISO-8859-1
> 
> > An article I'm writing has reached 7 pages where the last page contains
> > only a small paragraph. Is there a simple way to reduce the article to
> > 6 pages? 
> 
> > ... I have noticed that there are many blank spaces between paragraphs
> > and between formulas and text. 
> 
> If it is up to you, you can select parindent instead of parskip.
> 
> Don't start a new paragraph before and after a formula.
> This happens, if you hit Enter (Return).
> The difference is hard to spot in LyX but might be your problem.
> View>Source helps, if there is a blank line around formulas, delete the
> newlines (and use Ctrl-Z if you accidentially delete the formula as
> well).
> 
> > There must be a simple way to tell LaTeX to make these spaces a
> > bit smaller so that the article fits comfortably into 6 pages. (I know
> > there's an option in Document Settings to specify the vertical
> > separation of paragraphs. It's already at the smallest value.)
> 
> If you need parskip use the parskip package instead of LyX GUI setting
> (set to parindent and in the LaTeX preamble write
> \usepackage{parskip}. This reduces excess space around lists, headings etc.
> 
> Günter
> 
> 


Thanks (to all three repliers)!

I tried \usepackage{parskip}, but it did not change anything. Then I decided to 
specify a custom length for the separation between paragraphs, in the document 
settings, and this seemed to do the trick, combined with a custom line spacing 
(of exactly 0.8). I've managed to shrink my article to 6 pages.

I also tried to change the document class to "article (more font sizes)", and 
then choose a smaller base size for fonts (8 instead of 10). However, I could 
not export the article; I got a LaTeX error "\...@chapter undefined". Any idea 
where this error could have come from?
I would like to make the fonts smaller but still have larger fonts for titles, 
how is that possible without changing the base font size (and without 
painstakingly changing the individual font sizes of each title and paragraph)?

Thanks again,
Barak



Reducing the number of pages in an article

2010-06-12 Thread Barak Sh
Hello all,
An article I'm writing has reached 7 pages where the last page contains only
a small paragraph. Is there a simple way to reduce the article to 6 pages?
I know it's possible to make fonts a bit smaller throughout the entire
article. This will get the job done, but I have noticed that there are many
blank spaces between paragraphs and between formulas and text. There must be
a simple way to tell LaTeX to make these spaces a bit smaller so that the
article fits comfortably into 6 pages.
(I know there's an option in Document Settings to specify the vertical
separation of paragraphs. It's already at the smallest value.)
Thanks in advance,
Barak


Re: Saving Preferences

2010-02-04 Thread Barak Sh
Oh, it's simpler than I thought. Thanks!
Barak

On Thu, Feb 4, 2010 at 2:25 PM, rgheck  wrote:

> On 02/04/2010 04:30 AM, Barak Sh wrote:
>
>> Hello fellow LyX users,
>>
>> I would like to save a backup of my preferences (especially keyboard
>> shortcuts), so that I can instantly load them when (re)installing or
>> upgrading.
>> How can this be done?
>> I'm using LyX 1.6.4 on Windows 7.
>>
>>
>>
> Find you LyX user directory by looking at Help>About. Copy the entire
> directory somewhere else. This will include the preferences file and lots of
> other things.
>
> Richard
>
>


Saving Preferences

2010-02-04 Thread Barak Sh
Hello fellow LyX users,

I would like to save a backup of my preferences (especially keyboard
shortcuts), so that I can instantly load them when (re)installing or
upgrading.
How can this be done?
I'm using LyX 1.6.4 on Windows 7.

Thanks,
Barak Shoshani


Hebrew support in LyX - Culmus and MikTeX 2.8

2009-10-05 Thread Barak Sh
Hello all,
I've been working with LyX and MikTeX for a few years, and Hebrew worked
without problem with Culmus.
However, after upgrading to MikTeX 2.8, Hebrew support failed. When
compiling a LyX document with Hebrew characters, I get:

Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not
found
\begin{document}

 I wasn't able to read the size data for this font,

so I will ignore the font specification.

[Wizards can fix TFM files using TFtoPL/PLtoTF.]

You might try inserting a different font spec;

e.g., type `I\font='.


I tried copying the files manually to the MikTeX folder and running
'initexmf -u' and 'initexmf --mkmaps', but now I get this message:

Font HE8/cmr/m/n/10=david at 10.0pt not loadable: Metric (TFM) file not
found

I also tried uninstalling LyX & MikTeX entirely and re-installing them
again, and then followed exactly the instructions here:

http://wiki.lyx.org/Windows/Hebrew

But this did not work either. Perhaps the Culmus fonts no longer work with
the new version of MikTeX (2.8)?
I would appreciate help with getting Hebrew support to work again. I think
perhaps downgrading to MikTeX 2.7 will solve the problem, but I assume only
a few changes are required for Culmus to work with 2.8.

Thanks in advance,
Barak