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

2013-09-10 Thread Guenter Milde
On 2013-09-10, Christian Bustamante wrote:

 [-- Type: text/plain, Encoding:  --]

 I tried with

 Input theorems-ams.module
 ProvidesModule theorems-ams

 and in fact the only problem style that appears in the drop-down menu is my
 style. However, when I try to compile the document, I'm still getting
 LaTeX Error: Command \problem already defined. In the description part
 says \newtheorem{problem}[thm]{\protect\problemname} Your command was
 ignored...


It may be that you have to overwrite the Preamble code. 
What happens if your style defines an empty or dummy Preamble?

Style Problem
Preamble
EndPreamble
# other definitions
End


Günter




Re: Lambda not shown

2013-09-10 Thread Guenter Milde
On 2013-09-09, =?utf-8?Q?Philipp_Gr=C3=B6ne?= wrote:

 [-- Type: text/plain, Encoding: 7bit --]

 Hello!

 Lowercase-lambdas are not shown in my Lyx-documents. Uppercase Deltas are  
 shown.
 The Preset I use is thesis (chapter-1 or chapter-2, does not matter). I  
 activated Non-Tex-Fonts in the Document-Options. If I don't do that,  
 deltas aren't shown, either. I use LuaTex.

With non-TeX-fonts, there is no feedback whether a particular glyph is
actually present in the font.

As non-TeX-fonts are system fonts, you can use any font-viewing
application to check the coverage. Many system fonts (including the
LuaTeX/XeTeX default Latin Modern) do not include Greek characters (LM
has only capital Greek chars).

Examples for system fonts with a wide coverage including Greek are Free
Serif, Linux Libertine, and Deja Vu.

Günter




RE: Thank you for View-Update

2013-09-10 Thread Roel Schipper - CITG
Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following: 
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check Always use 
the selected program to open this kind of file then it will work, since 
TeXworks doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Bob 
Alvarez
Sent: maandag 9 september 2013 18:15
To: lyx-users@lists.lyx.org
Cc: sl...@troubleshooters.com
Subject: Re: Thank you for View-Update
Importance: Low


 Thank you very much for View-Update (Ctrl+Shift+R). It's been in LyX 
 for many, many versions, but now it works, and it's a great help in 
 keeping the PDF I'm proofreading in sync with the file I'm modifying.


On my Windows 7 system the pdf viewer does not allow updates to the file.  Lyx 
gives me the error message:

I can't write on file ...

Does anyone know a way around this?

Bob


Re: \reversemarginpar places notes too far out - SOLVED

2013-09-10 Thread Anthony Campbell
On 09 Sep 2013, Les Denham wrote:
 On Mon, 9 Sep 2013 10:46:05 +0100
 Anthony Campbell a...@acampbell.org.uk wrote:
 
  As far as I can see this makes marginal notes unusable for the book
  class. Unless I'm wrong, perhaps it should be documented in the help
  files?
 
 Anthony,
 
 If you're using the book class, by default you are assumed to have
 chapters.
 
 If two-sided page layout is selected, a Chapter environment will
 automatically start on a right hand (odd numbered) page, inserting a
 blank page where necessary. So starting the text body with a chapter
 heading will solve the problem.
 
 Is there any special reason why you are not using the Title, Author,
 etc., environments for the title page?
 
 Personally, I prefer to use the book(KOMA-script) class (a lot more
 options, but defaults work well) or memoir class (an infinite number of
 options, a lot of them different from anything else in LaTeX, and an
 excellent manual, but a very steep learning curve), but the book class
 should work for what you're doing. Attached is a sample file to show
 what can be done.
 
 Les
 

I've already produced four books with this class so I'm fairly well used
to it. I tried Koma when I first began making books but didn't get on
with it, though I can't remember why.

Anyway, my probem is with the marginal note option. But I've now found a
workaround: the latex command \marginnote gives the marginal notes on
the right side of the page with double-sided printing. And inserting
blank pages doesn't upset things.




-- 
Anthony Campbell - a...@acampbell.org.uk 
http://www.acupuncturecourse.org.uk 
http://www.smashwords.com/profile.view/acampbell
https://itunes.apple.com/ca/artist/anthony-campbell/id73235412







Re: Widows and Orphans

2013-09-10 Thread Richard Heck

On 09/09/2013 04:25 PM, Gordon Cooper wrote:

  Is there a simple answer to the typesetting widow  orphan
problem in Lyx/latex? I see that there are various suggestions
offered in the manuals but they all seem to result in the need
for a bit of text adjustment (fiddling) as the final step before
printing.


If you google clubpenalty widowpenalty you'll find lots of
discussion of this kind of thing, e.g., here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows
You can force LaTeX never to allow widows or orphans by
setting the two comments I mentioned to insanely high values,
e.g.:
\clubpenalty=1
\widowpenalty=1
But this can cause other problems, since LaTeX is already
leaving an orphan (say) only when it has little other choice.
Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.

Richard



Forward/reverse search and LuaTeX

2013-09-10 Thread stefano franchi
Has anyone managed to get forward/reserve search fully working when using
LuaTeX as a backend?
Automatic setting fails with LuaTeX (for me, at least).

I got reverse search (from pdf to lyx) working by following the manual
setup instructions in the Additional Features manual: creating a custom
format (pdf6: Luatex/Synctex) and changing the compilation instruction to:

lualatex -synctex=1 $$i

Regular LuaTeX compilation would otherwise fail with an Undefined control
sequence error on the /synctex line in the preamble.

But I cannot get the forward search (lyx--pdf) working properly. When I
select Forward search from the pop-up dialog I always get a new okular
instance. The Okular command in Tools-Preferences-Output-General is

okular --unique $$o#src:$$n $$f


Apparently, the unique flag is ignored.


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


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

2013-09-10 Thread Richard Heck

On 09/09/2013 10:52 PM, Christian Bustamante wrote:

I tried with

  Input theorems-ams.module
ProvidesModule theorems-ams

and in fact the only problem style that appears in the drop-down menu 
is my style. However, when I try to compile the document, I'm still 
getting LaTeX Error: Command \problem already defined. In the 
description part says 
\newtheorem{problem}[thm]{\protect\problemname} Your command was 
ignored...


