Re: :yx scanning disks on opening

2015-07-10 Thread Stephan Witt
Am 10.07.2015 um 07:54 schrieb Bob Alvarez reward...@gmail.com:

 On 7/9/15 3:27 PM, Scott Kostyshak wrote:
 
 Can you please go to Help  About LyX and copy/paste the information? I
 am particularly interested in the Library directory and User
 directory.
 
 
 LyX Version 2.1.3
 (Friday, February 06, 2015)
 
 Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
 User directory: ~\AppData\Roaming\LyX2.1\
 
 --
 
 Scott
 
 See the information above. I do not know how the program uses the user 
 directory but AFAIK Windows does not define the ~ symbol as the home 
 directory. I tried to use it on the Windows command line program cmd.exe and 
 it did not recognize it.
 
 C:\Users\bobcd ~
 The system cannot find the path specified.

LyX does the substitution of ~ with the home directory itself at runtime.

Stephan

Re: Different fonts in multilingual document

2015-07-10 Thread Guenter Milde
On 2015-07-08, Guenter Milde wrote:
 On 2015-07-08, Richard Opheim wrote:

 So what I want to do is to have one font that applies only to
 English and another that applies only to Japanese.

...

 Times New Roman is set in the Settings/Fonts/Roman dropdown box. I have
 of course checked non-TeX fonts.


 ... I read somewhere about the following command which I inserted into
 the preamble.

  \newfontfamily\CJKfont{MS PMincho}

It would be interesting to find out where... maybe this works with Chinese
or Korean, if these languages are supported by polyglossia or some extra
package is required.

 The problem is, that polyglossia does not support Japanese! Therefore, LyX
 selects babel instead of polyglossia as language package as soon as a part
 of the document is in  Japanese language.

 What are the options then:

  * use the xeCJK package provided with XeTeX (in my Debian TeXLive
installation, at least).

In the LaTeX preamble, write:

  \usepackage{xeCJK}
  \setCJKmainfont{Droid Sans Japanese}

and XeTeX will automatically use the CJKmainfont for Chinese, Korean and
Japanese Unicode characters.

+ no special markup of Japanese words/text required, it just works!
- package documentation is in Chinese.

Source: 
http://www.preining.info/blog/2014/12/writing-japanese-in-latex-part-3-simple-documents/

 * set the sans-serif or teletype(monospace) font to the Japanese font and
   change the font family for Japanese text parts
   (works only, if you have a spare font family).

To change text properties, select the text and go to EditText
styleCustom (or similar, my LyX speaks German) and select from the
Family drop-down list.

There is also a tool-bar button to re-apply the last text-features
setting to the selection.

 * use a dummy language that is supported by polyglossia.

Polyglossia is the default language package used by LyX with non-TeX
fonts. 

+ It supports per-language and per-skript fonts defined with

 \newfontfamily\languagefont{Font Name}

- it does not support Japanese.

Source: 
http://mirrors.ctan.org/macros/latex/contrib/polyglossia/polyglossia.pdf

   In the LaTeX preamble write, e.g.

 \newfontfamily\telugufont{MS PMincho}

   and in the document mark the Japanese text parts as beeing in the
   language telugu.


The workaround with Babel is only advisable, if you have babel support for
Japanese installed and want the Japanese text parts with the correct
language setting.

(Problem: Although LyX knows which of the two language packages babel
and polyglossia support which languagages, it does not check which
language definition files are actually installed.)

Günter



Re: automatically updating latex code used in a LyX document

2015-07-10 Thread José Matos
On Thursday 09 July 2015 23:19:07 Liviu Andronic wrote:
 Perhaps we should consider renaming it to something like: Child
 Document (TeX or LyX)?
 
 Liviu

Note that a child document can also be a programming listings or any other file 
to be included verbatim. :-)

-- 
José Abílio


Re: automatically updating latex code used in a LyX document

2015-07-10 Thread Liviu Andronic
On Fri, Jul 10, 2015 at 11:23 AM, José Matos jama...@lyx.org wrote:
 On Thursday 09 July 2015 23:19:07 Liviu Andronic wrote:
 Perhaps we should consider renaming it to something like: Child
 Document (TeX or LyX)?

 Liviu

 Note that a child document can also be a programming listings or any other 
 file to be included verbatim. :-)

Absolutely, yet our naming is so terse so as to prove confusing. Maybe
we need a tooltip there, or a status message appearing when hovering
the item, or something else. Otherwise people simply won't really know
what that item is supposed to do, or worse assume that LyX is unable
to do this at all (when it does!). I know RTFM would be one way to
approach this, but maybe there is something we can do to ease
confusion... Say, and yet another shot in the dark: Include Child
Document (.tex, .lyx, etc.)

Cheers,
Liviu



 --
 José Abílio



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library


math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread Neal Becker
I know it used to work, but something broke.

If I turn on math preview, it does something horrible.  It looks like the 
preview of math now occupies about 1/2 of the screen, making the screen 
quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
of this single x^2 that occupies like 1/2 of the screen.



Re: math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 07:06:14AM -0400, Neal Becker wrote:
 I know it used to work, but something broke.
 
 If I turn on math preview, it does something horrible.  It looks like the 
 preview of math now occupies about 1/2 of the screen, making the screen 
 quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
 of this single x^2 that occupies like 1/2 of the screen.
 

I'm not sure if it's of any interest to you right now, but there have
been *many* improvements to preview. Most of these will be released with
2.1.4 which is coming soon. Please let us know if this fixes/breaks
anything for you as far as preview.

Best,

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 07:37:30AM +0200, Daniel CLEMENT wrote:
 Le jeudi 09 juillet 2015 à 10:53 -0700, Bob Alvarez a écrit :
  
   1. I usually turn my computer off at night. I see the disk scanning when
   I first start Lyx after the computer has been off. After the first
   opening, I do not see the scanning if I close Lyx and then re-open it
  
  
  This is not correct. Lyx seems to scan the flash drive every time I open it.
  
  Bob
  
 Forgive a trivial suggestion, but could it be that a file was opened
 directly from the flash drive, and would still be in the recent files
 list?

Bob are you subscribed to lyx-users? I just want to make sure you got
Daniel's suggestion (see the quote above), which I think is a good one
to check.

Besides that, I'm really not sure what to suggest. On Linux figuring out
what LyX is trying to access (even if it does not exist) would be a
simple exercise of using 'strace', or even when you see the scanning be
done just run 'lsof'. I do not know much about Windows though.

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 08:03:00AM +0200, Stephan Witt wrote:
 Am 10.07.2015 um 07:54 schrieb Bob Alvarez reward...@gmail.com:
 
  On 7/9/15 3:27 PM, Scott Kostyshak wrote:
  
  Can you please go to Help  About LyX and copy/paste the information? I
  am particularly interested in the Library directory and User
  directory.
  
  
  LyX Version 2.1.3
  (Friday, February 06, 2015)
  
  Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
  User directory: ~\AppData\Roaming\LyX2.1\
  
  --
  
  Scott
  
  See the information above. I do not know how the program uses the user 
  directory but AFAIK Windows does not define the ~ symbol as the home 
  directory. I tried to use it on the Windows command line program cmd.exe 
  and it did not recognize it.
  
  C:\Users\bobcd ~
  The system cannot find the path specified.
 
 LyX does the substitution of ~ with the home directory itself at runtime.

