Re: Two hopefully simple lyx questions

2013-03-12 Thread Scott Kostyshak
On Tue, Mar 12, 2013 at 6:43 PM, David L. Johnson
 wrote:
> On 03/12/2013 05:24 PM, Rich Shepard wrote:
>>
>> On Tue, 12 Mar 2013, Regina Anger wrote:
>>
>>> However, for me latex does not hyphenate long function names at all, and
>>> I
>>> do not want the fuction name to be cut-off in the middle.
>>
>>
>> Regina,
>>
>>   Sometimes TeX cannot determine where a word should be hypenated so it
>> sticks out into the right margin. We give TeX hints for hyphenating by
>> entering the ERT \- at places where it is OK to hyphenate the word. TeX
>> will
>> pick one of these and use it. I do this quite frequently.
>>
>>   The alternative is to re-order the sentence so the long string is within
>> the line and shorter words surround it. I do this, too, on occasion.
>>
>> Rich
>
> I think the issue is that this is happening in math mode.  There, lines are
> up to the writer entirely.

I don't have much experience with it, but perhaps the breqn package
could be useful here.

Scott


Re: LyX bundle installer on Windows doesn't work

2013-03-12 Thread Uwe Stöhr

Am 12.03.2013 04:49, schrieb Ali Moosavi:


I cleaned up everything and tried again with your latest installer and
still the same problem.


Damn.


I checked Miktex by compiling a hello world lex to pdf, and it indeed works
fine so the problem is not Miktex broken installation.


OK, so LyX is to blame here. Could you please send me in a private mail the content of your windows 
environment variable named "PATH"? (You find it in the properties of "My computer" in the file 
explorer or in the registry under "HKLM\System\ControlSet001\Control\Session Manager\Environment")



Does that installer have a facility so I can point it to my
Miktex installation?


If you have MiKTeX installed - which is now the case for you, you can reinstall LyX using the 
standard installer. There you can specify the path to MiKTeX.


But before doing this I would like to find out why the normal way fails for you.

regards Uwe


Re: Vector Fonts for Russian-English LyX document

2013-03-12 Thread Maria Gouskova
Leonid,

This isn't going to fix your other issues, but let me recommend a good
Unicode font that's free/open source and works well with Cyrillic: Linux
Libertine. There is a recent-ish patch that addresses some Cyrillic issues
there, too.

http://linuxlibertine.org

Maria

On Tue, Mar 12, 2013 at 8:31 PM, Uwe Stöhr  wrote:

> Am 12.03.2013 00:26, schrieb Uwe Stöhr:
>
>
>  I now set up a Wiki page as reference:
>> http://wiki.lyx.org/Windows/**Cyrillic
>>
>> Russian, Ukrainian and Bulgarian works fine, but with Serbian I get some
>> errors. If I could solve
>> the problem, i will inform your.
>>
>
> This is a bug in LyX:
> http://www.lyx.org/trac/**ticket/8590
>
> regards Uwe
>
>


Re: Vector Fonts for Russian-English LyX document

2013-03-12 Thread Uwe Stöhr

Am 12.03.2013 00:26, schrieb Uwe Stöhr:


I now set up a Wiki page as reference:
http://wiki.lyx.org/Windows/Cyrillic

Russian, Ukrainian and Bulgarian works fine, but with Serbian I get some 
errors. If I could solve
the problem, i will inform your.


This is a bug in LyX:
http://www.lyx.org/trac/ticket/8590

regards Uwe



Re: Vector Fonts for Russian-English LyX document

2013-03-12 Thread Uwe Stöhr

Am 12.03.2013 18:57, schrieb leonid baranov:


New package installation.
-- I "installed" the font packages using the
"MiKTeX Package Manager". But then I was supposed to
"Update the file name data base" and to "Update all
format files" in the "MiKTeX Options (Admin) > General"
dialog.


You don't need to do that MiKTeX does this for you automatically.
It seems your MiKTeXinstallation is misconfigured. i propose to
1. uninstall LyX
2. uninstall MiKTeX_completely_
3. check the Windows registry that there are no residues of MiKTeX
4. reinstall LyX using the latest bundle installer (which includes MiKTeX):
http://sourceforge.net/projects/lyxwininstaller/files/LyXWinInstaller/2.0.5.1/LyX-2051-Bundle-5.exe/download