That's the preamble declaration from the old Problem style.

Can you post a complete (but simple) document in which this happens? 
Also, post the layout files again. I'm not sure what's going on here.


Richard



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

2013-09-10 Thread Richard Heck

On 09/10/2013 03:36 AM, Guenter Milde wrote:

On 2013-09-10, Christian Bustamante wrote:


[-- Type: text/plain, Encoding:  --]
I tried with
 Input theorems-ams.module
 ProvidesModule theorems-ams
and in fact the only problem style that appears in the drop-down menu is 
mystyle. However, when I try to compile the document, I'm still getting
LaTeX Error: Command \problem already defined. In the description part
says \newtheorem{problem}[thm]{\protect\problemname} Your command was
ignored...


It may be that you have to overwrite the Preamble code.
What happens if your style defines an empty or dummy Preamble?

Style Problem
Preamble
EndPreamble
# other definitions
End


Deleting the style should have taken care of this, but it's not a bad idea.

rh



Wrapping long URL to text width

2013-09-10 Thread Rich Shepard

  I have a very long URL
https://www.federalregister.gov/articles/2013/09/04/2013-21140/water-quality-standards-regulatory-clarifications#p-5
in a document and it hangs way out into the right margin even though it does
have a \n near the front.

  My Web search turned up Andrew Moss' blog of January 4, 2013 so I put that
long string in Insert - URL rather than my usual \url{} with the url
package in the preamble. Still doesn't split it across several lines.

  There must be a kludge I can apply to fit this in the default text width
of the page, but I haven't found this so far.

TIA,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Wrapping long URL to text width

2013-09-10 Thread Wolfgang Engelmann
Am Tuesday, 10. September 2013, 16:38:28 schrieb Rich Shepard:
I have a very long URL
 https://www.federalregister.gov/articles/2013/09/04/2013-21140/water-qu
 ality-standards-regulatory-clarifications#p-5 in a document and it
 hangs way out into the right margin even though it does have a \n near
 the front.

You could use inserthyperlink and link it there with a few short words 
such as federalregister-water-quality

Wolfgang
 
My Web search turned up Andrew Moss' blog of January 4, 2013 so I put
 that long string in Insert - URL rather than my usual \url{} with the
 url package in the preamble. Still doesn't split it across several
 lines.
 
There must be a kludge I can apply to fit this in the default text
 width of the page, but I haven't found this so far.
 
 TIA,
 
 Rich


Re: Wrapping long URL to text width

2013-09-10 Thread Rich Shepard

On Tue, 10 Sep 2013, Rich Shepard wrote:


 There must be a kludge I can apply to fit this in the default text width
of the page, but I haven't found this so far.


  Well, I found a kludge, but would like to learn if there's a more elegant
solution.

  I took the URL out of the URL environment and made it a separate
paragraph. That paragraph is designated as LyX-code and has two \\ inserted
to force a line break. Not pretty, but it works.

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Wrapping long URL to text width [RESOLVED]

2013-09-10 Thread Rich Shepard

On Tue, 10 Sep 2013, Wolfgang Engelmann wrote:


You could use inserthyperlink and link it there with a few short words
such as federalregister-water-quality


Wolfgang,

  I tried this but could not cut and yank the long string into the hyperlink
dialog box. But, ... by putting the Insert-URL as a new paragraph with the
long string in there it formats very nicely.

Thanks very much for the pointer!

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Forward/reverse search and LuaTeX

2013-09-10 Thread Pavel Sanda
stefano franchi wrote:
 Has anyone managed to get forward/reserve search fully working when using
 LuaTeX as a backend?
 Automatic setting fails with LuaTeX (for me, at least).
 
 I got reverse search (from pdf to lyx) working by following the manual
 setup instructions in the Additional Features manual: creating a custom
 format (pdf6: Luatex/Synctex) and changing the compilation instruction to:
 
 lualatex -synctex=1 $$i

Time to send us patch with some paragraph or footnote in additional manual :)

 Regular LuaTeX compilation would otherwise fail with an Undefined control
 sequence error on the /synctex line in the preamble.
 
 But I cannot get the forward search (lyx--pdf) working properly. When I
 select Forward search from the pop-up dialog I always get a new okular
 instance. The Okular command in Tools-Preferences-Output-General is
 
 okular --unique $$o#src:$$n $$f
 
 
 Apparently, the unique flag is ignored.

Does forward search work with normal pdflatex? Any error message?
How old is your okular, IIRC there were such issues with old versions.
Pavel


Re: Forward/reverse search and LuaTeX

2013-09-10 Thread stefano franchi
On Tue, Sep 10, 2013 at 12:21 PM, Pavel Sanda sa...@lyx.org wrote:

 stefano franchi wrote:
  Has anyone managed to get forward/reserve search fully working when using
  LuaTeX as a backend?
  Automatic setting fails with LuaTeX (for me, at least).
 
  I got reverse search (from pdf to lyx) working by following the manual
  setup instructions in the Additional Features manual: creating a custom
  format (pdf6: Luatex/Synctex) and changing the compilation instruction
 to:
 
  lualatex -synctex=1 $$i

 Time to send us patch with some paragraph or footnote in additional manual
 :)


Ok, will do that.


  Regular LuaTeX compilation would otherwise fail with an Undefined
 control
  sequence error on the /synctex line in the preamble.
 
  But I cannot get the forward search (lyx--pdf) working properly. When I
  select Forward search from the pop-up dialog I always get a new okular
  instance. The Okular command in Tools-Preferences-Output-General is
 
  okular --unique $$o#src:$$n $$f
 
 
  Apparently, the unique flag is ignored.

 Does forward search work with normal pdflatex?


Hmm, no, just checked (should have thought of it). Same issue: new instance
and always landing on page 1


 Any error message?


No error message in the console. I see the command issued is exactly what
it should be:

 Running: okular --unique Myfile.pdf#src:54

But apparently the --unique flag is ignored as wells as the src:54 part,
since I always lend on the first page (on the new instance)


 How old is your okular, IIRC there were such issues with old versions.


