Re: :yx scanning disks on opening

2015-07-09 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: :yx scanning disks on opening

2015-07-09 Thread 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.

Bob


Re: :yx scanning disks on opening

2015-07-09 Thread Daniel CLEMENT
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?
-- 
Daniel CLEMENT



Re: Can't preview under OS X beta

2015-07-09 Thread Scott Kostyshak
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: automatically updating latex code used in a LyX document

2015-07-09 Thread Richard Heck

On 07/09/2015 05:19 PM, Liviu Andronic wrote:

On Thu, Jul 9, 2015 at 10:17 PM, Georg Baum
 wrote:

Benedict Holland wrote:


If you have generated the tex file in Stata, use ERT. It is much easier.

I am curious: What is easier if you include the file via ERT than with a
child document? Note that I do not mean to convert the child document to LyX
format, since LyX also allows to include child documents in LaTeX format.


I suspect this is simply reflects a misunderstanding relating to the
naming of our "Insert > File > Child Document..." menu item. For
example, when answering this question I had to repeatedly look closely
in the Insert menu since I was looking for "Insert > File > TeX
Document...", and there is obviously none such item. Then I looked
several times at External Material, but to my bemusement there was no
TeX entry there. So by trial and error I realized that Child Document
was the winner.

Perhaps we should consider renaming it to something like: "Child
Document (TeX or LyX)"?


I second this suggestion, generally speaking. But perhaps we should 
really have two different

menu items, or ?

Richard



Can't preview under OS X beta

2015-07-09 Thread Chris Menzel
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.


-chris


Re: automatically updating latex code used in a LyX document

2015-07-09 Thread Steve Litt
On Thu, 09 Jul 2015 22:10:35 +0200
Georg Baum  wrote:

> Steve Litt wrote:
> 
> > On Wed, 8 Jul 2015 06:24:52 + (UTC)
> > Ian  wrote:
> > 
> >> Hi
> >> 
> >> I want to automatically update latex code embedded in a LyX
> >> document that was produced as output from another program, in my
> >> case STATA. The Latex code contains table commands.
> >> 
> >> The concept is similar to handling graphics in LyX: Insert >>
> >> Graphic
> >> >> (attach file). If I change the graphic file content, keeping the
> >> >> file name
> >> and location the same, the graphic image will automatically update
> >> in LyX. I want to do the same thing, but with a .tex file in which
> >> contains the Latex code for a table produced by STATA. The .tex
> >> file name and location remain constant, but the content changes.
> >> 
> >> I am sure this is an easy thing, but I just can't seem to find it
> >> on the web forums.
> 
> This is possible: LyX has a mechanism called "external templates"
> which can be seen as a generalization of the graphics inset: With an
> external template, you can tell LyX what it needs to do to convert
> your STATA file into LaTeX, and you also tell it how this LaTeX is to
> be included in the LyX document. The only requirement for this to
> work is that your application (or any other tool) allows to convert
> to LaTeX from the command line.
> 
> If you want to use this feature, you need to do two things:
> 
> 1) Define a new external template for STATA as explained in chapter 6
> "6 Including External Material" in the Customization Manual. This
> neds to be once, and if you need help don't hesitate to ask on the
> list.
> 
> 2) Each time you want to include  a STATA output, you use Insert ->
> File -> External Material.
> 
> 
> > I do that kind of stuff all the time. The trick is to put some kind
> > of an unmistakable token in your LyX doc. Then make a shellscript
> > that cats your LyX into a script (I'd probably use AWK, your
> > mileage may vary) to replace the token with the desired LaTeX, and
> > then redirect the script's output to another LyX file. LyX --export
> > latex tempfile.lyx;pdflatex tempfile.tex.
> 
> This is certainly technically interesting, but I would not recommend
> such a procedure to the original poster, since the builtin mechanism
> does not need those helper scripts, and all the export/view buttons
> in LyX do just work.

