Re: PS Tricks and LyX

2010-09-05 Thread Julien Rioux

On 05/09/2010 9:58 AM, Diego Gruber wrote:

Hello,

I am trying to combine two images (fig_densities.eps
and fig_densities_zoom.eps) into one by slightly superimposing one on top of
the other. Now I managed to produce what I wanted using PSTricks, running my
script on TexShop, but when I run the same code within LyX a blank space
appears on top of the caption, no image at all. Here's the code I'm using
(I've left only one psfrag command per image to reduce the clutter):

\begin{pspicture}(-0.3\linewidth,-0.15\textheight)(0.3\linewidth,0.2\textheight)

\rput[cm](0,.4){
\psfrag{xlabel}[][][1][0]{}
\includegraphics[width=.48\textwidth]{fig_densities.eps}
}

\rput[cm](4,0){
\psfrag{xlabel}[][][.9][0]{}
\includegraphics[width=.23\textwidth]{fig_densities_zoom.eps}
}

\end{pspicture}

In LyX I am placing this code in a "TeX box" within a figure float. In order
for psfrag to work properly in LyX I've had to use ps2pdf typesetting, but I
also tried other forms of typesetting included in LyX and all of them return
a blank space where i want my figure.

I am running version 1.6.5 on OS X 10.6.

Is there an easy way to make this work in LyX? Perhaps I shouldn't be using
PSTricks at all? Thanks in advance for any advice!

Diego



Hi Diego,

If it works in LaTeX, it should work in LyX too. The problem I see with 
your approach, is that LyX compiles the document in a temporary 
directory, by first copying any necessary files, such as graphics, to 
this directory. But... in this case since the \includegraphics commands 
are in TeX mode, LyX isn't smart enough to copy those files too.


The solution is to include those graphics in the LyX's way, using Insert 
> Graphics. Then, wrap the two figures with your TeX code. Since you 
are using psfrag commands, you will have no choice but to use one of the 
postscript output (ps or ps2pdf). Try and please comment back if this 
works for you or not.


Best,
Julien



Re: Nomenclature: Option clash, & localisation issue

2010-09-05 Thread Uwe Stöhr

Am 05.09.2010 15:12, schrieb Peter Baumgartner:


I don't know how to pass the option "german" to the package "nomencl"
without destroying my option setting in scrbook.


Add this to your document preamble:

\PassOptionsToPackage{german}{nomencl}

regards Uwe


Re: preview issue in 64bit windows

2010-09-05 Thread Uwe Stöhr

Am 05.09.2010 22:37, schrieb E.R.:


I have some problems with previewing JPG and PS/EPS in LyX in both WinXP/Win7
64bit environments.
I had installed both ImageMagick and GhostScript in 64bit versions before
installing LyX (by alternative installer).


It is much more safe not to install them separately. Nevertheless it should 
work.


My first question is: is it possible not to install 32bit versions of these apps
from the LyX installer (both "official" or alternative)?


No, the installer only ships one version of these applications to keep the file size low. Thus we 
only ship the 32bit version. But you don't need the 64bit versions. Personally, I also have a 64bit 
Windows but use the 32bit versions as I cannot see any difference in speed.



After installing, my PNG preview works, but JPG and EPS files not.
In the 32bit XP/Vista, preview works. Have you some workaround for this issue?
Uninstalling LyX, 64bit ImageMagick and GSview/GhostScript and subsequent
reinstall of LyX with its 32bit alternatives of IM/GS didn't solve the problem.


Hmm, this works here on WinXp 64bit when I install IM and GS together with the alternative LyX 
Windows installer.


regards Uwe


preview issue in 64bit windows

2010-09-05 Thread E . R .
Hello,
I have some problems with previewing JPG and PS/EPS in LyX in both WinXP/Win7
64bit environments.
I had installed both ImageMagick and GhostScript in 64bit versions before
installing LyX (by alternative installer).
My first question is: is it possible not to install 32bit versions of these apps
from the LyX installer (both "official" or alternative)?
After installing, my PNG preview works, but JPG and EPS files not.
In the 32bit XP/Vista, preview works. Have you some workaround for this issue?
Uninstalling LyX, 64bit ImageMagick and GSview/GhostScript and subsequent
reinstall of LyX with its 32bit alternatives of IM/GS didn't solve the problem.
Thanks,
Erik



Re: Roman Section-Letter subsection numbering

2010-09-05 Thread Guenter Milde
On 2010-09-04, BcBob wrote:


> BcBob wrote:

>> I am writing a paper for a journal that wants the sections numbered in
>> capital roman numerals and the subsections as capital letters. The
>> subsubsections are numbers. As an example, II.B.3

>> 

>> Can someone provide a link to where this is documented? I assume it is
>> part of the "remreset" package??

Its part of TeX, the base of LaTeX and hence documented in any
comprehensive textbook about these two. Also, searching the latex faq
should bring some hints and links.

> Also, how can I get Lyx to use this format for the numbering in the editing
> pane? Now, it uses the 2.2.3 format.

You would need to create a LyX layout file. See the Customization manual
(Help>Customization).

Günter



Re: suppressing "Chapter" labels in book class

2010-09-05 Thread Graham Smith

 Can I be more specific with this

What I would like to be able to do is to replace

Chapter 1
Title of Chapter 1

With

1. Title of Chapter 1

So it looks like another section

I can't simply use sections as they start numbers at zero if you don't 
use the chapter environment.


I'm not sure my earlier post was all that clear.

Thanks,

Graham



On 05/09/2010 11:08, Graham Smith wrote:

I'm afraid I have asked this before, but can't find it either by
googlng or in my mail base.

With book class each chapter is headed Chapter x and then the title of
the chapter.

I only want to show the title of the chapter and suppress the "Chapter
x" printing in either the main text or the header.

I would be grateful if someone could remind me how this is done.

Many thanks,

Graham






PS Tricks and LyX

2010-09-05 Thread Diego Gruber
Hello,

I am trying to combine two images (fig_densities.eps
and fig_densities_zoom.eps) into one by slightly superimposing one on top of
the other. Now I managed to produce what I wanted using PSTricks, running my
script on TexShop, but when I run the same code within LyX a blank space
appears on top of the caption, no image at all. Here's the code I'm using
(I've left only one psfrag command per image to reduce the clutter):

\begin{pspicture}(-0.3\linewidth,-0.15\textheight)(0.3\linewidth,0.2\textheight)

\rput[cm](0,.4){
\psfrag{xlabel}[][][1][0]{}
\includegraphics[width=.48\textwidth]{fig_densities.eps}
}

\rput[cm](4,0){
\psfrag{xlabel}[][][.9][0]{}
\includegraphics[width=.23\textwidth]{fig_densities_zoom.eps}
}

\end{pspicture}

In LyX I am placing this code in a "TeX box" within a figure float. In order
for psfrag to work properly in LyX I've had to use ps2pdf typesetting, but I
also tried other forms of typesetting included in LyX and all of them return
a blank space where i want my figure.

I am running version 1.6.5 on OS X 10.6.

Is there an easy way to make this work in LyX? Perhaps I shouldn't be using
PSTricks at all? Thanks in advance for any advice!

Diego


Nomenclature: Option clash, & localisation issue

2010-09-05 Thread Peter Baumgartner
I would like to use the refpage option of the nomenclature package in the
German localisation. I'm using KOMA scrbook with the naustrian language
option.

I don't know how to pass the option "german" to the package "nomencl"
without destroying my option setting in scrbook. Calling the package again
with my options does not work either and results in an option clash.

Maybe there is no way and I should use the German localisation? But then I
would loose some special Austrian words, for instance in the date ("Jänner"
for "Januar"). I seems to me that people using the new German spelling
"ngerman" would have a similar problem.

I can change the name of the glossary manually with
\renewcommand{\nomname}{Glossar} for example, but I don't now how to do this
kind of localisation with refpage.

Peter




Re: text placement with box(minipage) on same page

2010-09-05 Thread Graham Smith
Jürgen

> Try (in preamble):
>
> \raggedbottom

Excellent, that fixed it :-)

many thank,

Graham


Re: text placement with box(minipage) on same page

2010-09-05 Thread Jürgen Spitzmüller
Graham Smith wrote:
> Using book  class I have some information inside a box, which is
> sitting inside a branch (as the material is optional). The box fills
> about a quarter of the page.
> 
> The box is being placed at the bottom of the page and the three short
> paragraphs of text above the box on the same page are being spread
> evenly to fill the space.  As they are short paragraphs this leaves
> large amounts of white space between them.
> 
> If I convert then them to a single paragraph, that single paragraph is
> then centred in the whte space between the top of the page and the top
> of the box. This obviously does not look very good.
> 
> There is another box/code branch on the next page if that is
> important. However for this page it would make sense if the paragraphs
> and the box were all moved up, so all the white space was at the
> bottom of the page.
> 
> I hope that makes sense, and that somoen can tell me how to fix this.

Try (in preamble):

\raggedbottom

> Many thanks,
> 
> Graham

Jürgen


text placement with box(minipage) on same page

2010-09-05 Thread Graham Smith
Using book  class I have some information inside a box, which is
sitting inside a branch (as the material is optional). The box fills
about a quarter of the page.

The box is being placed at the bottom of the page and the three short
paragraphs of text above the box on the same page are being spread
evenly to fill the space.  As they are short paragraphs this leaves
large amounts of white space between them.

If I convert then them to a single paragraph, that single paragraph is
then centred in the whte space between the top of the page and the top
of the box. This obviously does not look very good.

There is another box/code branch on the next page if that is
important. However for this page it would make sense if the paragraphs
and the box were all moved up, so all the white space was at the
bottom of the page.

I hope that makes sense, and that somoen can tell me how to fix this.

Many thanks,

Graham


suppressing "Chapter" labels in book class

2010-09-05 Thread Graham Smith
I'm afraid I have asked this before, but can't find it either by
googlng or in my mail base.

With book class each chapter is headed Chapter x and then the title of
the chapter.

I only want to show the title of the chapter and suppress the "Chapter
x" printing in either the main text or the header.

I would be grateful if someone could remind me how this is done.

Many thanks,

Graham


Re: Horizontal space popup

2010-09-05 Thread Torquil Macdonald Sørensen

On 05/09/10 09:23, Abdelrazak Younes wrote:

On 03/09/2010 21:54, Richard Heck wrote:

On 09/03/2010 12:47 PM, Torquil Macdonald Sørensen wrote:

Hi LyXers!

Is it possible to disable the "Horizontal space" popup that appears
every time I left-click on such a space in a document? If find that it
often appears when I try to click between a spacer and a character,
and can be quite disruptive since it happens often.


The context menu is defined in the stdcontext.inc menu definition file,
which (on Linux) you would find somewhere like:
/usr/share/lyx/ui/
You can copy this to your user directory, e.g.:
/home/you/.lyx/ui/stdcontext.inc
and then remove the definition for the context-space menu.


The guy is talking about left-click not right-click ;-)

