Finding and replacing quotes

2008-09-22 Thread K. Elo
Hi,

how could I find (and replace) quotation marks in LyX? I have selected
wrong type for quotes and now I should replace all quotes :(

I have tried to use the -character in find-dialog, but this does not
work. I also have tried to copy-paste the wrong quote but it does not
work, either.

Any ideas how to solve this?

Thanks in advance,
Kimmo


Re: I killed Latex, ¡hel p me, please!

2008-09-22 Thread G. Milde
On 20.09.08, Marcelo Acuña wrote:

  I update several packages that in texlive provided for opensuse 11.0
  are very old. When I finished and run texhash lyx (and kile) no run
  anymore.

Did you try with a simple example?

  I get:
  Undefinid control sequence
  Missing \begin{document}
  Undefinid control sequence
  Missing \begin{document}

What does the LaTeX log say?

  How I can restore latex work without reverse to obsolete version of
  texlive provided for opensuse?

This very much depends on what is really wrong?

Could you append the example file and the LaTeX log so we can check?

Günter


Re: custom layouts - inserting a mandatory parameter

2008-09-22 Thread Jürgen Spitzmüller
Micha wrote:
 I'm trying to see if I can write a layout file for the currvita latex
 class. The main environment is a list environment that should come out
 something like

 \begin{cvlist}{title}
 \item[one] text
 \item[two] text
 \end{cvlist}

 I can get the {title} part by adding
 LatexParam  {title}
 but that doesn't allow me to change this. Is there a way to insert that
 mandatory argument, layout file style option, tex code or otherwise?

Alas, LyX does not yet support multiple mandatory arguments natively. You can 
try one of the following hacks (all untested):

1. use
LatexType List_Environment
LabelString   title
then you can insert the title via the Longest label widget of the paragraph 
dialog (see the List environment for an example)

2. Redefine the environment to use an optional arg, use lyxcvlist instead of 
cvlist and enter the title via insert-optional argument:
LaTeXName   lyxcvlist
OptionalArgs1
Preamble
\newenvironment\lyxcvlist[1][]{\begin{cvlist}{#1}}{\end{cvlist}
EndPreamble

Jürgen


Re: Finding and replacing quotes

2008-09-22 Thread Jürgen Spitzmüller
K. Elo wrote:
 how could I find (and replace) quotation marks in LyX? I have selected
 wrong type for quotes and now I should replace all quotes :(

1. Open a copy of the LyX file in an editor and replace all (for instance)

\begin_inset Quotes gld
by
\begin_inset Quotes ald

2. consider using the LaTeX package csquotes from now on.

Jürgen


Re: Finding and replacing quotes

2008-09-22 Thread K. Elo
Hi,

thanks for Your quick reply, Jürgen.

Jürgen Spitzmüller wrote:
 
 1. Open a copy of the LyX file in an editor and replace all (for instance)
 
 \begin_inset Quotes gld
 by
 \begin_inset Quotes ald

This means, I cannot find and replace wrongly typed quotes in LyX :-\

 2. consider using the LaTeX package csquotes from now on.

I will :)


-Kimmo


Re: Finding and replacing quotes

2008-09-22 Thread Konrad Hofbauer

Jürgen Spitzmüller wrote:

2. consider using the LaTeX package csquotes from now on.


Has LyX built-in support or csquotes (besides ERT)?

/Konrad



Re: Finding and replacing quotes

2008-09-22 Thread Jürgen Spitzmüller
Konrad Hofbauer wrote:
 Has LyX built-in support or csquotes (besides ERT)?

No. But you don't need ERT. I use:

\usepackage[babel, german=swiss]{csquotes}
\MakeAutoQuote{»}{«}
\MakeInnerQuote{¶}

in preamble and then just write »double quoted« and ¶single quoted¶ 
and »nested »quoted«« text in LyX (where »« is not the LyX quotation mark, 
but the unicode glyph, AltGr-x and AltGr-y here on Linux).

Jürgen


Re: custom layouts - inserting a mandatory parameter

2008-09-22 Thread G Milde
Micha [EMAIL PROTECTED] schrieb:
 I'm trying to see if I can write a layout file for the currvita latex class.
 The main environment is a list environment that should come out something like

 \begin{cvlist}{title}
 \item[one] text
 \item[two] text
 \end{cvlist}

 I can get the {title} part by adding
 LatexParam{title}
 but that doesn't allow me to change this. Is there a way to insert that
 mandatory argument, layout file style option, tex code or otherwise?

There are two ways: as optional parameter (short title) or as a separate
Style. My dinbrief.layout uses the latter:

  # dinbrief's \phone has 2 args, area and number. We define an empty
  # command that can be set by the Area_Code style
  Preamble
\newcommand{\areacode}{}
  EndPreamble
  
  # dinbrief's \phone has 2 args, area and number,
  # define both as distinct styles
  
  Style Area_Code
CopyStyle   DinBrief
LabelString Vorwahl:
LatexName   renewcommand{\areacode}
  End
  
  
  Style Telephone
CopyStyle   DinBrief
LabelString Telefon:
LatexName   phone
LatexParam  {\areacode}
  End
  
For the short-title way, you would need to define an auxiliary latex
command with optional argument, enable the optional arg with the keyword

OptionalArgs  1

and set it with (the misnamed) InsertShort-Title. 

Günter





theorem numbering in amsbook

2008-09-22 Thread end

Using LyX 1.5.6 for Windows. OS: Vista

I am using amsbook class, and cannot achieve the swapped theorem numbering
(say, 1.2 Lemma instead of Lemma 1.2). The amsbook is supposed to include
amsthm.sty, and the style documentation says one should enter \swapnumbers
command. But entering this in the preamble does not change anything. Please
help.

-- 
View this message in context: 
http://n2.nabble.com/theorem-numbering-in-amsbook-tp1109584p1109584.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Lyx 1.5.4 lof caption length

2008-09-22 Thread Fil
Hi,

Please could you advise if you can set the caption length in LOF in the TOC?? . 
I'm using lyx 1.5.4.

I'd prefer to use the float figure caption(box) if possible so really I need to 
know if there is a
command to cut off the text in the figure box so after that point the lof does 
not list it in the
toc (but still under the figure) as I have some long descriptions and 
references listed.

I know \caption [thing to go in tof]{thing to go under figure \cite{book}} 
works, however I prefer
the figure float presentation. Plus I didn't realise this issue earlier and if 
I change I'll have to
edited 60 or so captions now.

Many thanks,

Fil.


Re: Finding and replacing quotes

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 02:17:03 am K. Elo wrote:
 Hi,

 how could I find (and replace) quotation marks in LyX? I have selected
 wrong type for quotes and now I should replace all quotes :(

 I have tried to use the -character in find-dialog, but this does not
 work. I also have tried to copy-paste the wrong quote but it does not
 work, either.

 Any ideas how to solve this?

Personally, I'd do it in Vim. In order to know the replacement character, 
within LyX type the beginning and ending code, and then look at them in Vim 
and use them for replacements.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Metapost conversion

2008-09-22 Thread econkramer

Dear all,

I did not understand how to use metapost. I have created a .fig file in
Winfig and I have exported as .mmp (to get a dynamic graphic). Now, to
import it in Lyx I have got that I have to convert this .mmp in .0 .1 .2 and
so on files. But, I do not know how to do. I have read there should be
someway to run mpost figure.mmp and to get the figure.0
figure.1...files...but I don't know how to do it. Where should I run it? How
should I run it?

Can someone help me?

many thanks
-- 
View this message in context: 
http://n2.nabble.com/Metapost-conversion-tp1109998p1109998.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx 1.5.4 lof caption length

2008-09-22 Thread Daniel Lohmann


On 22.09.2008, at 16:51, Fil wrote:


Hi,

Please could you advise if you can set the caption length in LOF in  
the TOC?? . I'm using lyx 1.5.4.


I'd prefer to use the float figure caption(box) if possible so  
really I need to know if there is a
command to cut off the text in the figure box so after that point  
the lof does not list it in the
toc (but still under the figure) as I have some long descriptions  
and references listed.


I know \caption [thing to go in tof]{thing to go under figure  
\cite{book}} works, however I prefer
the figure float presentation. Plus I didn't realise this issue  
earlier and if I change I'll have to

edited 60 or so captions now.


Hi Fil,

The following might help you if you put it in the preamble.

It redefines \caption so that everything until the first period (.) is  
taken, without the period,  as short caption.


So:

  \caption{Man on moon. This picture shows Neil Armstrong, the first  
man on the moon.}


effectively becomes:

 \caption[Man on moon]{Man on moon.\\ This picture shows Neil  
Armstrong, the first man on the moon.}


Daniel


%*
%** float captions  
***

% We redefine \caption to support long figure texts. The captions
% are typesetted with indented label in \sffamily\footnotesize. The  
first
% sentence (everything up to the first period) is considered as the  
actual
% caption (typesetted in boldface and used in the toc). The remaining  
part,

% if any, is taken as figure text and typesetted below the caption.
%
% Note that captions now have to end with a period. However, if  
nothing follows

% the period (no figure text) it does not appear in the output.
%
  \let\oldcaption\caption
  \def\takeshort#1.#2\next{\gdef\short{#1}\def\two{#2\relax}%
  \gdef\everything{\if\two\relax {\bfseries #1}\else{\bfseries  
#1.}\\#2\fi}}

  \def\caption#1{\takeshort#1\next\oldcaption[\short]{\everything}}



Re: Metapost conversion

2008-09-22 Thread Ernesto Posse
You have to run this from s console window (Command Prompt on Windows.)

Go to the start menu and look for Command Prompt (usually in
Accessories.) You will see a command prompt like this

C:\Documents\username

or something similar

This is where you can type commands. The C:\Documents\... is the
name of the folder where you are currently. You have to navigate to
the directory where you saved your metapost file. This is done with
the command cd (for change directory.) type something like this in
the prompt:

cd C:\directory where you have your file

Directory (aka folder) names are separated with backslash \

so for example it is

cd C:\Documents\username\MyFiles\MyPaper

If the folder has spaces in the full name, it must be enclosed in quotes.

cd C:\Documents\username\My Files\My Paper

After executing cd, the prompt will show the directory where you moved to.

Once in your target folder, you run metapost on the file. For example, type

mpost figure.mp

this generates a file figure.0 or figure.1 in that same folder.

To use it in LyX, you can simply rename it to figure.mps, and add it
to your lyx document with insert graphics. Use the pdflatex option
to generate the PDF file (rather than the dvipds of ps2pdf options.)
The figure will show an error message in the LyX editing window, but
it should appear OK in the generated PDF.



On Mon, Sep 22, 2008 at 12:09 PM, econkramer [EMAIL PROTECTED] wrote:

 Dear all,

 I did not understand how to use metapost. I have created a .fig file in
 Winfig and I have exported as .mmp (to get a dynamic graphic). Now, to
 import it in Lyx I have got that I have to convert this .mmp in .0 .1 .2 and
 so on files. But, I do not know how to do. I have read there should be
 someway to run mpost figure.mmp and to get the figure.0
 figure.1...files...but I don't know how to do it. Where should I run it? How
 should I run it?

 Can someone help me?

 many thanks
 --
 View this message in context: 
 http://n2.nabble.com/Metapost-conversion-tp1109998p1109998.html
 Sent from the LyX - Users mailing list archive at Nabble.com.





-- 
Ernesto Posse

Applied Formal Methods Group - Software Technology Lab
School of Computing
Queen's University - Kingston, Ontario, Canada


Re: Lyx 1.5.4 lof caption length

2008-09-22 Thread Les Denham
On Monday 22 September 2008, Daniel Lohmann wrote:
 On 22.09.2008, at 16:51, Fil wrote:
  Hi,
 
  Please could you advise if you can set the caption length in LOF in
  the TOC?? . I'm using lyx 1.5.4.
 
snip

 The following might help you if you put it in the preamble.

 It redefines \caption so that everything until the first period (.) is
 taken, without the period,  as short caption.

 So:

\caption{Man on moon. This picture shows Neil Armstrong, the first
 man on the moon.}

 effectively becomes:

   \caption[Man on moon]{Man on moon.\\ This picture shows Neil
 Armstrong, the first man on the moon.}

An alternative is to use the Short Title. Click on the on the caption for the 
Figure, then click on InsertShort Title and enter what you would like to 
have in the LOF.

Of course, this will mean editing each of your 60 or so captions -- but it is 
more flexible than Daniel's solution.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: Finding and replacing quotes

2008-09-22 Thread Pavel Sanda
 Jürgen Spitzmüller wrote:
 2. consider using the LaTeX package csquotes from now on.

 Has LyX built-in support or csquotes (besides ERT)?

http://bugzilla.lyx.org/show_bug.cgi?id=1499
pavel


Re: LyX OS-X AppleScript

2008-09-22 Thread Pavel Sanda
 Daniel Lohmann wrote:
 LyX 1.5.5, Mac OSX 10.5.5
 I found some nice AppleScripts 

 There is no AppleScript support built into LyX, so, unfortunately, there is 
 no chance for this to work.

 Maybe there are LFUNs to move around the application window, and something 
 similar could be done using lyxserver?

iirc there is no such lfun. such kind of job should be done by window managers
and not lyx itself.

pavel


Re: RC2 and graphics

2008-09-22 Thread Pavel Sanda
These are also on the web somewhere, but I can't 
 remember where.

menu help - lyx functions.
pavel


algorithm2e in LyX 1.5.6: algorithm already defined

2008-09-22 Thread A. Scottedward Hodel
I'm importing a student's PhD dissertation into LyX to use the track  
changes function for markup.  Unfortunately, there seems to be a  
conflict between some LyX default behavior and the algorithm2e.sty  
package:


! LaTeX Error: Command \algorithm already defined.
   Or name \end... illegal, see p.192 of the manual.

I used the command line to translate LyX to LaTeX,
lyx --export latex WahbaSummary.lyx
and found the following code in the .tex file:

%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\floatname{algorithm}{Algorithm}

%% User specified LaTeX commands.

If I comment out the \newfloat and \floatname commands, then the error  
goes away.  Is there a way to get rid of them without manually editing  
the .tex file?


A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar





OT. Insert [lyx] into the Subject

2008-09-22 Thread posta
Hi mailing list admin, 

Just a minor request. 
As many other mailing lists, I think it would be handy if your  listserver 
would insert [lyx] into the subject field. 
It would help me a lot in order to filter/sort/order  my incoming mails much 
faster.

why not?

thanks 
mario

_
This email was transferred using an Office free edition
of AXIGEN Mail Server.



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread Pavel Sanda
 Hi mailing list admin, 
 
 Just a minor request. 
 As many other mailing lists, I think it would be handy if your  listserver 
 would insert [lyx] into the subject field. 
 It would help me a lot in order to filter/sort/order  my incoming mails much 
 faster.
 
 why not?

this is already possible by filtering email headers, for example this line:
List-Post: mailto:lyx-users@lists.lyx.org
can be used.

you can also read http://www.lyx.org/MailingLists for this list netiquette,
especially the hijacking threads bullet :)

cheers,
pavel


Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread mario
On Mon, 2008-09-22 at 21:58 +0200, Pavel Sanda wrote:
  Hi mailing list admin,
 
  Just a minor request.
  As many other mailing lists, I think it would be handy if your  listserver 
  would insert [lyx] into the subject field.
  It would help me a lot in order to filter/sort/order  my incoming mails 
  much faster.
 
  why not?
 
 this is already possible by filtering email headers, for example this line:
 List-Post: mailto:lyx-users@lists.lyx.org
 can be used.

yes, I know and use them to archive my mails. But, I use a webmail on my
laptop (only later I download mails from my laptop to a desktop machine
and filter them by headers). When I look at mails on my webmail, in the
inbox folder, it is handy just to order them by subject. If lyx mails
had the [lyx] within the subject field, they would be listed
successively.

thanks for your reply
best
mario



 you can also read http://www.lyx.org/MailingLists for this list netiquette,
 especially the hijacking threads bullet :)
 
 cheers,
 pavel


--
Nota di riservatezza:
Il presente messaggio, corredato dei relativi allegati contiene
informazioni da considerarsi strettamente riservate, ed è destinato
esclusivamente al destinatario sopra indicato, il quale è l'unico
autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità,
diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo
leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo,
divulgarlo, distribuirlo a persone diverse dal destinatario è
severamente proibito, ed è pregato di rinviarlo immediatamente al mittente
distruggendo l'originale.

Confidentiality Notice:
This message, together with its annexes, contains information to be
deemed strictly confidential and is destined only to the addressee(s)
identified above who only may use, copy and, under his/their
responsibility, further disseminate it. If anyone received this message
by mistake or reads it without entitlement is forewarned that keeping,
copying, disseminating or distributing this message to persons other than
the addressee(s) is strictly forbidden and is asked to transmit it
immediately to the sender and to erase the original message received.
--



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread mario
On Mon, 2008-09-22 at 21:58 +0200, Pavel Sanda wrote:
  
 
 you can also read http://www.lyx.org/MailingLists for this list netiquette,
 especially the hijacking threads bullet :)

yes, i see, i knew and forgot,

sorry ;-(
m.


 cheers,
 pavel


--
Nota di riservatezza:
Il presente messaggio, corredato dei relativi allegati contiene
informazioni da considerarsi strettamente riservate, ed è destinato
esclusivamente al destinatario sopra indicato, il quale è l'unico
autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità,
diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo
leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo,
divulgarlo, distribuirlo a persone diverse dal destinatario è
severamente proibito, ed è pregato di rinviarlo immediatamente al mittente
distruggendo l'originale.

Confidentiality Notice:
This message, together with its annexes, contains information to be
deemed strictly confidential and is destined only to the addressee(s)
identified above who only may use, copy and, under his/their
responsibility, further disseminate it. If anyone received this message
by mistake or reads it without entitlement is forewarned that keeping,
copying, disseminating or distributing this message to persons other than
the addressee(s) is strictly forbidden and is asked to transmit it
immediately to the sender and to erase the original message received.
--



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 03:58:54 pm Pavel Sanda wrote:
  Hi mailing list admin,
 
  Just a minor request.
  As many other mailing lists, I think it would be handy if your 
  listserver would insert [lyx] into the subject field. It would help me a
  lot in order to filter/sort/order  my incoming mails much faster.
 
  why not?

 this is already possible by filtering email headers, for example this line:
 List-Post: mailto:lyx-users@lists.lyx.org
 can be used.

Yeah, but the fact is, if it contained [lyx-users] in the subject, it would be 
more like other mailing lists, and it would be easier to filter by almost any 
email client, without having tocc.


 you can also read http://www.lyx.org/MailingLists for this list netiquette,
 especially the hijacking threads bullet :)

Yeah, he should have composed a brand new message, but that doesn't impact his 
suggestion, which in my opinion is a good one if it's reasonably easy to do.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



New LyX user, problem with uncodable characters

2008-09-22 Thread Nikos Alexandris
Dear LyX users/developers,

I am a new and excited LyX user. I am seeking for some support. I am
writing a big document (in English with a few Greek words) using the
book KOMA-script. I have lots of single bash command lines and several
bash shell scripts. I use LyX 1.6.0svn under Ubuntu 8.04 (aka Hardy
Heron) 64-bit.

1. What is the best way to go about it: use both the LyX-code
environment and Program Listing or just one of them?

2. While trying to export the document to pdf I get twice the LyX:
Uncodable characters in listings inset \ The following characters in one
of the program listings are not representable in the current encoding
and have been omitted: -. #It's kind of a long dash!

After pressing OK the pdf is produced and viewed properly. Since I
have lots of Program Listing insets it's hard to tell where or what this
character is (?).

3. I've been reading about chktex. Although I got it installed from the
ubuntu repositories it does not appear under the Tool menu. I assume I
need to add it while compiling the source code (?)

4. How do I create a custom summary environment (e.g. chapter summary)
an add it in the book document class?

Thank you in advance for your attention,
Nikos

http://softwarefreedomday.org/SoftwareFreedom
http://www.storyofstuff.com/




RC2 and graphics, follow up

2008-09-22 Thread Hellmut Weber

Hi,
finally I could finish my document ;-)

Fortunately I have still a LyX 1.5.0 on my machine, so I exported what I 
had to that format and could continue much quicker usng 1.5.0.
(I observed my watch a few times RC2 needed around 25-30 seconds from 
the moment I clicked the OK button of the inset-image-dialog, 1.5.0 
needs certainly less than 5 seconds. No representative sample ;-)


Viewing with kpdf is quite slow too, somebody sugested that may be a 
problem of graphic format conversion.
Which format does lyx use? I could easily convert all my pictures to 
that format using convert. Then no additional time would be needed.



Two slightly OT Questions?

*** In my document which contains around 60 pictures (and some 
(sub)section headers I normally insert the pictures just into the text, 
putting sometimes an \hfill between two pictures.

In a majority of cases that works quite well.
In some cases two pictures which should be on a line are put on 
different lines and the need a whole page, i.e. the first picture is at 
the beginning of the upper half of a page, the second one in the lower 
half of the page, right justified.


I could overcome this problem putting the picturers in one big minipage, 
then the two pictures which should stay beside each other in two single 
minipages which again are put in a minipage for the line.
For this to work I had additionally to set the vertival orientation of 
the smallest minipages to 'lower'.


Has anybody an idea what's going on on the LaTeX level here? (Just for 
my curiosity ;-)


*** My locale is set to [EMAIL PROTECTED]
when starting lyx from the command line I have tried to use commands like
   'LC_ALL=en_GB lyx ...' or
   'LANG=en_GB lyx ...
to get the english version. Because when working with the german version 
I have to re-translate the names of menu entries etc. for the 
communication here in the list.



Thanks to all of you

Hellmut
--
Dr. Hellmut Weber [EMAIL PROTECTED]
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: New LyX user, problem with uncodable characters

2008-09-22 Thread rgheck

Nikos Alexandris wrote:

2. While trying to export the document to pdf I get twice the LyX:
Uncodable characters in listings inset \ The following characters in one
of the program listings are not representable in the current encoding
and have been omitted: -. #It's kind of a long dash!

After pressing OK the pdf is produced and viewed properly. Since I
have lots of Program Listing insets it's hard to tell where or what this
character is (?).

  
If you copied and pasted, you've probably got a character in the wrong 
encoding, possibly some sort of dash. The way to figure this out is to 
delete the second half, see if you still get the problem; if so, delete 
half of that; etc. That way you can narrow it down.



3. I've been reading about chktex. Although I got it installed from the
ubuntu repositories it does not appear under the Tool menu. I assume I
need to add it while compiling the source code (?)

  
Try ToolsReconfigure. You need to do this whenever you make changes to 
LaTeX, your various tools, etc.



4. How do I create a custom summary environment (e.g. chapter summary)
an add it in the book document class?

  
The easiest thing to do is to create a Summary module that you could 
then use with different classes. See the part of the Customization 
manual on layout modules: section 5.2.1 and the surrounding material. If 
you know how to do it in LaTeX, it's pretty simple to do it in LyX. See 
hanging.module for an example.


Richard



Re: New LyX user, problem with uncodable characters

2008-09-22 Thread Nikos Alexandris
On Mon, 2008-09-22 at 19:28 -0400, rgheck wrote:

Richard,
thank you for your reply.

 Nikos Alexandris wrote:
  2. While trying to export the document to pdf I get twice the LyX:
  Uncodable characters in listings inset \ The following characters in one
  of the program listings are not representable in the current encoding
  and have been omitted: -. #It's kind of a long dash!
 
  After pressing OK the pdf is produced and viewed properly. Since I
  have lots of Program Listing insets it's hard to tell where or what this
  character is (?).
 

 If you copied and pasted, you've probably got a character in the wrong 
 encoding, possibly some sort of dash. The way to figure this out is to 
 delete the second half, see if you still get the problem; if so, delete 
 half of that; etc. That way you can narrow it down.

Yes, I copy-pasted the text (saved as text from .odt). I'll give a it a
try. Yet, I was expecting some chktex magic :-)


  3. I've been reading about chktex. Although I got it installed from the
  ubuntu repositories it does not appear under the Tool menu. I assume I
  need to add it while compiling the source code (?)
 

 Try ToolsReconfigure. You need to do this whenever you make changes to 
 LaTeX, your various tools, etc.

Yes!! It worked :-) Now I executed ChkTeX and I got a huge list of
ChkTeX warnings. As I read in the documentation they can be ignored...
(hopefully!). Or is my problem somewhere within those?

 
  4. How do I create a custom summary environment (e.g. chapter summary)
  an add it in the book document class?
 

 The easiest thing to do is to create a Summary module that you could 
 then use with different classes. See the part of the Customization 
 manual on layout modules: section 5.2.1 and the surrounding material. If 
 you know how to do it in LaTeX, it's pretty simple to do it in LyX. See 
 hanging.module for an example.
 
 Richard