You could search all drives for the folder LyX2.1.

The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.

Best,

Scott


Re: Can't preview under OS X beta

2015-07-10 Thread Christopher Menzel
Ah, thanks for this. Briefly, the problem is that OS X's new System 
Integrity Protection (SIP) feature in El Capitan (OS X 10.11) does not 
allow one to use admin privileges to write to certain system 
directories, notably /usr. Currently, however, MacTeX distributions 
create a symbolic link texbin in /usr that points (rather indirectly, 
via other symlinks) to the TeX binaries of one's preferred distribution 
and GUI applications like LyX use that link to find the relevant 
binaries. With SIP in place, however, that symlink can't be written to 
/usr and stuff breaks.


Fortunately, this (from my perspective) annoyingly paternalistic feature 
can be turned off: You can reboot into recovery mode (Cmd-r at startup) 
and select Security Configuration from the Utilities menu option. This 
brings up a box that lets you uncheck an Enforce System Integrity 
Protection option. Upon rebooting, you can once again write to /usr 
with admin privileges. Somewhat curiously, I reinstalled MacTeX 2015 
expecting it to create the symlink in question, but it didn't. So I 
created it manually (from inside the /usr directory with the terminal 
command sudo ln -s /Library/TeX/texbin texbin) and now everything 
works once again.


I'm planning to leave SIP off for the time being but, if I were to turn 
it back on, the symlink I created would surely remain in place. So it's 
not like one has to choose between a working TeX distribution and SIP. 
Hopefully, Apple will not decide to be *so* paternalistic that they take 
away the option of turning SIP off, though, ideally I suppose, future 
versions of GUI apps will be reconfigured so they look at 
/Library/TeX/texbin instead of /usr/texbin for the TeX binaries.


-chris

Scott Kostyshak wrote:

On Thu, Jul 9, 2015 at 7:55 PM, Chris Menzelchris.men...@gmail.com  wrote:

Kindly LyX folk,


So, unable to resist the siren call of the latest and greatest software, I
just installed OS X 10.11 Beta and, as has happened in the past in similar
situations, it broke LyX such that it couldn't find any .cls files or fonts.
Fortunately, also as in the past, the fix was to start LyX from the command
line and select Tools -  Reconfigure, and then restart LyX as usual.
However, I'm still having a problem — I'm unable to preview. I'm editing a
file called Florianopolis.lyx and I get the message


/var/folders/t5/fp07n4n507d_ymgd5syhywhwgn/T/lyx_tmpdir.fIZQQyjm4829/lyx_tmpbuf0/Florianopolis.pdf


Going into that dir, I do see there is only Forianopolis.tex, no pdf. If I
compile the .tex file, I don't get the error message anymore but that file
remains static — editing Florianopolis.lyx and trying to update the preview
has no effect; the old PDF is not replaced by a new one reflecting the edits
to the LyX source file. I've tried removing the LyX tmp folders so they'd be
recreated, which they were upon a restgart, but they are empty, and
attempting to preview once again brings up the above error message.


