Re: References style

2010-04-04 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
 Babel loads after the preamble, so if it redefines \refname, that would 
 be the culprit.

It loads at the end of the preamble.

\AtBeginDocument{%
 \renewcommand{\refname}{%   
  \rmfamily\mdseries\begin{center}References\end{center}
 }
}

should do.

Jürgen


width of undersets

2010-04-04 Thread Micha
How do I get undersets not to make the spacing of the equation wrong when the 
width of the underset is wider than the equation?


doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+  b  +c
}
   description

instead of

   a+b+c
 }
description

thanks



Re: letter?

2010-04-04 Thread Sandro Portmann
But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP

Re: letter?

2010-04-04 Thread Jean-Marie Pacquet

Sandro Portmann a écrit :

But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP
  

You can use koma-letter2 with the SN letter option in the preamble

%% Load an *.lco style file (see KOMA documentation)
\LoadLetterOption{SN}% 


--
jmp


Re: letter?

2010-04-04 Thread Sandro Portmann
Thanks a lot. 
Does anybody know how to deal that in the dinbrief.lyx file? That would be very 
nice!

SP

Am 04.04.2010 um 16:00 schrieb Jean-Marie Pacquet:

 Sandro Portmann a écrit :
 But how can I generate a letter with the given examples or the text glass 
 letter(DIN,german) which has the adress on the right side of the page? 
 That's the way how letters in Switzerland are written and I need it this way.
 
 SP
  
 You can use koma-letter2 with the SN letter option in the preamble
 
 %% Load an *.lco style file (see KOMA documentation)
 \LoadLetterOption{SN}% 
 -- 
 jmp



Re: References style

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 5:47 AM, Jürgen Spitzmüller wrote:

Paul A. Rubin wrote:

Babel loads after the preamble, so if it redefines \refname, that would
be the culprit.


It loads at the end of the preamble.

\AtBeginDocument{%
  \renewcommand{\refname}{%
   \rmfamily\mdseries\begin{center}References\end{center}
  }
}

should do.



That did not work for me in a test document (article class).

/Paul



Problem with Lyx multirows

2010-04-04 Thread Jacob Larsen

Hi,
I'm in the process of writing my thesis in Lyx, but I'm pretty new to it. I've 
been having some problems with creating multirows in tables. I tried to follow 
the instructions from http://wiki.lyx.org/LyX/Tables, but can't get it to work 
in my own lyx document. Whenever I want to watch the PDF view an error saying 
Undefined control sequence pops up with the following description:

\multirow
  {2}{2.5cm}{multi row}\tabularnewline
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
I have attached a lyx file with a table and the code that I tried to use. Any 
help would be much appreciated.
Thanks,
Jacob Larsen


  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

problemwithmultirow.lyx
Description: Binary data


Re: width of undersets

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul




RE: Problem with Lyx multirows

2010-04-04 Thread Ingar Pareliussen
Hi,
I'm in the process of writing my thesis in Lyx, but I'm pretty new to it. I've 
been having some problems with creating multirows in tables. I tried to follow 
the instructions from http://wiki.lyx.org/LyX/Tables, but can't get it to 
work in my own lyx document. Whenever I want to watch the PDF view an error 
saying Undefined control sequence pops up with the following description:

\multirow
  {2}{2.5cm}{multi row}\tabularnewline
The control sequence at the end of the top line
of your error message was never \def'ed. If you have

You need to declare the multrow package. In Documents-Settings--Preamble write

\usepackage{multirow}

hth
Ingar 


Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong. The reply 
ruined the spaces so I'll use underscores instead. Using your method I get


a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be only 
under b)


I remember seeing a solution a couple of years back or so on this list so I know 
it's possible, but can't find it anymore.


captions to graphics are sometimes centred and sometimes not

2010-04-04 Thread Richard Brown
Using 1.6.5 on ubunto 9..10, and komascript book, I have some photographs
insert in floats. Each photograph has a caption. Sometimes the captions are
centred on the page, and sometimes they are left justified- and I can see no
difference whatsoever in the procedure I adopted (Insert float, +  insert
graphics) or in the source code. The only difference is that some captions
are longer than others.

For instance, this is centred:

 % Preview source code for paragraph 43

%

\begin{figure}[H]

\includegraphics[width=3.65in]{bolzano_esterno}

\caption{La sala del commiato a Bolzano.}

 \end{figure}



And this is left justified:

 % Preview source code for paragraph 45

%

\begin{figure}[H]

\includegraphics[width=3.65in,height=2.3in]{bolzano_crocefisso}

\caption{Bolzano, il catafalco. ~Da notare i simboli religiosi non \protect
\\

sono fissi. }

 \end{figure}



Wherein lies the difference?

TIA

Richard


Error en LyX

2010-04-04 Thread Josep Borrás
Soy un nuevo usuario de LyX sin ningún conocimiento efectivo de
LaTex. Acabo de descargar LyX y si bien la Introducción y el Tutorial de la
Ayuda se obtienen perfectamente en su edición PDF no ocurre lo mismo con la
Guía de Usuario que resulta imposible obtener en ese formato (solo aparece
un escueto mensaje de error).

 

 ¿Puede ser un error arrastrado con la descarga o es solo en mi
ordenador? ¿Puedo encontrar una solución diferente a desinstalar todo el
programa e intentar una nueva descarga? …

 

 Mi agradecimiento por cualquier sugerencia.  Josep.

 

 



Re: Error en LyX

2010-04-04 Thread Julio Rojas
Hola Pep:
En primer lugar, la lista es en inglés, así que te será más fácil
obtener respuesta si escribes en este idioma. Segundo, es dificil
detectar el error si no colocas el mensaje de error. Tercero, es
recomendable que describas el sistema en el que intentas compilar el
documento: sistema operativo, versión de lyx, distribución y versión
de latex.

Esperamos por tu respuesta. Un abrazo.
-
Julio Rojas
jcredbe...@gmail.com