I believe my version is pretty recent:
[stefano@gorgias ~]$ okular --version
Qt: 4.8.5
KDE Development Platform: 4.11.00
Okular: 0.17.0


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Forward/reverse search and LuaTeX

2013-09-10 Thread Pavel Sanda
 On Tue, Sep 10, 2013 at 12:21 PM, Pavel Sanda sa...@lyx.org wrote:
  Does forward search work with normal pdflatex?
 
 Hmm, no, just checked (should have thought of it). Same issue: new instance
 and always landing on page 1

Ok, but Okular is known to work with pdflatex forward search, IIRC at least in 
version 0.14.
Is anyone around with 0.17 version of Okular to test?

Pavel


Re: Thank you for View-Update

2013-09-10 Thread Paul A . Rubin
pdfview (as used here) is a custom application designed to use the system
default reader while avoiding file lock problems. See
http://wiki.lyx.org/Devel/WindowsInstaller-pdfview for source. If it no
longer works, maybe someone should have a look at updating it.

Paul



Re: Thank you for View-Update

2013-09-10 Thread Andrew Parsloe



On 11/09/2013 4:44 a.m., Bob Alvarez wrote:

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I
want to update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check
Always use the selected program to open this kind of file then it
will work, since TeXworks doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it,
from then on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper

Thanks, that does work but TexWorks is a limited program, for example it
does not seem to show bookmarks in pdf documents, so as you mention I
would have to switch back and forth.

I tried to change the defaults for pdf viewer in Tools|Preferences|File
Handling|File formats  and then selecting PDF in the Format dropdown menu.

The default in the Viewer: dropdown list is pdfview, which seems to
choose the system default viewer. I tried selecting Custom and the
entering the path to the texworks program but that does not work. The
message box at the bottom of the Lyx window says successful preview
... but the Texworks program does not open. I even tried using the
shortened path with no spaces with no luck.
C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the
system default?

Bob



With LyX 2.0.6 and Windows Vista, I changed the Viewer slot to Custom 
and in the right slot put texworks, just the name with no path. Using 
the View button successfully brought up the Texworks pdf viewer.


Andrew


Re: Thank you for View-Update

2013-09-10 Thread Bob Alvarez

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check Always use the 
selected program to open this kind of file then it will work, since TeXworks 
doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper
Thanks, that does work but TexWorks is a limited program, for example it 
does not seem to show bookmarks in pdf documents, so as you mention I 
would have to switch back and forth.


I tried to change the defaults for pdf viewer in Tools|Preferences|File 
Handling|File formats  and then selecting PDF in the Format dropdown menu.


The default in the Viewer: dropdown list is pdfview, which seems to 
choose the system default viewer. I tried selecting Custom and the 
entering the path to the texworks program but that does not work. The 
message box at the bottom of the Lyx window says successful preview 
... but the Texworks program does not open. I even tried using the 
shortened path with no spaces with no luck.

C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the 
system default?


Bob



Re: Widows and Orphans

2013-09-10 Thread Gordon Cooper

I expected that an answer would not be simple About 20 years ago
I wrote a module in Pascal that kept a line count for each page
and forced a new page if a paragraph break or a new heading
came within a selectable distance from the bottom. This partly
solved the issue, but not completely.

Thanks for the information.

Gordon Cooper



On 11/09/13 00:57, Richard Heck wrote:

Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.




Re: Widows and Orphans

2013-09-10 Thread Ray Rashif
On 11 September 2013 03:35, Gordon Cooper hughgord...@gmail.com wrote:
 I expected that an answer would not be simple About 20 years ago
 I wrote a module in Pascal that kept a line count for each page
 and forced a new page if a paragraph break or a new heading
 came within a selectable distance from the bottom. This partly
 solved the issue, but not completely.

 Thanks for the information.

This has really bothered me as well, often in large documents where I
have to go through every single page after a minor revision to check
for widows and orphans -- it really is a PITA. The high penalty
settings did not work for me in any of the cases.


--
GPG/PGP ID: C0711BF1


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

2013-09-10 Thread Guenter Milde
On 2013-09-10, Christian Bustamante wrote:

 [-- Type: text/plain, Encoding:  --]

 I tried with

 Input theorems-ams.module
 ProvidesModule theorems-ams

 and in fact the only problem style that appears in the drop-down menu is my
 style. However, when I try to compile the document, I'm still getting
 LaTeX Error: Command \problem already defined. In the description part
 says \newtheorem{problem}[thm]{\protect\problemname} Your command was
 ignored...


It may be that you have to overwrite the Preamble code. 
What happens if your style defines an empty or dummy Preamble?

Style Problem
Preamble
EndPreamble
# other definitions
End


Günter




Re: Lambda not shown

2013-09-10 Thread Guenter Milde
On 2013-09-09, =?utf-8?Q?Philipp_Gr=C3=B6ne?= wrote:

 [-- Type: text/plain, Encoding: 7bit --]

 Hello!

 Lowercase-lambdas are not shown in my Lyx-documents. Uppercase Deltas are  
 shown.
 The Preset I use is thesis (chapter-1 or chapter-2, does not matter). I  
 activated Non-Tex-Fonts in the Document-Options. If I don't do that,  
 deltas aren't shown, either. I use LuaTex.

With non-TeX-fonts, there is no feedback whether a particular glyph is
actually present in the font.

As non-TeX-fonts are system fonts, you can use any font-viewing
application to check the coverage. Many system fonts (including the
LuaTeX/XeTeX default Latin Modern) do not include Greek characters (LM
has only capital Greek chars).

Examples for system fonts with a wide coverage including Greek are Free
Serif, Linux Libertine, and Deja Vu.

Günter




RE: Thank you for View-Update

2013-09-10 Thread Roel Schipper - CITG
Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following: 
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check Always use 
the selected program to open this kind of file then it will work, since 
TeXworks doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Bob 
Alvarez
Sent: maandag 9 september 2013 18:15
To: lyx-users@lists.lyx.org
Cc: sl...@troubleshooters.com
Subject: Re: Thank you for View-Update
Importance: Low


 Thank you very much for View-Update (Ctrl+Shift+R). It's been in LyX 
 for many, many versions, but now it works, and it's a great help in 
 keeping the PDF I'm proofreading in sync with the file I'm modifying.