Ideas, solutions, suggestions (other than Don't install beta software! :-)
appreciated.


Related post:
http://tex.stackexchange.com/questions/254562/lyx-cannot-recognize-my-mactex-2015
and link regarding El Capitan:
http://article.gmane.org/gmane.comp.tex.macosx/47074

Scott




Re: math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread José Matos
On Friday 10 July 2015 07:06:14 Neal Becker wrote:
 I know it used to work, but something broke.
 
 If I turn on math preview, it does something horrible.  It looks like the 
 preview of math now occupies about 1/2 of the screen, making the screen 
 quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
 of this single x^2 that occupies like 1/2 of the screen.

Hi Neal,
I am using lyx on F22 and I do not see that problem. I have preview 
always on and do not see any change.

If you start lyx from a console what are the errors that you see? 
Sometimes the errors hint at the problem.

Regards,
-- 
José Abílio


Re: Different fonts in multilingual document

2015-07-10 Thread Richard Opheim
On Fri, Jul 10, 2015 at 1:37 AM, Guenter Milde mi...@users.sf.net wrote:

 On 2015-07-08, Guenter Milde wrote:
  On 2015-07-08, Richard Opheim wrote:

  So what I want to do is to have one font that applies only to
  English and another that applies only to Japanese.

 ...

  Times New Roman is set in the Settings/Fonts/Roman dropdown box. I
 have
  of course checked non-TeX fonts.


  ... I read somewhere about the following command which I inserted into
  the preamble.

   \newfontfamily\CJKfont{MS PMincho}

 It would be interesting to find out where... maybe this works with Chinese
 or Korean, if these languages are supported by polyglossia or some extra
 package is required.


http://tex.stackexchange.com/questions/203078/two-fonts-for-two-languages-using-lyx
This information however didn't lead me to success.


  The problem is, that polyglossia does not support Japanese! Therefore,
 LyX
  selects babel instead of polyglossia as language package as soon as a
 part
  of the document is in  Japanese language.

  What are the options then:

   * use the xeCJK package provided with XeTeX (in my Debian TeXLive
 installation, at least).

 In the LaTeX preamble, write:

   \usepackage{xeCJK}
   \setCJKmainfont{Droid Sans Japanese}

 and XeTeX will automatically use the CJKmainfont for Chinese, Korean
 and
 Japanese Unicode characters.

 + no special markup of Japanese words/text required, it just works!


Tried it out. This is the best method of all! Works like a charm and no
text selection.


 - package documentation is in Chinese.


Could be a problem for some non-Chinese speakers, but not for me, as I
don't require any additional functionality.


 Source:
 http://www.preining.info/blog/2014/12/writing-japanese-in-latex-part-3-simple-documents/


  * set the sans-serif or teletype(monospace) font to the Japanese font and
change the font family for Japanese text parts
(works only, if you have a spare font family).

 To change text properties, select the text and go to EditText
 styleCustom (or similar, my LyX speaks German) and select from the
 Family drop-down list.

 There is also a tool-bar button to re-apply the last text-features
 setting to the selection.


OK, I tried it on my doc and it worked. This method is easier than the
dummy-language method because you don't have to write any commands in the
preamble. Other than that, they both involve selecting text, which could be
time-consuming.


  * use a dummy language that is supported by polyglossia.

 Polyglossia is the default language package used by LyX with non-TeX
 fonts.

 + It supports per-language and per-skript fonts defined with

  \newfontfamily\languagefont{Font Name}

 - it does not support Japanese.

 Source:
 http://mirrors.ctan.org/macros/latex/contrib/polyglossia/polyglossia.pdf

In the LaTeX preamble write, e.g.

  \newfontfamily\telugufont{MS PMincho}

and in the document mark the Japanese text parts as beeing in the
language telugu.


 The workaround with Babel is only advisable, if you have babel support for
 Japanese installed and want the Japanese text parts with the correct
 language setting.


This is the method I'm currently using. Though I had to set the language to
basque instead of japanese. Anyway, I'll switch to writing
 \usepackage{xeCJK}
  \setCJKmainfont{MS PMincho} in the preamble from now on, which will
relieve me of having to select text.


 (Problem: Although LyX knows which of the two language packages babel
 and polyglossia support which languagages, it does not check which
 language definition files are actually installed.)

 Günter




-- 
Richard Opheim
P.O. Box 2261 Arizona City, AZ 85123
Tel: (1) 206-965-0564
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Kindle conversion

website URL:
https://sites.google.com/site/opheimrichard/home

self-publishing faq:
 https:/ https://sites.google.com/site/opheimrichard/home
/sites.google.com/site/opheimrichard/publishing-faq
https://sites.google.com/site/opheimrichard/home

publishing tasks:
https://sites.google.com/site/opheimrichard/publishing-faq/publishing-tasks

marketing techniques:
https://sites.google.com/site/opheimrichard/publishing-faq/marketing

Japanese translation  consulting:
https://sites.google.com/site/japanesetranslationconsulting/
https://url.sites.google.com/site/japanesetranslationconsulting/

blog:
http://foliocirculaire.blogspot.com

*It is* the glory of God to conceal a thing: but the honour of kings *is* to
search out a matter.
Proverbs 25:2


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

On 7/10/15 4:38 AM, Scott Kostyshak wrote:


The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.




I have cygwin installed on my computer so I tried using its strace 
command to run Lyx.


Unfortunately, this was not very edifying, at least to me. Perhaps 
cygwin is not that well integrated into the windows operating system so 
it does not report internal Windows system calls??


Bob

Here is a capture of the commands and output with my comments:

--- Comment: first I tried to run Lyx with strace using some options 
(V=version, d=debug). It just gave the version without running Lyx

---end comment

$ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
strace (cygwin) 1.7.35
System Trace
Copyright (C) 2000 - 2015 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


--- comment
then I used strace without any options. Now it did run Lyx, I got the 
scan of the flash drive but there was no output while Lyx was running. 
After I exited Lyx (File|exit) I got the few lines of output shown below.

 end comment

$ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
--- Process 1080, exception 401f at 77A4129B

bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
$

--comment
I tried re-directing the output of the strace command but got 
essentially the same result as shown above. The process number was 
different but the memory address of the exception was the same.

--- end comment


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

I did look on the 'recent files' list. None are on the flash drive.



Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 5:06 PM, Bob Alvarez reward...@gmail.com wrote:
 On 7/10/15 4:38 AM, Scott Kostyshak wrote:

 The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
 caching something on your flash drive. Again, I have no idea on Windows
 how find this out. 'strace' would be what I would use on Linux.

 Please keep us updated on this if you figure out the mystery.



 I have cygwin installed on my computer so I tried using its strace command
 to run Lyx.

 Unfortunately, this was not very edifying, at least to me. Perhaps cygwin is
 not that well integrated into the windows operating system so it does not
 report internal Windows system calls??

 Bob

 Here is a capture of the commands and output with my comments:

 --- Comment: first I tried to run Lyx with strace using some options
 (V=version, d=debug). It just gave the version without running Lyx
 ---end comment

 $ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
 strace (cygwin) 1.7.35
 System Trace
 Copyright (C) 2000 - 2015 Red Hat, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


 --- comment
 then I used strace without any options. Now it did run Lyx, I got the scan
 of the flash drive but there was no output while Lyx was running. After I
 exited Lyx (File|exit) I got the few lines of output shown below.
  end comment

 $ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
 --- Process 1080, exception 401f at 77A4129B

 bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
 $

 --comment
 I tried re-directing the output of the strace command but got essentially
 the same result as shown above. The process number was different but the
 memory address of the exception was the same.
 --- end comment

I have no experience using Cygwin so I don't have any other ideas on
this strategy. You might be right that it's hard for strace to follow
native Windows system calls.

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 7:38 AM, Scott Kostyshak skost...@lyx.org wrote:

 You could search all drives for the folder LyX2.1.

I just wanted to make sure you saw this idea (I didn't see a reply to
it). We still have not ruled out that the user folder could be on the
flash drive for some strange reason.

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Stephan Witt
Am 10.07.2015 um 07:54 schrieb Bob Alvarez reward...@gmail.com:

 On 7/9/15 3:27 PM, Scott Kostyshak wrote:
 
 Can you please go to Help  About LyX and copy/paste the information? I
 am particularly interested in the Library directory and User
 directory.
 
 
 LyX Version 2.1.3
 (Friday, February 06, 2015)
 
 Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
 User directory: ~\AppData\Roaming\LyX2.1\
 
 --
 
 Scott
 
 See the information above. I do not know how the program uses the user 
 directory but AFAIK Windows does not define the ~ symbol as the home 
 directory. I tried to use it on the Windows command line program cmd.exe and 
 it did not recognize it.
 
 C:\Users\bobcd ~
 The system cannot find the path specified.

LyX does the substitution of ~ with the home directory itself at runtime.

Stephan

Re: Different fonts in multilingual document

2015-07-10 Thread Guenter Milde
On 2015-07-08, Guenter Milde wrote:
 On 2015-07-08, Richard Opheim wrote:

 So what I want to do is to have one font that applies only to
 English and another that applies only to Japanese.

...

 Times New Roman is set in the Settings/Fonts/Roman dropdown box. I have
 of course checked non-TeX fonts.


 ... I read somewhere about the following command which I inserted into
 the preamble.

  \newfontfamily\CJKfont{MS PMincho}

It would be interesting to find out where... maybe this works with Chinese
or Korean, if these languages are supported by polyglossia or some extra
package is required.

 The problem is, that polyglossia does not support Japanese! Therefore, LyX
 selects babel instead of polyglossia as language package as soon as a part
 of the document is in  Japanese language.

 What are the options then:

  * use the xeCJK package provided with XeTeX (in my Debian TeXLive
installation, at least).

In the LaTeX preamble, write:

  \usepackage{xeCJK}
  \setCJKmainfont{Droid Sans Japanese}

and XeTeX will automatically use the CJKmainfont for Chinese, Korean and
Japanese Unicode characters.

+ no special markup of Japanese words/text required, it just works!
- package documentation is in Chinese.

Source: 
http://www.preining.info/blog/2014/12/writing-japanese-in-latex-part-3-simple-documents/

 * set the sans-serif or teletype(monospace) font to the Japanese font and
   change the font family for Japanese text parts
   (works only, if you have a spare font family).

To change text properties, select the text and go to EditText
styleCustom (or similar, my LyX speaks German) and select from the
Family drop-down list.

There is also a tool-bar button to re-apply the last text-features
setting to the selection.

 * use a dummy language that is supported by polyglossia.

Polyglossia is the default language package used by LyX with non-TeX
fonts. 

+ It supports per-language and per-skript fonts defined with

 \newfontfamily\languagefont{Font Name}

- it does not support Japanese.

Source: 
http://mirrors.ctan.org/macros/latex/contrib/polyglossia/polyglossia.pdf

   In the LaTeX preamble write, e.g.

 \newfontfamily\telugufont{MS PMincho}

   and in the document mark the Japanese text parts as beeing in the
   language telugu.


The workaround with Babel is only advisable, if you have babel support for
Japanese installed and want the Japanese text parts with the correct
language setting.

(Problem: Although LyX knows which of the two language packages babel
and polyglossia support which languagages, it does not check which
language definition files are actually installed.)

Günter



Re: automatically updating latex code used in a LyX document

2015-07-10 Thread José Matos
On Thursday 09 July 2015 23:19:07 Liviu Andronic wrote:
 Perhaps we should consider renaming it to something like: Child
 Document (TeX or LyX)?
 
 Liviu

Note that a child document can also be a programming listings or any other file 
to be included verbatim. :-)