2010/4/4 Josep Borrás j.sd...@yahoo.es:
        Soy un nuevo usuario de LyX sin ningún conocimiento efectivo de
 LaTex. Acabo de descargar LyX y si bien la Introducción y el Tutorial de la
 Ayuda se obtienen perfectamente en su edición PDF no ocurre lo mismo con la
 Guía de Usuario que resulta imposible obtener en ese formato (solo aparece
 un escueto mensaje de error).



         ¿Puede ser un error arrastrado con la descarga o es solo en mi
 ordenador? ¿Puedo encontrar una solución diferente a desinstalar todo el
 programa e intentar una nueva descarga? …



         Mi agradecimiento por cualquier sugerencia.              Josep.








Insert word count at end of the document

2010-04-04 Thread Kevin Li
Hi,

Is there a way to make the word count automatically appear at the end of the
document (perhaps like a variable)?


Thanks, Kevin.


Re: Insert word count at end of the document

2010-04-04 Thread rgheck

On 04/04/2010 03:16 PM, Kevin Li wrote:

Hi,

Is there a way to make the word count automatically appear at the end of the
document (perhaps like a variable)?

   
Not really. I suppose that the Info inset could be adapted to this 
purpose---it's basically used to display things LyX knows about---but at 
present it isn't.


rh



Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for the pointer, Jurgen. I was using 1.6.4 and as a result of your
input, have today updated to 1.6.5. This has also solved a few other issues
I had with pdfpackages!

Richard


Re: Insert word count at end of the document

2010-04-04 Thread Steve Litt
On Sunday 04 April 2010 15:16:06 Kevin Li wrote:
 Hi,
 
 Is there a way to make the word count automatically appear at the end of
  the document (perhaps like a variable)?
 
 
 Thanks, Kevin.
 

Certainly, if you're willing to use a script to generate the document. Have 
something like this in the document prefix:

wordcount=32123

Then at the very end, put this ERT:

\wordcount

Then have a script that converts to text, counts the words via wc, then uses 
sed to change the wordcount=32123 line, then converts to dvi via latex, and 
converts to ps via dvips, then converts to pdf via ps2pdf.

I do stuff like this all the time. This is how my eBook personalization 
scripts work.

SteeT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: width of undersets

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy.  If 'b' is replaced by 
a sufficiently long expression, the brace will stretch to the width of 
the expression, but if 'b' is literally one character, the brace will be 
wider than b. Are you asking how to make the brace narrower?  I don't 
know if that can be done.


If you're doing what I wrote before (but with the brace only under b) 
and there's extra space surrounding b that annoys you, I suspect it's 
from the brace, not from the description.


As a side note, I noticed that when putting the brace under b only, 
sometimes the space between + and c was short-changed. That can be 
corrected by inserting space manually.


/Paul



Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 3:42 PM, Richard Brown wrote:

Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.



Odd; I don't have that problem here (but I'm on Win XP at the moment; my 
Linux machines are napping).  Could be a bug in 1.6.4 that was fixed in 
1.6.5, probably the one Jürgen mentioned.


At any rate, I think underscores in file names should not be a problem 
(including on Linux).


/Paul




Re: captions to graphics are sometimes centred and sometimes not

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 2:06 PM, Richard Brown wrote:

Using 1.6.5 on ubunto 9..10, and komascript book, I have some photographs
insert in floats. Each photograph has a caption. Sometimes the captions are
centred on the page, and sometimes they are left justified- and I can see no
difference whatsoever in the procedure I adopted (Insert float, +  insert
graphics) or in the source code. The only difference is that some captions
are longer than others.

For instance, this is centred:

  % Preview source code for paragraph 43

%

\begin{figure}[H]

\includegraphics[width=3.65in]{bolzano_esterno}

\caption{La sala del commiato a Bolzano.}

  \end{figure}



And this is left justified:

  % Preview source code for paragraph 45

%

\begin{figure}[H]

\includegraphics[width=3.65in,height=2.3in]{bolzano_crocefisso}

\caption{Bolzano, il catafalco. ~Da notare i simboli religiosi non \protect
\\

sono fissi. }

  \end{figure}



Wherein lies the difference?



Can't reproduce it here.  Can you post a barebones example (minimal LyX 
file)?


I notice that you are not centering the images within the floats, so the 
images will be left-justified.  When I do it here, though, the captions 
are centered. (Also, the second caption is a single line here. Is it 
supposed to be two lines for you?)


/Paul



Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 23:20, Paul A. Rubin wrote:

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy. If 'b' is replaced by a
sufficiently long expression, the brace will stretch to the width of the
expression, but if 'b' is literally one character, the brace will be
wider than b. Are you asking how to make the brace narrower? I don't
know if that can be done.

If you're doing what I wrote before (but with the brace only under b)
and there's extra space surrounding b that annoys you, I suspect it's
from the brace, not from the description.

As a side note, I noticed that when putting the brace under b only,
sometimes the space between + and c was short-changed. That can be
corrected by inserting space manually.

/Paul


The behavior is to expand the whole block of b, underbrace and description to 
the width of the block. The brace is as wide as b, not as wide as the 
description (I'm actually using an arrow in this case, but it doesn't matter), 
my problem is with the bock width, not the brace width.


I ended up inserting negative vspace, although I seem to recall that there was a 
more correct solution to the problem.


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller sp...@... writes:
 
 Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
 
 - When using the PDF-Pages external inset, copy the included PDF file to
   the temporary directory, where LaTeX searches it (bug 6345).
 
 Jürgen
 
 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 23:47, Micha wrote:

On 04/04/2010 23:20, Paul A. Rubin wrote:

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy. If 'b' is replaced by a
sufficiently long expression, the brace will stretch to the width of the
expression, but if 'b' is literally one character, the brace will be
wider than b. Are you asking how to make the brace narrower? I don't
know if that can be done.

If you're doing what I wrote before (but with the brace only under b)
and there's extra space surrounding b that annoys you, I suspect it's
from the brace, not from the description.

As a side note, I noticed that when putting the brace under b only,
sometimes the space between + and c was short-changed. That can be
corrected by inserting space manually.

/Paul