On my Windows 7 system the pdf viewer does not allow updates to the file.  Lyx 
gives me the error message:

I can't write on file ...

Does anyone know a way around this?

Bob


Re: \reversemarginpar places notes too far out - SOLVED

2013-09-10 Thread Anthony Campbell
On 09 Sep 2013, Les Denham wrote:
 On Mon, 9 Sep 2013 10:46:05 +0100
 Anthony Campbell a...@acampbell.org.uk wrote:
 
  As far as I can see this makes marginal notes unusable for the book
  class. Unless I'm wrong, perhaps it should be documented in the help
  files?
 
 Anthony,
 
 If you're using the book class, by default you are assumed to have
 chapters.
 
 If two-sided page layout is selected, a Chapter environment will
 automatically start on a right hand (odd numbered) page, inserting a
 blank page where necessary. So starting the text body with a chapter
 heading will solve the problem.
 
 Is there any special reason why you are not using the Title, Author,
 etc., environments for the title page?
 
 Personally, I prefer to use the book(KOMA-script) class (a lot more
 options, but defaults work well) or memoir class (an infinite number of
 options, a lot of them different from anything else in LaTeX, and an
 excellent manual, but a very steep learning curve), but the book class
 should work for what you're doing. Attached is a sample file to show
 what can be done.
 
 Les
 

I've already produced four books with this class so I'm fairly well used
to it. I tried Koma when I first began making books but didn't get on
with it, though I can't remember why.

Anyway, my probem is with the marginal note option. But I've now found a
workaround: the latex command \marginnote gives the marginal notes on
the right side of the page with double-sided printing. And inserting
blank pages doesn't upset things.




-- 
Anthony Campbell - a...@acampbell.org.uk 
http://www.acupuncturecourse.org.uk 
http://www.smashwords.com/profile.view/acampbell
https://itunes.apple.com/ca/artist/anthony-campbell/id73235412







Re: Widows and Orphans

2013-09-10 Thread Richard Heck

On 09/09/2013 04:25 PM, Gordon Cooper wrote:

  Is there a simple answer to the typesetting widow  orphan
problem in Lyx/latex? I see that there are various suggestions
offered in the manuals but they all seem to result in the need
for a bit of text adjustment (fiddling) as the final step before
printing.


If you google clubpenalty widowpenalty you'll find lots of
discussion of this kind of thing, e.g., here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows
You can force LaTeX never to allow widows or orphans by
setting the two comments I mentioned to insanely high values,
e.g.:
\clubpenalty=1
\widowpenalty=1
But this can cause other problems, since LaTeX is already
leaving an orphan (say) only when it has little other choice.
Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.

Richard



Forward/reverse search and LuaTeX

2013-09-10 Thread stefano franchi
Has anyone managed to get forward/reserve search fully working when using
LuaTeX as a backend?
Automatic setting fails with LuaTeX (for me, at least).

I got reverse search (from pdf to lyx) working by following the manual
setup instructions in the Additional Features manual: creating a custom
format (pdf6: Luatex/Synctex) and changing the compilation instruction to:

lualatex -synctex=1 $$i

Regular LuaTeX compilation would otherwise fail with an Undefined control
sequence error on the /synctex line in the preamble.

But I cannot get the forward search (lyx--pdf) working properly. When I
select Forward search from the pop-up dialog I always get a new okular
instance. The Okular command in Tools-Preferences-Output-General is

okular --unique $$o#src:$$n $$f


Apparently, the unique flag is ignored.


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


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

2013-09-10 Thread Richard Heck

On 09/09/2013 10:52 PM, Christian Bustamante wrote:

I tried with

  Input theorems-ams.module
ProvidesModule theorems-ams

and in fact the only problem style that appears in the drop-down menu 
is my style. However, when I try to compile the document, I'm still 
getting LaTeX Error: Command \problem already defined. In the 
description part says 
\newtheorem{problem}[thm]{\protect\problemname} Your command was 
ignored...


That's the preamble declaration from the old Problem style.

Can you post a complete (but simple) document in which this happens? 
Also, post the layout files again. I'm not sure what's going on here.


Richard



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

2013-09-10 Thread Richard Heck

On 09/10/2013 03:36 AM, Guenter Milde wrote:

On 2013-09-10, Christian Bustamante wrote:


[-- Type: text/plain, Encoding:  --]
I tried with
 Input theorems-ams.module
 ProvidesModule theorems-ams
and in fact the only problem style that appears in the drop-down menu is 
mystyle. However, when I try to compile the document, I'm still getting
LaTeX Error: Command \problem already defined. In the description part
says \newtheorem{problem}[thm]{\protect\problemname} Your command was
ignored...


It may be that you have to overwrite the Preamble code.
What happens if your style defines an empty or dummy Preamble?

Style Problem
Preamble
EndPreamble
# other definitions
End


Deleting the style should have taken care of this, but it's not a bad idea.

rh



Wrapping long URL to text width

2013-09-10 Thread Rich Shepard

  I have a very long URL
https://www.federalregister.gov/articles/2013/09/04/2013-21140/water-quality-standards-regulatory-clarifications#p-5
in a document and it hangs way out into the right margin even though it does
have a \n near the front.

  My Web search turned up Andrew Moss' blog of January 4, 2013 so I put that
long string in Insert - URL rather than my usual \url{} with the url
package in the preamble. Still doesn't split it across several lines.

  There must be a kludge I can apply to fit this in the default text width
of the page, but I haven't found this so far.

TIA,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Wrapping long URL to text width

2013-09-10 Thread Wolfgang Engelmann
Am Tuesday, 10. September 2013, 16:38:28 schrieb Rich Shepard:
I have a very long URL
 https://www.federalregister.gov/articles/2013/09/04/2013-21140/water-qu
 ality-standards-regulatory-clarifications#p-5 in a document and it
 hangs way out into the right margin even though it does have a \n near
 the front.

You could use inserthyperlink and link it there with a few short words 
such as federalregister-water-quality

Wolfgang
 
My Web search turned up Andrew Moss' blog of January 4, 2013 so I put
 that long string in Insert - URL rather than my usual \url{} with the
 url package in the preamble. Still doesn't split it across several
 lines.
 