Best regards,
Nikos



Re: I killed Latex, ¡help me, please!

2008-09-22 Thread Marcelo Acuña
Whit splash.lyx I get same errors.
Now, I re install texlive and all work ok!
Thanks!

   I update several packages that in texlive provided
 for opensuse 11.0
   are very old. When I finished and run texhash lyx
 (and kile) no run
   anymore.
 
 Did you try with a simple example?
 
   I get:
   Undefinid control sequence
   Missing \begin{document}
   Undefinid control sequence
   Missing \begin{document}
 
 What does the LaTeX log say?
 
   How I can restore latex work without reverse to
 obsolete version of
   texlive provided for opensuse?
 
 This very much depends on what is really wrong?
 
 Could you append the example file and the LaTeX log so we
 can check?
 
 Günter


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


Re: I killed Latex, ¡help me, please!

2008-09-22 Thread Marcelo Acuña
  Hello,
   I update several packages that in texlive provided
 for opensuse 11.0 are very old.
 

 This is why it can be dangerous to upgrade packages. In
 future, do them 
 one at a time. And the safest way to do this is not to
 overwrite the 
 older packages but to install the new ones in your local
 tree. Look at 
 the file texmf.cnf to see exactly where this is, but in my
 system the 
 main TeX directory is at /usr/share/texmf/; the
 local TeX directory is 
 at /usr/local/share/texmf/; and my personal directory is at
 ~/texmf/. So 
 check this out:
  [EMAIL PROTECTED] ~]$ ls ~/texmf/tex/latex/misc/
  2in1.sty  braket.sty  godelnum.sty  outlines 
 qwertz.sty
  [EMAIL PROTECTED] ~]$ ls
 /usr/share/texmf/tex/latex/misc/
  dvipost.sty  linuxdoc-sgml.stynull.sty
  envlab   linuxdoctr-sgml.sty  qwertz.sty
  [EMAIL PROTECTED] ~]$ kpsewhich qwertz.sty
  /home/rgheck/texmf/tex/latex/misc/qwertz.sty
 Note how TeX automatically uses the package in my USER
 directory. It'd 
 use the local one before the system one, as well.

 This no work for me.

 And now
 if you have a 
 problem, you can just delete (or temporarily move) the
 newer packages.
 
   When I finished and run texhash lyx (and kile) no run
 anymore.
   I get:
   Undefinid control sequence
   Missing \begin{document}
   Undefinid control sequence
   Missing \begin{document}
 
   How I can restore latex work without reverse to
 obsolete version of texlive provided for opensuse?
 

 Obviously, you have to restore whatever packages you
 changed. I'd guess 
 the simplest thing is just to reinstall texlive---the
 obsolete 
 version. But it's not really obsolete. Just some of the
 packages are old.

 koma-script in texlive from opensuse 11.0 is from March, 2006.

 Then you can try---if you dare---installing the newer
 packages.
 
 Richard

 Thanks Richard, I reinstalled texlive.
 I traced one problem in hyperref package.
 When I update this I get error: hycolor.sty not found.
 Other problems are added with others updates.
 Now, I am install newer packages one at a time.
 
 Marcelo
 


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