The behavior is to expand the whole block of b, underbrace and
description to the width of the block. The brace is as wide as b, not as
wide as the description (I'm actually using an arrow in this case, but
it doesn't matter), my problem is with the bock width, not the brace width.

I ended up inserting negative vspace, although I seem to recall that
there was a more correct solution to the problem.


sorry, of course it's a hspace, not a vspace. And this is what I was trying to 
achieve, just I was hoping not to have to resort to hspace:


I(x,y,\hspace{-0.9em}\underset{\substack{\downarrow\\
\mbox{scale}
}
}{t}\hspace{-0.9em})=I(x,y,0)\otimes\hspace{-5em}\underset{\substack{\downarrow\\
\mbox{Gaussian filter with zero}\\
\mbox{mean and variance t}
}
}{G}\hspace{-5em}\left(t\right)


Re: Offer... for technical writing

2010-04-04 Thread Ralph Boland
   Dear all: I am a journalist and writer, and a heavy user of Lyx.
   Please let me know if you need any help (volunteering, without fee) to
   help write or edit Lyx help files for users. I am not a techie, but
   understand the software ... with guidance I could do it. My English
   skills are near-native speaker level. FN
--

I don't know what your first language is but if there is not already
a version of the Lyx documentation in your language then translating
the documentation into that language would be a great help both to
Lyx and to those who speak your language.

You could also work on translating the English phrases of Lyx itself
into your language.  Perhaps some Lyx developer would help you
with this remotely.

If that is not enough work for you, your help with the English Lyx
documentation is of course welcome.

Ralph Boland





-- 
Had a wife and kids in Florida, Jack (Nicklaus)
Went out for a ride but I couldn't get back
As a ten timer being hunted down
OR
When the wife found out who I was knowing (biblically speaking)
I hit a hydrant and I just kept going (till I hit a tree).
...


Re: width of undersets

2010-04-04 Thread Paul Rubin
Micha mi...@... writes:


 I(x,y,\hspace{-0.9em}\underset{\substack{\downarrow\\
 \mbox{scale}
 }
 }{t}\hspace{-0.9em})=I(x,y,0)\otimes\hspace{-5em}
 \underset{\substack{\downarrow\\
 \mbox{Gaussian filter with zero}\\
 \mbox{mean and variance t}
 }
 }{G}\hspace{-5em}\left(t\right)

You can omit the \hspace commands and change all three instances
of \mbox{...} to \makebox[0pt]{...}.

/Paul




Re: letter? Swiss Norm

2010-04-04 Thread Hellmut Weber

Hi Sandro,
in my koma installation there is a file SN.lco

/usr/share/texmf-dist/tex/latex/koma-script/SN.lco

It defines the Swiss official letter norm as far as i remember.

HTH

Happy Lyxing

Hellmut

Am 04.04.2010 14:17, schrieb Sandro Portmann:

But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP


--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: letter? Swiss Norm

2010-04-04 Thread Sandro Portmann
Hi Hellmut,

Where do I find that file on a macintosh computer? I'm really new in using LyX, 
so I don't really know, where I find those things... Can you help me one more 
time?

SP

Am 05.04.2010 um 01:08 schrieb Hellmut Weber:

 Hi Sandro,
 in my koma installation there is a file SN.lco
 
 /usr/share/texmf-dist/tex/latex/koma-script/SN.lco
 
 It defines the Swiss official letter norm as far as i remember.
 
 HTH
 
 Happy Lyxing
 
 Hellmut
 
 Am 04.04.2010 14:17, schrieb Sandro Portmann:
 But how can I generate a letter with the given examples or the text glass 
 letter(DIN,german) which has the adress on the right side of the page? 
 That's the way how letters in Switzerland are written and I need it this way.
 
 SP
 
 -- 
 Dr. Hellmut Weber m...@hellmutweber.de
 Degenfeldstraße 2 tel   +49-89-3081172
 D-80803 München-Schwabing mobil +49-172-8450321
 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
 



Re: References style

2010-04-04 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
 Babel loads after the preamble, so if it redefines \refname, that would 
 be the culprit.

It loads at the end of the preamble.

\AtBeginDocument{%
 \renewcommand{\refname}{%   
  \rmfamily\mdseries\begin{center}References\end{center}
 }
}

should do.

Jürgen


width of undersets

2010-04-04 Thread Micha
How do I get undersets not to make the spacing of the equation wrong when the 
width of the underset is wider than the equation?


doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+  b  +c
}
   description

instead of

   a+b+c
 }
description

thanks



Re: letter?

2010-04-04 Thread Sandro Portmann
But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP

Re: letter?

2010-04-04 Thread Jean-Marie Pacquet

Sandro Portmann a écrit :

But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP
  

You can use koma-letter2 with the SN letter option in the preamble

%% Load an *.lco style file (see KOMA documentation)
\LoadLetterOption{SN}% 


--
jmp


Re: letter?

2010-04-04 Thread Sandro Portmann
Thanks a lot. 
Does anybody know how to deal that in the dinbrief.lyx file? That would be very 
nice!

SP

Am 04.04.2010 um 16:00 schrieb Jean-Marie Pacquet:

 Sandro Portmann a écrit :
 But how can I generate a letter with the given examples or the text glass 
 letter(DIN,german) which has the adress on the right side of the page? 
 That's the way how letters in Switzerland are written and I need it this way.
 
 SP
  
 You can use koma-letter2 with the SN letter option in the preamble
 
 %% Load an *.lco style file (see KOMA documentation)
 \LoadLetterOption{SN}% 
 -- 
 jmp



Re: References style

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 5:47 AM, Jürgen Spitzmüller wrote:

Paul A. Rubin wrote:

Babel loads after the preamble, so if it redefines \refname, that would
be the culprit.


It loads at the end of the preamble.

\AtBeginDocument{%
  \renewcommand{\refname}{%
   \rmfamily\mdseries\begin{center}References\end{center}
  }
}

should do.



That did not work for me in a test document (article class).

/Paul



Problem with Lyx multirows

2010-04-04 Thread Jacob Larsen

Hi,
I'm in the process of writing my thesis in Lyx, but I'm pretty new to it. I've 
been having some problems with creating multirows in tables. I tried to follow 
the instructions from http://wiki.lyx.org/LyX/Tables, but can't get it to work 
in my own lyx document. Whenever I want to watch the PDF view an error saying 
Undefined control sequence pops up with the following description:

\multirow
  {2}{2.5cm}{multi row}\tabularnewline
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
I have attached a lyx file with a table and the code that I tried to use. Any 
help would be much appreciated.
Thanks,
Jacob Larsen


  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