There must be a kludge I can apply to fit this in the default text
 width of the page, but I haven't found this so far.
 
 TIA,
 
 Rich


Re: Wrapping long URL to text width

2013-09-10 Thread Rich Shepard

On Tue, 10 Sep 2013, Rich Shepard wrote:


 There must be a kludge I can apply to fit this in the default text width
of the page, but I haven't found this so far.


  Well, I found a kludge, but would like to learn if there's a more elegant
solution.

  I took the URL out of the URL environment and made it a separate
paragraph. That paragraph is designated as LyX-code and has two \\ inserted
to force a line break. Not pretty, but it works.

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Wrapping long URL to text width [RESOLVED]

2013-09-10 Thread Rich Shepard

On Tue, 10 Sep 2013, Wolfgang Engelmann wrote:


You could use inserthyperlink and link it there with a few short words
such as federalregister-water-quality


Wolfgang,

  I tried this but could not cut and yank the long string into the hyperlink
dialog box. But, ... by putting the Insert-URL as a new paragraph with the
long string in there it formats very nicely.

Thanks very much for the pointer!

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Forward/reverse search and LuaTeX

2013-09-10 Thread Pavel Sanda
stefano franchi wrote:
 Has anyone managed to get forward/reserve search fully working when using
 LuaTeX as a backend?
 Automatic setting fails with LuaTeX (for me, at least).
 
 I got reverse search (from pdf to lyx) working by following the manual
 setup instructions in the Additional Features manual: creating a custom
 format (pdf6: Luatex/Synctex) and changing the compilation instruction to:
 
 lualatex -synctex=1 $$i

Time to send us patch with some paragraph or footnote in additional manual :)

 Regular LuaTeX compilation would otherwise fail with an Undefined control
 sequence error on the /synctex line in the preamble.
 
 But I cannot get the forward search (lyx--pdf) working properly. When I
 select Forward search from the pop-up dialog I always get a new okular
 instance. The Okular command in Tools-Preferences-Output-General is
 
 okular --unique $$o#src:$$n $$f
 
 
 Apparently, the unique flag is ignored.

Does forward search work with normal pdflatex? Any error message?
How old is your okular, IIRC there were such issues with old versions.
Pavel


Re: Forward/reverse search and LuaTeX

2013-09-10 Thread stefano franchi
On Tue, Sep 10, 2013 at 12:21 PM, Pavel Sanda sa...@lyx.org wrote:

 stefano franchi wrote:
  Has anyone managed to get forward/reserve search fully working when using
  LuaTeX as a backend?
  Automatic setting fails with LuaTeX (for me, at least).
 
  I got reverse search (from pdf to lyx) working by following the manual
  setup instructions in the Additional Features manual: creating a custom
  format (pdf6: Luatex/Synctex) and changing the compilation instruction
 to:
 
  lualatex -synctex=1 $$i

 Time to send us patch with some paragraph or footnote in additional manual
 :)


Ok, will do that.


  Regular LuaTeX compilation would otherwise fail with an Undefined
 control
  sequence error on the /synctex line in the preamble.
 
  But I cannot get the forward search (lyx--pdf) working properly. When I
  select Forward search from the pop-up dialog I always get a new okular
  instance. The Okular command in Tools-Preferences-Output-General is
 
  okular --unique $$o#src:$$n $$f
 
 
  Apparently, the unique flag is ignored.

 Does forward search work with normal pdflatex?


Hmm, no, just checked (should have thought of it). Same issue: new instance
and always landing on page 1


 Any error message?


No error message in the console. I see the command issued is exactly what
it should be:

 Running: okular --unique Myfile.pdf#src:54

But apparently the --unique flag is ignored as wells as the src:54 part,
since I always lend on the first page (on the new instance)


 How old is your okular, IIRC there were such issues with old versions.


I believe my version is pretty recent:
[stefano@gorgias ~]$ okular --version
Qt: 4.8.5
KDE Development Platform: 4.11.00
Okular: 0.17.0


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Forward/reverse search and LuaTeX

2013-09-10 Thread Pavel Sanda
 On Tue, Sep 10, 2013 at 12:21 PM, Pavel Sanda sa...@lyx.org wrote:
  Does forward search work with normal pdflatex?
 
 Hmm, no, just checked (should have thought of it). Same issue: new instance
 and always landing on page 1

Ok, but Okular is known to work with pdflatex forward search, IIRC at least in 
version 0.14.
Is anyone around with 0.17 version of Okular to test?

Pavel


Re: Thank you for View-Update

2013-09-10 Thread Paul A . Rubin
pdfview (as used here) is a custom application designed to use the system
default reader while avoiding file lock problems. See
http://wiki.lyx.org/Devel/WindowsInstaller-pdfview for source. If it no
longer works, maybe someone should have a look at updating it.

Paul



Re: Thank you for View-Update

2013-09-10 Thread Andrew Parsloe



On 11/09/2013 4:44 a.m., Bob Alvarez wrote:

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I
want to update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check
Always use the selected program to open this kind of file then it
will work, since TeXworks doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it,
from then on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper

Thanks, that does work but TexWorks is a limited program, for example it
does not seem to show bookmarks in pdf documents, so as you mention I
would have to switch back and forth.

I tried to change the defaults for pdf viewer in Tools|Preferences|File
Handling|File formats  and then selecting PDF in the Format dropdown menu.

The default in the Viewer: dropdown list is pdfview, which seems to
choose the system default viewer. I tried selecting Custom and the
entering the path to the texworks program but that does not work. The
message box at the bottom of the Lyx window says successful preview
... but the Texworks program does not open. I even tried using the
shortened path with no spaces with no luck.
C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the
system default?

Bob



With LyX 2.0.6 and Windows Vista, I changed the Viewer slot to Custom 
and in the right slot put texworks, just the name with no path. Using 
the View button successfully brought up the Texworks pdf viewer.


Andrew


Re: Thank you for View-Update

2013-09-10 Thread Bob Alvarez

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check Always use the 
selected program to open this kind of file then it will work, since TeXworks 
doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper
Thanks, that does work but TexWorks is a limited program, for example it 
does not seem to show bookmarks in pdf documents, so as you mention I 
would have to switch back and forth.