I'm not so sure it I wouldn't recommend it for the Original Poster
(OP). I've been using these techniques for years, and they amount to a
1 click (or menu choice or command) complete process. It could be
automated to do every hour on the hour with no point and click
intervention. It doesn't depend on LyX features and won't break if LyX
changes its internal way of doing stuff. It's very simple to
troubleshoot, given that there's an intermediate file. And it's dead
bang easy for anyone who can script Python at all.

I think it boils down to a philosophical point. Some folks believe
strongly in never reinventing the wheel. I certainly use a lot of
wheels as-is, but I always resist incorporating a wheel if all I need
is one little spoke. Dependencies, even on something you've already
incorporated, have a cost.

I have scripts that create personalized eBooks, with the buyer's name
in the footers, and some other security features I can't discuss. I
make and ship these several times a day, and all I need to do is tell
my converter which books to convert, the person's name, and bang, it
makes all the eBooks in the order. LyX's only involvement is in a
shellscript using its --export feature.

If the OP can do simple scripting, I'd personally recommend
preprocessing over LyX-centric ways of doing it, if the LyX-centric
ways are complex, time consuming (in a point and click sense), or
likely to change with a future LyX version.

SteveT

Steve Litt 
July 2015 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


Re: :yx scanning disks on opening

2015-07-09 Thread Scott Kostyshak
On Thu, Jul 09, 2015 at 10:53:53AM -0700, Bob Alvarez wrote:
> 
> >
> >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

Can you please go to Help > About LyX and copy/paste the information? I
am particularly interested in the "Library directory" and "User
directory".

Best,

Scott


Re: :yx scanning disks on opening

2015-07-09 Thread Scott Kostyshak
On Thu, Jul 09, 2015 at 10:17:28AM -0700, Bob Alvarez wrote:
> 3. IIRC my previous version was 2.0.6 and it was installed on the same
> computer with the same drive configuration i.e. I:\ flash and most files
> on L:\

A drive L just for LyX files? You are a dedicated LyX user :)

Scott


Re: #9673: lyx change the order of references

2015-07-09 Thread Scott Kostyshak
On Thu, Jul 09, 2015 at 08:01:41PM +0300, edu Gpl wrote:
> I mean, i made sample file without any code in lyx preamble, then i added
> references.
> But the problem remains.

I see. Can you please respond on the bug? This way all the information
is there.

Also, can you please upload your simple files to the bug report?

Thanks,

Scott


Re: automatically updating latex code used in a LyX document

2015-07-09 Thread Liviu Andronic
On Thu, Jul 9, 2015 at 10:17 PM, Georg Baum
 wrote:
> Benedict Holland wrote:
>
>> If you have generated the tex file in Stata, use ERT. It is much easier.
>
> I am curious: What is easier if you include the file via ERT than with a
> child document? Note that I do not mean to convert the child document to LyX
> format, since LyX also allows to include child documents in LaTeX format.
>
I suspect this is simply reflects a misunderstanding relating to the
naming of our "Insert > File > Child Document..." menu item. For
example, when answering this question I had to repeatedly look closely
in the Insert menu since I was looking for "Insert > File > TeX
Document...", and there is obviously none such item. Then I looked
several times at External Material, but to my bemusement there was no
TeX entry there. So by trial and error I realized that Child Document
was the winner.

Perhaps we should consider renaming it to something like: "Child
Document (TeX or LyX)"?

Liviu


>> The command you want to look up is \input as in \input{table.tex}. This is
>> the only way I generate, edit, and include tables now. This should also be
>> the command that lyx uses... either that or include but I assume input
>> would be a better use in this situation. I also use another application to
>> edit the .tex because I need spell checking.
>
> If you insert the .tex file as a child document you can do this as well: The
> child inset context menu provides an edit entry which fires up the .tex file
> in your favourite editor. I cannot imagine any easier way to reference child
> document in LaTeX format.
>
>
> Georg
>
>



-- 
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