RE: Lyx 1.5.4 lof caption length

2008-09-22 Thread Fil
Hi Daniel,

Thanks for your quick reply. Your suggestion is what I was hoping for and i 
added it to the
preamble, but I get a lot of errors which I otherwise didn't have.

My setup is I have a main file the calls up all my other chapters. I'm assuming 
that the
modifications only need to be done for the main call up file, I did try to 
include it in the other
files just in case but it didn't have any effect.

The errors I get are listed below and checking the latex log it looks like a 
lot of undefined
references are missing }, I have references listed in the figure captions to so 
maybe its not
recognising this properly?

About 40 errors, mostly -paragraph ended before \takeshort was complete
Latex log say suspect forgotten } ...which may be related to the references in 
caption as a lot of
these are listed.

Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] 
you've lost some text

And -latex error:\begin{figure} on imput line 485 ended by \end{document}

If it looks like its going to be a lot more complicated then I may just do the 
longer method
previously mention in my first email.

Cheers,
Fil.



Re: New LyX user, problem with uncodable characters

2008-09-22 Thread Jean-Marc Lasgouttes

Yes!! It worked :-) Now I executed ChkTeX and I got a huge list of
ChkTeX warnings. As I read in the documentation they can be ignored...
(hopefully!). Or is my problem somewhere within those?


What kind of warnings do you get? I am somehow maintainer of chktex  
these days, and

I am interested in feedback about what could be improved.

JMarc


Finding and replacing quotes

2008-09-22 Thread K. Elo
Hi,