I tried to change the defaults for pdf viewer in Tools|Preferences|File 
Handling|File formats  and then selecting PDF in the Format dropdown menu.


The default in the Viewer: dropdown list is pdfview, which seems to 
choose the system default viewer. I tried selecting Custom and the 
entering the path to the texworks program but that does not work. The 
message box at the bottom of the Lyx window says successful preview 
... but the Texworks program does not open. I even tried using the 
shortened path with no spaces with no luck.

C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the 
system default?


Bob



Re: Widows and Orphans

2013-09-10 Thread Gordon Cooper

I expected that an answer would not be simple About 20 years ago
I wrote a module in Pascal that kept a line count for each page
and forced a new page if a paragraph break or a new heading
came within a selectable distance from the bottom. This partly
solved the issue, but not completely.

Thanks for the information.

Gordon Cooper



On 11/09/13 00:57, Richard Heck wrote:

Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.




Re: Widows and Orphans

2013-09-10 Thread Ray Rashif
On 11 September 2013 03:35, Gordon Cooper hughgord...@gmail.com wrote:
 I expected that an answer would not be simple About 20 years ago
 I wrote a module in Pascal that kept a line count for each page
 and forced a new page if a paragraph break or a new heading
 came within a selectable distance from the bottom. This partly
 solved the issue, but not completely.

 Thanks for the information.

This has really bothered me as well, often in large documents where I
have to go through every single page after a minor revision to check
for widows and orphans -- it really is a PITA. The high penalty
settings did not work for me in any of the cases.


--
GPG/PGP ID: C0711BF1


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

2013-09-10 Thread Guenter Milde
On 2013-09-10, Christian Bustamante wrote:

> [-- Type: text/plain, Encoding:  --]

> I tried with

> Input theorems-ams.module
> ProvidesModule theorems-ams

> and in fact the only problem style that appears in the drop-down menu is my
> style. However, when I try to compile the document, I'm still getting
> "LaTeX Error: Command \problem already defined". In the description part
> says "\newtheorem{problem}[thm]{\protect\problemname} Your command was
> ignored..."


It may be that you have to overwrite the Preamble code. 
What happens if your style defines an empty or dummy Preamble?

Style Problem
Preamble
EndPreamble
# other definitions
End


Günter




Re: Lambda not shown

2013-09-10 Thread Guenter Milde
On 2013-09-09, =?utf-8?Q?Philipp_Gr=C3=B6ne?= wrote:

> [-- Type: text/plain, Encoding: 7bit --]

> Hello!

> Lowercase-lambdas are not shown in my Lyx-documents. Uppercase Deltas are  
> shown.
> The Preset I use is thesis (chapter-1 or chapter-2, does not matter). I  
> activated "Non-Tex-Fonts" in the Document-Options. If I don't do that,  
> deltas aren't shown, either. I use LuaTex.

With non-TeX-fonts, there is no feedback whether a particular glyph is
actually present in the font.

As "non-TeX-fonts" are system fonts, you can use any "font-viewing
application" to check the coverage. Many system fonts (including the
LuaTeX/XeTeX default Latin Modern) do not include Greek characters (LM
has only capital Greek chars).

Examples for system fonts with a wide coverage including Greek are Free
Serif, Linux Libertine, and Deja Vu.

Günter




RE: Thank you for View->Update

2013-09-10 Thread Roel Schipper - CITG
Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following: 
- Go to you desktop, right-click a random PDF file
- From the context-menu, select "Open with..."
- One level deeper, choose "Choose default program..."
- In my situation, the PDF-viewer TeXworks is visible, if you check "Always use 
the selected program to open this kind of file" then it will work, since 
TeXworks doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Bob 
Alvarez
Sent: maandag 9 september 2013 18:15
To: lyx-users@lists.lyx.org
Cc: sl...@troubleshooters.com
Subject: Re: Thank you for View->Update
Importance: Low


> Thank you very much for View->Update (Ctrl+Shift+R). It's been in LyX 
> for many, many versions, but now it works, and it's a great help in 
> keeping the PDF I'm proofreading in sync with the file I'm modifying.


On my Windows 7 system the pdf viewer does not allow updates to the file.  Lyx 
gives me the error message:

"I can't write on file ..."

Does anyone know a way around this?

Bob


Re: \reversemarginpar places notes too far out - SOLVED

2013-09-10 Thread Anthony Campbell
On 09 Sep 2013, Les Denham wrote:
> On Mon, 9 Sep 2013 10:46:05 +0100
> Anthony Campbell  wrote:
> 
> > As far as I can see this makes marginal notes unusable for the book
> > class. Unless I'm wrong, perhaps it should be documented in the help
> > files?
> 
> Anthony,
> 
> If you're using the book class, by default you are assumed to have
> chapters.
> 
> If two-sided page layout is selected, a Chapter environment will
> automatically start on a right hand (odd numbered) page, inserting a
> blank page where necessary. So starting the text body with a chapter
> heading will solve the problem.
> 
> Is there any special reason why you are not using the Title, Author,
> etc., environments for the title page?
> 
> Personally, I prefer to use the book(KOMA-script) class (a lot more
> options, but defaults work well) or memoir class (an infinite number of
> options, a lot of them different from anything else in LaTeX, and an
> excellent manual, but a very steep learning curve), but the book class
> should work for what you're doing. Attached is a sample file to show
> what can be done.
> 
> Les
> 

I've already produced four books with this class so I'm fairly well used
to it. I tried Koma when I first began making books but didn't get on
with it, though I can't remember why.

Anyway, my probem is with the marginal note option. But I've now found a
workaround: the latex command \marginnote gives the marginal notes on
the right side of the page with double-sided printing. And inserting
blank pages doesn't upset things.




-- 
Anthony Campbell - a...@acampbell.org.uk 
http://www.acupuncturecourse.org.uk 
http://www.smashwords.com/profile.view/acampbell
https://itunes.apple.com/ca/artist/anthony-campbell/id73235412







Re: Widows and Orphans

2013-09-10 Thread Richard Heck

On 09/09/2013 04:25 PM, Gordon Cooper wrote:

  Is there a simple answer to the typesetting widow & orphan