So to answer the original question, no, I think you'll have to modify
LyX source code to disable that, sorry. I agree this is bad actually
and, as the dialog are accessible now via the context menu we should
probably think of changing this strategy.

Abdel.


Aha, so that's why I wasn't able to disable it... I tried commenting out 
everything having to do with spacing in that file but to no avail.


But thanks anyway, Richard and Abdel!
Torquil


Re: Horizontal space popup

2010-09-05 Thread Abdelrazak Younes

On 03/09/2010 21:54, Richard Heck wrote:

On 09/03/2010 12:47 PM, Torquil Macdonald Sørensen wrote:

Hi LyXers!

Is it possible to disable the "Horizontal space" popup that appears
every time I left-click on such a space in a document? If find that it
often appears when I try to click between a spacer and a character,
and can be quite disruptive since it happens often.


The context menu is defined in the stdcontext.inc menu definition file,
which (on Linux) you would find somewhere like:
/usr/share/lyx/ui/
You can copy this to your user directory, e.g.:
/home/you/.lyx/ui/stdcontext.inc
and then remove the definition for the context-space menu.


The guy is talking about left-click not right-click ;-)

So to answer the original question, no, I think you'll have to modify 
LyX source code to disable that, sorry. I agree this is bad actually 
and, as the dialog are accessible now via the context menu we should 
probably think of changing this strategy.


Abdel.



Re: typing slowness with large documents

2010-09-05 Thread Abdelrazak Younes

On 04/09/2010 16:40, Guenter Milde wrote:

On 2010-09-03, obregonma...@gmail.com wrote:


I am experiencing very slow reaction times when typing and deleting, as
well as scrolling the document window. I have the latest debian sid
installation and everything else works fine.


Sometimes, the culprit is a clipboard-manager.


I have each chapter in a branch and I only work with one branch open at
a time, but this doesn't help at all. I also have the navigation window
closed, and math preview is off.


I suppose putting them in brances will not help as much as putting them
in separate files (included by a master file).


Putting them in such big branches will even worsen the performance I 
think... Branches and Insets in general were not really designed for big 
text. If you really need branches I suggest as Gunter said to put the 
chapters in different child documents and put the Include insets in 
branches in the master document.


Abdel.