how could I find (and replace) quotation marks in LyX? I have selected
wrong type for quotes and now I should replace all quotes :(

I have tried to use the -character in find-dialog, but this does not
work. I also have tried to copy-paste the wrong quote but it does not
work, either.

Any ideas how to solve this?

Thanks in advance,
Kimmo


Re: I killed Latex, ¡hel p me, please!

2008-09-22 Thread G. Milde
On 20.09.08, Marcelo Acuña wrote:

  I update several packages that in texlive provided for opensuse 11.0
  are very old. When I finished and run texhash lyx (and kile) no run
  anymore.

Did you try with a simple example?

  I get:
  Undefinid control sequence
  Missing \begin{document}
  Undefinid control sequence
  Missing \begin{document}

What does the LaTeX log say?

  How I can restore latex work without reverse to obsolete version of
  texlive provided for opensuse?

This very much depends on what is really wrong?

Could you append the example file and the LaTeX log so we can check?

Günter


Re: custom layouts - inserting a mandatory parameter

2008-09-22 Thread Jürgen Spitzmüller
Micha wrote:
 I'm trying to see if I can write a layout file for the currvita latex
 class. The main environment is a list environment that should come out
 something like

 \begin{cvlist}{title}
 \item[one] text
 \item[two] text
 \end{cvlist}

 I can get the {title} part by adding
 LatexParam  {title}
 but that doesn't allow me to change this. Is there a way to insert that
 mandatory argument, layout file style option, tex code or otherwise?

Alas, LyX does not yet support multiple mandatory arguments natively. You can 
try one of the following hacks (all untested):

1. use
LatexType List_Environment
LabelString   title
then you can insert the title via the Longest label widget of the paragraph 
dialog (see the List environment for an example)

2. Redefine the environment to use an optional arg, use lyxcvlist instead of 
cvlist and enter the title via insert-optional argument:
LaTeXName   lyxcvlist
OptionalArgs1
Preamble
\newenvironment\lyxcvlist[1][]{\begin{cvlist}{#1}}{\end{cvlist}
EndPreamble

Jürgen


Re: Finding and replacing quotes

2008-09-22 Thread Jürgen Spitzmüller
K. Elo wrote:
 how could I find (and replace) quotation marks in LyX? I have selected
 wrong type for quotes and now I should replace all quotes :(

1. Open a copy of the LyX file in an editor and replace all (for instance)

\begin_inset Quotes gld
by
\begin_inset Quotes ald

2. consider using the LaTeX package csquotes from now on.

Jürgen


Re: Finding and replacing quotes

2008-09-22 Thread K. Elo
Hi,

thanks for Your quick reply, Jürgen.

Jürgen Spitzmüller wrote:
 
 1. Open a copy of the LyX file in an editor and replace all (for instance)
 
 \begin_inset Quotes gld
 by
 \begin_inset Quotes ald

This means, I cannot find and replace wrongly typed quotes in LyX :-\

 2. consider using the LaTeX package csquotes from now on.

I will :)


-Kimmo


Re: Finding and replacing quotes

2008-09-22 Thread Konrad Hofbauer

Jürgen Spitzmüller wrote:

2. consider using the LaTeX package csquotes from now on.


Has LyX built-in support or csquotes (besides ERT)?

/Konrad



Re: Finding and replacing quotes

2008-09-22 Thread Jürgen Spitzmüller
Konrad Hofbauer wrote:
 Has LyX built-in support or csquotes (besides ERT)?

No. But you don't need ERT. I use:

\usepackage[babel, german=swiss]{csquotes}
\MakeAutoQuote{»}{«}
\MakeInnerQuote{¶}

in preamble and then just write »double quoted« and ¶single quoted¶ 
and »nested »quoted«« text in LyX (where »« is not the LyX quotation mark, 
but the unicode glyph, AltGr-x and AltGr-y here on Linux).

Jürgen


Re: custom layouts - inserting a mandatory parameter

2008-09-22 Thread G Milde
Micha [EMAIL PROTECTED] schrieb:
 I'm trying to see if I can write a layout file for the currvita latex class.
 The main environment is a list environment that should come out something like

 \begin{cvlist}{title}
 \item[one] text
 \item[two] text
 \end{cvlist}

 I can get the {title} part by adding
 LatexParam{title}
 but that doesn't allow me to change this. Is there a way to insert that
 mandatory argument, layout file style option, tex code or otherwise?

There are two ways: as optional parameter (short title) or as a separate
Style. My dinbrief.layout uses the latter:

  # dinbrief's \phone has 2 args, area and number. We define an empty
  # command that can be set by the Area_Code style
  Preamble
\newcommand{\areacode}{}
  EndPreamble
  
  # dinbrief's \phone has 2 args, area and number,
  # define both as distinct styles
  
  Style Area_Code
CopyStyle   DinBrief
LabelString Vorwahl:
LatexName   renewcommand{\areacode}
  End
  
  
  Style Telephone
CopyStyle   DinBrief
LabelString Telefon:
LatexName   phone
LatexParam  {\areacode}
  End
  
For the short-title way, you would need to define an auxiliary latex
command with optional argument, enable the optional arg with the keyword

OptionalArgs  1

and set it with (the misnamed) InsertShort-Title. 

Günter





theorem numbering in amsbook

2008-09-22 Thread end

Using LyX 1.5.6 for Windows. OS: Vista

I am using amsbook class, and cannot achieve the swapped theorem numbering
(say, 1.2 Lemma instead of Lemma 1.2). The amsbook is supposed to include
amsthm.sty, and the style documentation says one should enter \swapnumbers
command. But entering this in the preamble does not change anything. Please
help.

-- 
View this message in context: 
http://n2.nabble.com/theorem-numbering-in-amsbook-tp1109584p1109584.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Lyx 1.5.4 lof caption length

2008-09-22 Thread Fil
Hi,

Please could you advise if you can set the caption length in LOF in the TOC?? . 
I'm using lyx 1.5.4.

I'd prefer to use the float figure caption(box) if possible so really I need to 
know if there is a
command to cut off the text in the figure box so after that point the lof does 
not list it in the
toc (but still under the figure) as I have some long descriptions and 
references listed.

I know \caption [thing to go in tof]{thing to go under figure \cite{book}} 
works, however I prefer
the figure float presentation. Plus I didn't realise this issue earlier and if 
I change I'll have to
edited 60 or so captions now.

Many thanks,

Fil.


Re: Finding and replacing quotes

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 02:17:03 am K. Elo wrote:
 Hi,

 how could I find (and replace) quotation marks in LyX? I have selected
 wrong type for quotes and now I should replace all quotes :(

 I have tried to use the -character in find-dialog, but this does not
 work. I also have tried to copy-paste the wrong quote but it does not
 work, either.

 Any ideas how to solve this?

Personally, I'd do it in Vim. In order to know the replacement character, 
within LyX type the beginning and ending code, and then look at them in Vim 
and use them for replacements.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Metapost conversion

2008-09-22 Thread econkramer

Dear all,

I did not understand how to use metapost. I have created a .fig file in
Winfig and I have exported as .mmp (to get a dynamic graphic). Now, to
import it in Lyx I have got that I have to convert this .mmp in .0 .1 .2 and
so on files. But, I do not know how to do. I have read there should be
someway to run mpost figure.mmp and to get the figure.0
figure.1...files...but I don't know how to do it. Where should I run it? How
should I run it?

Can someone help me?

many thanks
-- 
View this message in context: 
http://n2.nabble.com/Metapost-conversion-tp1109998p1109998.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx 1.5.4 lof caption length

2008-09-22 Thread Daniel Lohmann


On 22.09.2008, at 16:51, Fil wrote:


Hi,

Please could you advise if you can set the caption length in LOF in  
the TOC?? . I'm using lyx 1.5.4.


I'd prefer to use the float figure caption(box) if possible so  
really I need to know if there is a
command to cut off the text in the figure box so after that point  
the lof does not list it in the
toc (but still under the figure) as I have some long descriptions  
and references listed.


I know \caption [thing to go in tof]{thing to go under figure  
\cite{book}} works, however I prefer
the figure float presentation. Plus I didn't realise this issue  
earlier and if I change I'll have to

edited 60 or so captions now.


Hi Fil,

The following might help you if you put it in the preamble.

It redefines \caption so that everything until the first period (.) is  
taken, without the period,  as short caption.


So:

  \caption{Man on moon. This picture shows Neil Armstrong, the first  
man on the moon.}


effectively becomes:

 \caption[Man on moon]{Man on moon.\\ This picture shows Neil  
Armstrong, the first man on the moon.}


Daniel


%*
%** float captions  
***

% We redefine \caption to support long figure texts. The captions
% are typesetted with indented label in \sffamily\footnotesize. The  
first
% sentence (everything up to the first period) is considered as the  
actual
% caption (typesetted in boldface and used in the toc). The remaining  
part,

% if any, is taken as figure text and typesetted below the caption.
%
% Note that captions now have to end with a period. However, if  
nothing follows

% the period (no figure text) it does not appear in the output.
%
  \let\oldcaption\caption
  \def\takeshort#1.#2\next{\gdef\short{#1}\def\two{#2\relax}%
  \gdef\everything{\if\two\relax {\bfseries #1}\else{\bfseries  
#1.}\\#2\fi}}

  \def\caption#1{\takeshort#1\next\oldcaption[\short]{\everything}}



Re: Metapost conversion

2008-09-22 Thread Ernesto Posse
You have to run this from s console window (Command Prompt on Windows.)

Go to the start menu and look for Command Prompt (usually in
Accessories.) You will see a command prompt like this

C:\Documents\username

or something similar

This is where you can type commands. The C:\Documents\... is the
name of the folder where you are currently. You have to navigate to
the directory where you saved your metapost file. This is done with
the command cd (for change directory.) type something like this in
the prompt:

cd C:\directory where you have your file

Directory (aka folder) names are separated with backslash \

so for example it is

cd C:\Documents\username\MyFiles\MyPaper

If the folder has spaces in the full name, it must be enclosed in quotes.

cd C:\Documents\username\My Files\My Paper

After executing cd, the prompt will show the directory where you moved to.

Once in your target folder, you run metapost on the file. For example, type

mpost figure.mp

this generates a file figure.0 or figure.1 in that same folder.

To use it in LyX, you can simply rename it to figure.mps, and add it
to your lyx document with insert graphics. Use the pdflatex option
to generate the PDF file (rather than the dvipds of ps2pdf options.)
The figure will show an error message in the LyX editing window, but
it should appear OK in the generated PDF.



On Mon, Sep 22, 2008 at 12:09 PM, econkramer [EMAIL PROTECTED] wrote:

 Dear all,

 I did not understand how to use metapost. I have created a .fig file in
 Winfig and I have exported as .mmp (to get a dynamic graphic). Now, to
 import it in Lyx I have got that I have to convert this .mmp in .0 .1 .2 and
 so on files. But, I do not know how to do. I have read there should be
 someway to run mpost figure.mmp and to get the figure.0
 figure.1...files...but I don't know how to do it. Where should I run it? How
 should I run it?

 Can someone help me?

 many thanks
 --
 View this message in context: 
 http://n2.nabble.com/Metapost-conversion-tp1109998p1109998.html
 Sent from the LyX - Users mailing list archive at Nabble.com.





-- 
Ernesto Posse

Applied Formal Methods Group - Software Technology Lab
School of Computing
Queen's University - Kingston, Ontario, Canada


Re: Lyx 1.5.4 lof caption length

2008-09-22 Thread Les Denham
On Monday 22 September 2008, Daniel Lohmann wrote:
 On 22.09.2008, at 16:51, Fil wrote:
  Hi,
 
  Please could you advise if you can set the caption length in LOF in
  the TOC?? . I'm using lyx 1.5.4.
 
snip

 The following might help you if you put it in the preamble.

 It redefines \caption so that everything until the first period (.) is
 taken, without the period,  as short caption.

 So:

\caption{Man on moon. This picture shows Neil Armstrong, the first
 man on the moon.}

 effectively becomes:

   \caption[Man on moon]{Man on moon.\\ This picture shows Neil
 Armstrong, the first man on the moon.}

An alternative is to use the Short Title. Click on the on the caption for the 
Figure, then click on InsertShort Title and enter what you would like to 
have in the LOF.

Of course, this will mean editing each of your 60 or so captions -- but it is 
more flexible than Daniel's solution.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: Finding and replacing quotes

2008-09-22 Thread Pavel Sanda
 Jürgen Spitzmüller wrote:
 2. consider using the LaTeX package csquotes from now on.

 Has LyX built-in support or csquotes (besides ERT)?

http://bugzilla.lyx.org/show_bug.cgi?id=1499
pavel


Re: LyX OS-X AppleScript

2008-09-22 Thread Pavel Sanda
 Daniel Lohmann wrote:
 LyX 1.5.5, Mac OSX 10.5.5
 I found some nice AppleScripts 

 There is no AppleScript support built into LyX, so, unfortunately, there is 
 no chance for this to work.

 Maybe there are LFUNs to move around the application window, and something 
 similar could be done using lyxserver?

iirc there is no such lfun. such kind of job should be done by window managers
and not lyx itself.

pavel


Re: RC2 and graphics

2008-09-22 Thread Pavel Sanda
These are also on the web somewhere, but I can't 
 remember where.

menu help - lyx functions.
pavel


algorithm2e in LyX 1.5.6: algorithm already defined

2008-09-22 Thread A. Scottedward Hodel
I'm importing a student's PhD dissertation into LyX to use the track  
changes function for markup.  Unfortunately, there seems to be a  
conflict between some LyX default behavior and the algorithm2e.sty  
package:


! LaTeX Error: Command \algorithm already defined.
   Or name \end... illegal, see p.192 of the manual.

I used the command line to translate LyX to LaTeX,
lyx --export latex WahbaSummary.lyx
and found the following code in the .tex file:

%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\floatname{algorithm}{Algorithm}

%% User specified LaTeX commands.

If I comment out the \newfloat and \floatname commands, then the error  
goes away.  Is there a way to get rid of them without manually editing  
the .tex file?


A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar





OT. Insert [lyx] into the Subject

2008-09-22 Thread posta
Hi mailing list admin, 

Just a minor request. 
As many other mailing lists, I think it would be handy if your  listserver 
would insert [lyx] into the subject field. 
It would help me a lot in order to filter/sort/order  my incoming mails much 
faster.

why not?

thanks 
mario

_
This email was transferred using an Office free edition
of AXIGEN Mail Server.



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread Pavel Sanda
 Hi mailing list admin, 
 
 Just a minor request. 
 As many other mailing lists, I think it would be handy if your  listserver 
 would insert [lyx] into the subject field. 
 It would help me a lot in order to filter/sort/order  my incoming mails much 
 faster.
 
 why not?

this is already possible by filtering email headers, for example this line:
List-Post: mailto:lyx-users@lists.lyx.org
can be used.

you can also read http://www.lyx.org/MailingLists for this list netiquette,
especially the hijacking threads bullet :)

cheers,
pavel


Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread mario
On Mon, 2008-09-22 at 21:58 +0200, Pavel Sanda wrote:
  Hi mailing list admin,
 
  Just a minor request.
  As many other mailing lists, I think it would be handy if your  listserver 
  would insert [lyx] into the subject field.
  It would help me a lot in order to filter/sort/order  my incoming mails 
  much faster.
 
  why not?
 
 this is already possible by filtering email headers, for example this line:
 List-Post: mailto:lyx-users@lists.lyx.org
 can be used.

yes, I know and use them to archive my mails. But, I use a webmail on my
laptop (only later I download mails from my laptop to a desktop machine
and filter them by headers). When I look at mails on my webmail, in the
inbox folder, it is handy just to order them by subject. If lyx mails
had the [lyx] within the subject field, they would be listed
successively.

thanks for your reply
best
mario



 you can also read http://www.lyx.org/MailingLists for this list netiquette,
 especially the hijacking threads bullet :)
 
 cheers,
 pavel


--
Nota di riservatezza:
Il presente messaggio, corredato dei relativi allegati contiene
informazioni da considerarsi strettamente riservate, ed è destinato
esclusivamente al destinatario sopra indicato, il quale è l'unico
autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità,
diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo
leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo,
divulgarlo, distribuirlo a persone diverse dal destinatario è
severamente proibito, ed è pregato di rinviarlo immediatamente al mittente
distruggendo l'originale.

Confidentiality Notice:
This message, together with its annexes, contains information to be
deemed strictly confidential and is destined only to the addressee(s)
identified above who only may use, copy and, under his/their
responsibility, further disseminate it. If anyone received this message
by mistake or reads it without entitlement is forewarned that keeping,
copying, disseminating or distributing this message to persons other than
the addressee(s) is strictly forbidden and is asked to transmit it
immediately to the sender and to erase the original message received.
--



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread mario
On Mon, 2008-09-22 at 21:58 +0200, Pavel Sanda wrote:
  
 
 you can also read http://www.lyx.org/MailingLists for this list netiquette,
 especially the hijacking threads bullet :)

yes, i see, i knew and forgot,

sorry ;-(
m.


 cheers,
 pavel


--
Nota di riservatezza:
Il presente messaggio, corredato dei relativi allegati contiene
informazioni da considerarsi strettamente riservate, ed è destinato
esclusivamente al destinatario sopra indicato, il quale è l'unico
autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità,
diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo
leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo,
divulgarlo, distribuirlo a persone diverse dal destinatario è
severamente proibito, ed è pregato di rinviarlo immediatamente al mittente
distruggendo l'originale.

Confidentiality Notice:
This message, together with its annexes, contains information to be
deemed strictly confidential and is destined only to the addressee(s)
identified above who only may use, copy and, under his/their
responsibility, further disseminate it. If anyone received this message
by mistake or reads it without entitlement is forewarned that keeping,
copying, disseminating or distributing this message to persons other than
the addressee(s) is strictly forbidden and is asked to transmit it
immediately to the sender and to erase the original message received.
--



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 03:58:54 pm Pavel Sanda wrote:
  Hi mailing list admin,
 
  Just a minor request.
  As many other mailing lists, I think it would be handy if your 
  listserver would insert [lyx] into the subject field. It would help me a
  lot in order to filter/sort/order  my incoming mails much faster.
 
  why not?

 this is already possible by filtering email headers, for example this line:
 List-Post: mailto:lyx-users@lists.lyx.org
 can be used.

Yeah, but the fact is, if it contained [lyx-users] in the subject, it would be 
more like other mailing lists, and it would be easier to filter by almost any 
email client, without having tocc.


 you can also read http://www.lyx.org/MailingLists for this list netiquette,
 especially the hijacking threads bullet :)

Yeah, he should have composed a brand new message, but that doesn't impact his 
suggestion, which in my opinion is a good one if it's reasonably easy to do.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



New LyX user, problem with uncodable characters

2008-09-22 Thread Nikos Alexandris
Dear LyX users/developers,

I am a new and excited LyX user. I am seeking for some support. I am
writing a big document (in English with a few Greek words) using the
book KOMA-script. I have lots of single bash command lines and several
bash shell scripts. I use LyX 1.6.0svn under Ubuntu 8.04 (aka Hardy
Heron) 64-bit.

1. What is the best way to go about it: use both the LyX-code
environment and Program Listing or just one of them?

2. While trying to export the document to pdf I get twice the LyX:
Uncodable characters in listings inset \ The following characters in one
of the program listings are not representable in the current encoding
and have been omitted: -. #It's kind of a long dash!

After pressing OK the pdf is produced and viewed properly. Since I
have lots of Program Listing insets it's hard to tell where or what this
character is (?).

3. I've been reading about chktex. Although I got it installed from the
ubuntu repositories it does not appear under the Tool menu. I assume I
need to add it while compiling the source code (?)

4. How do I create a custom summary environment (e.g. chapter summary)
an add it in the book document class?

Thank you in advance for your attention,
Nikos

http://softwarefreedomday.org/SoftwareFreedom
http://www.storyofstuff.com/




RC2 and graphics, follow up

2008-09-22 Thread Hellmut Weber

Hi,
finally I could finish my document ;-)

Fortunately I have still a LyX 1.5.0 on my machine, so I exported what I 
had to that format and could continue much quicker usng 1.5.0.
(I observed my watch a few times RC2 needed around 25-30 seconds from 
the moment I clicked the OK button of the inset-image-dialog, 1.5.0 
needs certainly less than 5 seconds. No representative sample ;-)


Viewing with kpdf is quite slow too, somebody sugested that may be a 
problem of graphic format conversion.
Which format does lyx use? I could easily convert all my pictures to 
that format using convert. Then no additional time would be needed.



Two slightly OT Questions?

*** In my document which contains around 60 pictures (and some 
(sub)section headers I normally insert the pictures just into the text, 
putting sometimes an \hfill between two pictures.

In a majority of cases that works quite well.
In some cases two pictures which should be on a line are put on 
different lines and the need a whole page, i.e. the first picture is at 
the beginning of the upper half of a page, the second one in the lower 
half of the page, right justified.


I could overcome this problem putting the picturers in one big minipage, 
then the two pictures which should stay beside each other in two single 
minipages which again are put in a minipage for the line.
For this to work I had additionally to set the vertival orientation of 
the smallest minipages to 'lower'.


Has anybody an idea what's going on on the LaTeX level here? (Just for 
my curiosity ;-)


*** My locale is set to [EMAIL PROTECTED]
when starting lyx from the command line I have tried to use commands like
   'LC_ALL=en_GB lyx ...' or
   'LANG=en_GB lyx ...
to get the english version. Because when working with the german version 
I have to re-translate the names of menu entries etc. for the 
communication here in the list.



Thanks to all of you

Hellmut
--
Dr. Hellmut Weber [EMAIL PROTECTED]
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: New LyX user, problem with uncodable characters

2008-09-22 Thread rgheck

Nikos Alexandris wrote:

2. While trying to export the document to pdf I get twice the LyX:
Uncodable characters in listings inset \ The following characters in one
of the program listings are not representable in the current encoding
and have been omitted: -. #It's kind of a long dash!

After pressing OK the pdf is produced and viewed properly. Since I
have lots of Program Listing insets it's hard to tell where or what this
character is (?).

  
If you copied and pasted, you've probably got a character in the wrong 
encoding, possibly some sort of dash. The way to figure this out is to 
delete the second half, see if you still get the problem; if so, delete 
half of that; etc. That way you can narrow it down.



3. I've been reading about chktex. Although I got it installed from the
ubuntu repositories it does not appear under the Tool menu. I assume I
need to add it while compiling the source code (?)

  
Try ToolsReconfigure. You need to do this whenever you make changes to 
LaTeX, your various tools, etc.



4. How do I create a custom summary environment (e.g. chapter summary)
an add it in the book document class?

  
The easiest thing to do is to create a Summary module that you could 
then use with different classes. See the part of the Customization 
manual on layout modules: section 5.2.1 and the surrounding material. If 
you know how to do it in LaTeX, it's pretty simple to do it in LyX. See 
hanging.module for an example.


Richard



Re: New LyX user, problem with uncodable characters

2008-09-22 Thread Nikos Alexandris
On Mon, 2008-09-22 at 19:28 -0400, rgheck wrote:

Richard,
thank you for your reply.

 Nikos Alexandris wrote:
  2. While trying to export the document to pdf I get twice the LyX:
  Uncodable characters in listings inset \ The following characters in one
  of the program listings are not representable in the current encoding
  and have been omitted: -. #It's kind of a long dash!
 
  After pressing OK the pdf is produced and viewed properly. Since I
  have lots of Program Listing insets it's hard to tell where or what this
  character is (?).
 

 If you copied and pasted, you've probably got a character in the wrong 
 encoding, possibly some sort of dash. The way to figure this out is to 
 delete the second half, see if you still get the problem; if so, delete 
 half of that; etc. That way you can narrow it down.

Yes, I copy-pasted the text (saved as text from .odt). I'll give a it a
try. Yet, I was expecting some chktex magic :-)


  3. I've been reading about chktex. Although I got it installed from the
  ubuntu repositories it does not appear under the Tool menu. I assume I
  need to add it while compiling the source code (?)
 

 Try ToolsReconfigure. You need to do this whenever you make changes to 
 LaTeX, your various tools, etc.

Yes!! It worked :-) Now I executed ChkTeX and I got a huge list of
ChkTeX warnings. As I read in the documentation they can be ignored...
(hopefully!). Or is my problem somewhere within those?

 
  4. How do I create a custom summary environment (e.g. chapter summary)
  an add it in the book document class?
 

 The easiest thing to do is to create a Summary module that you could 
 then use with different classes. See the part of the Customization 
 manual on layout modules: section 5.2.1 and the surrounding material. If 
 you know how to do it in LaTeX, it's pretty simple to do it in LyX. See 
 hanging.module for an example.
 
 Richard