Re: automatically updating latex code used in a LyX document

2015-07-09 Thread Liviu Andronic
On Thu, Jul 9, 2015 at 10:11 PM, Georg Baum
 wrote:
> Ian wrote:
>
>> Thanks Liviu. Inserting a Child document .tex file was exactly what I
>> wanted to do. I just didn't know what it was called.
>
> Except for the fact that it is not automatically updated if the STATA file
> changes.
>
If the content of the child .tex file changes, doesn't LyX
automatically reflect those changes when recompiling the LyX document?

Liviu


>
> Georg
>
>



-- 
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


Re: automatically updating latex code used in a LyX document

2015-07-09 Thread Georg Baum
Benedict Holland wrote:

> If you have generated the tex file in Stata, use ERT. It is much easier.

I am curious: What is easier if you include the file via ERT than with a 
child document? Note that I do not mean to convert the child document to LyX 
format, since LyX also allows to include child documents in LaTeX format.

> The command you want to look up is \input as in \input{table.tex}. This is
> the only way I generate, edit, and include tables now. This should also be
> the command that lyx uses... either that or include but I assume input
> would be a better use in this situation. I also use another application to
> edit the .tex because I need spell checking.

If you insert the .tex file as a child document you can do this as well: The 
child inset context menu provides an edit entry which fires up the .tex file 
in your favourite editor. I cannot imagine any easier way to reference child 
document in LaTeX format.


Georg




Re: automatically updating latex code used in a LyX document

2015-07-09 Thread Georg Baum
Ian wrote:

> Thanks Liviu. Inserting a Child document .tex file was exactly what I
> wanted to do. I just didn't know what it was called.

Except for the fact that it is not automatically updated if the STATA file 
changes.


Georg




Re: automatically updating latex code used in a LyX document

2015-07-09 Thread Georg Baum
Steve Litt wrote:

> On Wed, 8 Jul 2015 06:24:52 + (UTC)
> Ian  wrote:
> 
>> Hi
>> 
>> I want to automatically update latex code embedded in a LyX document
>> that was produced as output from another program, in my case STATA.
>> The Latex code contains table commands.
>> 
>> The concept is similar to handling graphics in LyX: Insert >> Graphic
>> >> (attach file). If I change the graphic file content, keeping the
>> >> file name
>> and location the same, the graphic image will automatically update in
>> LyX. I want to do the same thing, but with a .tex file in which
>> contains the Latex code for a table produced by STATA. The .tex file
>> name and location remain constant, but the content changes.
>> 
>> I am sure this is an easy thing, but I just can't seem to find it on
>> the web forums.

This is possible: LyX has a mechanism called "external templates" which can 
be seen as a generalization of the graphics inset: With an external 
template, you can tell LyX what it needs to do to convert your STATA file 
into LaTeX, and you also tell it how this LaTeX is to be included in the LyX 
document. The only requirement for this to work is that your application (or 
any other tool) allows to convert to LaTeX from the command line.

If you want to use this feature, you need to do two things:

1) Define a new external template for STATA as explained in chapter 6 "6 
Including External Material" in the Customization Manual. This neds to be 
once, and if you need help don't hesitate to ask on the list.

2) Each time you want to include  a STATA output, you use Insert -> File -> 
External Material.


> I do that kind of stuff all the time. The trick is to put some kind of
> an unmistakable token in your LyX doc. Then make a shellscript that
> cats your LyX into a script (I'd probably use AWK, your mileage may
> vary) to replace the token with the desired LaTeX, and then redirect
> the script's output to another LyX file. LyX --export latex
> tempfile.lyx;pdflatex tempfile.tex.

This is certainly technically interesting, but I would not recommend such a 
procedure to the original poster, since the builtin mechanism does not need 
those helper scripts, and all the export/view buttons in LyX do just work.


Georg




Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez




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



Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

> On Thu, Jul 9, 2015 at 12:34 PM, Bob Alvarez  wrote:

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?