-- 
José Abílio


Re: automatically updating latex code used in a LyX document

2015-07-10 Thread Liviu Andronic
On Fri, Jul 10, 2015 at 11:23 AM, José Matos jama...@lyx.org wrote:
 On Thursday 09 July 2015 23:19:07 Liviu Andronic wrote:
 Perhaps we should consider renaming it to something like: Child
 Document (TeX or LyX)?

 Liviu

 Note that a child document can also be a programming listings or any other 
 file to be included verbatim. :-)

Absolutely, yet our naming is so terse so as to prove confusing. Maybe
we need a tooltip there, or a status message appearing when hovering
the item, or something else. Otherwise people simply won't really know
what that item is supposed to do, or worse assume that LyX is unable
to do this at all (when it does!). I know RTFM would be one way to
approach this, but maybe there is something we can do to ease
confusion... Say, and yet another shot in the dark: Include Child
Document (.tex, .lyx, etc.)

Cheers,
Liviu



 --
 José Abílio



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library


math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread Neal Becker
I know it used to work, but something broke.

If I turn on math preview, it does something horrible.  It looks like the 
preview of math now occupies about 1/2 of the screen, making the screen 
quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
of this single x^2 that occupies like 1/2 of the screen.



Re: math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread José Matos
On Friday 10 July 2015 07:06:14 Neal Becker wrote:
 I know it used to work, but something broke.
 
 If I turn on math preview, it does something horrible.  It looks like the 
 preview of math now occupies about 1/2 of the screen, making the screen 
 quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
 of this single x^2 that occupies like 1/2 of the screen.

Hi Neal,
I am using lyx on F22 and I do not see that problem. I have preview 
always on and do not see any change.

If you start lyx from a console what are the errors that you see? 
Sometimes the errors hint at the problem.

Regards,
-- 
José Abílio


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 08:03:00AM +0200, Stephan Witt wrote:
 Am 10.07.2015 um 07:54 schrieb Bob Alvarez reward...@gmail.com:
 
  On 7/9/15 3:27 PM, Scott Kostyshak wrote:
  
  Can you please go to Help  About LyX and copy/paste the information? I
  am particularly interested in the Library directory and User
  directory.
  
  
  LyX Version 2.1.3
  (Friday, February 06, 2015)
  
  Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
  User directory: ~\AppData\Roaming\LyX2.1\
  
  --
  
  Scott
  
  See the information above. I do not know how the program uses the user 
  directory but AFAIK Windows does not define the ~ symbol as the home 
  directory. I tried to use it on the Windows command line program cmd.exe 
  and it did not recognize it.
  
  C:\Users\bobcd ~
  The system cannot find the path specified.
 
 LyX does the substitution of ~ with the home directory itself at runtime.

You could search all drives for the folder LyX2.1.

The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.

Best,

Scott


Re: math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 07:06:14AM -0400, Neal Becker wrote:
 I know it used to work, but something broke.
 
 If I turn on math preview, it does something horrible.  It looks like the 
 preview of math now occupies about 1/2 of the screen, making the screen 
 quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
 of this single x^2 that occupies like 1/2 of the screen.
 

I'm not sure if it's of any interest to you right now, but there have
been *many* improvements to preview. Most of these will be released with
2.1.4 which is coming soon. Please let us know if this fixes/breaks
anything for you as far as preview.

Best,

Scott


Re: Different fonts in multilingual document

2015-07-10 Thread Richard Opheim
On Fri, Jul 10, 2015 at 1:37 AM, Guenter Milde mi...@users.sf.net wrote:

 On 2015-07-08, Guenter Milde wrote:
  On 2015-07-08, Richard Opheim wrote:

  So what I want to do is to have one font that applies only to
  English and another that applies only to Japanese.

 ...

  Times New Roman is set in the Settings/Fonts/Roman dropdown box. I
 have
  of course checked non-TeX fonts.


  ... I read somewhere about the following command which I inserted into
  the preamble.

   \newfontfamily\CJKfont{MS PMincho}

 It would be interesting to find out where... maybe this works with Chinese
 or Korean, if these languages are supported by polyglossia or some extra
 package is required.


http://tex.stackexchange.com/questions/203078/two-fonts-for-two-languages-using-lyx
This information however didn't lead me to success.


  The problem is, that polyglossia does not support Japanese! Therefore,
 LyX
  selects babel instead of polyglossia as language package as soon as a
 part
  of the document is in  Japanese language.

  What are the options then:

   * use the xeCJK package provided with XeTeX (in my Debian TeXLive
 installation, at least).

 In the LaTeX preamble, write:

   \usepackage{xeCJK}
   \setCJKmainfont{Droid Sans Japanese}

 and XeTeX will automatically use the CJKmainfont for Chinese, Korean
 and
 Japanese Unicode characters.

 + no special markup of Japanese words/text required, it just works!


Tried it out. This is the best method of all! Works like a charm and no
text selection.


 - package documentation is in Chinese.


Could be a problem for some non-Chinese speakers, but not for me, as I
don't require any additional functionality.


 Source:
 http://www.preining.info/blog/2014/12/writing-japanese-in-latex-part-3-simple-documents/


  * set the sans-serif or teletype(monospace) font to the Japanese font and
change the font family for Japanese text parts
(works only, if you have a spare font family).

 To change text properties, select the text and go to EditText
 styleCustom (or similar, my LyX speaks German) and select from the
 Family drop-down list.

 There is also a tool-bar button to re-apply the last text-features
 setting to the selection.


OK, I tried it on my doc and it worked. This method is easier than the
dummy-language method because you don't have to write any commands in the
preamble. Other than that, they both involve selecting text, which could be
time-consuming.


  * use a dummy language that is supported by polyglossia.

 Polyglossia is the default language package used by LyX with non-TeX
 fonts.

 + It supports per-language and per-skript fonts defined with

  \newfontfamily\languagefont{Font Name}

 - it does not support Japanese.

 Source:
 http://mirrors.ctan.org/macros/latex/contrib/polyglossia/polyglossia.pdf