problemwithmultirow.lyx
Description: Binary data


Re: width of undersets

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul




RE: Problem with Lyx multirows

2010-04-04 Thread Ingar Pareliussen
Hi,
I'm in the process of writing my thesis in Lyx, but I'm pretty new to it. I've 
been having some problems with creating multirows in tables. I tried to follow 
the instructions from http://wiki.lyx.org/LyX/Tables, but can't get it to 
work in my own lyx document. Whenever I want to watch the PDF view an error 
saying Undefined control sequence pops up with the following description:

\multirow
  {2}{2.5cm}{multi row}\tabularnewline
The control sequence at the end of the top line
of your error message was never \def'ed. If you have

You need to declare the multrow package. In Documents-Settings--Preamble write

\usepackage{multirow}

hth
Ingar 


Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong. The reply 
ruined the spaces so I'll use underscores instead. Using your method I get


a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be only 
under b)


I remember seeing a solution a couple of years back or so on this list so I know 
it's possible, but can't find it anymore.


captions to graphics are sometimes centred and sometimes not

2010-04-04 Thread Richard Brown
Using 1.6.5 on ubunto 9..10, and komascript book, I have some photographs
insert in floats. Each photograph has a caption. Sometimes the captions are
centred on the page, and sometimes they are left justified- and I can see no
difference whatsoever in the procedure I adopted (Insert float, +  insert
graphics) or in the source code. The only difference is that some captions
are longer than others.

For instance, this is centred:

 % Preview source code for paragraph 43

%

\begin{figure}[H]

\includegraphics[width=3.65in]{bolzano_esterno}

\caption{La sala del commiato a Bolzano.}

 \end{figure}



And this is left justified:

 % Preview source code for paragraph 45

%

\begin{figure}[H]

\includegraphics[width=3.65in,height=2.3in]{bolzano_crocefisso}

\caption{Bolzano, il catafalco. ~Da notare i simboli religiosi non \protect
\\

sono fissi. }

 \end{figure}



Wherein lies the difference?

TIA

Richard


Error en LyX

2010-04-04 Thread Josep Borrás
Soy un nuevo usuario de LyX sin ningún conocimiento efectivo de
LaTex. Acabo de descargar LyX y si bien la Introducción y el Tutorial de la
Ayuda se obtienen perfectamente en su edición PDF no ocurre lo mismo con la
Guía de Usuario que resulta imposible obtener en ese formato (solo aparece
un escueto mensaje de error).

 

 ¿Puede ser un error arrastrado con la descarga o es solo en mi
ordenador? ¿Puedo encontrar una solución diferente a desinstalar todo el
programa e intentar una nueva descarga? …

 

 Mi agradecimiento por cualquier sugerencia.  Josep.

 

 



Re: Error en LyX

2010-04-04 Thread Julio Rojas
Hola Pep:
En primer lugar, la lista es en inglés, así que te será más fácil
obtener respuesta si escribes en este idioma. Segundo, es dificil
detectar el error si no colocas el mensaje de error. Tercero, es
recomendable que describas el sistema en el que intentas compilar el
documento: sistema operativo, versión de lyx, distribución y versión
de latex.

Esperamos por tu respuesta. Un abrazo.
-
Julio Rojas
jcredbe...@gmail.com



2010/4/4 Josep Borrás j.sd...@yahoo.es:
        Soy un nuevo usuario de LyX sin ningún conocimiento efectivo de
 LaTex. Acabo de descargar LyX y si bien la Introducción y el Tutorial de la
 Ayuda se obtienen perfectamente en su edición PDF no ocurre lo mismo con la
 Guía de Usuario que resulta imposible obtener en ese formato (solo aparece
 un escueto mensaje de error).



         ¿Puede ser un error arrastrado con la descarga o es solo en mi
 ordenador? ¿Puedo encontrar una solución diferente a desinstalar todo el
 programa e intentar una nueva descarga? …



         Mi agradecimiento por cualquier sugerencia.              Josep.








Insert word count at end of the document

2010-04-04 Thread Kevin Li
Hi,

Is there a way to make the word count automatically appear at the end of the
document (perhaps like a variable)?


Thanks, Kevin.


Re: Insert word count at end of the document

2010-04-04 Thread rgheck

On 04/04/2010 03:16 PM, Kevin Li wrote:

Hi,

Is there a way to make the word count automatically appear at the end of the
document (perhaps like a variable)?

   
Not really. I suppose that the Info inset could be adapted to this 
purpose---it's basically used to display things LyX knows about---but at 
present it isn't.


rh



Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for the pointer, Jurgen. I was using 1.6.4 and as a result of your
input, have today updated to 1.6.5. This has also solved a few other issues
I had with pdfpackages!

Richard


Re: Insert word count at end of the document

2010-04-04 Thread Steve Litt
On Sunday 04 April 2010 15:16:06 Kevin Li wrote:
 Hi,
 
 Is there a way to make the word count automatically appear at the end of
  the document (perhaps like a variable)?
 
 
 Thanks, Kevin.
 

Certainly, if you're willing to use a script to generate the document. Have 
something like this in the document prefix:

wordcount=32123

Then at the very end, put this ERT:

\wordcount

Then have a script that converts to text, counts the words via wc, then uses 
sed to change the wordcount=32123 line, then converts to dvi via latex, and 
converts to ps via dvips, then converts to pdf via ps2pdf.

I do stuff like this all the time. This is how my eBook personalization 
scripts work.

SteeT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: width of undersets

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy.  If 'b' is replaced by 
a sufficiently long expression, the brace will stretch to the width of 
the expression, but if 'b' is literally one character, the brace will be 
wider than b. Are you asking how to make the brace narrower?  I don't 
know if that can be done.


If you're doing what I wrote before (but with the brace only under b) 
and there's extra space surrounding b that annoys you, I suspect it's 
from the brace, not from the description.


As a side note, I noticed that when putting the brace under b only, 
sometimes the space between + and c was short-changed. That can be 
corrected by inserting space manually.


/Paul



Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 3:42 PM, Richard Brown wrote:

Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.



