Re: Detect if document is part of a master file

2013-09-07 Thread Jürgen Spitzmüller
Marx Gomes van der Linden wrote:
 My question is: is there any way to include the references at the end
 of each chapter when they are compiled as stand-alone documents, but
 to omit them automatically if they are part of the master document
 (which will have a single bibliography at the end of the whole thing)?
 What I'm trying to do is to be able to generate proper pdfs for the
 individual chapters with working references, without having to
 manually remove every bibliography section before generating the
 master document.

One way to achieve this is to define a branch (via Document  Settings  
Branches) which is active in the children and non-active in the master, and 
put the BibTeX Bibliography inset for each child into that branch. 

Jürgen


Re: LyX installation packages, possibly OT

2013-09-07 Thread Stephan Witt
Am 07.09.2013 um 03:19 schrieb Ken Springer snowsh...@q.com:

 Having resolved my issue with the LyX installation on my Mac, I also have 
 installed it under Windows 7.  Also appears to work fine.
 
 This has left me wondering about installation packages for different OS's.
 
 Why is it, that if it's a Windows program, if a supporting program is needed 
 to make the program run, in this case, the supporting program is also 
 included in the program's installation package.  But, when the program goes 
 into OS X, the supporting program isn't included in the installation package.
 
 If the Mac LyX package for OS X had included the supporting program, I would 
 never have had a problem.LOL

What support do you have in mind? The installation of a usable TeX system?

Stephan

Re: LyX installation packages, possibly OT

2013-09-07 Thread Ken Springer

On 9/7/13 3:33 AM, Stephan Witt wrote:

Am 07.09.2013 um 03:19 schrieb Ken Springer snowsh...@q.com:


Having resolved my issue with the LyX installation on my Mac, I also have 
installed it under Windows 7.  Also appears to work fine.

This has left me wondering about installation packages for different OS's.

Why is it, that if it's a Windows program, if a supporting program is needed to 
make the program run, in this case, the supporting program is also included in 
the program's installation package.  But, when the program goes into OS X, the 
supporting program isn't included in the installation package.

If the Mac LyX package for OS X had included the supporting program, I would 
never have had a problem.LOL


What support do you have in mind? The installation of a usable TeX system?


Exactly.  When you install the Windows bundle, it includes MikTeX and 
JabRef(?), not sure if that's exactly right.  Isn't JabRef a 
bibliography thing?  (This is new to me.)  So a new user like me doesn't 
have to worry about making sure that when LyX is installed on Windows 
for the first time, it's a fully functional system.  But on the Mac, 
that doesn't happen.  The Mac LyX package does not include a TeX system, 
and I'm guessing no bibliography option.  So if a new user got a copy of 
LyX from some free software place, it's not going to work right out of 
the box, and the user isn't going to be happy.  I don't know what the 
user gets if it's for Linux.