problem in Lyx/latex? I see that there are various suggestions
offered in the manuals but they all seem to result in the need
for a bit of text adjustment (fiddling) as the final step before
printing.


If you google "clubpenalty widowpenalty" you'll find lots of
discussion of this kind of thing, e.g., here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows
You can force LaTeX never to allow widows or orphans by
setting the two comments I mentioned to insanely high values,
e.g.:
\clubpenalty=1
\widowpenalty=1
But this can cause other problems, since LaTeX is already
leaving an orphan (say) only when it has little other choice.
Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.

Richard



Forward/reverse search and LuaTeX

2013-09-10 Thread stefano franchi
Has anyone managed to get forward/reserve search fully working when using
LuaTeX as a backend?
Automatic setting fails with LuaTeX (for me, at least).

I got reverse search (from pdf to lyx) working by following the manual
setup instructions in the Additional Features manual: creating a custom
format (pdf6: Luatex/Synctex) and changing the compilation instruction to:

lualatex -synctex=1 $$i

Regular LuaTeX compilation would otherwise fail with an "Undefined control
sequence" error on the /synctex line in the preamble.

But I cannot get the forward search (lyx-->pdf) working properly. When I
select "Forward search" from the pop-up dialog I always get a new okular
instance. The Okular command in Tools->Preferences->Output->General is

okular --unique "$$o#src:$$n $$f"


Apparently, the unique flag is ignored.


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


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

2013-09-10 Thread Richard Heck

On 09/09/2013 10:52 PM, Christian Bustamante wrote:

I tried with

  Input theorems-ams.module
ProvidesModule theorems-ams

and in fact the only problem style that appears in the drop-down menu 
is my style. However, when I try to compile the document, I'm still 
getting "LaTeX Error: Command \problem already defined". In the 
description part says 
"\newtheorem{problem}[thm]{\protect\problemname} Your command was 
ignored..."


That's the preamble declaration from the old Problem style.

Can you post a complete (but simple) document in which this happens? 
Also, post the layout files again. I'm not sure what's going on here.


Richard



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

2013-09-10 Thread Richard Heck

On 09/10/2013 03:36 AM, Guenter Milde wrote:

On 2013-09-10, Christian Bustamante wrote:


[-- Type: text/plain, Encoding:  --]
I tried with
 Input theorems-ams.module
 ProvidesModule theorems-ams
and in fact the only problem style that appears in the drop-down menu is 
mystyle. However, when I try to compile the document, I'm still getting
"LaTeX Error: Command \problem already defined". In the description part
says "\newtheorem{problem}[thm]{\protect\problemname} Your command was
ignored..."


It may be that you have to overwrite the Preamble code.
What happens if your style defines an empty or dummy Preamble?

Style Problem
Preamble
EndPreamble
# other definitions
End


Deleting the style should have taken care of this, but it's not a bad idea.

rh



Wrapping long URL to text width

2013-09-10 Thread Rich Shepard

  I have a very long URL

in a document and it hangs way out into the right margin even though it does
have a \n near the front.

  My Web search turned up Andrew Moss' blog of January 4, 2013 so I put that
long string in Insert -> URL rather than my usual \url{} with the url
package in the preamble. Still doesn't split it across several lines.

  There must be a kludge I can apply to fit this in the default text width
of the page, but I haven't found this so far.

TIA,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
 Voice: 503-667-4517  Fax: 503-667-8863



Re: Wrapping long URL to text width

2013-09-10 Thread Wolfgang Engelmann
Am Tuesday, 10. September 2013, 16:38:28 schrieb Rich Shepard:
>I have a very long URL
>  ality-standards-regulatory-clarifications#p-5> in a document and it
> hangs way out into the right margin even though it does have a \n near
> the front.

You could use insert>hyperlink and link it there with a few short words 
such as federalregister-water-quality

Wolfgang
> 
>My Web search turned up Andrew Moss' blog of January 4, 2013 so I put
> that long string in Insert -> URL rather than my usual \url{} with the
> url package in the preamble. Still doesn't split it across several
> lines.
> 
>There must be a kludge I can apply to fit this in the default text
> width of the page, but I haven't found this so far.
> 
> TIA,
> 
> Rich


Re: Wrapping long URL to text width

2013-09-10 Thread Rich Shepard

On Tue, 10 Sep 2013, Rich Shepard wrote:


 There must be a kludge I can apply to fit this in the default text width
of the page, but I haven't found this so far.


  Well, I found a kludge, but would like to learn if there's a more elegant
solution.

  I took the URL out of the URL environment and made it a separate
paragraph. That paragraph is designated as LyX-code and has two \\ inserted
to force a line break. Not pretty, but it works.

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
 Voice: 503-667-4517  Fax: 503-667-8863



Re: Wrapping long URL to text width [RESOLVED]

2013-09-10 Thread Rich Shepard

On Tue, 10 Sep 2013, Wolfgang Engelmann wrote:


You could use insert>hyperlink and link it there with a few short words
such as federalregister-water-quality


Wolfgang,

  I tried this but could not cut and yank the long string into the hyperlink
dialog box. But, ... by putting the Insert->URL as a new paragraph with the
long string in there it formats very nicely.

Thanks very much for the pointer!

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
 Voice: 503-667-4517  Fax: 503-667-8863



Re: Forward/reverse search and LuaTeX

2013-09-10 Thread Pavel Sanda
stefano franchi wrote:
> Has anyone managed to get forward/reserve search fully working when using
> LuaTeX as a backend?
> Automatic setting fails with LuaTeX (for me, at least).
> 
> I got reverse search (from pdf to lyx) working by following the manual
> setup instructions in the Additional Features manual: creating a custom
> format (pdf6: Luatex/Synctex) and changing the compilation instruction to:
> 
> lualatex -synctex=1 $$i

Time to send us patch with some paragraph or footnote in additional manual :)

> Regular LuaTeX compilation would otherwise fail with an "Undefined control
> sequence" error on the /synctex line in the preamble.
> 
> But I cannot get the forward search (lyx-->pdf) working properly. When I
> select "Forward search" from the pop-up dialog I always get a new okular
> instance. The Okular command in Tools->Preferences->Output->General is
> 
> okular --unique "$$o#src:$$n $$f"
> 
> 
> Apparently, the unique flag is ignored.