Odd; I don't have that problem here (but I'm on Win XP at the moment; my 
Linux machines are napping).  Could be a bug in 1.6.4 that was fixed in 
1.6.5, probably the one Jürgen mentioned.


At any rate, I think underscores in file names should not be a problem 
(including on Linux).


/Paul




Re: captions to graphics are sometimes centred and sometimes not

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 2:06 PM, Richard Brown wrote:

Using 1.6.5 on ubunto 9..10, and komascript book, I have some photographs
insert in floats. Each photograph has a caption. Sometimes the captions are
centred on the page, and sometimes they are left justified- and I can see no
difference whatsoever in the procedure I adopted (Insert float, +  insert
graphics) or in the source code. The only difference is that some captions
are longer than others.

For instance, this is centred:

  % Preview source code for paragraph 43

%

\begin{figure}[H]

\includegraphics[width=3.65in]{bolzano_esterno}

\caption{La sala del commiato a Bolzano.}

  \end{figure}



And this is left justified:

  % Preview source code for paragraph 45

%

\begin{figure}[H]

\includegraphics[width=3.65in,height=2.3in]{bolzano_crocefisso}

\caption{Bolzano, il catafalco. ~Da notare i simboli religiosi non \protect
\\

sono fissi. }

  \end{figure}



Wherein lies the difference?



Can't reproduce it here.  Can you post a barebones example (minimal LyX 
file)?


I notice that you are not centering the images within the floats, so the 
images will be left-justified.  When I do it here, though, the captions 
are centered. (Also, the second caption is a single line here. Is it 
supposed to be two lines for you?)


/Paul



Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 23:20, Paul A. Rubin wrote:

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy. If 'b' is replaced by a
sufficiently long expression, the brace will stretch to the width of the
expression, but if 'b' is literally one character, the brace will be
wider than b. Are you asking how to make the brace narrower? I don't
know if that can be done.

If you're doing what I wrote before (but with the brace only under b)
and there's extra space surrounding b that annoys you, I suspect it's
from the brace, not from the description.

As a side note, I noticed that when putting the brace under b only,
sometimes the space between + and c was short-changed. That can be
corrected by inserting space manually.

/Paul


The behavior is to expand the whole block of b, underbrace and description to 
the width of the block. The brace is as wide as b, not as wide as the 
description (I'm actually using an arrow in this case, but it doesn't matter), 
my problem is with the bock width, not the brace width.


I ended up inserting negative vspace, although I seem to recall that there was a 
more correct solution to the problem.


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller sp...@... writes:
 
 Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
 
 - When using the PDF-Pages external inset, copy the included PDF file to
   the temporary directory, where LaTeX searches it (bug 6345).
 
 Jürgen
 
 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 23:47, Micha wrote:

On 04/04/2010 23:20, Paul A. Rubin wrote:

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy. If 'b' is replaced by a
sufficiently long expression, the brace will stretch to the width of the
expression, but if 'b' is literally one character, the brace will be
wider than b. Are you asking how to make the brace narrower? I don't
know if that can be done.

If you're doing what I wrote before (but with the brace only under b)
and there's extra space surrounding b that annoys you, I suspect it's
from the brace, not from the description.

As a side note, I noticed that when putting the brace under b only,
sometimes the space between + and c was short-changed. That can be
corrected by inserting space manually.

/Paul


The behavior is to expand the whole block of b, underbrace and
description to the width of the block. The brace is as wide as b, not as
wide as the description (I'm actually using an arrow in this case, but
it doesn't matter), my problem is with the bock width, not the brace width.

I ended up inserting negative vspace, although I seem to recall that
there was a more correct solution to the problem.


sorry, of course it's a hspace, not a vspace. And this is what I was trying to 
achieve, just I was hoping not to have to resort to hspace:


I(x,y,\hspace{-0.9em}\underset{\substack{\downarrow\\
\mbox{scale}
}
}{t}\hspace{-0.9em})=I(x,y,0)\otimes\hspace{-5em}\underset{\substack{\downarrow\\
\mbox{Gaussian filter with zero}\\
\mbox{mean and variance t}
}
}{G}\hspace{-5em}\left(t\right)


Re: Offer... for technical writing

2010-04-04 Thread Ralph Boland
   Dear all: I am a journalist and writer, and a heavy user of Lyx.
   Please let me know if you need any help (volunteering, without fee) to
   help write or edit Lyx help files for users. I am not a techie, but
   understand the software ... with guidance I could do it. My English
   skills are near-native speaker level. FN
--

I don't know what your first language is but if there is not already
a version of the Lyx documentation in your language then translating
the documentation into that language would be a great help both to
Lyx and to those who speak your language.

You could also work on translating the English phrases of Lyx itself
into your language.  Perhaps some Lyx developer would help you
with this remotely.

If that is not enough work for you, your help with the English Lyx
documentation is of course welcome.

Ralph Boland





-- 
Had a wife and kids in Florida, Jack (Nicklaus)
Went out for a ride but I couldn't get back
As a ten timer being hunted down
OR
When the wife found out who I was knowing (biblically speaking)
I hit a hydrant and I just kept going (till I hit a tree).
...


Re: width of undersets

2010-04-04 Thread Paul Rubin
Micha mi...@... writes:


 I(x,y,\hspace{-0.9em}\underset{\substack{\downarrow\\
 \mbox{scale}
 }
 }{t}\hspace{-0.9em})=I(x,y,0)\otimes\hspace{-5em}
 \underset{\substack{\downarrow\\
 \mbox{Gaussian filter with zero}\\
 \mbox{mean and variance t}
 }
 }{G}\hspace{-5em}\left(t\right)

You can omit the \hspace commands and change all three instances
of \mbox{...} to \makebox[0pt]{...}.

/Paul




Re: letter? Swiss Norm

2010-04-04 Thread Hellmut Weber

Hi Sandro,
in my koma installation there is a file SN.lco

/usr/share/texmf-dist/tex/latex/koma-script/SN.lco

It defines the Swiss official letter norm as far as i remember.

HTH

Happy Lyxing

Hellmut

Am 04.04.2010 14:17, schrieb Sandro Portmann:

But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP


--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: letter? Swiss Norm

2010-04-04 Thread Sandro Portmann
Hi Hellmut,

Where do I find that file on a macintosh computer? I'm really new in using LyX, 
so I don't really know, where I find those things... Can you help me one more 
time?

SP

Am 05.04.2010 um 01:08 schrieb Hellmut Weber:

 Hi Sandro,
 in my koma installation there is a file SN.lco
 
 /usr/share/texmf-dist/tex/latex/koma-script/SN.lco
 
 It defines the Swiss official letter norm as far as i remember.
 
 HTH
 
 Happy Lyxing
 
 Hellmut
 
 Am 04.04.2010 14:17, schrieb Sandro Portmann:
 But how can I generate a letter with the given examples or the text glass 
 letter(DIN,german) which has the adress on the right side of the page? 
 That's the way how letters in Switzerland are written and I need it this way.
 
 SP
 
 -- 
 Dr. Hellmut Weber m...@hellmutweber.de
 Degenfeldstraße 2 tel   +49-89-3081172
 D-80803 München-Schwabing mobil +49-172-8450321
 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
 



Re: References style

2010-04-04 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
> Babel loads after the preamble, so if it redefines \refname, that would 
> be the culprit.

It loads at the end of the preamble.

\AtBeginDocument{%
 \renewcommand{\refname}{%   
  \rmfamily\mdseries\begin{center}References\end{center}
 }
}

should do.

Jürgen


width of undersets

2010-04-04 Thread Micha
How do I get undersets not to make the spacing of the equation wrong when the 
width of the underset is wider than the equation?


doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+  b  +c
}
   description