I just now looked a bit more at the LyX site, and it's intimidating to a 
new user, lots of things there that may as well be written in a foreign 
language if you are completely new to typography and the LyX world. 
Even more so if you are relatively new to computers.  (Something every 
site for every platform has become.  They totally ignore the newbie 
concept, and I'd bet turn off a lot of potential new users/converts.)



--
Ken

Mac OS X 10.8.4
Firefox 23.0
Thunderbird 17.0.8
LibreOffice 4.1.04



Re: Detect if document is part of a master file

2013-09-07 Thread Richard Heck

On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote:

Marx Gomes van der Linden wrote:

My question is: is there any way to include the references at the end
of each chapter when they are compiled as stand-alone documents, but
to omit them automatically if they are part of the master document
(which will have a single bibliography at the end of the whole thing)?
What I'm trying to do is to be able to generate proper pdfs for the
individual chapters with working references, without having to
manually remove every bibliography section before generating the
master document.

One way to achieve this is to define a branch (via Document  Settings 
Branches) which is active in the children and non-active in the master, and
put the BibTeX Bibliography inset for each child into that branch.


Another uses ERT. First, define some random command in the master, e.g.:

\newcommand\iamthemaster{Whatever}

Then, in the children, test for this command's existence:

[ERT] \ifx\iamthemaster\undefined{ [/ERT]
...put bibliography inset here...
[ERT] } [/ERT]

Now the bibliography only gets included when the document is compiled 
standalone.


I have not tried this for a while, but used to use this technique some 
years ago.


Richard



Re: Turning-off a command from a layout file?

2013-09-07 Thread Paul Rubin
I'm out of ideas that would avoid editing the module. Personally, I would
copy the module and .inc files to my local layout directory, give them
different names, and edit out the Problem style. That way, both the original
and hacked modules would appear in the module list, and I could use the
ordinary version for any other document class but select the hacked version
for the new document class.





Re: Turning-off a command from a layout file?

2013-09-07 Thread Guenter Milde
On 2013-09-07, Paul Rubin wrote:
 I'm out of ideas that would avoid editing the module. Personally, I would
 copy the module and .inc files to my local layout directory, give them
 different names, and edit out the Problem style. That way, both the original
 and hacked modules would appear in the module list, and I could use the
 ordinary version for any other document class but select the hacked version
 for the new document class.

I thought it is possible to overwrite settings for an existing style. Maybe
you can specify a different LatexName to avoid the name clash?

Günter



Re: Turning-off a command from a layout file?

2013-09-07 Thread Paul A . Rubin
By the way, did you put the NoStyle directive before or after the point
where you load the theorem module? I was thinking after, but it would not
hurt to try both.

Paul





Re: Detect if document is part of a master file

2013-09-07 Thread Marx Gomes van der Linden
Thanks, both solutions worked for me, exactly as I needed.

I didn't know anything about branches in lyx, looks really useful.

For the ERT approach, I had to look up the syntax for \ifx to make it
work, this is what did the trick:

[ERT] \ifx\iamthemaster\undefined [/ERT]
...put bibliography inset here...
[ERT] \fi [/ERT]

On 7 September 2013 11:23, Richard Heck rgh...@lyx.org wrote:
 On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote:

 Marx Gomes van der Linden wrote:

 My question is: is there any way to include the references at the end
 of each chapter when they are compiled as stand-alone documents, but
 to omit them automatically if they are part of the master document
 (which will have a single bibliography at the end of the whole thing)?
 What I'm trying to do is to be able to generate proper pdfs for the
 individual chapters with working references, without having to
 manually remove every bibliography section before generating the
 master document.

 One way to achieve this is to define a branch (via Document  Settings 
 Branches) which is active in the children and non-active in the master,
 and
 put the BibTeX Bibliography inset for each child into that branch.


 Another uses ERT. First, define some random command in the master, e.g.:

 \newcommand\iamthemaster{Whatever}

 Then, in the children, test for this command's existence:

 [ERT] \ifx\iamthemaster\undefined{ [/ERT]
 ...put bibliography inset here...
 [ERT] } [/ERT]

 Now the bibliography only gets included when the document is compiled
 standalone.

 I have not tried this for a while, but used to use this technique some years
 ago.

 Richard



Move cursor to next subsection/section/chapter ?

2013-09-07 Thread Scott Kostyshak
Are there LFUNs that deal with moving the cursor to the next
subsection/section/chapter?

There are LFUNs for moving groups (LFUN_OUTLINE_DOWN,
LFUN_PARAGRAPH_MOVE_DOWN) and selecting groups (LFUN_SECTION_SELECT)
but I would often like to navigate among them without opening the
outline and clicking. The only thing I see is LFUN_PARAGRAPH_GOTO,
which is what the outline does when you click on an item. But it
doesn't seem fit for higher-level use.

Right now I am thinking that a nice LFUN would be LFUN_LAYOUT_NEXT. If
your cursor is positioned in a subsection, it will move your cursor to
the beginning of the next subsection. If it is positioned in a
section, it will move it to the beginning of the next section. (and
same for Frame, Theorem, or any other layout).

Am I missing some already implemented functionality that can help me
with cursor navigation?

If not, how do others deal with this in their workflow? Do you use the
outline or just a lot of ctrl+downs or pagedowns?

Scott


Re: Reverse search with xdvi

2013-09-07 Thread Pavel Sanda
Fabio S. wrote:
 direct search:
 Tools-Preferences-Output-General
  xdvi -nofork -sourceposition $$n $$t $$o -editor 
 lyxeditor.sh %f 
 %l

 -nofork part is needed because of the pipe?

 I guess: the point is that without -nofork if you have xdvi already open, 
 lyx starts a new instance every time you execute direct search.
 I also addedd the -editor option.

Have you really tried without nofork option?
I just tried the standard call
xdvi -sourceposition 445:example.tex example.dvi
and no new instance was opened, instead it correctly jumped in already existing
viewer.

Pavel


Separate Graphics.

2013-09-07 Thread Gordon Cooper

 This requirement should be simple, but the method
escapes me.

I wish to include several pages of photos, with captions
into a text document. They will be in two or three blocks,
separate from the text but using the same page numbering
sequence.

Have ploughed through the User Manual seeking guidance,
but must have blinked at the wrong time.

Gordon
New Zealand.


Re: Separate Graphics.

2013-09-07 Thread Liviu Andronic
On Sun, Sep 8, 2013 at 6:27 AM, Gordon Cooper hughgord...@gmail.com wrote:
  This requirement should be simple, but the method
 escapes me.

 I wish to include several pages of photos, with captions
 into a text document. They will be in two or three blocks,
 separate from the text but using the same page numbering
 sequence.

Have you tried image floats and sub-floats?

Liviu


 Have ploughed through the User Manual seeking guidance,
 but must have blinked at the wrong time.

 Gordon
 New Zealand.



-- 
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: Detect if document is part of a master file

2013-09-07 Thread Jürgen Spitzmüller
Marx Gomes van der Linden wrote:
 My question is: is there any way to include the references at the end
 of each chapter when they are compiled as stand-alone documents, but
 to omit them automatically if they are part of the master document
 (which will have a single bibliography at the end of the whole thing)?
 What I'm trying to do is to be able to generate proper pdfs for the
 individual chapters with working references, without having to
 manually remove every bibliography section before generating the
 master document.

One way to achieve this is to define a branch (via Document  Settings  
Branches) which is active in the children and non-active in the master, and 
put the BibTeX Bibliography inset for each child into that branch. 

Jürgen


Re: LyX installation packages, possibly OT

2013-09-07 Thread Stephan Witt
Am 07.09.2013 um 03:19 schrieb Ken Springer snowsh...@q.com:

 Having resolved my issue with the LyX installation on my Mac, I also have 
 installed it under Windows 7.  Also appears to work fine.
 
 This has left me wondering about installation packages for different OS's.
 
 Why is it, that if it's a Windows program, if a supporting program is needed 
 to make the program run, in this case, the supporting program is also 
 included in the program's installation package.  But, when the program goes 
 into OS X, the supporting program isn't included in the installation package.
 
 If the Mac LyX package for OS X had included the supporting program, I would 
 never have had a problem.LOL

What support do you have in mind? The installation of a usable TeX system?

Stephan

Re: LyX installation packages, possibly OT

2013-09-07 Thread Ken Springer

On 9/7/13 3:33 AM, Stephan Witt wrote:

Am 07.09.2013 um 03:19 schrieb Ken Springer snowsh...@q.com:


Having resolved my issue with the LyX installation on my Mac, I also have 
installed it under Windows 7.  Also appears to work fine.

This has left me wondering about installation packages for different OS's.

Why is it, that if it's a Windows program, if a supporting program is needed to 
make the program run, in this case, the supporting program is also included in 
the program's installation package.  But, when the program goes into OS X, the 
supporting program isn't included in the installation package.

If the Mac LyX package for OS X had included the supporting program, I would 
never have had a problem.LOL


What support do you have in mind? The installation of a usable TeX system?


Exactly.  When you install the Windows bundle, it includes MikTeX and 
JabRef(?), not sure if that's exactly right.  Isn't JabRef a 
bibliography thing?  (This is new to me.)  So a new user like me doesn't 
have to worry about making sure that when LyX is installed on Windows 
for the first time, it's a fully functional system.  But on the Mac, 
that doesn't happen.  The Mac LyX package does not include a TeX system, 
and I'm guessing no bibliography option.  So if a new user got a copy of 
LyX from some free software place, it's not going to work right out of 
the box, and the user isn't going to be happy.  I don't know what the 
user gets if it's for Linux.


I just now looked a bit more at the LyX site, and it's intimidating to a 
new user, lots of things there that may as well be written in a foreign 
language if you are completely new to typography and the LyX world. 
Even more so if you are relatively new to computers.  (Something every 
site for every platform has become.  They totally ignore the newbie 
concept, and I'd bet turn off a lot of potential new users/converts.)



--
Ken

Mac OS X 10.8.4
Firefox 23.0
Thunderbird 17.0.8
LibreOffice 4.1.04



Re: Detect if document is part of a master file

2013-09-07 Thread Richard Heck

On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote:

Marx Gomes van der Linden wrote:

My question is: is there any way to include the references at the end
of each chapter when they are compiled as stand-alone documents, but
to omit them automatically if they are part of the master document
(which will have a single bibliography at the end of the whole thing)?
What I'm trying to do is to be able to generate proper pdfs for the
individual chapters with working references, without having to
manually remove every bibliography section before generating the
master document.

One way to achieve this is to define a branch (via Document  Settings 
Branches) which is active in the children and non-active in the master, and
put the BibTeX Bibliography inset for each child into that branch.


Another uses ERT. First, define some random command in the master, e.g.:

\newcommand\iamthemaster{Whatever}

Then, in the children, test for this command's existence:

[ERT] \ifx\iamthemaster\undefined{ [/ERT]
...put bibliography inset here...
[ERT] } [/ERT]

Now the bibliography only gets included when the document is compiled 
standalone.


I have not tried this for a while, but used to use this technique some 
years ago.


Richard



Re: Turning-off a command from a layout file?

2013-09-07 Thread Paul Rubin
I'm out of ideas that would avoid editing the module. Personally, I would
copy the module and .inc files to my local layout directory, give them
different names, and edit out the Problem style. That way, both the original
and hacked modules would appear in the module list, and I could use the
ordinary version for any other document class but select the hacked version
for the new document class.





Re: Turning-off a command from a layout file?

2013-09-07 Thread Guenter Milde
On 2013-09-07, Paul Rubin wrote:
 I'm out of ideas that would avoid editing the module. Personally, I would
 copy the module and .inc files to my local layout directory, give them
 different names, and edit out the Problem style. That way, both the original
 and hacked modules would appear in the module list, and I could use the
 ordinary version for any other document class but select the hacked version
 for the new document class.

I thought it is possible to overwrite settings for an existing style. Maybe
you can specify a different LatexName to avoid the name clash?

Günter



Re: Turning-off a command from a layout file?

2013-09-07 Thread Paul A . Rubin
By the way, did you put the NoStyle directive before or after the point
where you load the theorem module? I was thinking after, but it would not
hurt to try both.

Paul





Re: Detect if document is part of a master file

2013-09-07 Thread Marx Gomes van der Linden
Thanks, both solutions worked for me, exactly as I needed.

I didn't know anything about branches in lyx, looks really useful.

For the ERT approach, I had to look up the syntax for \ifx to make it
work, this is what did the trick:

[ERT] \ifx\iamthemaster\undefined [/ERT]
...put bibliography inset here...
[ERT] \fi [/ERT]

On 7 September 2013 11:23, Richard Heck rgh...@lyx.org wrote:
 On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote:

 Marx Gomes van der Linden wrote:

 My question is: is there any way to include the references at the end
 of each chapter when they are compiled as stand-alone documents, but
 to omit them automatically if they are part of the master document
 (which will have a single bibliography at the end of the whole thing)?
 What I'm trying to do is to be able to generate proper pdfs for the
 individual chapters with working references, without having to
 manually remove every bibliography section before generating the
 master document.

 One way to achieve this is to define a branch (via Document  Settings 
 Branches) which is active in the children and non-active in the master,
 and
 put the BibTeX Bibliography inset for each child into that branch.


 Another uses ERT. First, define some random command in the master, e.g.:

 \newcommand\iamthemaster{Whatever}

 Then, in the children, test for this command's existence:

 [ERT] \ifx\iamthemaster\undefined{ [/ERT]
 ...put bibliography inset here...
 [ERT] } [/ERT]

 Now the bibliography only gets included when the document is compiled
 standalone.

 I have not tried this for a while, but used to use this technique some years
 ago.

 Richard



Move cursor to next subsection/section/chapter ?

2013-09-07 Thread Scott Kostyshak
Are there LFUNs that deal with moving the cursor to the next
subsection/section/chapter?

There are LFUNs for moving groups (LFUN_OUTLINE_DOWN,
LFUN_PARAGRAPH_MOVE_DOWN) and selecting groups (LFUN_SECTION_SELECT)
but I would often like to navigate among them without opening the
outline and clicking. The only thing I see is LFUN_PARAGRAPH_GOTO,
which is what the outline does when you click on an item. But it
doesn't seem fit for higher-level use.

Right now I am thinking that a nice LFUN would be LFUN_LAYOUT_NEXT. If
your cursor is positioned in a subsection, it will move your cursor to
the beginning of the next subsection. If it is positioned in a
section, it will move it to the beginning of the next section. (and
same for Frame, Theorem, or any other layout).

Am I missing some already implemented functionality that can help me
with cursor navigation?

If not, how do others deal with this in their workflow? Do you use the
outline or just a lot of ctrl+downs or pagedowns?

Scott


Re: Reverse search with xdvi

2013-09-07 Thread Pavel Sanda
Fabio S. wrote:
 direct search:
 Tools-Preferences-Output-General
  xdvi -nofork -sourceposition $$n $$t $$o -editor 
 lyxeditor.sh %f 
 %l

 -nofork part is needed because of the pipe?

 I guess: the point is that without -nofork if you have xdvi already open, 
 lyx starts a new instance every time you execute direct search.
 I also addedd the -editor option.

Have you really tried without nofork option?
I just tried the standard call
xdvi -sourceposition 445:example.tex example.dvi
and no new instance was opened, instead it correctly jumped in already existing
viewer.

Pavel


Separate Graphics.

2013-09-07 Thread Gordon Cooper

 This requirement should be simple, but the method
escapes me.

I wish to include several pages of photos, with captions
into a text document. They will be in two or three blocks,
separate from the text but using the same page numbering
sequence.

Have ploughed through the User Manual seeking guidance,
but must have blinked at the wrong time.

Gordon
New Zealand.


Re: Separate Graphics.

2013-09-07 Thread Liviu Andronic
On Sun, Sep 8, 2013 at 6:27 AM, Gordon Cooper hughgord...@gmail.com wrote:
  This requirement should be simple, but the method
 escapes me.

 I wish to include several pages of photos, with captions
 into a text document. They will be in two or three blocks,
 separate from the text but using the same page numbering
 sequence.

Have you tried image floats and sub-floats?

Liviu


 Have ploughed through the User Manual seeking guidance,
 but must have blinked at the wrong time.

 Gordon
 New Zealand.



-- 
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: Detect if document is part of a master file

2013-09-07 Thread Jürgen Spitzmüller
Marx Gomes van der Linden wrote:
> My question is: is there any way to include the references at the end
> of each chapter when they are compiled as stand-alone documents, but
> to omit them automatically if they are part of the master document
> (which will have a single bibliography at the end of the whole thing)?
> What I'm trying to do is to be able to generate proper pdfs for the
> individual chapters with working references, without having to
> manually remove every bibliography section before generating the
> master document.

One way to achieve this is to define a branch (via Document > Settings > 
Branches) which is active in the children and non-active in the master, and 
put the "BibTeX Bibliography" inset for each child into that branch. 

Jürgen


Re: LyX installation packages, possibly OT

2013-09-07 Thread Stephan Witt
Am 07.09.2013 um 03:19 schrieb Ken Springer :

> Having resolved my issue with the LyX installation on my Mac, I also have 
> installed it under Windows 7.  Also appears to work fine.
> 
> This has left me wondering about installation packages for different OS's.
> 
> Why is it, that if it's a Windows program, if a supporting program is needed 
> to make the program run, in this case, the supporting program is also 
> included in the program's installation package.  But, when the program goes 
> into OS X, the supporting program isn't included in the installation package.
> 
> If the Mac LyX package for OS X had included the supporting program, I would 
> never have had a problem.LOL

What support do you have in mind? The installation of a usable TeX system?

Stephan

Re: LyX installation packages, possibly OT

2013-09-07 Thread Ken Springer

On 9/7/13 3:33 AM, Stephan Witt wrote:

Am 07.09.2013 um 03:19 schrieb Ken Springer :


Having resolved my issue with the LyX installation on my Mac, I also have 
installed it under Windows 7.  Also appears to work fine.

This has left me wondering about installation packages for different OS's.

Why is it, that if it's a Windows program, if a supporting program is needed to 
make the program run, in this case, the supporting program is also included in 
the program's installation package.  But, when the program goes into OS X, the 
supporting program isn't included in the installation package.

If the Mac LyX package for OS X had included the supporting program, I would 
never have had a problem.LOL


What support do you have in mind? The installation of a usable TeX system?


Exactly.  When you install the Windows "bundle", it includes MikTeX and 
JabRef(?), not sure if that's exactly right.  Isn't JabRef a 
bibliography thing?  (This is new to me.)  So a new user like me doesn't 
have to worry about making sure that when LyX is installed on Windows 
for the first time, it's a fully functional system.  But on the Mac, 
that doesn't happen.  The Mac LyX package does not include a TeX system, 
and I'm guessing no bibliography option.  So if a new user got a copy of 
LyX from some free software place, it's not going to work "right out of 
the box", and the user isn't going to be happy.  I don't know what the 
user gets if it's for Linux.


I just now looked a bit more at the LyX site, and it's intimidating to a 
new user, lots of things there that may as well be written in a foreign 
language if you are completely new to typography and the LyX world. 
Even more so if you are relatively new to computers.  (Something every 
site for every platform has become.  They totally ignore the "newbie" 
concept, and I'd bet turn off a lot of potential new users/converts.)



--
Ken

Mac OS X 10.8.4
Firefox 23.0
Thunderbird 17.0.8
LibreOffice 4.1.04



Re: Detect if document is part of a master file

2013-09-07 Thread Richard Heck

On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote:

Marx Gomes van der Linden wrote:

My question is: is there any way to include the references at the end
of each chapter when they are compiled as stand-alone documents, but
to omit them automatically if they are part of the master document
(which will have a single bibliography at the end of the whole thing)?
What I'm trying to do is to be able to generate proper pdfs for the
individual chapters with working references, without having to
manually remove every bibliography section before generating the
master document.

One way to achieve this is to define a branch (via Document > Settings >
Branches) which is active in the children and non-active in the master, and
put the "BibTeX Bibliography" inset for each child into that branch.


Another uses ERT. First, define some random command in the master, e.g.:

\newcommand\iamthemaster{Whatever}

Then, in the children, test for this command's existence:

[ERT] \ifx\iamthemaster\undefined{ [/ERT]
...put bibliography inset here...
[ERT] } [/ERT]

Now the bibliography only gets included when the document is compiled 
standalone.


I have not tried this for a while, but used to use this technique some 
years ago.


Richard



Re: Turning-off a command from a layout file?

2013-09-07 Thread Paul Rubin
I'm out of ideas that would avoid editing the module. Personally, I would
copy the module and .inc files to my local layout directory, give them
different names, and edit out the Problem style. That way, both the original
and hacked modules would appear in the module list, and I could use the
ordinary version for any other document class but select the hacked version
for the new document class.





Re: Turning-off a command from a layout file?

2013-09-07 Thread Guenter Milde
On 2013-09-07, Paul Rubin wrote:
> I'm out of ideas that would avoid editing the module. Personally, I would
> copy the module and .inc files to my local layout directory, give them
> different names, and edit out the Problem style. That way, both the original
> and hacked modules would appear in the module list, and I could use the
> ordinary version for any other document class but select the hacked version
> for the new document class.

I thought it is possible to overwrite settings for an existing style. Maybe
you can specify a different "LatexName" to avoid the name clash?

Günter



Re: Turning-off a command from a layout file?

2013-09-07 Thread Paul A . Rubin
By the way, did you put the NoStyle directive before or after the point
where you load the theorem module? I was thinking after, but it would not
hurt to try both.

Paul





Re: Detect if document is part of a master file

2013-09-07 Thread Marx Gomes van der Linden
Thanks, both solutions worked for me, exactly as I needed.

I didn't know anything about branches in lyx, looks really useful.

For the ERT approach, I had to look up the syntax for \ifx to make it
work, this is what did the trick:

[ERT] \ifx\iamthemaster\undefined [/ERT]
...put bibliography inset here...
[ERT] \fi [/ERT]

On 7 September 2013 11:23, Richard Heck  wrote:
> On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote:
>>
>> Marx Gomes van der Linden wrote:
>>>
>>> My question is: is there any way to include the references at the end
>>> of each chapter when they are compiled as stand-alone documents, but
>>> to omit them automatically if they are part of the master document
>>> (which will have a single bibliography at the end of the whole thing)?
>>> What I'm trying to do is to be able to generate proper pdfs for the
>>> individual chapters with working references, without having to
>>> manually remove every bibliography section before generating the
>>> master document.
>>
>> One way to achieve this is to define a branch (via Document > Settings >
>> Branches) which is active in the children and non-active in the master,
>> and
>> put the "BibTeX Bibliography" inset for each child into that branch.
>
>
> Another uses ERT. First, define some random command in the master, e.g.:
>
> \newcommand\iamthemaster{Whatever}
>
> Then, in the children, test for this command's existence:
>
> [ERT] \ifx\iamthemaster\undefined{ [/ERT]
> ...put bibliography inset here...
> [ERT] } [/ERT]
>
> Now the bibliography only gets included when the document is compiled
> standalone.
>
> I have not tried this for a while, but used to use this technique some years
> ago.
>
> Richard
>


Move cursor to next subsection/section/chapter ?

2013-09-07 Thread Scott Kostyshak
Are there LFUNs that deal with moving the cursor to the next
subsection/section/chapter?

There are LFUNs for moving groups (LFUN_OUTLINE_DOWN,
LFUN_PARAGRAPH_MOVE_DOWN) and selecting groups (LFUN_SECTION_SELECT)
but I would often like to navigate among them without opening the
outline and clicking. The only thing I see is LFUN_PARAGRAPH_GOTO,
which is what the outline does when you click on an item. But it
doesn't seem fit for higher-level use.

Right now I am thinking that a nice LFUN would be LFUN_LAYOUT_NEXT. If
your cursor is positioned in a subsection, it will move your cursor to
the beginning of the next subsection. If it is positioned in a
section, it will move it to the beginning of the next section. (and
same for "Frame", "Theorem", or any other layout).

Am I missing some already implemented functionality that can help me
with cursor navigation?

If not, how do others deal with this in their workflow? Do you use the
outline or just a lot of ctrl+downs or pagedowns?

Scott


Re: Reverse search with xdvi

2013-09-07 Thread Pavel Sanda
Fabio S. wrote:
>>> direct search:
>>> Tools->Preferences->Output->General
>>>  xdvi -nofork -sourceposition "$$n $$t" $$o -editor 
>>> "lyxeditor.sh %f 
>>> %l"
>>
>> "-nofork" part is needed because of the pipe?
>
> I guess: the point is that without -nofork if you have xdvi already open, 
> lyx starts a new instance every time you execute direct search.
> I also addedd the -editor option.

Have you really tried without nofork option?
I just tried the standard call
xdvi -sourceposition 445:example.tex example.dvi
and no new instance was opened, instead it correctly jumped in already existing
viewer.

Pavel


Separate Graphics.

2013-09-07 Thread Gordon Cooper

 This requirement should be simple, but the method
escapes me.

I wish to include several pages of photos, with captions
into a text document. They will be in two or three blocks,
separate from the text but using the same page numbering
sequence.

Have ploughed through the User Manual seeking guidance,
but must have blinked at the wrong time.

Gordon
New Zealand.


Re: Separate Graphics.

2013-09-07 Thread Liviu Andronic
On Sun, Sep 8, 2013 at 6:27 AM, Gordon Cooper  wrote:
>  This requirement should be simple, but the method
> escapes me.
>
> I wish to include several pages of photos, with captions
> into a text document. They will be in two or three blocks,
> separate from the text but using the same page numbering
> sequence.
>
Have you tried image floats and sub-floats?

Liviu


> Have ploughed through the User Manual seeking guidance,
> but must have blinked at the wrong time.
>
> Gordon
> New Zealand.



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