Best regards,
Nikos



Re: I killed Latex, ¡help me, please!

2008-09-22 Thread Marcelo Acuña
Whit splash.lyx I get same errors.
Now, I re install texlive and all work ok!
Thanks!

   I update several packages that in texlive provided
 for opensuse 11.0
   are very old. When I finished and run texhash lyx
 (and kile) no run
   anymore.
 
 Did you try with a simple example?
 
   I get:
   Undefinid control sequence
   Missing \begin{document}
   Undefinid control sequence
   Missing \begin{document}
 
 What does the LaTeX log say?
 
   How I can restore latex work without reverse to
 obsolete version of
   texlive provided for opensuse?
 
 This very much depends on what is really wrong?
 
 Could you append the example file and the LaTeX log so we
 can check?
 
 Günter


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


Re: I killed Latex, ¡help me, please!

2008-09-22 Thread Marcelo Acuña
  Hello,
   I update several packages that in texlive provided
 for opensuse 11.0 are very old.
 

 This is why it can be dangerous to upgrade packages. In
 future, do them 
 one at a time. And the safest way to do this is not to
 overwrite the 
 older packages but to install the new ones in your local
 tree. Look at 
 the file texmf.cnf to see exactly where this is, but in my
 system the 
 main TeX directory is at /usr/share/texmf/; the
 local TeX directory is 
 at /usr/local/share/texmf/; and my personal directory is at
 ~/texmf/. So 
 check this out:
  [EMAIL PROTECTED] ~]$ ls ~/texmf/tex/latex/misc/
  2in1.sty  braket.sty  godelnum.sty  outlines 
 qwertz.sty
  [EMAIL PROTECTED] ~]$ ls
 /usr/share/texmf/tex/latex/misc/
  dvipost.sty  linuxdoc-sgml.stynull.sty
  envlab   linuxdoctr-sgml.sty  qwertz.sty
  [EMAIL PROTECTED] ~]$ kpsewhich qwertz.sty
  /home/rgheck/texmf/tex/latex/misc/qwertz.sty
 Note how TeX automatically uses the package in my USER
 directory. It'd 
 use the local one before the system one, as well.

 This no work for me.

 And now
 if you have a 
 problem, you can just delete (or temporarily move) the
 newer packages.
 
   When I finished and run texhash lyx (and kile) no run
 anymore.
   I get:
   Undefinid control sequence
   Missing \begin{document}
   Undefinid control sequence
   Missing \begin{document}
 
   How I can restore latex work without reverse to
 obsolete version of texlive provided for opensuse?
 

 Obviously, you have to restore whatever packages you
 changed. I'd guess 
 the simplest thing is just to reinstall texlive---the
 obsolete 
 version. But it's not really obsolete. Just some of the
 packages are old.

 koma-script in texlive from opensuse 11.0 is from March, 2006.

 Then you can try---if you dare---installing the newer
 packages.
 
 Richard

 Thanks Richard, I reinstalled texlive.
 I traced one problem in hyperref package.
 When I update this I get error: hycolor.sty not found.
 Other problems are added with others updates.
 Now, I am install newer packages one at a time.
 
 Marcelo
 


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