instead of

   a+b+c
 }
description

thanks



Re: letter?

2010-04-04 Thread Sandro Portmann
But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP

Re: letter?

2010-04-04 Thread Jean-Marie Pacquet

Sandro Portmann a écrit :

But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP
  

You can use koma-letter2 with the "SN" letter option in the preamble

%% Load an *.lco style file (see KOMA documentation)
\LoadLetterOption{SN}% 


--
jmp


Re: letter?

2010-04-04 Thread Sandro Portmann
Thanks a lot. 
Does anybody know how to deal that in the dinbrief.lyx file? That would be very 
nice!

SP

Am 04.04.2010 um 16:00 schrieb Jean-Marie Pacquet:

> Sandro Portmann a écrit :
>> But how can I generate a letter with the given examples or the text glass 
>> letter(DIN,german) which has the adress on the right side of the page? 
>> That's the way how letters in Switzerland are written and I need it this way.
>> 
>> SP
>>  
> You can use koma-letter2 with the "SN" letter option in the preamble
> 
> %% Load an *.lco style file (see KOMA documentation)
> \LoadLetterOption{SN}% 
> -- 
> jmp



Re: References style

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 5:47 AM, Jürgen Spitzmüller wrote:

Paul A. Rubin wrote:

Babel loads after the preamble, so if it redefines \refname, that would
be the culprit.


It loads at the end of the preamble.

\AtBeginDocument{%
  \renewcommand{\refname}{%
   \rmfamily\mdseries\begin{center}References\end{center}
  }
}

should do.



That did not work for me in a test document (article class).

/Paul



Problem with Lyx multirows

2010-04-04 Thread Jacob Larsen

Hi,
I'm in the process of writing my thesis in Lyx, but I'm pretty new to it. I've 
been having some problems with creating multirows in tables. I tried to follow 
the instructions from http://wiki.lyx.org/LyX/Tables, but can't get it to work 
in my own lyx document. Whenever I want to watch the PDF view an error saying 
Undefined control sequence pops up with the following description:

\multirow
  {2}{2.5cm}{multi row} &  &  &  & \tabularnewline
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
I have attached a lyx file with a table and the code that I tried to use. Any 
help would be much appreciated.
Thanks,
Jacob Larsen


  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

problemwithmultirow.lyx
Description: Binary data


Re: width of undersets

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul




RE: Problem with Lyx multirows

2010-04-04 Thread Ingar Pareliussen
>Hi,
>I'm in the process of writing my thesis in Lyx, but I'm pretty new to it. I've 
>been having some problems with creating multirows in tables. I tried to follow 
>the instructions from >http://wiki.lyx.org/LyX/Tables, but can't get it to 
>work in my own lyx document. Whenever I want to watch the PDF view an error 
>saying Undefined control sequence pops up with the following >description:
>
>\multirow
>  {2}{2.5cm}{multi row} &  &  &  & \tabularnewline
>The control sequence at the end of the top line
>of your error message was never \def'ed. If you have

You need to declare the multrow package. In Documents->Settings-->Preamble write

\usepackage{multirow}

hth
Ingar 


Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong. The reply 
ruined the spaces so I'll use underscores instead. Using your method I get


a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be only 
under b)


I remember seeing a solution a couple of years back or so on this list so I know 
it's possible, but can't find it anymore.


captions to graphics are sometimes centred and sometimes not

2010-04-04 Thread Richard Brown
Using 1.6.5 on ubunto 9..10, and komascript book, I have some photographs
insert in floats. Each photograph has a caption. Sometimes the captions are
centred on the page, and sometimes they are left justified- and I can see no
difference whatsoever in the procedure I adopted (Insert float, +  insert
graphics) or in the source code. The only difference is that some captions
are longer than others.

For instance, this is centred:

 % Preview source code for paragraph 43

%

\begin{figure}[H]

\includegraphics[width=3.65in]{bolzano_esterno}

\caption{La sala del commiato a Bolzano.}

 \end{figure}



And this is left justified:

 % Preview source code for paragraph 45

%

\begin{figure}[H]

\includegraphics[width=3.65in,height=2.3in]{bolzano_crocefisso}

\caption{Bolzano, il catafalco. ~Da notare i simboli religiosi non \protect
\\

sono fissi. }

 \end{figure}



Wherein lies the difference?

TIA

Richard


Error en LyX

2010-04-04 Thread Josep Borrás
Soy un nuevo usuario de LyX sin ningún conocimiento efectivo de
LaTex. Acabo de descargar LyX y si bien la Introducción y el Tutorial de la
Ayuda se obtienen perfectamente en su edición PDF no ocurre lo mismo con la
Guía de Usuario que resulta imposible obtener en ese formato (solo aparece
un escueto mensaje de error).

 

 ¿Puede ser un error arrastrado con la descarga o es solo en mi