In the LaTeX preamble write, e.g.

  \newfontfamily\telugufont{MS PMincho}

and in the document mark the Japanese text parts as beeing in the
language telugu.


 The workaround with Babel is only advisable, if you have babel support for
 Japanese installed and want the Japanese text parts with the correct
 language setting.


This is the method I'm currently using. Though I had to set the language to
basque instead of japanese. Anyway, I'll switch to writing
 \usepackage{xeCJK}
  \setCJKmainfont{MS PMincho} in the preamble from now on, which will
relieve me of having to select text.


 (Problem: Although LyX knows which of the two language packages babel
 and polyglossia support which languagages, it does not check which
 language definition files are actually installed.)

 Günter




-- 
Richard Opheim
P.O. Box 2261 Arizona City, AZ 85123
Tel: (1) 206-965-0564
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Kindle conversion

website URL:
https://sites.google.com/site/opheimrichard/home

self-publishing faq:
 https:/ https://sites.google.com/site/opheimrichard/home
/sites.google.com/site/opheimrichard/publishing-faq
https://sites.google.com/site/opheimrichard/home

publishing tasks:
https://sites.google.com/site/opheimrichard/publishing-faq/publishing-tasks

marketing techniques:
https://sites.google.com/site/opheimrichard/publishing-faq/marketing

Japanese translation  consulting:
https://sites.google.com/site/japanesetranslationconsulting/
https://url.sites.google.com/site/japanesetranslationconsulting/

blog:
http://foliocirculaire.blogspot.com

*It is* the glory of God to conceal a thing: but the honour of kings *is* to
search out a matter.
Proverbs 25:2


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 07:37:30AM +0200, Daniel CLEMENT wrote:
 Le jeudi 09 juillet 2015 à 10:53 -0700, Bob Alvarez a écrit :
  
   1. I usually turn my computer off at night. I see the disk scanning when
   I first start Lyx after the computer has been off. After the first
   opening, I do not see the scanning if I close Lyx and then re-open it
  
  
  This is not correct. Lyx seems to scan the flash drive every time I open it.
  
  Bob
  
 Forgive a trivial suggestion, but could it be that a file was opened
 directly from the flash drive, and would still be in the recent files
 list?

Bob are you subscribed to lyx-users? I just want to make sure you got
Daniel's suggestion (see the quote above), which I think is a good one
to check.

Besides that, I'm really not sure what to suggest. On Linux figuring out
what LyX is trying to access (even if it does not exist) would be a
simple exercise of using 'strace', or even when you see the scanning be
done just run 'lsof'. I do not know much about Windows though.

Scott


Re: Can't preview under OS X beta

2015-07-10 Thread Christopher Menzel
Ah, thanks for this. Briefly, the problem is that OS X's new System 
Integrity Protection (SIP) feature in El Capitan (OS X 10.11) does not 
allow one to use admin privileges to write to certain system 
directories, notably /usr. Currently, however, MacTeX distributions 
create a symbolic link texbin in /usr that points (rather indirectly, 
via other symlinks) to the TeX binaries of one's preferred distribution 
and GUI applications like LyX use that link to find the relevant 
binaries. With SIP in place, however, that symlink can't be written to 
/usr and stuff breaks.


Fortunately, this (from my perspective) annoyingly paternalistic feature 
can be turned off: You can reboot into recovery mode (Cmd-r at startup) 
and select Security Configuration from the Utilities menu option. This 
brings up a box that lets you uncheck an Enforce System Integrity 
Protection option. Upon rebooting, you can once again write to /usr 
with admin privileges. Somewhat curiously, I reinstalled MacTeX 2015 
expecting it to create the symlink in question, but it didn't. So I 
created it manually (from inside the /usr directory with the terminal 
command sudo ln -s /Library/TeX/texbin texbin) and now everything 
works once again.


I'm planning to leave SIP off for the time being but, if I were to turn 
it back on, the symlink I created would surely remain in place. So it's 
not like one has to choose between a working TeX distribution and SIP. 
Hopefully, Apple will not decide to be *so* paternalistic that they take 
away the option of turning SIP off, though, ideally I suppose, future 
versions of GUI apps will be reconfigured so they look at 
/Library/TeX/texbin instead of /usr/texbin for the TeX binaries.


-chris

Scott Kostyshak wrote:

On Thu, Jul 9, 2015 at 7:55 PM, Chris Menzelchris.men...@gmail.com  wrote:

Kindly LyX folk,


So, unable to resist the siren call of the latest and greatest software, I
just installed OS X 10.11 Beta and, as has happened in the past in similar
situations, it broke LyX such that it couldn't find any .cls files or fonts.
Fortunately, also as in the past, the fix was to start LyX from the command
line and select Tools -  Reconfigure, and then restart LyX as usual.
However, I'm still having a problem — I'm unable to preview. I'm editing a
file called Florianopolis.lyx and I get the message


/var/folders/t5/fp07n4n507d_ymgd5syhywhwgn/T/lyx_tmpdir.fIZQQyjm4829/lyx_tmpbuf0/Florianopolis.pdf


Going into that dir, I do see there is only Forianopolis.tex, no pdf. If I
compile the .tex file, I don't get the error message anymore but that file
remains static — editing Florianopolis.lyx and trying to update the preview
has no effect; the old PDF is not replaced by a new one reflecting the edits
to the LyX source file. I've tried removing the LyX tmp folders so they'd be
recreated, which they were upon a restgart, but they are empty, and
attempting to preview once again brings up the above error message.