Hi Bob,

Does this happen every time when you open LyX? LyX does something
special (it runs configure.py) when it is opened for the first time,
so it will help to figure out if the problem is in that script.

What LyX version did you have before you upgraded? Did you also use
that version on the same machine, with Windows 7 and the flash drive?

Where is your flash drive mounted? Meaning, how do you access a disk
that is in there? e.g. E:\ ?

Please respond to the list (lyx-users@lists.lyx.org), not to me personally.

Best,

Scott


Hi Scott

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

2. The flash drive is I:\ but I am not opening a Lyx file on that drive
when I see the scanning. For what it's worth, the Lyx files are usually
on the L:\ drive.

3. IIRC my previous version was 2.0.6 and it was installed on the same
computer with the same drive configuration i.e. I:\ flash and most files
on L:\

Bob




Re: #9673: lyx change the order of references

2015-07-09 Thread edu Gpl
I mean, i made sample file without any code in lyx preamble, then i added
references.
But the problem remains.

Best regards








‏في الخميس، ٩ يوليو، ٢٠١٥, Scott Kostyshak  كتب:

> On Thu, Jul 9, 2015 at 11:27 AM, edu Gpl  > wrote:
>
>> i do, but no changed.😂
>>
>
> Hi,
>
> I don't understand. What do you mean by "i do". And what did not change?
>
> Best,
>
> Scott
>


Re: :yx scanning disks on opening

2015-07-09 Thread Scott Kostyshak
On Thu, Jul 9, 2015 at 12:34 PM, Bob Alvarez  wrote:
> I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
> has been very slow to open. I have a flash drive connected to the
> computer and I noticed that the activity light starts flashing when I
> try to open Lyx and then after it stops,  I see the Lyx window.
>
> Is Lyx scanning my disks when it opens?
>
> How can I stop it from doing this?
>
> Any other ideas on the cause of slow opening?

Hi Bob,

Does this happen every time when you open LyX? LyX does something
special (it runs configure.py) when it is opened for the first time,
so it will help to figure out if the problem is in that script.

What LyX version did you have before you upgraded? Did you also use
that version on the same machine, with Windows 7 and the flash drive?

Where is your flash drive mounted? Meaning, how do you access a disk
that is in there? e.g. E:\ ?

Please respond to the list (lyx-users@lists.lyx.org), not to me personally.

Best,

Scott


:yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?

TIA

Bob


Re: Text size in margin note

2015-07-09 Thread edu Gpl
thank you
i used this code:

%%

\let\margin\marginpar%%%

\newcommand\mymargin[1]{\margin{\raggedright\scriptsize #1}}

\renewcommand{\marginpar}[1]{\mymargin{#1}}

%%

2015-07-09 0:04 GMT+03:00 PhilipPirrip :

> On 07/07/2015 11:47 AM, edu Gpl wrote:
>
>> thank you Michael but this difficult, i have 60-80 margin note or margin
>> table in my book.
>> i want code for lyx preamle.
>>
>
>
>
>
>
> You can play with this, goes straigth into the preamble
>
> \def\marginparsetup{%
>\small%   (you only need this line)
>\parindent=0pt \lineskip=0pt \lineskiplimit=0pt%
>\tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300%
>\doublehyphendemerits=10%
>\finalhyphendemerits=\doublehyphendemerits%
>}
>
> \let\oldmarginpar\marginpar
>
> \renewcommand{\marginpar}[1]{\oldmarginpar%
>  [\marginparsetup\raggedleft\hspace{0pt}{#1}]%
>  {\marginparsetup\raggedright\hspace{0pt}{#1}}}
>
>
>
>
>
>
>
>
>
>
>


change the text side

2015-07-09 Thread edu Gpl
Dear lyx users
when i used title with tikz:

the title:
الحركة الدورانية
but in pdf i got:
الدورانية الحركة

please see attachment.

best regards


chapter.lyx
Description: application/lyx