RE: Lyx 1.5.4 lof caption length

2008-09-22 Thread Fil
Hi Daniel,

Thanks for your quick reply. Your suggestion is what I was hoping for and i 
added it to the
preamble, but I get a lot of errors which I otherwise didn't have.

My setup is I have a main file the calls up all my other chapters. I'm assuming 
that the
modifications only need to be done for the main call up file, I did try to 
include it in the other
files just in case but it didn't have any effect.

The errors I get are listed below and checking the latex log it looks like a 
lot of undefined
references are missing }, I have references listed in the figure captions to so 
maybe its not
recognising this properly?

About 40 errors, mostly -paragraph ended before \takeshort was complete
Latex log say suspect forgotten } ...which may be related to the references in 
caption as a lot of
these are listed.

Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] 
you've lost some text

And -latex error:\begin{figure} on imput line 485 ended by \end{document}

If it looks like its going to be a lot more complicated then I may just do the 
longer method
previously mention in my first email.

Cheers,
Fil.



Re: New LyX user, problem with uncodable characters

2008-09-22 Thread Jean-Marc Lasgouttes

Yes!! It worked :-) Now I executed ChkTeX and I got a huge list of
ChkTeX warnings. As I read in the documentation they can be ignored...
(hopefully!). Or is my problem somewhere within those?


What kind of warnings do you get? I am somehow maintainer of chktex  
these days, and

I am interested in feedback about what could be improved.

JMarc


Finding and replacing quotes

2008-09-22 Thread K. Elo
Hi,