Ideas, solutions, suggestions (other than Don't install beta software! :-)
appreciated.


Related post:
http://tex.stackexchange.com/questions/254562/lyx-cannot-recognize-my-mactex-2015
and link regarding El Capitan:
http://article.gmane.org/gmane.comp.tex.macosx/47074

Scott




Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 5:06 PM, Bob Alvarez reward...@gmail.com wrote:
 On 7/10/15 4:38 AM, Scott Kostyshak wrote:

 The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
 caching something on your flash drive. Again, I have no idea on Windows
 how find this out. 'strace' would be what I would use on Linux.

 Please keep us updated on this if you figure out the mystery.



 I have cygwin installed on my computer so I tried using its strace command
 to run Lyx.

 Unfortunately, this was not very edifying, at least to me. Perhaps cygwin is
 not that well integrated into the windows operating system so it does not
 report internal Windows system calls??

 Bob

 Here is a capture of the commands and output with my comments:

 --- Comment: first I tried to run Lyx with strace using some options
 (V=version, d=debug). It just gave the version without running Lyx
 ---end comment

 $ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
 strace (cygwin) 1.7.35
 System Trace
 Copyright (C) 2000 - 2015 Red Hat, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


 --- comment
 then I used strace without any options. Now it did run Lyx, I got the scan
 of the flash drive but there was no output while Lyx was running. After I
 exited Lyx (File|exit) I got the few lines of output shown below.
  end comment

 $ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
 --- Process 1080, exception 401f at 77A4129B

 bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
 $

 --comment
 I tried re-directing the output of the strace command but got essentially
 the same result as shown above. The process number was different but the
 memory address of the exception was the same.
 --- end comment

I have no experience using Cygwin so I don't have any other ideas on
this strategy. You might be right that it's hard for strace to follow
native Windows system calls.

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 7:38 AM, Scott Kostyshak skost...@lyx.org wrote:

 You could search all drives for the folder LyX2.1.

I just wanted to make sure you saw this idea (I didn't see a reply to
it). We still have not ruled out that the user folder could be on the
flash drive for some strange reason.

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

I did look on the 'recent files' list. None are on the flash drive.



Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

On 7/10/15 4:38 AM, Scott Kostyshak wrote:


The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.




I have cygwin installed on my computer so I tried using its strace 
command to run Lyx.


Unfortunately, this was not very edifying, at least to me. Perhaps 
cygwin is not that well integrated into the windows operating system so 
it does not report internal Windows system calls??


Bob

Here is a capture of the commands and output with my comments:

--- Comment: first I tried to run Lyx with strace using some options 
(V=version, d=debug). It just gave the version without running Lyx

---end comment

$ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
strace (cygwin) 1.7.35
System Trace
Copyright (C) 2000 - 2015 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


--- comment
then I used strace without any options. Now it did run Lyx, I got the 
scan of the flash drive but there was no output while Lyx was running. 
After I exited Lyx (File|exit) I got the few lines of output shown below.

 end comment

$ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
--- Process 1080, exception 401f at 77A4129B

bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
$

--comment
I tried re-directing the output of the strace command but got 
essentially the same result as shown above. The process number was 
different but the memory address of the exception was the same.

--- end comment


Re: :yx scanning disks on opening

2015-07-10 Thread Stephan Witt
Am 10.07.2015 um 07:54 schrieb Bob Alvarez :

> On 7/9/15 3:27 PM, Scott Kostyshak wrote:
> 
>> Can you please go to Help > About LyX and copy/paste the information? I
>> am particularly interested in the "Library directory" and "User
>> directory".
>> 
> 
> LyX Version 2.1.3
> (Friday, February 06, 2015)
> 
> Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
> User directory: ~\AppData\Roaming\LyX2.1\
> 
> --
> 
> Scott
> 
> See the information above. I do not know how the program uses the user 
> directory but AFAIK Windows does not define the ~ symbol as the home 
> directory. I tried to use it on the Windows command line program cmd.exe and 
> it did not recognize it.
> 
> C:\Users\bob>cd ~
> The system cannot find the path specified.

LyX does the substitution of ~ with the home directory itself at runtime.

Stephan

Re: Different fonts in multilingual document

2015-07-10 Thread Guenter Milde
On 2015-07-08, Guenter Milde wrote:
> On 2015-07-08, Richard Opheim wrote:

>> So what I want to do is to have one font that applies only to
>> English and another that applies only to Japanese.

...

>> "Times New Roman" is set in the Settings/Fonts/Roman dropdown box. I have
>> of course checked non-TeX fonts.


>> ... I read somewhere about the following command which I inserted into
>> the preamble.

>>  \newfontfamily\CJKfont{MS PMincho}

It would be interesting to find out where... maybe this works with Chinese
or Korean, if these languages are supported by polyglossia or some extra
package is required.

> The problem is, that polyglossia does not support Japanese! Therefore, LyX
> selects babel instead of polyglossia as language package as soon as a part
> of the document is in  Japanese language.

> What are the options then:

  * use the xeCJK package provided with XeTeX (in my Debian TeXLive
installation, at least).

In the LaTeX preamble, write:

  \usepackage{xeCJK}
  \setCJKmainfont{Droid Sans Japanese}

and XeTeX will automatically use the "CJKmainfont" for Chinese, Korean and
Japanese Unicode characters.

+ no special markup of Japanese words/text required, it just works!
- package documentation is in Chinese.

Source: 
http://www.preining.info/blog/2014/12/writing-japanese-in-latex-part-3-simple-documents/

> * set the sans-serif or teletype(monospace) font to the Japanese font and
>   change the font family for Japanese text parts
>   (works only, if you have a "spare" font family).

To change text properties, select the text and go to Edit>Text
style>Custom (or similar, my LyX speaks German) and select from the
"Family" drop-down list.

There is also a tool-bar button to re-apply the last text-features
setting to the selection.

> * use a "dummy" language that is supported by polyglossia.

Polyglossia is the default language package used by LyX with "non-TeX
fonts". 

+ It supports per-language and per-skript fonts defined with

 \newfontfamily\font{}

- it does not support Japanese.

Source: 
http://mirrors.ctan.org/macros/latex/contrib/polyglossia/polyglossia.pdf

>   In the LaTeX preamble write, e.g.

> \newfontfamily\telugufont{MS PMincho}

>   and in the document mark the Japanese text parts as beeing in the
>   language "telugu".


The workaround with Babel is only advisable, if you have babel support for
Japanese installed and want the Japanese text parts with the correct
language setting.

(Problem: Although LyX knows which of the two language packages "babel"
and "polyglossia" support which languagages, it does not check which
language definition files are actually installed.)

Günter



Re: automatically updating latex code used in a LyX document

2015-07-10 Thread José Matos
On Thursday 09 July 2015 23:19:07 Liviu Andronic wrote:
> Perhaps we should consider renaming it to something like: "Child
> Document (TeX or LyX)"?
> 
> Liviu

Note that a child document can also be a programming listings or any other file 
to be included verbatim. :-)

-- 
José Abílio


Re: automatically updating latex code used in a LyX document

2015-07-10 Thread Liviu Andronic
On Fri, Jul 10, 2015 at 11:23 AM, José Matos  wrote:
> On Thursday 09 July 2015 23:19:07 Liviu Andronic wrote:
>> Perhaps we should consider renaming it to something like: "Child
>> Document (TeX or LyX)"?
>>
>> Liviu
>
> Note that a child document can also be a programming listings or any other 
> file to be included verbatim. :-)
>
Absolutely, yet our naming is so terse so as to prove confusing. Maybe
we need a tooltip there, or a status message appearing when hovering
the item, or something else. Otherwise people simply won't really know
what that item is supposed to do, or worse assume that LyX is unable
to do this at all (when it does!). I know RTFM would be one way to
approach this, but maybe there is something we can do to ease
confusion... Say, and yet another shot in the dark: "Include Child
Document (.tex, .lyx, etc.)"

Cheers,
Liviu



> --
> José Abílio



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library


math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread Neal Becker
I know it used to work, but something broke.

If I turn on math preview, it does something horrible.  It looks like the 
preview of math now occupies about 1/2 of the screen, making the screen 
quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
of this single x^2 that occupies like 1/2 of the screen.