Does forward search work with normal pdflatex? Any error message?
How old is your okular, IIRC there were such issues with old versions.
Pavel


Re: Forward/reverse search and LuaTeX

2013-09-10 Thread stefano franchi
On Tue, Sep 10, 2013 at 12:21 PM, Pavel Sanda  wrote:

> stefano franchi wrote:
> > Has anyone managed to get forward/reserve search fully working when using
> > LuaTeX as a backend?
> > Automatic setting fails with LuaTeX (for me, at least).
> >
> > I got reverse search (from pdf to lyx) working by following the manual
> > setup instructions in the Additional Features manual: creating a custom
> > format (pdf6: Luatex/Synctex) and changing the compilation instruction
> to:
> >
> > lualatex -synctex=1 $$i
>
> Time to send us patch with some paragraph or footnote in additional manual
> :)
>
>
Ok, will do that.


> > Regular LuaTeX compilation would otherwise fail with an "Undefined
> control
> > sequence" error on the /synctex line in the preamble.
> >
> > But I cannot get the forward search (lyx-->pdf) working properly. When I
> > select "Forward search" from the pop-up dialog I always get a new okular
> > instance. The Okular command in Tools->Preferences->Output->General is
> >
> > okular --unique "$$o#src:$$n $$f"
> >
> >
> > Apparently, the unique flag is ignored.
>
> Does forward search work with normal pdflatex?


Hmm, no, just checked (should have thought of it). Same issue: new instance
and always landing on page 1


> Any error message?
>

No error message in the console. I see the command issued is exactly what
it should be:

 Running: okular --unique "Myfile.pdf#src:54

But apparently the --unique flag is ignored as wells as the src:54 part,
since I always lend on the first page (on the new instance)


> How old is your okular, IIRC there were such issues with old versions.
>

I believe my version is pretty recent:
[stefano@gorgias ~]$ okular --version
Qt: 4.8.5
KDE Development Platform: 4.11.00
Okular: 0.17.0


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Forward/reverse search and LuaTeX

2013-09-10 Thread Pavel Sanda
> On Tue, Sep 10, 2013 at 12:21 PM, Pavel Sanda  wrote:
> > Does forward search work with normal pdflatex?
> 
> Hmm, no, just checked (should have thought of it). Same issue: new instance
> and always landing on page 1

Ok, but Okular is known to work with pdflatex forward search, IIRC at least in 
version 0.14.
Is anyone around with 0.17 version of Okular to test?

Pavel


Re: Thank you for View->Update

2013-09-10 Thread Paul A . Rubin
pdfview (as used here) is a custom application designed to use the system
default reader while avoiding file lock problems. See
http://wiki.lyx.org/Devel/WindowsInstaller-pdfview for source. If it no
longer works, maybe someone should have a look at updating it.

Paul



Re: Thank you for View->Update

2013-09-10 Thread Andrew Parsloe



On 11/09/2013 4:44 a.m., Bob Alvarez wrote:

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I
want to update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select "Open with..."
- One level deeper, choose "Choose default program..."
- In my situation, the PDF-viewer TeXworks is visible, if you check
"Always use the selected program to open this kind of file" then it
will work, since TeXworks doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it,
from then on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper

Thanks, that does work but TexWorks is a limited program, for example it
does not seem to show bookmarks in pdf documents, so as you mention I
would have to switch back and forth.

I tried to change the defaults for pdf viewer in Tools|Preferences|File
Handling|File formats  and then selecting PDF in the Format dropdown menu.

The default in the Viewer: dropdown list is pdfview, which seems to
choose the system default viewer. I tried selecting Custom and the
entering the path to the texworks program but that does not work. The
message box at the bottom of the Lyx window says "successful preview
..." but the Texworks program does not open. I even tried using the
shortened path with no spaces with no luck.
C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the
system default?

Bob



With LyX 2.0.6 and Windows Vista, I changed the Viewer slot to Custom 
and in the right slot put texworks, just the name with no path. Using 
the View button successfully brought up the Texworks pdf viewer.


Andrew


Re: Thank you for View->Update

2013-09-10 Thread Bob Alvarez

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select "Open with..."
- One level deeper, choose "Choose default program..."
- In my situation, the PDF-viewer TeXworks is visible, if you check "Always use the 
selected program to open this kind of file" then it will work, since TeXworks 
doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper
Thanks, that does work but TexWorks is a limited program, for example it 
does not seem to show bookmarks in pdf documents, so as you mention I 
would have to switch back and forth.


I tried to change the defaults for pdf viewer in Tools|Preferences|File 
Handling|File formats  and then selecting PDF in the Format dropdown menu.


The default in the Viewer: dropdown list is pdfview, which seems to 
choose the system default viewer. I tried selecting Custom and the 
entering the path to the texworks program but that does not work. The 
message box at the bottom of the Lyx window says "successful preview 
..." but the Texworks program does not open. I even tried using the 
shortened path with no spaces with no luck.

C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the 
system default?


Bob



Re: Widows and Orphans

2013-09-10 Thread Gordon Cooper

I expected that an answer would not be simple About 20 years ago
I wrote a module in Pascal that kept a line count for each page
and forced a new page if a paragraph break or a new heading
came within a selectable distance from the bottom. This partly
solved the issue, but not completely.

Thanks for the information.

Gordon Cooper



On 11/09/13 00:57, Richard Heck wrote:

Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.




Re: Widows and Orphans

2013-09-10 Thread Ray Rashif
On 11 September 2013 03:35, Gordon Cooper  wrote:
> I expected that an answer would not be simple About 20 years ago
> I wrote a module in Pascal that kept a line count for each page
> and forced a new page if a paragraph break or a new heading
> came within a selectable distance from the bottom. This partly
> solved the issue, but not completely.
>
> Thanks for the information.

This has really bothered me as well, often in large documents where I
have to go through every single page after a minor revision to check
for widows and orphans -- it really is a PITA. The high penalty
settings did not work for me in any of the cases.


--
GPG/PGP ID: C0711BF1