how could I find (and replace) quotation marks in LyX? I have selected
wrong type for quotes and now I should replace all quotes :(

I have tried to use the "-character in find-dialog, but this does not
work. I also have tried to copy-paste the wrong quote but it does not
work, either.

Any ideas how to solve this?

Thanks in advance,
Kimmo


Re: I killed Latex, ¡hel p me, please!

2008-09-22 Thread G. Milde
On 20.09.08, Marcelo Acuña wrote:

>  I update several packages that in texlive provided for opensuse 11.0
>  are very old. When I finished and run texhash lyx (and kile) no run
>  anymore.

Did you try with a simple example?

>  I get:
>  Undefinid control sequence
>  Missing \begin{document}
>  Undefinid control sequence
>  Missing \begin{document}

What does the LaTeX log say?

>  How I can restore latex work without reverse to obsolete version of
>  texlive provided for opensuse?

This very much depends on what is really wrong?

Could you append the example file and the LaTeX log so we can check?

Günter


Re: custom layouts - inserting a mandatory parameter

2008-09-22 Thread Jürgen Spitzmüller
Micha wrote:
> I'm trying to see if I can write a layout file for the currvita latex
> class. The main environment is a list environment that should come out
> something like
>
> \begin{cvlist}{title}
> \item[one] text
> \item[two] text
> \end{cvlist}
>
> I can get the {title} part by adding
> LatexParam  {title}
> but that doesn't allow me to change this. Is there a way to insert that
> mandatory argument, layout file style option, tex code or otherwise?

Alas, LyX does not yet support multiple mandatory arguments natively. You can 
try one of the following hacks (all untested):

1. use
LatexType List_Environment
LabelString   "title"
then you can insert the title via the "Longest label" widget of the paragraph 
dialog (see the List environment for an example)

2. Redefine the environment to use an optional arg, use lyxcvlist instead of 
cvlist and enter the title via insert->optional argument:
LaTeXName   lyxcvlist
OptionalArgs1
Preamble
\newenvironment\lyxcvlist[1][]{\begin{cvlist}{#1}}{\end{cvlist}
EndPreamble

Jürgen


Re: Finding and replacing quotes

2008-09-22 Thread Jürgen Spitzmüller
K. Elo wrote:
> how could I find (and replace) quotation marks in LyX? I have selected
> wrong type for quotes and now I should replace all quotes :(

1. Open a copy of the LyX file in an editor and replace all (for instance)

\begin_inset Quotes gld
by
\begin_inset Quotes ald

2. consider using the LaTeX package csquotes from now on.

Jürgen


Re: Finding and replacing quotes

2008-09-22 Thread K. Elo
Hi,

thanks for Your quick reply, Jürgen.

Jürgen Spitzmüller wrote:
> 
> 1. Open a copy of the LyX file in an editor and replace all (for instance)
> 
> \begin_inset Quotes gld
> by
> \begin_inset Quotes ald

This means, I cannot find and replace wrongly typed quotes in LyX :-\

> 2. consider using the LaTeX package csquotes from now on.

I will :)


-Kimmo


Re: Finding and replacing quotes

2008-09-22 Thread Konrad Hofbauer

Jürgen Spitzmüller wrote:

2. consider using the LaTeX package csquotes from now on.


Has LyX built-in support or csquotes (besides ERT)?

/Konrad



Re: Finding and replacing quotes

2008-09-22 Thread Jürgen Spitzmüller
Konrad Hofbauer wrote:
> Has LyX built-in support or csquotes (besides ERT)?

No. But you don't need ERT. I use:

\usepackage[babel, german=swiss]{csquotes}
\MakeAutoQuote{»}{«}
\MakeInnerQuote{¶}

in preamble and then just write »double quoted« and ¶single quoted¶ 
and »nested »quoted«« text in LyX (where »« is not the LyX quotation mark, 
but the unicode glyph, AltGr-x and AltGr-y here on Linux).

Jürgen


Re: custom layouts - inserting a mandatory parameter

2008-09-22 Thread G Milde
Micha <[EMAIL PROTECTED]> schrieb:
> I'm trying to see if I can write a layout file for the currvita latex class.
> The main environment is a list environment that should come out something like

> \begin{cvlist}{title}
> \item[one] text
> \item[two] text
> \end{cvlist}

> I can get the {title} part by adding
> LatexParam{title}
> but that doesn't allow me to change this. Is there a way to insert that
> mandatory argument, layout file style option, tex code or otherwise?

There are two ways: as optional parameter (short title) or as a separate
Style. My dinbrief.layout uses the latter:

  # dinbrief's \phone has 2 args, area and number. We define an empty
  # command that can be set by the Area_Code style
  Preamble
\newcommand{\areacode}{}
  EndPreamble
  
  # dinbrief's \phone has 2 args, area and number,
  # define both as distinct styles
  
  Style Area_Code
CopyStyle   DinBrief
LabelString "Vorwahl:"
LatexName   "renewcommand{\areacode}"
  End
  
  
  Style Telephone
CopyStyle   DinBrief
LabelString "Telefon:"
LatexName   phone
LatexParam  {\areacode}
  End
  
For the "short-title" way, you would need to define an auxiliary latex
command with optional argument, enable the optional arg with the keyword

OptionalArgs  1

and set it with (the misnamed) Insert>Short-Title. 

Günter





theorem numbering in amsbook

2008-09-22 Thread end

Using LyX 1.5.6 for Windows. OS: Vista

I am using amsbook class, and cannot achieve the swapped theorem numbering
(say, 1.2 Lemma instead of Lemma 1.2). The amsbook is supposed to include
amsthm.sty, and the style documentation says one should enter \swapnumbers
command. But entering this in the preamble does not change anything. Please
help.

-- 
View this message in context: 
http://n2.nabble.com/theorem-numbering-in-amsbook-tp1109584p1109584.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Lyx 1.5.4 lof caption length

2008-09-22 Thread Fil
Hi,

Please could you advise if you can set the caption length in LOF in the TOC?? . 
I'm using lyx 1.5.4.

I'd prefer to use the float figure caption(box) if possible so really I need to 
know if there is a
command to cut off the text in the figure box so after that point the lof does 
not list it in the
toc (but still under the figure) as I have some long descriptions and 
references listed.

I know \caption [thing to go in tof]{thing to go under figure \cite{book}} 
works, however I prefer
the figure float presentation. Plus I didn't realise this issue earlier and if 
I change I'll have to
edited 60 or so captions now.

Many thanks,

Fil.


Re: Finding and replacing quotes

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 02:17:03 am K. Elo wrote:
> Hi,
>
> how could I find (and replace) quotation marks in LyX? I have selected
> wrong type for quotes and now I should replace all quotes :(
>
> I have tried to use the "-character in find-dialog, but this does not
> work. I also have tried to copy-paste the wrong quote but it does not
> work, either.
>
> Any ideas how to solve this?

Personally, I'd do it in Vim. In order to know the replacement character, 
within LyX type the beginning and ending code, and then look at them in Vim 
and use them for replacements.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Metapost conversion

2008-09-22 Thread econkramer

Dear all,

I did not understand how to use metapost. I have created a .fig file in
Winfig and I have exported as .mmp (to get a dynamic graphic). Now, to
import it in Lyx I have got that I have to convert this .mmp in .0 .1 .2 and
so on files. But, I do not know how to do. I have read there should be
someway to run mpost figure.mmp and to get the figure.0
figure.1...files...but I don't know how to do it. Where should I run it? How
should I run it?

Can someone help me?

many thanks
-- 
View this message in context: 
http://n2.nabble.com/Metapost-conversion-tp1109998p1109998.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx 1.5.4 lof caption length

2008-09-22 Thread Daniel Lohmann


On 22.09.2008, at 16:51, Fil wrote:


Hi,

Please could you advise if you can set the caption length in LOF in  
the TOC?? . I'm using lyx 1.5.4.


I'd prefer to use the float figure caption(box) if possible so  
really I need to know if there is a
command to cut off the text in the figure box so after that point  
the lof does not list it in the
toc (but still under the figure) as I have some long descriptions  
and references listed.


I know \caption [thing to go in tof]{thing to go under figure  
\cite{book}} works, however I prefer
the figure float presentation. Plus I didn't realise this issue  
earlier and if I change I'll have to

edited 60 or so captions now.


Hi Fil,

The following might help you if you put it in the preamble.

It redefines \caption so that everything until the first period (.) is  
taken, without the period,  as "short caption".


So:

  \caption{Man on moon. This picture shows Neil Armstrong, the first  
man on the moon.}


effectively becomes:

 \caption[Man on moon]{Man on moon.\\ This picture shows Neil  
Armstrong, the first man on the moon.}


Daniel


%*
%** float captions  
***

% We redefine \caption to support long figure texts. The captions
% are typesetted with indented label in \sffamily\footnotesize. The  
first
% sentence (everything up to the first period) is considered as the  
actual
% caption (typesetted in boldface and used in the toc). The remaining  
part,

% if any, is taken as figure text and typesetted below the "caption".
%
% Note that captions now have to end with a period. However, if  
nothing follows

% the period (no figure text) it does not appear in the output.
%
  \let\oldcaption\caption
  \def\takeshort#1.#2\next{\gdef\short{#1}\def\two{#2\relax}%
  \gdef\everything{\if\two\relax {\bfseries #1}\else{\bfseries  
#1.}\\#2\fi}}

  \def\caption#1{\takeshort#1\next\oldcaption[\short]{\everything}}



Re: Metapost conversion

2008-09-22 Thread Ernesto Posse
You have to run this from s console window (Command Prompt on Windows.)

Go to the start menu and look for "Command Prompt" (usually in
Accessories.) You will see a command prompt like this

C:\Documents\username>

or something similar

This is where you can type commands. The "C:\Documents\..." is the
name of the folder where you are currently. You have to navigate to
the directory where you saved your metapost file. This is done with
the command "cd" (for change directory.) type something like this in
the prompt:

cd C:\

Directory (aka folder) names are separated with backslash \

so for example it is

cd C:\Documents\username\MyFiles\MyPaper

If the folder has spaces in the full name, it must be enclosed in quotes.

cd "C:\Documents\username\My Files\My Paper"

After executing cd, the prompt will show the directory where you moved to.

Once in your target folder, you run metapost on the file. For example, type

mpost figure.mp

this generates a file "figure.0" or "figure.1" in that same folder.

To use it in LyX, you can simply rename it to "figure.mps", and add it
to your lyx document with "insert graphics." Use the pdflatex option
to generate the PDF file (rather than the dvipds of ps2pdf options.)
The figure will show an error message in the LyX editing window, but
it should appear OK in the generated PDF.



On Mon, Sep 22, 2008 at 12:09 PM, econkramer <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> I did not understand how to use metapost. I have created a .fig file in
> Winfig and I have exported as .mmp (to get a dynamic graphic). Now, to
> import it in Lyx I have got that I have to convert this .mmp in .0 .1 .2 and
> so on files. But, I do not know how to do. I have read there should be
> someway to run mpost figure.mmp and to get the figure.0
> figure.1...files...but I don't know how to do it. Where should I run it? How
> should I run it?
>
> Can someone help me?
>
> many thanks
> --
> View this message in context: 
> http://n2.nabble.com/Metapost-conversion-tp1109998p1109998.html
> Sent from the LyX - Users mailing list archive at Nabble.com.
>
>



-- 
Ernesto Posse

Applied Formal Methods Group - Software Technology Lab
School of Computing
Queen's University - Kingston, Ontario, Canada


Re: Lyx 1.5.4 lof caption length

2008-09-22 Thread Les Denham
On Monday 22 September 2008, Daniel Lohmann wrote:
> On 22.09.2008, at 16:51, Fil wrote:
> > Hi,
> >
> > Please could you advise if you can set the caption length in LOF in
> > the TOC?? . I'm using lyx 1.5.4.
> >

>
> The following might help you if you put it in the preamble.
>
> It redefines \caption so that everything until the first period (.) is
> taken, without the period,  as "short caption".
>
> So:
>
>\caption{Man on moon. This picture shows Neil Armstrong, the first
> man on the moon.}
>
> effectively becomes:
>
>   \caption[Man on moon]{Man on moon.\\ This picture shows Neil
> Armstrong, the first man on the moon.}
>
An alternative is to use the Short Title. Click on the on the caption for the 
Figure, then click on Insert>Short Title and enter what you would like to 
have in the LOF.

Of course, this will mean editing each of your 60 or so captions -- but it is 
more flexible than Daniel's solution.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: Finding and replacing quotes

2008-09-22 Thread Pavel Sanda
> Jürgen Spitzmüller wrote:
>> 2. consider using the LaTeX package csquotes from now on.
>
> Has LyX built-in support or csquotes (besides ERT)?

http://bugzilla.lyx.org/show_bug.cgi?id=1499
pavel


Re: LyX OS-X AppleScript

2008-09-22 Thread Pavel Sanda
> Daniel Lohmann wrote:
>> LyX 1.5.5, Mac OSX 10.5.5
>> I found some nice AppleScripts 
>
> There is no AppleScript support built into LyX, so, unfortunately, there is 
> no chance for this to work.
>
> Maybe there are LFUNs to move around the application window, and something 
> similar could be done using lyxserver?

iirc there is no such lfun. such kind of job should be done by window managers
and not lyx itself.

pavel


Re: RC2 and graphics

2008-09-22 Thread Pavel Sanda
>These are also on the web somewhere, but I can't 
> remember where.

menu help -> lyx functions.
pavel


algorithm2e in LyX 1.5.6: algorithm already defined

2008-09-22 Thread A. Scottedward Hodel
I'm importing a student's PhD dissertation into LyX to use the "track  
changes" function for markup.  Unfortunately, there seems to be a  
conflict between some LyX default behavior and the algorithm2e.sty  
package:


! LaTeX Error: Command \algorithm already defined.
   Or name \end... illegal, see p.192 of the manual.

I used the command line to translate LyX to LaTeX,
lyx --export latex WahbaSummary.lyx
and found the following code in the .tex file:

%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\floatname{algorithm}{Algorithm}

%% User specified LaTeX commands.

If I comment out the \newfloat and \floatname commands, then the error  
goes away.  Is there a way to get rid of them without manually editing  
the .tex file?


A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar





OT. Insert [lyx] into the Subject

2008-09-22 Thread posta
Hi mailing list admin, 

Just a minor request. 
As many other mailing lists, I think it would be handy if your  listserver 
would insert [lyx] into the subject field. 
It would help me a lot in order to filter/sort/order  my incoming mails much 
faster.

why not?

thanks 
mario

_
This email was transferred using an Office free edition
of AXIGEN Mail Server.



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread Pavel Sanda
> Hi mailing list admin, 
> 
> Just a minor request. 
> As many other mailing lists, I think it would be handy if your  listserver 
> would insert [lyx] into the subject field. 
> It would help me a lot in order to filter/sort/order  my incoming mails much 
> faster.
> 
> why not?

this is already possible by filtering email headers, for example this line:
List-Post: 
can be used.

you can also read http://www.lyx.org/MailingLists for this list netiquette,
especially the hijacking threads bullet :)

cheers,
pavel


Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread mario
On Mon, 2008-09-22 at 21:58 +0200, Pavel Sanda wrote:
> > Hi mailing list admin,
> >
> > Just a minor request.
> > As many other mailing lists, I think it would be handy if your  listserver 
> > would insert [lyx] into the subject field.
> > It would help me a lot in order to filter/sort/order  my incoming mails 
> > much faster.
> >
> > why not?
> 
> this is already possible by filtering email headers, for example this line:
> List-Post: 
> can be used.

yes, I know and use them to archive my mails. But, I use a webmail on my
laptop (only later I download mails from my laptop to a desktop machine
and filter them by headers). When I look at mails on my webmail, in the
inbox folder, it is handy just to order them by subject. If lyx mails
had the [lyx] within the subject field, they would be listed
successively.

thanks for your reply
best
mario



> you can also read http://www.lyx.org/MailingLists for this list netiquette,
> especially the hijacking threads bullet :)
> 
> cheers,
> pavel


--
Nota di riservatezza:
Il presente messaggio, corredato dei relativi allegati contiene
informazioni da considerarsi strettamente riservate, ed è destinato
esclusivamente al destinatario sopra indicato, il quale è l'unico
autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità,
diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo
leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo,
divulgarlo, distribuirlo a persone diverse dal destinatario è
severamente proibito, ed è pregato di rinviarlo immediatamente al mittente
distruggendo l'originale.

Confidentiality Notice:
This message, together with its annexes, contains information to be
deemed strictly confidential and is destined only to the addressee(s)
identified above who only may use, copy and, under his/their
responsibility, further disseminate it. If anyone received this message
by mistake or reads it without entitlement is forewarned that keeping,
copying, disseminating or distributing this message to persons other than
the addressee(s) is strictly forbidden and is asked to transmit it
immediately to the sender and to erase the original message received.
--



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread mario
On Mon, 2008-09-22 at 21:58 +0200, Pavel Sanda wrote:
> > 
> 
> you can also read http://www.lyx.org/MailingLists for this list netiquette,
> especially the hijacking threads bullet :)

yes, i see, i knew and forgot,

sorry ;-(
m.


> cheers,
> pavel


--
Nota di riservatezza:
Il presente messaggio, corredato dei relativi allegati contiene
informazioni da considerarsi strettamente riservate, ed è destinato
esclusivamente al destinatario sopra indicato, il quale è l'unico
autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità,
diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo
leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo,
divulgarlo, distribuirlo a persone diverse dal destinatario è
severamente proibito, ed è pregato di rinviarlo immediatamente al mittente
distruggendo l'originale.

Confidentiality Notice:
This message, together with its annexes, contains information to be
deemed strictly confidential and is destined only to the addressee(s)
identified above who only may use, copy and, under his/their
responsibility, further disseminate it. If anyone received this message
by mistake or reads it without entitlement is forewarned that keeping,
copying, disseminating or distributing this message to persons other than
the addressee(s) is strictly forbidden and is asked to transmit it
immediately to the sender and to erase the original message received.
--



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 03:58:54 pm Pavel Sanda wrote:
> > Hi mailing list admin,
> >
> > Just a minor request.
> > As many other mailing lists, I think it would be handy if your 
> > listserver would insert [lyx] into the subject field. It would help me a
> > lot in order to filter/sort/order  my incoming mails much faster.
> >
> > why not?
>
> this is already possible by filtering email headers, for example this line:
> List-Post: 
> can be used.

Yeah, but the fact is, if it contained [lyx-users] in the subject, it would be 
more like other mailing lists, and it would be easier to filter by almost any 
email client, without having to&

>
> you can also read http://www.lyx.org/MailingLists for this list netiquette,
> especially the hijacking threads bullet :)

Yeah, he should have composed a brand new message, but that doesn't impact his 
suggestion, which in my opinion is a good one if it's reasonably easy to do.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



New LyX user, problem with "uncodable characters"

2008-09-22 Thread Nikos Alexandris
Dear LyX users/developers,

I am a new and excited LyX user. I am seeking for some support. I am
writing a big document (in English with a few Greek words) using the
book KOMA-script. I have lots of single bash command lines and several
bash shell scripts. I use LyX 1.6.0svn under Ubuntu 8.04 (aka Hardy
Heron) 64-bit.

1. What is the best way to go about it: use both the LyX-code
environment and Program Listing or just one of them?

2. While trying to export the document to pdf I get twice the "LyX:
Uncodable characters in listings inset \ The following characters in one
of the program listings are not representable in the current encoding
and have been omitted: -." #It's kind of a long dash!

After pressing "OK" the pdf is produced and viewed properly. Since I
have lots of Program Listing insets it's hard to tell where or what this
character is (?).

3. I've been reading about chktex. Although I got it installed from the
ubuntu repositories it does not appear under the Tool menu. I assume I
need to "add" it while compiling the source code (?)

4. How do I create a custom "summary" environment (e.g. chapter summary)
an add it in the "book" document class?

Thank you in advance for your attention,
Nikos

http://softwarefreedomday.org/SoftwareFreedom
http://www.storyofstuff.com/




RC2 and graphics, follow up

2008-09-22 Thread Hellmut Weber

Hi,
finally I could finish my document ;-)

Fortunately I have still a LyX 1.5.0 on my machine, so I exported what I 
had to that format and could continue much quicker usng 1.5.0.
(I observed my watch a few times RC2 needed around 25-30 seconds from 
the moment I clicked the OK button of the inset-image-dialog, 1.5.0 
needs certainly less than 5 seconds. No representative sample ;-)


Viewing with kpdf is quite slow too, somebody sugested that may be a 
problem of graphic format conversion.
Which format does lyx use? I could easily convert all my pictures to 
that format using convert. Then no additional time would be needed.



Two slightly OT Questions?

*** In my document which contains around 60 pictures (and some 
(sub)section headers I normally insert the pictures just into the text, 
putting sometimes an \hfill between two pictures.

In a majority of cases that works quite well.
In some cases two pictures which should be on a line are put on 
different lines and the need a whole page, i.e. the first picture is at 
the beginning of the upper half of a page, the second one in the lower 
half of the page, right justified.


I could overcome this problem putting the picturers in one big minipage, 
then the two pictures which should stay beside each other in two single 
minipages which again are put in a minipage for the "line".
For this to work I had additionally to set the vertival orientation of 
the smallest minipages to 'lower'.


Has anybody an idea what's going on on the LaTeX level here? (Just for 
my curiosity ;-)


*** My locale is set to [EMAIL PROTECTED]
when starting lyx from the command line I have tried to use commands like
   'LC_ALL="en_GB" lyx ...' or
   'LANG="en_GB" lyx ...
to get the english version. Because when working with the german version 
I have to re-translate the names of menu entries etc. for the 
communication here in the list.



Thanks to all of you

Hellmut
--
Dr. Hellmut Weber [EMAIL PROTECTED]
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: New LyX user, problem with "uncodable characters"

2008-09-22 Thread rgheck

Nikos Alexandris wrote:

2. While trying to export the document to pdf I get twice the "LyX:
Uncodable characters in listings inset \ The following characters in one
of the program listings are not representable in the current encoding
and have been omitted: -." #It's kind of a long dash!

After pressing "OK" the pdf is produced and viewed properly. Since I
have lots of Program Listing insets it's hard to tell where or what this
character is (?).

  
If you copied and pasted, you've probably got a character in the wrong 
encoding, possibly some sort of dash. The way to figure this out is to 
delete the second half, see if you still get the problem; if so, delete 
half of that; etc. That way you can narrow it down.



3. I've been reading about chktex. Although I got it installed from the
ubuntu repositories it does not appear under the Tool menu. I assume I
need to "add" it while compiling the source code (?)

  
Try Tools>Reconfigure. You need to do this whenever you make changes to 
LaTeX, your various tools, etc.



4. How do I create a custom "summary" environment (e.g. chapter summary)
an add it in the "book" document class?

  
The easiest thing to do is to create a Summary module that you could 
then use with different classes. See the part of the Customization 
manual on layout modules: section 5.2.1 and the surrounding material. If 
you know how to do it in LaTeX, it's pretty simple to do it in LyX. See 
hanging.module for an example.


Richard



Re: New LyX user, problem with "uncodable characters"

2008-09-22 Thread Nikos Alexandris
On Mon, 2008-09-22 at 19:28 -0400, rgheck wrote:

Richard,
thank you for your reply.

> Nikos Alexandris wrote:
> > 2. While trying to export the document to pdf I get twice the "LyX:
> > Uncodable characters in listings inset \ The following characters in one
> > of the program listings are not representable in the current encoding
> > and have been omitted: -." #It's kind of a long dash!
> >
> > After pressing "OK" the pdf is produced and viewed properly. Since I
> > have lots of Program Listing insets it's hard to tell where or what this
> > character is (?).
> >
> >   
> If you copied and pasted, you've probably got a character in the wrong 
> encoding, possibly some sort of dash. The way to figure this out is to 
> delete the second half, see if you still get the problem; if so, delete 
> half of that; etc. That way you can narrow it down.

Yes, I copy-pasted the text (saved as text from .odt). I'll give a it a
try. Yet, I was expecting some chktex magic :-)


> > 3. I've been reading about chktex. Although I got it installed from the
> > ubuntu repositories it does not appear under the Tool menu. I assume I
> > need to "add" it while compiling the source code (?)
> >
> >   
> Try Tools>Reconfigure. You need to do this whenever you make changes to 
> LaTeX, your various tools, etc.

Yes!! It worked :-) Now I executed ChkTeX and I got a huge list of
ChkTeX warnings. As I read in the documentation they can be ignored...
(hopefully!). Or is my "problem" somewhere within those?