Re: math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 07:06:14AM -0400, Neal Becker wrote:
> I know it used to work, but something broke.
> 
> If I turn on math preview, it does something horrible.  It looks like the 
> preview of math now occupies about 1/2 of the screen, making the screen 
> quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
> of this single x^2 that occupies like 1/2 of the screen.
> 

I'm not sure if it's of any interest to you right now, but there have
been *many* improvements to preview. Most of these will be released with
2.1.4 which is coming soon. Please let us know if this fixes/breaks
anything for you as far as preview.

Best,

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 07:37:30AM +0200, Daniel CLEMENT wrote:
> Le jeudi 09 juillet 2015 à 10:53 -0700, Bob Alvarez a écrit :
> > >
> > > 1. I usually turn my computer off at night. I see the disk scanning when
> > > I first start Lyx after the computer has been off. After the first
> > > opening, I do not see the scanning if I close Lyx and then re-open it
> > >
> > 
> > This is not correct. Lyx seems to scan the flash drive every time I open it.
> > 
> > Bob
> > 
> Forgive a trivial suggestion, but could it be that a file was opened
> directly from the flash drive, and would still be in the recent files
> list?

Bob are you subscribed to lyx-users? I just want to make sure you got
Daniel's suggestion (see the quote above), which I think is a good one
to check.

Besides that, I'm really not sure what to suggest. On Linux figuring out
what LyX is trying to access (even if it does not exist) would be a
simple exercise of using 'strace', or even when you see the scanning be
done just run 'lsof'. I do not know much about Windows though.

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 08:03:00AM +0200, Stephan Witt wrote:
> Am 10.07.2015 um 07:54 schrieb Bob Alvarez :
> 
> > On 7/9/15 3:27 PM, Scott Kostyshak wrote:
> > 
> >> Can you please go to Help > About LyX and copy/paste the information? I
> >> am particularly interested in the "Library directory" and "User
> >> directory".
> >> 
> > 
> > LyX Version 2.1.3
> > (Friday, February 06, 2015)
> > 
> > Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
> > User directory: ~\AppData\Roaming\LyX2.1\
> > 
> > --
> > 
> > Scott
> > 
> > See the information above. I do not know how the program uses the user 
> > directory but AFAIK Windows does not define the ~ symbol as the home 
> > directory. I tried to use it on the Windows command line program cmd.exe 
> > and it did not recognize it.
> > 
> > C:\Users\bob>cd ~
> > The system cannot find the path specified.
> 
> LyX does the substitution of ~ with the home directory itself at runtime.

You could search all drives for the folder "LyX2.1".

The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.

Best,

Scott


Re: Can't preview under OS X beta

2015-07-10 Thread Christopher Menzel
Ah, thanks for this. Briefly, the problem is that OS X's new "System 
Integrity Protection (SIP)" feature in El Capitan (OS X 10.11) does not 
allow one to use admin privileges to write to certain system 
directories, notably /usr. Currently, however, MacTeX distributions 
create a symbolic link "texbin" in /usr that points (rather indirectly, 
via other symlinks) to the TeX binaries of one's preferred distribution 
and GUI applications like LyX use that link to find the relevant 
binaries. With SIP in place, however, that symlink can't be written to 
/usr and stuff breaks.


Fortunately, this (from my perspective) annoyingly paternalistic feature 
can be turned off: You can reboot into recovery mode (Cmd-r at startup) 
and select "Security Configuration" from the Utilities menu option. This 
brings up a box that lets you uncheck an "Enforce System Integrity 
Protection" option. Upon rebooting, you can once again write to /usr 
with admin privileges. Somewhat curiously, I reinstalled MacTeX 2015 
expecting it to create the symlink in question, but it didn't. So I 
created it manually (from inside the /usr directory with the terminal 
command "sudo ln -s /Library/TeX/texbin texbin") and now everything 
works once again.


I'm planning to leave SIP off for the time being but, if I were to turn 
it back on, the symlink I created would surely remain in place. So it's 
not like one has to choose between a working TeX distribution and SIP. 
Hopefully, Apple will not decide to be *so* paternalistic that they take 
away the option of turning SIP off, though, ideally I suppose, future 
versions of GUI apps will be reconfigured so they look at 
/Library/TeX/texbin instead of /usr/texbin for the TeX binaries.


-chris

Scott Kostyshak wrote:

On Thu, Jul 9, 2015 at 7:55 PM, Chris Menzel  wrote:

Kindly LyX folk,


So, unable to resist the siren call of the latest and greatest software, I
just installed OS X 10.11 Beta and, as has happened in the past in similar
situations, it broke LyX such that it couldn't find any .cls files or fonts.
Fortunately, also as in the past, the fix was to start LyX from the command
line and select Tools ->  Reconfigure, and then restart LyX as usual.
However, I'm still having a problem — I'm unable to preview. I'm editing a
file called "Florianopolis.lyx" and I get the message


/var/folders/t5/fp07n4n507d_ymgd5syhywhwgn/T/lyx_tmpdir.fIZQQyjm4829/lyx_tmpbuf0/Florianopolis.pdf


Going into that dir, I do see there is only Forianopolis.tex, no pdf. If I
compile the .tex file, I don't get the error message anymore but that file
remains static — editing Florianopolis.lyx and trying to update the preview
has no effect; the old PDF is not replaced by a new one reflecting the edits
to the LyX source file. I've tried removing the LyX tmp folders so they'd be
recreated, which they were upon a restgart, but they are empty, and
attempting to preview once again brings up the above error message.


Ideas, solutions, suggestions (other than "Don't install beta software!" :-)
appreciated.


Related post:
http://tex.stackexchange.com/questions/254562/lyx-cannot-recognize-my-mactex-2015
and link regarding El Capitan:
http://article.gmane.org/gmane.comp.tex.macosx/47074

Scott




Re: math preview not working (lyx-2.1.3, fedora-22)

2015-07-10 Thread José Matos
On Friday 10 July 2015 07:06:14 Neal Becker wrote:
> I know it used to work, but something broke.
> 
> If I turn on math preview, it does something horrible.  It looks like the 
> preview of math now occupies about 1/2 of the screen, making the screen 
> quite unreadable.  Like if I wrote $x^2$, there is a box showing a preview 
> of this single x^2 that occupies like 1/2 of the screen.

Hi Neal,
I am using lyx on F22 and I do not see that problem. I have preview 
always on and do not see any change.

If you start lyx from a console what are the errors that you see? 
Sometimes the errors hint at the problem.

Regards,
-- 
José Abílio


Re: Different fonts in multilingual document

2015-07-10 Thread Richard Opheim
On Fri, Jul 10, 2015 at 1:37 AM, Guenter Milde  wrote:

> On 2015-07-08, Guenter Milde wrote:
> > On 2015-07-08, Richard Opheim wrote:
>
> >> So what I want to do is to have one font that applies only to
> >> English and another that applies only to Japanese.
>
> ...
>
> >> "Times New Roman" is set in the Settings/Fonts/Roman dropdown box. I
> have
> >> of course checked non-TeX fonts.
>
>
> >> ... I read somewhere about the following command which I inserted into
> >> the preamble.
>
> >>  \newfontfamily\CJKfont{MS PMincho}
>
> It would be interesting to find out where... maybe this works with Chinese
> or Korean, if these languages are supported by polyglossia or some extra
> package is required.
>