ordenador? ¿Puedo encontrar una solución diferente a desinstalar todo el
programa e intentar una nueva descarga? …

 

 Mi agradecimiento por cualquier sugerencia.  Josep.

 

 



Re: Error en LyX

2010-04-04 Thread Julio Rojas
Hola Pep:
En primer lugar, la lista es en inglés, así que te será más fácil
obtener respuesta si escribes en este idioma. Segundo, es dificil
detectar el error si no colocas el mensaje de error. Tercero, es
recomendable que describas el sistema en el que intentas compilar el
documento: sistema operativo, versión de lyx, distribución y versión
de latex.

Esperamos por tu respuesta. Un abrazo.
-
Julio Rojas
jcredbe...@gmail.com



2010/4/4 Josep Borrás :
>        Soy un nuevo usuario de LyX sin ningún conocimiento efectivo de
> LaTex. Acabo de descargar LyX y si bien la Introducción y el Tutorial de la
> Ayuda se obtienen perfectamente en su edición PDF no ocurre lo mismo con la
> Guía de Usuario que resulta imposible obtener en ese formato (solo aparece
> un escueto mensaje de error).
>
>
>
>         ¿Puede ser un error arrastrado con la descarga o es solo en mi
> ordenador? ¿Puedo encontrar una solución diferente a desinstalar todo el
> programa e intentar una nueva descarga? …
>
>
>
>         Mi agradecimiento por cualquier sugerencia.              Josep.
>
>
>
>
>
>


Insert word count at end of the document

2010-04-04 Thread Kevin Li
Hi,

Is there a way to make the word count automatically appear at the end of the
document (perhaps like a variable)?


Thanks, Kevin.


Re: Insert word count at end of the document

2010-04-04 Thread rgheck

On 04/04/2010 03:16 PM, Kevin Li wrote:

Hi,

Is there a way to make the word count automatically appear at the end of the
document (perhaps like a variable)?

   
Not really. I suppose that the Info inset could be adapted to this 
purpose---it's basically used to display things LyX knows about---but at 
present it isn't.


rh



Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx "mangled" the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for the pointer, Jurgen. I was using 1.6.4 and as a result of your
input, have today updated to 1.6.5. This has also solved a few other issues
I had with pdfpackages!

Richard


Re: Insert word count at end of the document

2010-04-04 Thread Steve Litt
On Sunday 04 April 2010 15:16:06 Kevin Li wrote:
> Hi,
> 
> Is there a way to make the word count automatically appear at the end of
>  the document (perhaps like a variable)?
> 
> 
> Thanks, Kevin.
> 

Certainly, if you're willing to use a script to generate the document. Have 
something like this in the document prefix:

wordcount=32123

Then at the very end, put this ERT:

\wordcount

Then have a script that converts to text, counts the words via wc, then uses 
sed to change the wordcount=32123 line, then converts to dvi via latex, and 
converts to ps via dvips, then converts to pdf via ps2pdf.

I do stuff like this all the time. This is how my eBook personalization 
scripts work.

SteeT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: width of undersets

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy.  If 'b' is replaced by 
a sufficiently long expression, the brace will stretch to the width of 
the expression, but if 'b' is literally one character, the brace will be 
wider than b. Are you asking how to make the brace narrower?  I don't 
know if that can be done.


If you're doing what I wrote before (but with the brace only under b) 
and there's extra space surrounding b that annoys you, I suspect it's 
from the brace, not from the description.


As a side note, I noticed that when putting the brace under b only, 
sometimes the space between + and c was short-changed. That can be 
corrected by inserting space manually.


/Paul



Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 3:42 PM, Richard Brown wrote:

Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx "mangled" the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.



Odd; I don't have that problem here (but I'm on Win XP at the moment; my 
Linux machines are napping).  Could be a bug in 1.6.4 that was fixed in 
1.6.5, probably the one Jürgen mentioned.


At any rate, I think underscores in file names should not be a problem 
(including on Linux).


/Paul




Re: captions to graphics are sometimes centred and sometimes not

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 2:06 PM, Richard Brown wrote:

Using 1.6.5 on ubunto 9..10, and komascript book, I have some photographs
insert in floats. Each photograph has a caption. Sometimes the captions are
centred on the page, and sometimes they are left justified- and I can see no
difference whatsoever in the procedure I adopted (Insert float, +  insert
graphics) or in the source code. The only difference is that some captions
are longer than others.

For instance, this is centred:

  % Preview source code for paragraph 43

%

\begin{figure}[H]

\includegraphics[width=3.65in]{bolzano_esterno}

\caption{La sala del commiato a Bolzano.}

  \end{figure}



And this is left justified:

  % Preview source code for paragraph 45

%

\begin{figure}[H]

\includegraphics[width=3.65in,height=2.3in]{bolzano_crocefisso}

\caption{Bolzano, il catafalco. ~Da notare i simboli religiosi non \protect
\\

sono fissi. }

  \end{figure}



Wherein lies the difference?



Can't reproduce it here.  Can you post a barebones example (minimal LyX 
file)?


I notice that you are not centering the images within the floats, so the 
images will be left-justified.  When I do it here, though, the captions 
are centered. (Also, the second caption is a single line here. Is it 
supposed to be two lines for you?)


/Paul



Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 23:20, Paul A. Rubin wrote:

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy. If 'b' is replaced by a
sufficiently long expression, the brace will stretch to the width of the
expression, but if 'b' is literally one character, the brace will be
wider than b. Are you asking how to make the brace narrower? I don't
know if that can be done.

If you're doing what I wrote before (but with the brace only under b)
and there's extra space surrounding b that annoys you, I suspect it's
from the brace, not from the description.

As a side note, I noticed that when putting the brace under b only,
sometimes the space between + and c was short-changed. That can be
corrected by inserting space manually.

/Paul


The behavior is to expand the whole block of b, underbrace and description to 
the width of the block. The brace is as wide as b, not as wide as the 
description (I'm actually using an arrow in this case, but it doesn't matter), 
my problem is with the bock width, not the brace width.