Non-default fonts.
-- I could swear your sample LyX was still producing
a bitmapped Russian on my system,


I tried this on different machines now and it always worked.


I tried a Latin Modern Roman (perhaps, a T2A encoding, too,
can't be sure anymore).


That cannot help, because Latin Modern does not include Cyrillic character (as the name "Latin" 
implies). I guess the cm-super fonts still did the trick for you because they will still be used if 
a font does not contain Cyrillic.



Font change.
-- Suppose I need to switch between several different font
designs in the body of a document


No you don't. Leave all fonts at default setting. cm-super will select the right glyphs 
automatically for you. (The default are the different shapes of the Computer modern fonts and 
CM-super is their vector replacement.) Many basic fonts like Palatino don't include Cyrillic.


If you really want to use another font than Computer modern, then use ttf/otf fonts via the docment 
font settings option "use-non TeX fonts". For more info abot this option, see the LyX userGuide, 
sec. 3.7 "Fonts and Text Styles"



Latex font names.
-- How can I learn which fonts are available on my system
and what are their "Latex" names which can be used in these
commands?


All fonts that you can select via the document settings are installed. The next LyX version supports 
a few more fonts, but thanks to XeTeX you can use nowadays every font you like as TTF or OTF font.



Character sets in the fonts
-- How can I learn which symbols are available in which fonts?


The quickest way is to google them  e.g. by googling for "CTAN latin modern".


Settings combinations
-- How can I learn legitimate combinations of input encodings,
font encodings and font names?


LyX does the font encoding stuff for you, the same is with the input encoding stuff. If you really 
want to play with the input encoding, see the document settings. utf8 might also be suitable for you 
instead of the default koi-8r/u but I would only change this if your really need this.


regards Uwe


Re: Two hopefully simple lyx questions

2013-03-12 Thread Csikos Bela
Regina Anger  írta:
>Hi,I am using lyx to write a thesis, and currently there are only two issues
>which cause problems:1. Sometimes I use long non-breakable words, like
>long function names. In those cases lyx/latex do not attemp to break a new
>line, instead the long function name ignores margins and even sometimes >is 
>placed outside of the printable area.Is this a known problem?

You can add the line
\sloppy
in document preamble (Document->settings->Latex preamble).
It helps to keep margins and force line breaks.

For preventing hyphenation of your long functions add this to the very 
beginning of your document in ERT (=insert text code):
\hyphenation{longfunction1 lon-gfun-cti-on2 etc}.

Staying with the above example logfunction1 will not be hyphenated at all, 
longfunction2 can be hyphenated at every indicated dashes.


>2. Is there any way to use footnotes in the caption 
>of figure floats? Lyx automatically disables the Insert->Footnote menu >item 
>in this case.

I don't know about this one.

bcsikos



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:24 PM, Rich Shepard wrote:

On Tue, 12 Mar 2013, Regina Anger wrote:

However, for me latex does not hyphenate long function names at all, 
and I

do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. 
TeX will

pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is 
within

the line and shorter words surround it. I do this, too, on occasion.

Rich
I think the issue is that this is happening in math mode.  There, lines 
are up to the writer entirely.


--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:20 PM, Regina Anger wrote:

Hi Liviu,

> > 1. Sometimes I use long non-breakable words, like long function 
names. In
> > those cases lyx/latex do not attemp to break a new line, instead 
the long
> > function name ignores margins and even sometimes is placed outside 
of the

> > printable area.
> > Is this a known problem? Are there workarrounds available?
> >
> https://sites.google.com/site/tsewiki/resources/latex
>
> LyX_Essentials.pdf
> Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, 
and I do not want the fuction name to be cut-off in the middle.


Is there any way to specify that in case of hyphenation latex should 
instead put this specific word into the next line completely?


Thx
What you are really talking about is a too-long math line.  This happens 
all the time with long expressions, though I have never had a math 
function name so long that it caused trouble.


You can manually break the line by using a multiline math environment.  
LyX will let you choose from a list in the menus.


It might just be that you need to make the math line, where the function 
is, a displayed line rather than inline.  Is the function so long that 
it takes more than a whole line of a page?  TeX sometimes has trouble 
with inline equations.  It will not hyphenate such a line (hyphens would 
be interpreted as minus signs), leaving it for you to do manually.



--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip  írta:
>On 03/12/2013 01:16 PM, Csikos Bela wrote:
>> This behavior seems like result of serious bug.
>> The width of table can be specified to fixed value. It would be nonsense
>> if giving this option resulted wrong table layout/placement.
>
>You can always rewrite the code for typesetting the tables, you don't 
>have to be so angry.

Sorry if it sounded like that, I was not angry at all.

>What you're saying is a contradiction, imo. First, you set your table 
>width to 80% of text width, but then you fill it with cells that exceed 
>that width, still you expect everything to work.

That's the key. I haven't realized my table width was wider than
the defined 80%. Now I measured it, and you're right, it is ~86%.
If I set the defined width to 90%, alignment is correct.
That is, it was my fault, sorry.

Thanks!

bcsikos



Re: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Paul A. Rubin wrote:


Footnotes in captions is an unholy mess. Try googling it and you'll see.


  The LyX wiki has useful help on this ... I used it in a recent paper. You
make an mbox in the float, put the graphic in one part and the caption in
the other (I forget the exact process but it's all in the wiki page). Works
OK.

Rich



Re: Two hopefully simple lyx questions

2013-03-12 Thread Paul A . Rubin
Try \linebreak[4]\mbox{annoyinglongunbreakableword}. You can put the whole thing
in a TeX box, or put everything up to and including the first brace in a TeX
box, the unbreakable mess in ordinary text, and the trailing brace in another
TeX box.

Footnotes in captions is an unholy mess. Try googling it and you'll see.

Paul





RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


So, there is no way to tell TeX to put a word on the next line completely
in case it would be hyphenated? Otherwise it seems I really have to take
the re-ordering approach, however if possible I would like to avoid this
as it seems not very robust in regards to changes.


Regina,

  Have you tried entering (as ERT) \n (newline) before your long function
name? I've not done this but it should force a line break there.

Rich



RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Rich,

>Sometimes TeX cannot determine where a word should be hypenated so it
> sticks out into the right margin. We give TeX hints for hyphenating by
> entering the ERT \- at places where it is OK to hyphenate the word. TeX will
> pick one of these and use it. I do this quite frequently.
> 
>The alternative is to re-order the sentence so the long string is within
> the line and shorter words surround it. I do this, too, on occasion.

So, there is no way to tell TeX to put a word on the next line completely in 
case it would be hyphenated?
Otherwise it seems I really have to take the re-ordering approach, however if 
possible I would like to avoid this as it seems not very robust in regards to 
changes.

Thx
  

RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


However, for me latex does not hyphenate long function names at all, and I
do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. TeX will
pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is within
the line and shorter words surround it. I do this, too, on occasion.

Rich



RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Liviu,

> > 1. Sometimes I use long non-breakable words, like long function names. In
> > those cases lyx/latex do not attemp to break a new line, instead the long
> > function name ignores margins and even sometimes is placed outside of the
> > printable area.
> > Is this a known problem? Are there workarrounds available?
> >
> https://sites.google.com/site/tsewiki/resources/latex
> 
> LyX_Essentials.pdf
> Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, and I do 
not want the fuction name to be cut-off in the middle.

Is there any way to specify that in case of hyphenation latex should instead 
put this specific word into the next line completely?

Thx
  

Re: Two hopefully simple lyx questions

2013-03-12 Thread Liviu Andronic
On Tue, Mar 12, 2013 at 8:20 PM, Regina Anger  wrote:
> Hi,
>
> I am using lyx to write a thesis, and currently there are only two issues
> which cause problems:
>
> 1. Sometimes I use long non-breakable words, like long function names. In
> those cases lyx/latex do not attemp to break a new line, instead the long
> function name ignores margins and even sometimes is placed outside of the
> printable area.
> Is this a known problem? Are there workarrounds available?
>
https://sites.google.com/site/tsewiki/resources/latex

LyX_Essentials.pdf
Section 5.6

Liviu


> 2. Is there any way to use footnotes in the caption of figure floats? Lyx
> automatically disables the Insert->Footnote menu item in this case.
>
> Thx



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Vector Fonts for Russian-English LyX document

2013-03-12 Thread leonid baranov
Uwe,

Please, allow me to share some results.

1.
MiKTeX placement on a D-partition.
-- I was barking up the wrong tree. MiKTeX worked
fine in this configuration. No problems with updating.

2.
New package installation.
-- I "installed" the font packages using the
"MiKTeX Package Manager". But then I was supposed to
"Update the file name data base" and to "Update all
format files" in the "MiKTeX Options (Admin) > General"
dialog. Initially, I overlooked that. Now I did it.
  Perhaps, you'll save a score of other chaps by
reminding them about that point in your
http://wiki.lyx.org/Windows/Cyrillic

3.
Non-default fonts.
-- I could swear your sample LyX was still producing
a bitmapped Russian on my system, even after I corrected
my error in the installation of new latex fonts. But then
I tried a Latin Modern Roman (perhaps, a T2A encoding, too,
can't be sure anymore). That produced the vector fonts, for
a first time. After that, I could revert back to your original
settings, all defaults. Now the bitmapped fonts were gone for
good.
  So, it appears that there was an "on-the-fly"
change in the font configuration. Behind the scenes.
(Not controlled by my Latex code anymore. But I am
grateful for this outcome).

I am not sure whether the remaining questions are
a legitimate followup or a separate entry. But I'll
dare to ask.

4. 
Font change.
-- Suppose I need to switch between several different font
designs in the body of a document (say, between "Latin Modern"
and "Palatino"). What are the Latex commands?

5.
Latex font names.
-- How can I learn which fonts are available on my system
and what are their "Latex" names which can be used in these
commands?

6.
Character sets in the fonts
-- How can I learn which symbols are available in which fonts?

7.
Settings combinations
-- How can I learn legitimate combinations of input encodings,
font encodings and font names?

Once again, you saved me a lot of frustration, thank you.

Best regards,
Leonid.





Re: table alignment example

2013-03-12 Thread PhilipPirrip

On 03/12/2013 01:16 PM, Csikos Bela wrote:

This behavior seems like result of serious bug.
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.


You can always rewrite the code for typesetting the tables, you don't 
have to be so angry.


What you're saying is a contradiction, imo. First, you set your table 
width to 80% of text width, but then you fill it with cells that exceed 
that width, still you expect everything to work.
Even left aligned tables will protrude the margins if you make them too 
big for the size of the text.





Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip  írta:
>
>> I have problem with table centering and aligning to the right.
>
>You set the width of the right aligned table to 80% of the line width.

Text width to be accurate. I want it to be like that.

>LaTeX probably calculates the position of your table with respect to 
>this size. Table is, however, rendered to accommodate the whole text in 
>each of the cells, and turns out bigger.

I can't understand this. Could explain it, please? Possibly by giving example?
Furthemore this does not explain why the table looks correct when left aligned.

>Solution: let LaTeX control the size of the table automatically.

This is not solution, this is an ugly workaround. I set that width on purpose 
since I want
more distance between columns than default.

This behavior seems like result of serious bug. 
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.

bcsikos



Re: Vector Fonts for Russian-English LyX document

2013-03-12 Thread leonid baranov
Liviu,

Thank you!

Both your's and Uwe's replies (and the LyX samples) were
critical in sorting out what went wrong.

For one thing, I did not quite complete the installation
of the font packages. No less importantly, I was selecting
'wrong' fonts (never tried 'DejaVu Serif' before).

Now all 3 converters work properly, PDF(pdflatex|luatex|xetex).
Each produces a vector font.

Actually, I did study all I saw on the list about the Multilingual
documents. But it didn't help until I got your LyX samples. There
is a huge combinatorial space of what can go wrong. And did it go,
in my case.

I am now slightly puzzled as to why I couldn't get the desired
result via Lua and XeTeX before I installed the new Latex fonts.
I did try  both. And I would expect they should not depend on
these fonts. Yet, the results were either errors, or missing
Russian text, or bitmapped Russian.

On the other hand, I no longer remember all combinations of
input encodings, Latex font encodings, font selections, and PDF
converters that I tried. Perhaps, that explains the difference.
 
I also had a chance to appreciate your advice of preferring
'non-Latex fonts + PDF(luatex | xetex)' over the
'Latex fonts + pdflatex'. Indeed, the choice of beautiful fonts
is way greater. And then there is no headache anymore to decide
a latex font encoding. 

I will post the rest of my report in a reply to Uwe.

With kind regards,
Leonid.




Re: Vector Fonts for Russian-English LyX document

2013-03-12 Thread Liviu Andronic
On Tue, Mar 12, 2013 at 1:27 PM, leonid baranov
 wrote:
> Uwe,
>
> Really appreciate your coming to rescue.
>
> It's a month since I am lost in the ocean of Tex-reading
> and still didn't know where to start digging.
>
> I tested your attached sample. I exactly followed your
> instructions at http://wiki.lyx.org/Windows/Cyrillic.
>
> Now English text is rendered in a vector font, but the
> Russian one is still bitmapped in PDF.
>
I did the trick once with a four-language document (English, French,
Russian and Romanian or Greek, not sure I remember) and it went OK.
Multilingual documents have been discussed on the list several times
so do search the archives. But I think the best option, or at least
the least painful, is to use XeTeX or LuaTeX with an opentype font
that provides both latin and cyrillic characters. It should be easy to
find one. Since the encoding is utf8, it should remove a good deal of
encoding related issues and teh resulting fonts should be vector. See
attached.

Regards,
Liviu



> Perhaps, something didn't work out right with my installation
> of either MiKTeX itself or the 'cm-super' and 'cmcyr' font packages.
>   In fact, as I already described in my initial post, I did
> install these two packages just as you said, using the MiKTeX's
> package manager.
>
> But I have two suspicions to examine.
> 1.
> Firstly, my MiKTeX installation is somewhat unorthodox in
> that I destined it to 'D:'-partition of my hard drive (just
> to stay insulated from any possible crashes and
> re-installations of the system 'C:'-partition).
>   Still, I see some new folders and files are being
> created in 'C:\Program Data' and 'C:\Users'.
>   I am wondering if the internal scripts are properly
> allowing for a possibility of such structure of directories.
> 2.
> When running the MiKTeX's package manager, I didn't see any
> obvious visual cue as to when the installation is fully complete.
>   After the text messages (the number of downloaded and
> installed files) stopped changing, the window just froze.
>   So, I waited for some several minutes, then closed it.
> The two packages were marked as installed both in 'Package
> Manager (Admin)' and in 'MiKTeX Options (Admin)'
>   But now  I am wondering if it is possible that I have
> interrupted the installation before it was fully over.
>
> I will try to re-install everything and let you know
> the results.
>
> Many thanks for this help,
> Leonid
>
>
>
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


newfile2.lyx
Description: application/lyx


newfile2.pdf
Description: Adobe PDF document


Re: Vector Fonts for Russian-English LyX document

2013-03-12 Thread leonid baranov
Uwe,

Really appreciate your coming to rescue.

It's a month since I am lost in the ocean of Tex-reading
and still didn't know where to start digging.

I tested your attached sample. I exactly followed your
instructions at http://wiki.lyx.org/Windows/Cyrillic.

Now English text is rendered in a vector font, but the
Russian one is still bitmapped in PDF.

Perhaps, something didn't work out right with my installation
of either MiKTeX itself or the 'cm-super' and 'cmcyr' font packages.
  In fact, as I already described in my initial post, I did
install these two packages just as you said, using the MiKTeX's
package manager.

But I have two suspicions to examine.
1.
Firstly, my MiKTeX installation is somewhat unorthodox in
that I destined it to 'D:'-partition of my hard drive (just
to stay insulated from any possible crashes and
re-installations of the system 'C:'-partition).
  Still, I see some new folders and files are being
created in 'C:\Program Data' and 'C:\Users'.
  I am wondering if the internal scripts are properly
allowing for a possibility of such structure of directories.
2.
When running the MiKTeX's package manager, I didn't see any
obvious visual cue as to when the installation is fully complete.
  After the text messages (the number of downloaded and
installed files) stopped changing, the window just froze.
  So, I waited for some several minutes, then closed it.
The two packages were marked as installed both in 'Package
Manager (Admin)' and in 'MiKTeX Options (Admin)'
  But now  I am wondering if it is possible that I have
interrupted the installation before it was fully over.

I will try to re-install everything and let you know
the results.

Many thanks for this help,
Leonid