http://tex.stackexchange.com/questions/203078/two-fonts-for-two-languages-using-lyx
This information however didn't lead me to success.

>
> > The problem is, that polyglossia does not support Japanese! Therefore,
> LyX
> > selects babel instead of polyglossia as language package as soon as a
> part
> > of the document is in  Japanese language.
>
> > What are the options then:
>
>   * use the xeCJK package provided with XeTeX (in my Debian TeXLive
> installation, at least).
>
> In the LaTeX preamble, write:
>
>   \usepackage{xeCJK}
>   \setCJKmainfont{Droid Sans Japanese}
>
> and XeTeX will automatically use the "CJKmainfont" for Chinese, Korean
> and
> Japanese Unicode characters.
>
> + no special markup of Japanese words/text required, it just works!
>

Tried it out. This is the best method of all! Works like a charm and no
text selection.


> - package documentation is in Chinese.
>

Could be a problem for some non-Chinese speakers, but not for me, as I
don't require any additional functionality.

>
> Source:
> http://www.preining.info/blog/2014/12/writing-japanese-in-latex-part-3-simple-documents/


> > * set the sans-serif or teletype(monospace) font to the Japanese font and
> >   change the font family for Japanese text parts
> >   (works only, if you have a "spare" font family).
>
> To change text properties, select the text and go to Edit>Text
> style>Custom (or similar, my LyX speaks German) and select from the
> "Family" drop-down list.
>
> There is also a tool-bar button to re-apply the last text-features
> setting to the selection.
>

OK, I tried it on my doc and it worked. This method is easier than the
"dummy-language" method because you don't have to write any commands in the
preamble. Other than that, they both involve selecting text, which could be
time-consuming.

>
> > * use a "dummy" language that is supported by polyglossia.
>
> Polyglossia is the default language package used by LyX with "non-TeX
> fonts".
>
> + It supports per-language and per-skript fonts defined with
>
>  \newfontfamily\font{}
>
> - it does not support Japanese.
>
> Source:
> http://mirrors.ctan.org/macros/latex/contrib/polyglossia/polyglossia.pdf
>
> >   In the LaTeX preamble write, e.g.
>
> > \newfontfamily\telugufont{MS PMincho}
>
> >   and in the document mark the Japanese text parts as beeing in the
> >   language "telugu".
>
>
> The workaround with Babel is only advisable, if you have babel support for
> Japanese installed and want the Japanese text parts with the correct
> language setting.
>

This is the method I'm currently using. Though I had to set the language to
"basque" instead of "japanese." Anyway, I'll switch to writing
" \usepackage{xeCJK}
  \setCJKmainfont{MS PMincho}" in the preamble from now on, which will
relieve me of having to select text.
>
>
> (Problem: Although LyX knows which of the two language packages "babel"
> and "polyglossia" support which languagages, it does not check which
> language definition files are actually installed.)
>
> Günter
>
>


-- 
Richard Opheim
P.O. Box 2261 Arizona City, AZ 85123
Tel: (1) 206-965-0564
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Kindle conversion

website URL:
https://sites.google.com/site/opheimrichard/home

self-publishing faq:
 https:/ 
/sites.google.com/site/opheimrichard/publishing-faq


publishing tasks:
https://sites.google.com/site/opheimrichard/publishing-faq/publishing-tasks

marketing techniques:
https://sites.google.com/site/opheimrichard/publishing-faq/marketing

Japanese translation & consulting:
https://sites.google.com/site/japanesetranslationconsulting/


blog:
http://foliocirculaire.blogspot.com

*"It is* the glory of God to conceal a thing: but the honour of kings *is* to
search out a matter."
Proverbs 25:2


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

On 7/10/15 4:38 AM, Scott Kostyshak wrote:


The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.




I have cygwin installed on my computer so I tried using its strace 
command to run Lyx.


Unfortunately, this was not very edifying, at least to me. Perhaps 
cygwin is not that well integrated into the windows operating system so 
it does not report internal Windows system calls??


Bob

Here is a capture of the commands and output with my comments:

---> Comment: first I tried to run Lyx with strace using some options 
(V=version, d=debug). It just gave the version without running Lyx

--->end comment

$ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
strace (cygwin) 1.7.35
System Trace
Copyright (C) 2000 - 2015 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


---> comment
then I used strace without any options. Now it did run Lyx, I got the 
scan of the flash drive but there was no output while Lyx was running. 
After I exited Lyx (File|exit) I got the few lines of output shown below.

> end comment

$ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
--- Process 1080, exception 401f at 77A4129B

bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
$

-->comment
I tried re-directing the output of the strace command but got 
essentially the same result as shown above. The process number was 
different but the memory address of the exception was the same.

---> end comment


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

I did look on the 'recent files' list. None are on the flash drive.



Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 5:06 PM, Bob Alvarez  wrote:
> On 7/10/15 4:38 AM, Scott Kostyshak wrote:
>
>> The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
>> caching something on your flash drive. Again, I have no idea on Windows
>> how find this out. 'strace' would be what I would use on Linux.
>>
>> Please keep us updated on this if you figure out the mystery.
>>
>
>
> I have cygwin installed on my computer so I tried using its strace command
> to run Lyx.
>
> Unfortunately, this was not very edifying, at least to me. Perhaps cygwin is
> not that well integrated into the windows operating system so it does not
> report internal Windows system calls??
>
> Bob
>
> Here is a capture of the commands and output with my comments:
>
> ---> Comment: first I tried to run Lyx with strace using some options
> (V=version, d=debug). It just gave the version without running Lyx
> --->end comment
>
> $ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
> strace (cygwin) 1.7.35
> System Trace
> Copyright (C) 2000 - 2015 Red Hat, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
>
>
> ---> comment
> then I used strace without any options. Now it did run Lyx, I got the scan
> of the flash drive but there was no output while Lyx was running. After I
> exited Lyx (File|exit) I got the few lines of output shown below.
> > end comment
>
> $ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
> --- Process 1080, exception 401f at 77A4129B
>
> bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
> $
>
> -->comment
> I tried re-directing the output of the strace command but got essentially
> the same result as shown above. The process number was different but the
> memory address of the exception was the same.
> ---> end comment

I have no experience using Cygwin so I don't have any other ideas on
this strategy. You might be right that it's hard for strace to follow
native Windows system calls.

Scott


Re: :yx scanning disks on opening

2015-07-10 Thread Scott Kostyshak
On Fri, Jul 10, 2015 at 7:38 AM, Scott Kostyshak  wrote:

> You could search all drives for the folder "LyX2.1".

I just wanted to make sure you saw this idea (I didn't see a reply to
it). We still have not ruled out that the user folder could be on the
flash drive for some strange reason.

Scott