> 
> > 4. How do I create a custom "summary" environment (e.g. chapter summary)
> > an add it in the "book" document class?
> >
> >   
> The easiest thing to do is to create a Summary module that you could 
> then use with different classes. See the part of the Customization 
> manual on layout modules: section 5.2.1 and the surrounding material. If 
> you know how to do it in LaTeX, it's pretty simple to do it in LyX. See 
> hanging.module for an example.
> 
> Richard

Best regards,
Nikos



Re: I killed Latex, ¡help me, please!

2008-09-22 Thread Marcelo Acuña
Whit splash.lyx I get same errors.
Now, I re install texlive and all work ok!
Thanks!

> >  I update several packages that in texlive provided
> for opensuse 11.0
> >  are very old. When I finished and run texhash lyx
> (and kile) no run
> >  anymore.
> 
> Did you try with a simple example?
> 
> >  I get:
> >  Undefinid control sequence
> >  Missing \begin{document}
> >  Undefinid control sequence
> >  Missing \begin{document}
> 
> What does the LaTeX log say?
> 
> >  How I can restore latex work without reverse to
> obsolete version of
> >  texlive provided for opensuse?
> 
> This very much depends on what is really wrong?
> 
> Could you append the example file and the LaTeX log so we
> can check?
> 
> Günter


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


Re: I killed Latex, ¡help me, please!

2008-09-22 Thread Marcelo Acuña
> > Hello,
> >  I update several packages that in texlive provided
> for opensuse 11.0 are very old.
> >
> >   
> This is why it can be dangerous to upgrade packages. In
> future, do them 
> one at a time. And the safest way to do this is not to
> overwrite the 
> older packages but to install the new ones in your local
> tree. Look at 
> the file texmf.cnf to see exactly where this is, but in my
> system the 
> main TeX directory is at /usr/share/texmf/; the
> "local" TeX directory is 
> at /usr/local/share/texmf/; and my personal directory is at
> ~/texmf/. So 
> check this out:
> > [EMAIL PROTECTED] ~]$ ls ~/texmf/tex/latex/misc/
> > 2in1.sty  braket.sty  godelnum.sty  outlines 
> qwertz.sty
> > [EMAIL PROTECTED] ~]$ ls
> /usr/share/texmf/tex/latex/misc/
> > dvipost.sty  linuxdoc-sgml.stynull.sty
> > envlab   linuxdoctr-sgml.sty  qwertz.sty
> > [EMAIL PROTECTED] ~]$ kpsewhich qwertz.sty
> > /home/rgheck/texmf/tex/latex/misc/qwertz.sty
> Note how TeX automatically uses the package in my USER
> directory. It'd 
> use the local one before the system one, as well.

 This no work for me.

> And now
> if you have a 
> problem, you can just delete (or temporarily move) the
> newer packages.
> 
> >  When I finished and run texhash lyx (and kile) no run
> anymore.
> >  I get:
> >  Undefinid control sequence
> >  Missing \begin{document}
> >  Undefinid control sequence
> >  Missing \begin{document}
> >
> >  How I can restore latex work without reverse to
> obsolete version of texlive provided for opensuse?
> >
> >   
> Obviously, you have to restore whatever packages you
> changed. I'd guess 
> the simplest thing is just to reinstall texlive---the
> "obsolete" 
> version. But it's not really obsolete. Just some of the
> packages are old.

 koma-script in texlive from opensuse 11.0 is from March, 2006.

> Then you can try---if you dare---installing the newer
> packages.
> 
> Richard

 Thanks Richard, I reinstalled texlive.
 I traced one problem in hyperref package.
 When I update this I get error: "hycolor.sty not found".
 Other problems are added with others updates.
 Now, I am install newer packages one at a time.
 
 Marcelo
 


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


RE: Lyx 1.5.4 lof caption length

2008-09-22 Thread Fil
Hi Daniel,

Thanks for your quick reply. Your suggestion is what I was hoping for and i 
added it to the
preamble, but I get a lot of errors which I otherwise didn't have.

My setup is I have a main file the calls up all my other chapters. I'm assuming 
that the
modifications only need to be done for the main call up file, I did try to 
include it in the other
files just in case but it didn't have any effect.

The errors I get are listed below and checking the latex log it looks like a 
lot of undefined
references are missing }, I have references listed in the figure captions to so 
maybe its not
recognising this properly?

About 40 errors, mostly -paragraph ended before \takeshort was complete
Latex log say suspect forgotten } ...which may be related to the references in 
caption as a lot of
these are listed.

Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] 
you've lost some text

And -latex error:\begin{figure} on imput line 485 ended by \end{document}

If it looks like its going to be a lot more complicated then I may just do the 
longer method
previously mention in my first email.

Cheers,
Fil.



Re: New LyX user, problem with "uncodable characters"

2008-09-22 Thread Jean-Marc Lasgouttes

Yes!! It worked :-) Now I executed ChkTeX and I got a huge list of
ChkTeX warnings. As I read in the documentation they can be ignored...
(hopefully!). Or is my "problem" somewhere within those?


What kind of warnings do you get? I am somehow maintainer of chktex  
these days, and

I am interested in feedback about what could be improved.

JMarc