I ended up inserting negative vspace, although I seem to recall that there was a 
more "correct" solution to the problem.


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller  writes:
> 
> Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
> 
> - When using the PDF-Pages external inset, copy the included PDF file to
>   the temporary directory, where LaTeX searches it (bug 6345).
> 
> Jürgen
> 
> 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Re: width of undersets

2010-04-04 Thread Micha

On 04/04/2010 23:47, Micha wrote:

On 04/04/2010 23:20, Paul A. Rubin wrote:

On 4/4/2010 1:14 PM, Micha wrote:

On 04/04/2010 18:30, Paul A. Rubin wrote:

On 4/4/2010 7:56 AM, Micha wrote:

How do I get undersets not to make the spacing of the equation wrong
when the width of the underset is wider than the equation?

doing $a+\underset{description}{underbrace{b}}+c$ comes out as
a+ b +c
}
description

instead of

a+b+c
}
description

thanks




I suspect what you want is the following (in a math inset):

1. type \underset (space);
2. in the upper box of the inset, type \underbrace (space);
3. enter the formula in the innermost inset;
4. enter the description in the bottom space.

/Paul



That is what I'm doing, the problem is that the spacing is all wrong.
The reply ruined the spaces so I'll use underscores instead. Using your
method I get

a + _ b __ + c
_ }
_ description

While what I want is

a + b + c
___ }
description

here, _ are spaces and } denotes the underbrace (which is supposed to be
only under b)

I remember seeing a solution a couple of years back or so on this list
so I know it's possible, but can't find it anymore.



Putting the underbrace under just the b is easy. If 'b' is replaced by a
sufficiently long expression, the brace will stretch to the width of the
expression, but if 'b' is literally one character, the brace will be
wider than b. Are you asking how to make the brace narrower? I don't
know if that can be done.

If you're doing what I wrote before (but with the brace only under b)
and there's extra space surrounding b that annoys you, I suspect it's
from the brace, not from the description.

As a side note, I noticed that when putting the brace under b only,
sometimes the space between + and c was short-changed. That can be
corrected by inserting space manually.

/Paul


The behavior is to expand the whole block of b, underbrace and
description to the width of the block. The brace is as wide as b, not as
wide as the description (I'm actually using an arrow in this case, but
it doesn't matter), my problem is with the bock width, not the brace width.

I ended up inserting negative vspace, although I seem to recall that
there was a more "correct" solution to the problem.


sorry, of course it's a hspace, not a vspace. And this is what I was trying to 
achieve, just I was hoping not to have to resort to hspace:


I(x,y,\hspace{-0.9em}\underset{\substack{\downarrow\\
\mbox{scale}
}
}{t}\hspace{-0.9em})=I(x,y,0)\otimes\hspace{-5em}\underset{\substack{\downarrow\\
\mbox{Gaussian filter with zero}\\
\mbox{mean and variance t}
}
}{G}\hspace{-5em}\left(t\right)


Re: Offer... for technical writing

2010-04-04 Thread Ralph Boland
>   Dear all: I am a journalist and writer, and a heavy user of Lyx.
>   Please let me know if you need any help (volunteering, without fee) to
>   help write or edit Lyx help files for users. I am not a techie, but
>   understand the software ... with guidance I could do it. My English
>   skills are near-native speaker level. FN
--

I don't know what your first language is but if there is not already
a version of the Lyx documentation in your language then translating
the documentation into that language would be a great help both to
Lyx and to those who speak your language.

You could also work on translating the English phrases of Lyx itself
into your language.  Perhaps some Lyx developer would help you
with this remotely.

If that is not enough work for you, your help with the English Lyx
documentation is of course welcome.

Ralph Boland





-- 
Had a wife and kids in Florida, Jack (Nicklaus)
Went out for a "ride" but I couldn't get back
As a ten timer being hunted down
OR
When the wife found out who I was knowing (biblically speaking)
I hit a hydrant and I just kept going (till I hit a tree).
...


Re: width of undersets

2010-04-04 Thread Paul Rubin
Micha  writes:


> I(x,y,\hspace{-0.9em}\underset{\substack{\downarrow\\
> \mbox{scale}
> }
> }{t}\hspace{-0.9em})=I(x,y,0)\otimes\hspace{-5em}
> \underset{\substack{\downarrow\\
> \mbox{Gaussian filter with zero}\\
> \mbox{mean and variance t}
> }
> }{G}\hspace{-5em}\left(t\right)

You can omit the \hspace commands and change all three instances
of \mbox{...} to \makebox[0pt]{...}.

/Paul




Re: letter? Swiss Norm

2010-04-04 Thread Hellmut Weber

Hi Sandro,
in my koma installation there is a file SN.lco

/usr/share/texmf-dist/tex/latex/koma-script/SN.lco

It defines the Swiss official letter norm as far as i remember.

HTH

Happy Lyxing

Hellmut

Am 04.04.2010 14:17, schrieb Sandro Portmann:

But how can I generate a letter with the given examples or the text glass 
letter(DIN,german) which has the adress on the right side of the page? That's 
the way how letters in Switzerland are written and I need it this way.

SP


--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: letter? Swiss Norm

2010-04-04 Thread Sandro Portmann
Hi Hellmut,

Where do I find that file on a macintosh computer? I'm really new in using LyX, 
so I don't really know, where I find those things... Can you help me one more 
time?

SP

Am 05.04.2010 um 01:08 schrieb Hellmut Weber:

> Hi Sandro,
> in my koma installation there is a file SN.lco
> 
> /usr/share/texmf-dist/tex/latex/koma-script/SN.lco
> 
> It defines the Swiss official letter norm as far as i remember.
> 
> HTH
> 
> Happy Lyxing
> 
> Hellmut
> 
> Am 04.04.2010 14:17, schrieb Sandro Portmann:
>> But how can I generate a letter with the given examples or the text glass 
>> letter(DIN,german) which has the adress on the right side of the page? 
>> That's the way how letters in Switzerland are written and I need it this way.
>> 
>> SP
> 
> -- 
> Dr. Hellmut Weber m...@hellmutweber.de
> Degenfeldstraße 2 tel   +49-89-3081172
> D-80803 München-Schwabing mobil +49-172-8450321
> please: No DOCs, no PPTs. why: tinyurl.com/cbgq
>