Re: Custom module: inset for mdframed boxes

2014-06-26 Thread Matthieu

Dear Jürgen

Excellent, exactly what I needed, thanks so much for your help!!

Matthieu


Le 24. 06. 14 16:17, Jürgen Spitzmüller a écrit :

2014-06-19 10:36 GMT+02:00 Matthieu:

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice
boxes. In its simplest form, mdframed is just used with (see below
for reproduciible latex code):

\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but
this is a very rough draft, and I would appreciate any help, in
particular:
-how to give the new inset a feeling of box? 



Add

Decoration classic

to the InsetLayout definition.


-For the title of the box, the user needs to add herself:
frametitle=A title Ideally, one would not need to do this... is
this avoidable in Lyx (make him add automatically frametitle=),
or does one need to rewrite slightly the environment mdframed?


Currently keyval syntax is not natively supported. So users either 
need to enter the keyval syntax completely, or you need to rewrite the 
mdframed environment.


-More generally, I choose to use it as a custom inset, but could
have done defining it as a new style.. is this choice sound?


Yes, looks completely sane.

Jürgen

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString Md frame
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelStringBox Title, write: frametitle=AA
TooltipEnter the box title here
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}







Re: Custom module: inset for mdframed boxes

2014-06-26 Thread Matthieu

Dear Jürgen

Excellent, exactly what I needed, thanks so much for your help!!

Matthieu


Le 24. 06. 14 16:17, Jürgen Spitzmüller a écrit :

2014-06-19 10:36 GMT+02:00 Matthieu:

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice
boxes. In its simplest form, mdframed is just used with (see below
for reproduciible latex code):

\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but
this is a very rough draft, and I would appreciate any help, in
particular:
-how to give the new inset a feeling of box? 



Add

Decoration classic

to the InsetLayout definition.


-For the title of the box, the user needs to add herself:
frametitle=A title Ideally, one would not need to do this... is
this avoidable in Lyx (make him add automatically frametitle=),
or does one need to rewrite slightly the environment mdframed?


Currently keyval syntax is not natively supported. So users either 
need to enter the keyval syntax completely, or you need to rewrite the 
mdframed environment.


-More generally, I choose to use it as a custom inset, but could
have done defining it as a new style.. is this choice sound?


Yes, looks completely sane.

Jürgen

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString Md frame
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelStringBox Title, write: frametitle=AA
TooltipEnter the box title here
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}







Re: Custom module: inset for mdframed boxes

2014-06-26 Thread Matthieu

Dear Jürgen

Excellent, exactly what I needed, thanks so much for your help!!

Matthieu


Le 24. 06. 14 16:17, Jürgen Spitzmüller a écrit :

2014-06-19 10:36 GMT+02:00 Matthieu:

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice
boxes. In its simplest form, mdframed is just used with (see below
for reproduciible latex code):

\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but
this is a very rough draft, and I would appreciate any help, in
particular:
-how to give the new inset a feeling of box? 



Add

Decoration classic

to the InsetLayout definition.


-For the title of the box, the user needs to add herself:
frametitle=A title Ideally, one would not need to do this... is
this avoidable in Lyx (make him add automatically "frametitle="),
or does one need to rewrite slightly the environment mdframed?


Currently keyval syntax is not natively supported. So users either 
need to enter the keyval syntax completely, or you need to rewrite the 
mdframed environment.


-More generally, I choose to use it as a custom inset, but could
have done defining it as a new style.. is this choice sound?


Yes, looks completely sane.

Jürgen

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString "Md frame"
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelString"Box Title, write: frametitle=AA"
Tooltip"Enter the box title here"
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}







Re: Custom module: inset for mdframed boxes

2014-06-23 Thread Matthieu

Dear lyx users list

I was wondering whether someone would have any insights for the question 
(see below) I asked a few days ago on this list, regarding help for 
writing a custom module. Maybe I should rather ask on the lyx-devel, 
where people might be more familiar with customising Lyx?


Thanks!

Matthieu


Le 19. 06. 14 10:36, Matthieu a écrit :

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice 
boxes. In its simplest form, mdframed is just used with (see below for 
reproduciible latex code):


\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but this 
is a very rough draft, and I would appreciate any help, in particular:

-how to give the new inset a feeling of box? I tried adding:
CopyStyle Box
or:
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle

as I saw for boxes, but it does not work.

-For the title of the box, the user needs to add herself: frametitle=A 
title Ideally, one would not need to do this... is this avoidable in 
Lyx (make him add automatically frametitle=), or does one need to 
rewrite slightly the environment mdframed?


-More generally, I choose to use it as a custom inset, but could have 
done defining it as a new style.. is this choice sound?

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString Md frame
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelStringBox Title, write: frametitle=AA
TooltipEnter the box title here
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}






Re: Custom module: inset for mdframed boxes

2014-06-23 Thread Matthieu

Dear lyx users list

I was wondering whether someone would have any insights for the question 
(see below) I asked a few days ago on this list, regarding help for 
writing a custom module. Maybe I should rather ask on the lyx-devel, 
where people might be more familiar with customising Lyx?


Thanks!

Matthieu


Le 19. 06. 14 10:36, Matthieu a écrit :

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice 
boxes. In its simplest form, mdframed is just used with (see below for 
reproduciible latex code):


\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but this 
is a very rough draft, and I would appreciate any help, in particular:

-how to give the new inset a feeling of box? I tried adding:
CopyStyle Box
or:
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle

as I saw for boxes, but it does not work.

-For the title of the box, the user needs to add herself: frametitle=A 
title Ideally, one would not need to do this... is this avoidable in 
Lyx (make him add automatically frametitle=), or does one need to 
rewrite slightly the environment mdframed?


-More generally, I choose to use it as a custom inset, but could have 
done defining it as a new style.. is this choice sound?

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString Md frame
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelStringBox Title, write: frametitle=AA
TooltipEnter the box title here
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}






Re: Custom module: inset for mdframed boxes

2014-06-23 Thread Matthieu

Dear lyx users list

I was wondering whether someone would have any insights for the question 
(see below) I asked a few days ago on this list, regarding help for 
writing a custom module. Maybe I should rather ask on the lyx-devel, 
where people might be more familiar with customising Lyx?


Thanks!

Matthieu


Le 19. 06. 14 10:36, Matthieu a écrit :

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice 
boxes. In its simplest form, mdframed is just used with (see below for 
reproduciible latex code):


\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but this 
is a very rough draft, and I would appreciate any help, in particular:

-how to give the new inset a feeling of box? I tried adding:
CopyStyle Box
or:
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle

as I saw for boxes, but it does not work.

-For the title of the box, the user needs to add herself: frametitle=A 
title Ideally, one would not need to do this... is this avoidable in 
Lyx (make him add automatically "frametitle="), or does one need to 
rewrite slightly the environment mdframed?


-More generally, I choose to use it as a custom inset, but could have 
done defining it as a new style.. is this choice sound?

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString "Md frame"
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelString"Box Title, write: frametitle=AA"
Tooltip"Enter the box title here"
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}






Custom module: inset for mdframed boxes

2014-06-19 Thread Matthieu

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice 
boxes. In its simplest form, mdframed is just used with (see below for 
reproduciible latex code):


\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but this 
is a very rough draft, and I would appreciate any help, in particular:

-how to give the new inset a feeling of box? I tried adding:
CopyStyle Box
or:
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle

as I saw for boxes, but it does not work.

-For the title of the box, the user needs to add herself: frametitle=A 
title Ideally, one would not need to do this... is this avoidable in Lyx 
(make him add automatically frametitle=), or does one need to rewrite 
slightly the environment mdframed?


-More generally, I choose to use it as a custom inset, but could have 
done defining it as a new style.. is this choice sound?

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString Md frame
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelStringBox Title, write: frametitle=AA
TooltipEnter the box title here
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}




Custom module: inset for mdframed boxes

2014-06-19 Thread Matthieu

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice 
boxes. In its simplest form, mdframed is just used with (see below for 
reproduciible latex code):


\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but this 
is a very rough draft, and I would appreciate any help, in particular:

-how to give the new inset a feeling of box? I tried adding:
CopyStyle Box
or:
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle

as I saw for boxes, but it does not work.

-For the title of the box, the user needs to add herself: frametitle=A 
title Ideally, one would not need to do this... is this avoidable in Lyx 
(make him add automatically frametitle=), or does one need to rewrite 
slightly the environment mdframed?


-More generally, I choose to use it as a custom inset, but could have 
done defining it as a new style.. is this choice sound?

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString Md frame
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelStringBox Title, write: frametitle=AA
TooltipEnter the box title here
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}




Custom module: inset for mdframed boxes

2014-06-19 Thread Matthieu

Dear Lyx users list

I would like to use the mdframed package in Lyx, which offers nice 
boxes. In its simplest form, mdframed is just used with (see below for 
reproduciible latex code):


\begin{mdframed}
 A box
\end{mdframed}

Eventually with [frametitle=A title]

I was trying to create a Lyx inset for this, made it somehow, but this 
is a very rough draft, and I would appreciate any help, in particular:

-how to give the new inset a feeling of box? I tried adding:
CopyStyle Box
or:
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle

as I saw for boxes, but it does not work.

-For the title of the box, the user needs to add herself: frametitle=A 
title Ideally, one would not need to do this... is this avoidable in Lyx 
(make him add automatically "frametitle="), or does one need to rewrite 
slightly the environment mdframed?


-More generally, I choose to use it as a custom inset, but could have 
done defining it as a new style.. is this choice sound?

Thanks!!

###
#Lyx module:
###

#\DeclareLyXModule[mdframed.sty]{MD frame}
#DescriptionBegin
# Try to use package mdframed
#DescriptionEnd

Format 49

InsetLayout Flex:MDbox
   LyXType custom
   LatexName   mdframed
   LatexType   Environment
   LabelString "Md frame"
   Requiresmdframed
   LabelFont
   Color   blue
   Sizelarge
   EndFont
   MultiPartrue
   HTMLStyle
div.Frameless { margin: 1em; }
   EndHTMLStyle
   Preamble
   \usepackage{mdframed}
  EndPreamble
  Argument 1
LabelString"Box Title, write: frametitle=AA"
Tooltip"Enter the box title here"
Mandatory  0
Decoration conglomerate
Font
  Colorblue
  Size large
EndFont
AutoInsert 1
  EndArgument
End


#LaTeX minimal mdframed:


\documentclass[a4paper,10pt]{article}
\usepackage{mdframed}

\begin{document}

\begin{mdframed}
 A box
\end{mdframed}

And

\begin{mdframed}[frametitle=A title]
 A box
\end{mdframed}

\end{document}




Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-23 Thread Matthieu Stigler

Hi

Asking again for some help on how to prevent Lyx to add automatically 
\usepackage{subgif} when using subfig. Richard kindly gave advices (see 
below), which did not work unfortunately. Any help will be much appreciated!


Thanks a lot!

Matthieu


Le 22. 02. 11 14:56, Matthieu Stigler a écrit :

Dear Richard

Thanks a lot for your detailed explanation!

Unfortunately, the suggested procedure was without effect: even after 
inserting/reconfiguring/loading the {no subfig} module, Lyx adds 
automatically the lines:


\@ifundefined{showcaptionsetup}{}{%


\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}


Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4

Your help is much appreciated!

Matthieu

Le 21. 02. 11 21:54, Richard Heck a écrit :

On 02/21/2011 11:41 AM, Matthieu Stigler wrote:

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly 
where I should put this command? When in Lyx preamble or in the 
custom .sty it results into error... Did I miss something?



The suggested
Provides subfig 1
command is a LyX layout command, and needs to go into some 
appropriate layout file or module. See chapter 5 of the Customization 
manual for details. In this case, something as simple as what is at 
the end will do. Put it into the layout/ subdirectory of your LyX 
user directory (~/.lyx/, by default, on Linux), and then reconfigure. 
Then you can choose the No subfig module from 
DocumentSettingsModules, and LyX won't (shouldn't!) try to load 
subfig for you. Note that you could also add you other custom 
commands to such a module and not have to do it manually.



Furthermore, yes Lyx still adds preamble commands after user 
defined, see:

[snip]

Due to requirements on package-loading order, some such things do get 
done later.


Richard



#\DeclareLyXModule{No subfig}
#DescriptionBegin
#Supresses loading of subfig package.
#DescriptionEnd

Format 11

Provides subfig 1







Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-23 Thread Matthieu Stigler

Hi

Asking again for some help on how to prevent Lyx to add automatically 
\usepackage{subgif} when using subfig. Richard kindly gave advices (see 
below), which did not work unfortunately. Any help will be much appreciated!


Thanks a lot!

Matthieu


Le 22. 02. 11 14:56, Matthieu Stigler a écrit :

Dear Richard

Thanks a lot for your detailed explanation!

Unfortunately, the suggested procedure was without effect: even after 
inserting/reconfiguring/loading the {no subfig} module, Lyx adds 
automatically the lines:


\@ifundefined{showcaptionsetup}{}{%


\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}


Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4

Your help is much appreciated!

Matthieu

Le 21. 02. 11 21:54, Richard Heck a écrit :

On 02/21/2011 11:41 AM, Matthieu Stigler wrote:

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly 
where I should put this command? When in Lyx preamble or in the 
custom .sty it results into error... Did I miss something?



The suggested
Provides subfig 1
command is a LyX layout command, and needs to go into some 
appropriate layout file or module. See chapter 5 of the Customization 
manual for details. In this case, something as simple as what is at 
the end will do. Put it into the layout/ subdirectory of your LyX 
user directory (~/.lyx/, by default, on Linux), and then reconfigure. 
Then you can choose the No subfig module from 
DocumentSettingsModules, and LyX won't (shouldn't!) try to load 
subfig for you. Note that you could also add you other custom 
commands to such a module and not have to do it manually.



Furthermore, yes Lyx still adds preamble commands after user 
defined, see:

[snip]

Due to requirements on package-loading order, some such things do get 
done later.


Richard



#\DeclareLyXModule{No subfig}
#DescriptionBegin
#Supresses loading of subfig package.
#DescriptionEnd

Format 11

Provides subfig 1







Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-23 Thread Matthieu Stigler

Hi

Asking again for some help on how to prevent Lyx to add automatically 
\usepackage{subgif} when using subfig. Richard kindly gave advices (see 
below), which did not work unfortunately. Any help will be much appreciated!


Thanks a lot!

Matthieu


Le 22. 02. 11 14:56, Matthieu Stigler a écrit :

Dear Richard

Thanks a lot for your detailed explanation!

Unfortunately, the suggested procedure was without effect: even after 
inserting/reconfiguring/loading the {no subfig} module, Lyx adds 
automatically the lines:


\@ifundefined{showcaptionsetup}{}{%


\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}


Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4

Your help is much appreciated!

Matthieu

Le 21. 02. 11 21:54, Richard Heck a écrit :

On 02/21/2011 11:41 AM, Matthieu Stigler wrote:

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly 
where I should put this command? When in Lyx preamble or in the 
custom .sty it results into error... Did I miss something?



The suggested
Provides subfig 1
command is a LyX layout command, and needs to go into some 
appropriate layout file or module. See chapter 5 of the Customization 
manual for details. In this case, something as simple as what is at 
the end will do. Put it into the layout/ subdirectory of your LyX 
user directory (~/.lyx/, by default, on Linux), and then reconfigure. 
Then you can choose the "No subfig" module from 
Document>Settings>Modules, and LyX won't (shouldn't!) try to load 
subfig for you. Note that you could also add you other custom 
commands to such a module and not have to do it manually.



Furthermore, yes Lyx still adds preamble commands after user 
defined, see:

[snip]

Due to requirements on package-loading order, some such things do get 
done later.


Richard



#\DeclareLyXModule{No subfig}
#DescriptionBegin
#Supresses loading of subfig package.
#DescriptionEnd

Format 11

Provides subfig 1







Re: SV: SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler

Thanks Ingar for the further explanations!

So the problem is most probably that subfig also uses \AtBeginocument{}, 
so my own \AtBeginDocument does not work... The second solution, using 
the code in ERT, is not possible in my case, since it is a whole 
package. I will then try  Richard's solution (creating specific layout 
to prevent Lyx to put this code at bottom of preamble), which seemed to 
be more complicated though.


Thanks a lot!

Matthieu



Le 22. 02. 11 12:15, Ingar Pareliussen a écrit :

Hi


The \AtBeginDocument seems indeed to be what I am looking for! But what
is its expected behavior? I still see in both the Lyx-latex sources and
exported .tex the command \AtBeginDocument before the babel/subfig
lines...

\AtBeginDocument is a LaTeX command and should ensure that the command is 
executed
just before \begin{document} even if it is placed before the LyX internal 
command.
The caveat is that some packages also use the command (natbib is one example) 
and
then the last \AtBeginDocument  is placed closes to \begin{document}...

However, if this happens you have to try my other suggestion (the ERT box) or 
export
to LaTeX and change the code and run LaTeX manually.


hth,
Ingar Pareliussen





Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler

Dear Richard

Thanks a lot for your detailed explanation!

Unfortunately, the suggested procedure was without effect: even after 
inserting/reconfiguring/loading the {no subfig} module, Lyx adds 
automatically the lines:


\@ifundefined{showcaptionsetup}{}{%

\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}


Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4

Your help is much appreciated!

Matthieu

Le 21. 02. 11 21:54, Richard Heck a écrit :

On 02/21/2011 11:41 AM, Matthieu Stigler wrote:

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly 
where I should put this command? When in Lyx preamble or in the 
custom .sty it results into error... Did I miss something?



The suggested
Provides subfig 1
command is a LyX layout command, and needs to go into some appropriate 
layout file or module. See chapter 5 of the Customization manual for 
details. In this case, something as simple as what is at the end will 
do. Put it into the layout/ subdirectory of your LyX user directory 
(~/.lyx/, by default, on Linux), and then reconfigure. Then you can 
choose the No subfig module from DocumentSettingsModules, and LyX 
won't (shouldn't!) try to load subfig for you. Note that you could 
also add you other custom commands to such a module and not have to do 
it manually.



Furthermore, yes Lyx still adds preamble commands after user defined, 
see:

[snip]

Due to requirements on package-loading order, some such things do get 
done later.


Richard



#\DeclareLyXModule{No subfig}
#DescriptionBegin
#Supresses loading of subfig package.
#DescriptionEnd

Format 11

Provides subfig 1





Re: SV: SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler

Thanks Ingar for the further explanations!

So the problem is most probably that subfig also uses \AtBeginocument{}, 
so my own \AtBeginDocument does not work... The second solution, using 
the code in ERT, is not possible in my case, since it is a whole 
package. I will then try  Richard's solution (creating specific layout 
to prevent Lyx to put this code at bottom of preamble), which seemed to 
be more complicated though.


Thanks a lot!

Matthieu



Le 22. 02. 11 12:15, Ingar Pareliussen a écrit :

Hi


The \AtBeginDocument seems indeed to be what I am looking for! But what
is its expected behavior? I still see in both the Lyx-latex sources and
exported .tex the command \AtBeginDocument before the babel/subfig
lines...

\AtBeginDocument is a LaTeX command and should ensure that the command is 
executed
just before \begin{document} even if it is placed before the LyX internal 
command.
The caveat is that some packages also use the command (natbib is one example) 
and
then the last \AtBeginDocument  is placed closes to \begin{document}...

However, if this happens you have to try my other suggestion (the ERT box) or 
export
to LaTeX and change the code and run LaTeX manually.


hth,
Ingar Pareliussen





Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler

Dear Richard

Thanks a lot for your detailed explanation!

Unfortunately, the suggested procedure was without effect: even after 
inserting/reconfiguring/loading the {no subfig} module, Lyx adds 
automatically the lines:


\@ifundefined{showcaptionsetup}{}{%

\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}


Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4

Your help is much appreciated!

Matthieu

Le 21. 02. 11 21:54, Richard Heck a écrit :

On 02/21/2011 11:41 AM, Matthieu Stigler wrote:

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly 
where I should put this command? When in Lyx preamble or in the 
custom .sty it results into error... Did I miss something?



The suggested
Provides subfig 1
command is a LyX layout command, and needs to go into some appropriate 
layout file or module. See chapter 5 of the Customization manual for 
details. In this case, something as simple as what is at the end will 
do. Put it into the layout/ subdirectory of your LyX user directory 
(~/.lyx/, by default, on Linux), and then reconfigure. Then you can 
choose the No subfig module from DocumentSettingsModules, and LyX 
won't (shouldn't!) try to load subfig for you. Note that you could 
also add you other custom commands to such a module and not have to do 
it manually.



Furthermore, yes Lyx still adds preamble commands after user defined, 
see:

[snip]

Due to requirements on package-loading order, some such things do get 
done later.


Richard



#\DeclareLyXModule{No subfig}
#DescriptionBegin
#Supresses loading of subfig package.
#DescriptionEnd

Format 11

Provides subfig 1





Re: SV: SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler

Thanks Ingar for the further explanations!

So the problem is most probably that subfig also uses \AtBeginocument{}, 
so my own \AtBeginDocument does not work... The second solution, using 
the code in ERT, is not possible in my case, since it is a whole 
package. I will then try  Richard's solution (creating specific layout 
to prevent Lyx to put this code at bottom of preamble), which seemed to 
be more complicated though.


Thanks a lot!

Matthieu



Le 22. 02. 11 12:15, Ingar Pareliussen a écrit :

Hi


The \AtBeginDocument seems indeed to be what I am looking for! But what
is its expected behavior? I still see in both the Lyx-latex sources and
exported .tex the command \AtBeginDocument before the babel/subfig
lines...

\AtBeginDocument is a LaTeX command and should ensure that the command is 
executed
just before \begin{document} even if it is placed before the LyX internal 
command.
The caveat is that some packages also use the command (natbib is one example) 
and
then the last \AtBeginDocument  is placed closes to \begin{document}...

However, if this happens you have to try my other suggestion (the ERT box) or 
export
to LaTeX and change the code and run LaTeX manually.


hth,
Ingar Pareliussen





Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler

Dear Richard

Thanks a lot for your detailed explanation!

Unfortunately, the suggested procedure was without effect: even after 
inserting/reconfiguring/loading the {no subfig} module, Lyx adds 
automatically the lines:


\@ifundefined{showcaptionsetup}{}{%

\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}


Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4

Your help is much appreciated!

Matthieu

Le 21. 02. 11 21:54, Richard Heck a écrit :

On 02/21/2011 11:41 AM, Matthieu Stigler wrote:

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly 
where I should put this command? When in Lyx preamble or in the 
custom .sty it results into error... Did I miss something?



The suggested
Provides subfig 1
command is a LyX layout command, and needs to go into some appropriate 
layout file or module. See chapter 5 of the Customization manual for 
details. In this case, something as simple as what is at the end will 
do. Put it into the layout/ subdirectory of your LyX user directory 
(~/.lyx/, by default, on Linux), and then reconfigure. Then you can 
choose the "No subfig" module from Document>Settings>Modules, and LyX 
won't (shouldn't!) try to load subfig for you. Note that you could 
also add you other custom commands to such a module and not have to do 
it manually.



Furthermore, yes Lyx still adds preamble commands after user defined, 
see:

[snip]

Due to requirements on package-loading order, some such things do get 
done later.


Richard



#\DeclareLyXModule{No subfig}
#DescriptionBegin
#Supresses loading of subfig package.
#DescriptionEnd

Format 11

Provides subfig 1





Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler

Dear Lyx List

I am using a custom package that redefines captions style. But when I 
use the subfigure function, Lyx will add at end of preamble (after user 
own packages preamble) a line of code, which cancels my definition. 
This line is:


\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}


This has the effect to remove all our definitions of caption style. How 
can I resolve this? Should I

-prevent lyx to add this line? How?
-force Lyx to add my \usepackage{} command afterthis line? Is this possible?
-use a workaround where I try to define in the custom package 
showcaptionsetup, so that the line does not run?



Thanks a lot!!

Matthieu


Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly where 
I should put this command? When in Lyx preamble or in the custom .sty it 
results into error... Did I miss something?


Furthermore, yes Lyx still adds preamble commands after user defined, see:

%% User specified LaTeX commands.

% This file was converted to LaTeX by Writer2LaTeX ver. 1.1.5

% see http://writer2latex.sourceforge.net for more info


\usepackage{../custom}

\usepackage{subfig}

\@ifundefined{showcaptionsetup}{}{%

\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}

\makeatother

\usepackage{babel}

\begin{document}


Is there a way to avoid this?

Thanks!

Matthieu
Le 21. 02. 11 17:06, Richard Heck a écrit :

On 02/21/2011 09:41 AM, Matthieu Stigler wrote:

Dear Lyx List

I am using a custom package that redefines captions style. But when I 
use the subfigure function, Lyx will add at end of preamble (after 
user own packages preamble) a line of code, which cancels my 
definition. This line is:


\@ifundefined{showcaptionsetup}{}{%





\PassOptionsToPackage{caption=false}{subfig}}




This has the effect to remove all our definitions of caption style. 
How can I resolve this? Should I

-prevent lyx to add this line? How?


You can add to a layout file or module somewhere:
Provides subfig 1
That should prevent LyX from loading that package automatically.

-force Lyx to add my \usepackage{} command afterthis line? Is this 
possible?



Anything you put in your preamble goes after anything LyX adds.

Richard





Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler

Dear Lyx List

I am using a custom package that redefines captions style. But when I 
use the subfigure function, Lyx will add at end of preamble (after user 
own packages preamble) a line of code, which cancels my definition. 
This line is:


\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}


This has the effect to remove all our definitions of caption style. How 
can I resolve this? Should I

-prevent lyx to add this line? How?
-force Lyx to add my \usepackage{} command afterthis line? Is this possible?
-use a workaround where I try to define in the custom package 
showcaptionsetup, so that the line does not run?



Thanks a lot!!

Matthieu


Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly where 
I should put this command? When in Lyx preamble or in the custom .sty it 
results into error... Did I miss something?


Furthermore, yes Lyx still adds preamble commands after user defined, see:

%% User specified LaTeX commands.

% This file was converted to LaTeX by Writer2LaTeX ver. 1.1.5

% see http://writer2latex.sourceforge.net for more info


\usepackage{../custom}

\usepackage{subfig}

\@ifundefined{showcaptionsetup}{}{%

\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}

\makeatother

\usepackage{babel}

\begin{document}


Is there a way to avoid this?

Thanks!

Matthieu
Le 21. 02. 11 17:06, Richard Heck a écrit :

On 02/21/2011 09:41 AM, Matthieu Stigler wrote:

Dear Lyx List

I am using a custom package that redefines captions style. But when I 
use the subfigure function, Lyx will add at end of preamble (after 
user own packages preamble) a line of code, which cancels my 
definition. This line is:


\@ifundefined{showcaptionsetup}{}{%





\PassOptionsToPackage{caption=false}{subfig}}




This has the effect to remove all our definitions of caption style. 
How can I resolve this? Should I

-prevent lyx to add this line? How?


You can add to a layout file or module somewhere:
Provides subfig 1
That should prevent LyX from loading that package automatically.

-force Lyx to add my \usepackage{} command afterthis line? Is this 
possible?



Anything you put in your preamble goes after anything LyX adds.

Richard





Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler

Dear Lyx List

I am using a custom package that redefines captions style. But when I 
use the subfigure function, Lyx will add at end of preamble (after user 
own packages preamble) a line of code, which "cancels" my definition. 
This line is:


\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}


This has the effect to remove all our definitions of caption style. How 
can I resolve this? Should I

-prevent lyx to add this line? How?
-force Lyx to add my \usepackage{} command afterthis line? Is this possible?
-use a workaround where I try to define in the custom package 
showcaptionsetup, so that the line does not run?



Thanks a lot!!

Matthieu


Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler

Dear Richard

Thanks for your answer! I unfortunately did not understand exactly where 
I should put this command? When in Lyx preamble or in the custom .sty it 
results into error... Did I miss something?


Furthermore, yes Lyx still adds preamble commands after user defined, see:

%% User specified LaTeX commands.

% This file was converted to LaTeX by Writer2LaTeX ver. 1.1.5

% see http://writer2latex.sourceforge.net for more info


\usepackage{../custom}

\usepackage{subfig}

\@ifundefined{showcaptionsetup}{}{%

\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}

\makeatother

\usepackage{babel}

\begin{document}


Is there a way to avoid this?

Thanks!

Matthieu
Le 21. 02. 11 17:06, Richard Heck a écrit :

On 02/21/2011 09:41 AM, Matthieu Stigler wrote:

Dear Lyx List

I am using a custom package that redefines captions style. But when I 
use the subfigure function, Lyx will add at end of preamble (after 
user own packages preamble) a line of code, which "cancels" my 
definition. This line is:


\@ifundefined{showcaptionsetup}{}{%





\PassOptionsToPackage{caption=false}{subfig}}




This has the effect to remove all our definitions of caption style. 
How can I resolve this? Should I

-prevent lyx to add this line? How?


You can add to a layout file or module somewhere:
Provides subfig 1
That should prevent LyX from loading that package automatically.

-force Lyx to add my \usepackage{} command afterthis line? Is this 
possible?



Anything you put in your preamble goes after anything LyX adds.

Richard





Re: Can't create a pdf when the document contains a pdf in a mounted drive

2011-01-20 Thread Matthieu Stigler

Hi

I have the same problem as documented here (also Ubuntu 10.4 but Lyx 
1.6.5) : can't include a graphic if on a samba share.


The error message is not very verbose:
Package pdftex.def: Error File (file path)

The path is:
/media/S/.../pdf/Chap_1_Fig_1_cer_prices.pdf

The pronostic of P Rubin seems verified, in the sense that the file does 
not seem to be copied into the /tmp/... folder.


Clara, could you resolve the problem in the meanwhile? Any idea?

Thanks!

Subject: Re: Can't create a pdf when the document contains a pdf in a 
mounted drive 
http://news.gmane.org/find-root.php?message_id=%3ci5dta0%242qa%241%40dough.gmane.org%3e
Newsgroups: gmane.editors.lyx.general 
http://news.gmane.org/gmane.editors.lyx.general
Date: 2010-08-29 15:10:56 GMT (20 weeks, 3 days, 19 hours and 13 minutes 
ago)


On 8/29/2010 9:45 AM, Clara Anton wrote:

 Hi,
 I am using Lyx 1.6.7 on Ubuntu 10.04. I have a*document*  with several figures 
in
 *pdf*  format. The*pdf*  files are stored in a*mounted*  windows share. 
The*document*  is
 stored in the same share. When I try to make a*pdf*  from the*document*  I get 
an
 error Package*pdf*tex.def Error: File 'O_media_H. If I move the*pdf*  
files
 to any other*drive*  (e.g. external hard*drive*) it works fine. I tried 
to*create*  a
 dvi or ps, but I get the same type of error.


What is the full error message for one of the files, and exactly how is
the file path entered into the graphics widget in LyX?  LyX needs to
copy all included files to the temp directory (deliberately fiddling
with their names), and chances are the files from the Samba share are
not being copied correctly, but the question is why.

/Paul




Re: Can't create a pdf when the document contains a pdf in a mounted drive

2011-01-20 Thread Matthieu Stigler

Hi

I have the same problem as documented here (also Ubuntu 10.4 but Lyx 
1.6.5) : can't include a graphic if on a samba share.


The error message is not very verbose:
Package pdftex.def: Error File (file path)

The path is:
/media/S/.../pdf/Chap_1_Fig_1_cer_prices.pdf

The pronostic of P Rubin seems verified, in the sense that the file does 
not seem to be copied into the /tmp/... folder.


Clara, could you resolve the problem in the meanwhile? Any idea?

Thanks!

Subject: Re: Can't create a pdf when the document contains a pdf in a 
mounted drive 
http://news.gmane.org/find-root.php?message_id=%3ci5dta0%242qa%241%40dough.gmane.org%3e
Newsgroups: gmane.editors.lyx.general 
http://news.gmane.org/gmane.editors.lyx.general
Date: 2010-08-29 15:10:56 GMT (20 weeks, 3 days, 19 hours and 13 minutes 
ago)


On 8/29/2010 9:45 AM, Clara Anton wrote:

 Hi,
 I am using Lyx 1.6.7 on Ubuntu 10.04. I have a*document*  with several figures 
in
 *pdf*  format. The*pdf*  files are stored in a*mounted*  windows share. 
The*document*  is
 stored in the same share. When I try to make a*pdf*  from the*document*  I get 
an
 error Package*pdf*tex.def Error: File 'O_media_H. If I move the*pdf*  
files
 to any other*drive*  (e.g. external hard*drive*) it works fine. I tried 
to*create*  a
 dvi or ps, but I get the same type of error.


What is the full error message for one of the files, and exactly how is
the file path entered into the graphics widget in LyX?  LyX needs to
copy all included files to the temp directory (deliberately fiddling
with their names), and chances are the files from the Samba share are
not being copied correctly, but the question is why.

/Paul




Re: Can't create a pdf when the document contains a pdf in a mounted drive

2011-01-20 Thread Matthieu Stigler

Hi

I have the same problem as documented here (also Ubuntu 10.4 but Lyx 
1.6.5) : can't include a graphic if on a samba share.


The error message is not very verbose:
Package pdftex.def: Error File (file path)

The path is:
/media/S/.../pdf/Chap_1_Fig_1_cer_prices.pdf

The pronostic of P Rubin seems verified, in the sense that the file does 
not seem to be copied into the /tmp/... folder.


Clara, could you resolve the problem in the meanwhile? Any idea?

Thanks!

Subject: Re: Can't create a pdf when the document contains a pdf in a 
mounted drive 

Newsgroups: gmane.editors.lyx.general 

Date: 2010-08-29 15:10:56 GMT (20 weeks, 3 days, 19 hours and 13 minutes 
ago)


On 8/29/2010 9:45 AM, Clara Anton wrote:

 Hi,
 I am using Lyx 1.6.7 on Ubuntu 10.04. I have a*document*  with several figures 
in
 *pdf*  format. The*pdf*  files are stored in a*mounted*  windows share. 
The*document*  is
 stored in the same share. When I try to make a*pdf*  from the*document*  I get 
an
 error "Package*pdf*tex.def Error: File 'O_media_H". If I move the*pdf*  
files
 to any other*drive*  (e.g. external hard*drive*) it works fine. I tried 
to*create*  a
 dvi or ps, but I get the same type of error.


What is the full error message for one of the files, and exactly how is
the file path entered into the graphics widget in LyX?  LyX needs to
copy all included files to the temp directory (deliberately fiddling
with their names), and chances are the files from the Samba share are
not being copied correctly, but the question is why.

/Paul




Re: How to use local package outside a texmf path?

2011-01-17 Thread Matthieu Stigler

Dear Stefano

Thanks a lot for checking and providing this information. The strange 
thing is that I use 1.6.5, so one should assume that if it is fine on 
1.5.8, it is fine on 1.6.5. Or are you actually in 1.6.8 (I think the 
default for Ubuntu 10.10)?


Thanks a lot

Matthieu

Le 15. 01. 11 17:25, stefano franchi a écrit :



On Fri, Jan 14, 2011 at 3:13 AM, Matthieu Stigler 
matthieu.stig...@gmail.com mailto:matthieu.stig...@gmail.com wrote:


Hi

Thanks to you Christopher, Paul and Richard for your answer! Sorry
if I did not thank earlier, I had not realised (not e-mail notif)
that you had replied! Below my answer

  You have a space in the path to the file.  Does it work if
you escape the space?

Or rename the file to eliminate it?  Linux sometimes doesn't
play well with filenames containing whitespace.

Chris Menzel


Unfortunately, it still does not work even when the path contains
no spaces. Also, it does not work neither with relative or
absolute paths. Most surpsisingly, it does not work even when I
put the .sty file in the temp file used by Lyx...

Do you have any idea how I can use a package that is not in the
texmf tree? I just tried adding this package:

http://svn.r-project.org/R/trunk/share/texmf/tex/latex/Sweave.sty

Do you have the same problem on your confugrations (mine is Lyx
1.5.6 on Ubuntu 10.4)?


Hi Mat,

I can offer no specific help, but I can confirm that loading packages 
outside of the texmf tree works for me when you specify the absolute 
path. I often use lines such as:
\usepackage{/home/stefano/Papers/The-paper-I-am-working-on/Package-file.sty} 



I am on Ubuntu 10.10 with Texlive 2010 and Lyx 1.5.8.

Have you thought about putting your packages in the local branch of 
the texmf tree, though? In my understanding,  ~/texmf is meant to be 
used for personal packages, customized versions of standard packages, 
etc. I had the habit of working with customized LaTeX code in the 
document´s directory, but I then switched to the local branch of the 
texmf tree and I think it works better. Less clutter, fewer 
possibilities of version conflicts, etcetera.


Cheer,

Stefano


Thanks a lot

Matthieu



Le 30. 12. 10 13:59, Richard Heck a écrit :

On 12/30/2010 07:00 AM, mat wrote:

Hi

I wish to use local latex class in my lyx document. Were
it pure latex code, I could have written:
\usepackage{./newclass}

when the .sty is at the same level than the .tex. Now, I
have some problems doing so with lyx, I tried adding this
in the preamble, either with a relative path or an
absolute one, but unfortunately it does unfortunately not
work, I get an error message...
Latex Error: File newclass.sty not found

And below the error message, a quite cryptic: cannot \read
from terminal in nonstop mode...

Do you see what I do wrong? I checked the doc but did not
find mention on how to use local packages, is there
something? Do you see how I can solve the problem?

Why not just put the package somewhere LaTeX can find it?

It should work with an absolute path.

Richard







Re: How to use local package outside a texmf path?

2011-01-17 Thread Matthieu Stigler

Dear Stefano

Thanks a lot for checking and providing this information. The strange 
thing is that I use 1.6.5, so one should assume that if it is fine on 
1.5.8, it is fine on 1.6.5. Or are you actually in 1.6.8 (I think the 
default for Ubuntu 10.10)?


Thanks a lot

Matthieu

Le 15. 01. 11 17:25, stefano franchi a écrit :



On Fri, Jan 14, 2011 at 3:13 AM, Matthieu Stigler 
matthieu.stig...@gmail.com mailto:matthieu.stig...@gmail.com wrote:


Hi

Thanks to you Christopher, Paul and Richard for your answer! Sorry
if I did not thank earlier, I had not realised (not e-mail notif)
that you had replied! Below my answer

  You have a space in the path to the file.  Does it work if
you escape the space?

Or rename the file to eliminate it?  Linux sometimes doesn't
play well with filenames containing whitespace.

Chris Menzel


Unfortunately, it still does not work even when the path contains
no spaces. Also, it does not work neither with relative or
absolute paths. Most surpsisingly, it does not work even when I
put the .sty file in the temp file used by Lyx...

Do you have any idea how I can use a package that is not in the
texmf tree? I just tried adding this package:

http://svn.r-project.org/R/trunk/share/texmf/tex/latex/Sweave.sty

Do you have the same problem on your confugrations (mine is Lyx
1.5.6 on Ubuntu 10.4)?


Hi Mat,

I can offer no specific help, but I can confirm that loading packages 
outside of the texmf tree works for me when you specify the absolute 
path. I often use lines such as:
\usepackage{/home/stefano/Papers/The-paper-I-am-working-on/Package-file.sty} 



I am on Ubuntu 10.10 with Texlive 2010 and Lyx 1.5.8.

Have you thought about putting your packages in the local branch of 
the texmf tree, though? In my understanding,  ~/texmf is meant to be 
used for personal packages, customized versions of standard packages, 
etc. I had the habit of working with customized LaTeX code in the 
document´s directory, but I then switched to the local branch of the 
texmf tree and I think it works better. Less clutter, fewer 
possibilities of version conflicts, etcetera.


Cheer,

Stefano


Thanks a lot

Matthieu



Le 30. 12. 10 13:59, Richard Heck a écrit :

On 12/30/2010 07:00 AM, mat wrote:

Hi

I wish to use local latex class in my lyx document. Were
it pure latex code, I could have written:
\usepackage{./newclass}

when the .sty is at the same level than the .tex. Now, I
have some problems doing so with lyx, I tried adding this
in the preamble, either with a relative path or an
absolute one, but unfortunately it does unfortunately not
work, I get an error message...
Latex Error: File newclass.sty not found

And below the error message, a quite cryptic: cannot \read
from terminal in nonstop mode...

Do you see what I do wrong? I checked the doc but did not
find mention on how to use local packages, is there
something? Do you see how I can solve the problem?

Why not just put the package somewhere LaTeX can find it?

It should work with an absolute path.

Richard







Re: How to use local package outside a texmf path?

2011-01-17 Thread Matthieu Stigler

Dear Stefano

Thanks a lot for checking and providing this information. The strange 
thing is that I use 1.6.5, so one should assume that if it is fine on 
1.5.8, it is fine on 1.6.5. Or are you actually in 1.6.8 (I think the 
default for Ubuntu 10.10)?


Thanks a lot

Matthieu

Le 15. 01. 11 17:25, stefano franchi a écrit :



On Fri, Jan 14, 2011 at 3:13 AM, Matthieu Stigler 
<matthieu.stig...@gmail.com <mailto:matthieu.stig...@gmail.com>> wrote:


Hi

Thanks to you Christopher, Paul and Richard for your answer! Sorry
if I did not thank earlier, I had not realised (not e-mail notif)
that you had replied! Below my answer

>  You have a space in the path to the file.  Does it work if
you escape the space?

Or rename the file to eliminate it?  Linux sometimes doesn't
play well with filenames containing whitespace.

Chris Menzel


Unfortunately, it still does not work even when the path contains
no spaces. Also, it does not work neither with relative or
absolute paths. Most surpsisingly, it does not work even when I
put the .sty file in the temp file used by Lyx...

Do you have any idea how I can use a package that is not in the
texmf tree? I just tried adding this package:

http://svn.r-project.org/R/trunk/share/texmf/tex/latex/Sweave.sty

Do you have the same problem on your confugrations (mine is Lyx
1.5.6 on Ubuntu 10.4)?


Hi Mat,

I can offer no specific help, but I can confirm that loading packages 
outside of the texmf tree works for me when you specify the absolute 
path. I often use lines such as:
\usepackage{/home/stefano/Papers/The-paper-I-am-working-on/Package-file.sty} 



I am on Ubuntu 10.10 with Texlive 2010 and Lyx 1.5.8.

Have you thought about putting your packages in the local branch of 
the texmf tree, though? In my understanding,  ~/texmf is meant to be 
used for personal packages, customized versions of standard packages, 
etc. I had the habit of working with customized LaTeX code in the 
document´s directory, but I then switched to the local branch of the 
texmf tree and I think it works better. Less clutter, fewer 
possibilities of version conflicts, etcetera.


Cheer,

Stefano


Thanks a lot

Matthieu



Le 30. 12. 10 13:59, Richard Heck a écrit :

On 12/30/2010 07:00 AM, mat wrote:

Hi

I wish to use local latex class in my lyx document. Were
it pure latex code, I could have written:
\usepackage{./newclass}

when the .sty is at the same level than the .tex. Now, I
have some problems doing so with lyx, I tried adding this
in the preamble, either with a relative path or an
absolute one, but unfortunately it does unfortunately not
work, I get an error message...
Latex Error: File newclass.sty not found

And below the error message, a quite cryptic: cannot \read
from terminal in nonstop mode...

Do you see what I do wrong? I checked the doc but did not
find mention on how to use local packages, is there
something? Do you see how I can solve the problem?

Why not just put the package somewhere LaTeX can find it?

It should work with an absolute path.

Richard







Re: How to use local package outside a texmf path?

2011-01-14 Thread Matthieu Stigler

Hi

Thanks to you Christopher, Paul and Richard for your answer! Sorry if I 
did not thank earlier, I had not realised (not e-mail notif) that you 
had replied! Below my answer

  You have a space in the path to the file.  Does it work if you escape the 
space?

Or rename the file to eliminate it?  Linux sometimes doesn't play well with 
filenames containing whitespace.

Chris Menzel


Unfortunately, it still does not work even when the path contains no 
spaces. Also, it does not work neither with relative or absolute paths. 
Most surpsisingly, it does not work even when I put the .sty file in the 
temp file used by Lyx...


Do you have any idea how I can use a package that is not in the texmf 
tree? I just tried adding this package:

http://svn.r-project.org/R/trunk/share/texmf/tex/latex/Sweave.sty

Do you have the same problem on your confugrations (mine is Lyx 1.5.6 on 
Ubuntu 10.4)?


Thanks a lot

Matthieu


Le 30. 12. 10 13:59, Richard Heck a écrit :

On 12/30/2010 07:00 AM, mat wrote:

Hi

I wish to use local latex class in my lyx document. Were it pure 
latex code, I could have written:

\usepackage{./newclass}

when the .sty is at the same level than the .tex. Now, I have some 
problems doing so with lyx, I tried adding this in the preamble, 
either with a relative path or an absolute one, but unfortunately it 
does unfortunately not work, I get an error message...

Latex Error: File newclass.sty not found

And below the error message, a quite cryptic: cannot \read from 
terminal in nonstop mode...


Do you see what I do wrong? I checked the doc but did not find 
mention on how to use local packages, is there something? Do you see 
how I can solve the problem?



Why not just put the package somewhere LaTeX can find it?

It should work with an absolute path.

Richard





Re: How to use local package outside a texmf path?

2011-01-14 Thread Matthieu Stigler

Hi

Thanks to you Christopher, Paul and Richard for your answer! Sorry if I 
did not thank earlier, I had not realised (not e-mail notif) that you 
had replied! Below my answer

  You have a space in the path to the file.  Does it work if you escape the 
space?

Or rename the file to eliminate it?  Linux sometimes doesn't play well with 
filenames containing whitespace.

Chris Menzel


Unfortunately, it still does not work even when the path contains no 
spaces. Also, it does not work neither with relative or absolute paths. 
Most surpsisingly, it does not work even when I put the .sty file in the 
temp file used by Lyx...


Do you have any idea how I can use a package that is not in the texmf 
tree? I just tried adding this package:

http://svn.r-project.org/R/trunk/share/texmf/tex/latex/Sweave.sty

Do you have the same problem on your confugrations (mine is Lyx 1.5.6 on 
Ubuntu 10.4)?


Thanks a lot

Matthieu


Le 30. 12. 10 13:59, Richard Heck a écrit :

On 12/30/2010 07:00 AM, mat wrote:

Hi

I wish to use local latex class in my lyx document. Were it pure 
latex code, I could have written:

\usepackage{./newclass}

when the .sty is at the same level than the .tex. Now, I have some 
problems doing so with lyx, I tried adding this in the preamble, 
either with a relative path or an absolute one, but unfortunately it 
does unfortunately not work, I get an error message...

Latex Error: File newclass.sty not found

And below the error message, a quite cryptic: cannot \read from 
terminal in nonstop mode...


Do you see what I do wrong? I checked the doc but did not find 
mention on how to use local packages, is there something? Do you see 
how I can solve the problem?



Why not just put the package somewhere LaTeX can find it?

It should work with an absolute path.

Richard





Re: How to use local package outside a texmf path?

2011-01-14 Thread Matthieu Stigler

Hi

Thanks to you Christopher, Paul and Richard for your answer! Sorry if I 
did not thank earlier, I had not realised (not e-mail notif) that you 
had replied! Below my answer

>  You have a space in the path to the file.  Does it work if you escape the 
space?

Or rename the file to eliminate it?  Linux sometimes doesn't play well with 
filenames containing whitespace.

Chris Menzel


Unfortunately, it still does not work even when the path contains no 
spaces. Also, it does not work neither with relative or absolute paths. 
Most surpsisingly, it does not work even when I put the .sty file in the 
temp file used by Lyx...


Do you have any idea how I can use a package that is not in the texmf 
tree? I just tried adding this package:

http://svn.r-project.org/R/trunk/share/texmf/tex/latex/Sweave.sty

Do you have the same problem on your confugrations (mine is Lyx 1.5.6 on 
Ubuntu 10.4)?


Thanks a lot

Matthieu


Le 30. 12. 10 13:59, Richard Heck a écrit :

On 12/30/2010 07:00 AM, mat wrote:

Hi

I wish to use local latex class in my lyx document. Were it pure 
latex code, I could have written:

\usepackage{./newclass}

when the .sty is at the same level than the .tex. Now, I have some 
problems doing so with lyx, I tried adding this in the preamble, 
either with a relative path or an absolute one, but unfortunately it 
does unfortunately not work, I get an error message...

Latex Error: File newclass.sty not found

And below the error message, a quite cryptic: cannot \read from 
terminal in nonstop mode...


Do you see what I do wrong? I checked the doc but did not find 
mention on how to use local packages, is there something? Do you see 
how I can solve the problem?



Why not just put the package somewhere LaTeX can find it?

It should work with an absolute path.

Richard





Re: Beamer: using \pause[2]

2009-10-29 Thread Matthieu Stigler
Using the Opt command did the trick, thanks a lot!!

2009/10/29 Florian Rubach florian.rub...@gmx.de:
 Matthieu Stigler schrieb:

 Hi

 I wish some times to use \pause in Lyx specifying the numer of the
 pause, ie: \pause[5]

 I don't see a way to do it in Lyx 1.6.3 using nice built-in command
 Pause, indeed, selecting style Pause and inserting [5] in ERT mode
 get translated by

 \pause{[5]}

 So I do everything in ERT: \pause[5] and then it gets correct. Is
 there a way to do it in with built-in command Pause? How? If not,
 could I send it as feature request?

 Thanks a lot!

 Matthieu

 Well, it is a bit hidden... You can use Insertshort title, which will give
 you an inset titled Opt, there you can insert your number and everything
 should work.



Beamer: using uncover has not same effect if in block or in itemize

2009-10-29 Thread Matthieu Stigler
Hi

I like to make text appearing on the same line in a second slide using
option uncover.

 While this is working when in enviro block, it is not in enviro
itemize: lyx then adds a new blank line and so text is not shown in
same line. (see code below)

Is this a feature, is there a rationale for having different behaviour
with same action? How can I solve that?

Thanks a lot!!!

Matthieu

\begin{document}

\lyxframeend{}\lyxframe{A small problem}
\begin{block}
{My problem is following}

I want to uncover in blue on same line
\begin{uncoverenv}%{}
2- \textcolor{blue}{$\square$~ok it's working}\end{uncoverenv}%{}
\begin{itemize}
\item {3}-But on a list?

\begin{uncoverenv}%{}
4- \textcolor{blue}{$\square$~it's no more on the same line...
Even if looks same on the GUI}
\end{uncoverenv}%{}
\end{itemize}
\end{block}

\pause[5]{}
\begin{alertblock}
{{Error}}

What should I do?
\end{alertblock}

\lyxframeend{}


\lyxframeend{}


Re: Beamer: using \pause[2]

2009-10-29 Thread Matthieu Stigler
Using the Opt command did the trick, thanks a lot!!

2009/10/29 Florian Rubach florian.rub...@gmx.de:
 Matthieu Stigler schrieb:

 Hi

 I wish some times to use \pause in Lyx specifying the numer of the
 pause, ie: \pause[5]

 I don't see a way to do it in Lyx 1.6.3 using nice built-in command
 Pause, indeed, selecting style Pause and inserting [5] in ERT mode
 get translated by

 \pause{[5]}

 So I do everything in ERT: \pause[5] and then it gets correct. Is
 there a way to do it in with built-in command Pause? How? If not,
 could I send it as feature request?

 Thanks a lot!

 Matthieu

 Well, it is a bit hidden... You can use Insertshort title, which will give
 you an inset titled Opt, there you can insert your number and everything
 should work.



Beamer: using uncover has not same effect if in block or in itemize

2009-10-29 Thread Matthieu Stigler
Hi

I like to make text appearing on the same line in a second slide using
option uncover.

 While this is working when in enviro block, it is not in enviro
itemize: lyx then adds a new blank line and so text is not shown in
same line. (see code below)

Is this a feature, is there a rationale for having different behaviour
with same action? How can I solve that?

Thanks a lot!!!

Matthieu

\begin{document}

\lyxframeend{}\lyxframe{A small problem}
\begin{block}
{My problem is following}

I want to uncover in blue on same line
\begin{uncoverenv}%{}
2- \textcolor{blue}{$\square$~ok it's working}\end{uncoverenv}%{}
\begin{itemize}
\item {3}-But on a list?

\begin{uncoverenv}%{}
4- \textcolor{blue}{$\square$~it's no more on the same line...
Even if looks same on the GUI}
\end{uncoverenv}%{}
\end{itemize}
\end{block}

\pause[5]{}
\begin{alertblock}
{{Error}}

What should I do?
\end{alertblock}

\lyxframeend{}


\lyxframeend{}


Re: Beamer: using \pause[2]

2009-10-29 Thread Matthieu Stigler
Using the "Opt" command did the trick, thanks a lot!!

2009/10/29 Florian Rubach <florian.rub...@gmx.de>:
> Matthieu Stigler schrieb:
>>
>> Hi
>>
>> I wish some times to use \pause in Lyx specifying the numer of the
>> pause, ie: \pause[5]
>>
>> I don't see a way to do it in Lyx 1.6.3 using nice built-in command
>> "Pause", indeed, selecting style "Pause" and inserting [5] in ERT mode
>> get translated by
>>
>> \pause{[5]}
>>
>> So I do everything in ERT: \pause[5] and then it gets correct. Is
>> there a way to do it in with built-in command "Pause"? How? If not,
>> could I send it as feature request?
>>
>> Thanks a lot!
>>
>> Matthieu
>
> Well, it is a bit hidden... You can use Insert>short title, which will give
> you an inset titled "Opt", there you can insert your number and everything
> should work.
>


Beamer: using uncover has not same effect if in block or in itemize

2009-10-29 Thread Matthieu Stigler
Hi

I like to make text appearing on the same line in a second slide using
option uncover.

 While this is working when in enviro block, it is not in enviro
itemize: lyx then adds a new blank line and so text is not shown in
same line. (see code below)

Is this a feature, is there a rationale for having different behaviour
with same action? How can I solve that?

Thanks a lot!!!

Matthieu

\begin{document}

\lyxframeend{}\lyxframe{A small problem}
\begin{block}
{My problem is following}

I want to uncover in blue on same line
\begin{uncoverenv}%{}
<2-> \textcolor{blue}{$\square$~ok it's working}\end{uncoverenv}%{}
\begin{itemize}
\item <{3}->But on a list?

\begin{uncoverenv}%{}
<4-> \textcolor{blue}{$\square$~it's no more on the same line...
Even if looks same on the GUI}
\end{uncoverenv}%{}
\end{itemize}
\end{block}

\pause[5]{}
\begin{alertblock}
{{Error}}

What should I do?
\end{alertblock}

\lyxframeend{}


\lyxframeend{}


Beamer class: how to use \beamerdefaultoverlayspecification?

2009-10-26 Thread Matthieu Stigler
Hi

In beamer class, I like the itemize environment with the possibility
to display each point each at a time using the 1-, 2- etc... I
like it so much that I use it every time and would love to automatize
it. I found the command:

\beamerdefaultoverlayspecification{+-}

whihc does that, but only inside a frame. If I write it in the
preamble, it does not affect anything...

I would love this command to be effective for all frames. Do I need to
redefine frame or is there something easier? Thanks!

Matthieu


Environment description: including two first words

2009-10-26 Thread Matthieu Stigler
Hi

My question seems not so complicated but I did not find on the archives..

I want to use  the enviro description with on one line thw frist two
words (instead of the first one by default) included, as:

\begin{description}
\item [world] it is...
\item [Earth and sun] that is...
\end{description}

Can I do in Lyx or do I have to use it in TeX code mode?

Thanks a lot!

Matthieu


Re: Environment description: including two first words

2009-10-26 Thread Matthieu Stigler
Solved!

That was effectively rather trivial, using the protected space did the trick!

Thanks a lot for your help!!

Matthieu

2009/10/26 Waluyo Adi Siswanto was.u...@gmail.com:
 I think you can try Ctrl+Space which is the protected space. You can
 even use for more than two words.

 WAS

 On Mon, 2009-10-26 at 12:31 +0100, Matthieu Stigler wrote:
 Hi

 My question seems not so complicated but I did not find on the archives..

 I want to use  the enviro description with on one line thw frist two
 words (instead of the first one by default) included, as:

 \begin{description}
 \item [world] it is...
 \item [Earth and sun] that is...
 \end{description}

 Can I do in Lyx or do I have to use it in TeX code mode?

 Thanks a lot!

 Matthieu




Beamer class: how to use \beamerdefaultoverlayspecification?

2009-10-26 Thread Matthieu Stigler
Hi

In beamer class, I like the itemize environment with the possibility
to display each point each at a time using the 1-, 2- etc... I
like it so much that I use it every time and would love to automatize
it. I found the command:

\beamerdefaultoverlayspecification{+-}

whihc does that, but only inside a frame. If I write it in the
preamble, it does not affect anything...

I would love this command to be effective for all frames. Do I need to
redefine frame or is there something easier? Thanks!

Matthieu


Environment description: including two first words

2009-10-26 Thread Matthieu Stigler
Hi

My question seems not so complicated but I did not find on the archives..

I want to use  the enviro description with on one line thw frist two
words (instead of the first one by default) included, as:

\begin{description}
\item [world] it is...
\item [Earth and sun] that is...
\end{description}

Can I do in Lyx or do I have to use it in TeX code mode?

Thanks a lot!

Matthieu


Re: Environment description: including two first words

2009-10-26 Thread Matthieu Stigler
Solved!

That was effectively rather trivial, using the protected space did the trick!

Thanks a lot for your help!!

Matthieu

2009/10/26 Waluyo Adi Siswanto was.u...@gmail.com:
 I think you can try Ctrl+Space which is the protected space. You can
 even use for more than two words.

 WAS

 On Mon, 2009-10-26 at 12:31 +0100, Matthieu Stigler wrote:
 Hi

 My question seems not so complicated but I did not find on the archives..

 I want to use  the enviro description with on one line thw frist two
 words (instead of the first one by default) included, as:

 \begin{description}
 \item [world] it is...
 \item [Earth and sun] that is...
 \end{description}

 Can I do in Lyx or do I have to use it in TeX code mode?

 Thanks a lot!

 Matthieu




Beamer class: how to use \beamerdefaultoverlayspecification?

2009-10-26 Thread Matthieu Stigler
Hi

In beamer class, I like the itemize environment with the possibility
to display each point each at a time using the <1->, <2-> etc... I
like it so much that I use it every time and would love to automatize
it. I found the command:

\beamerdefaultoverlayspecification{<+->}

whihc does that, but only inside a frame. If I write it in the
preamble, it does not affect anything...

I would love this command to be effective for all frames. Do I need to
redefine frame or is there something easier? Thanks!

Matthieu


Environment description: including two first words

2009-10-26 Thread Matthieu Stigler
Hi

My question seems not so complicated but I did not find on the archives..

I want to use  the enviro description with on one line thw frist two
words (instead of the first one by default) included, as:

\begin{description}
\item [world] it is...
\item [Earth and sun] that is...
\end{description}

Can I do in Lyx or do I have to use it in TeX code mode?

Thanks a lot!

Matthieu


Re: Environment description: including two first words

2009-10-26 Thread Matthieu Stigler
Solved!

That was effectively rather trivial, using the protected space did the trick!

Thanks a lot for your help!!

Matthieu

2009/10/26 Waluyo Adi Siswanto <was.u...@gmail.com>:
> I think you can try Ctrl+Space which is the protected space. You can
> even use for more than two words.
>
> WAS
>
> On Mon, 2009-10-26 at 12:31 +0100, Matthieu Stigler wrote:
>> Hi
>>
>> My question seems not so complicated but I did not find on the archives..
>>
>> I want to use  the enviro description with on one line thw frist two
>> words (instead of the first one by default) included, as:
>>
>> \begin{description}
>> \item [world] it is...
>> \item [Earth and sun] that is...
>> \end{description}
>>
>> Can I do in Lyx or do I have to use it in TeX code mode?
>>
>> Thanks a lot!
>>
>> Matthieu
>
>


using customised .sty package

2008-12-17 Thread Matthieu Stigler

Hello

I use the option Sweave to insert R code into my lyx documents. I like 
to modify the default sweave.sty to obtain customised features. When 
modified, I then just put the .sty file into the same folder as my .tex 
and run latex: so the customised one is used rather than the original 
.sty (well this work at least with package Sweave, I don't know if this 
is the proper way).


I would love to do it with lyx but the problem is it uses the default 
package even if I put the .syt package in the same folder as my .lyx 
file. The solution I found is to move myself the customised package into 
the tmp (on Linux) directory and then it works. But is there a way to do 
it automatically? I have lyx 1.5.5 and R 2.7 on Ubuntu 8.04


Thanks!

Mat



using customised .sty package

2008-12-17 Thread Matthieu Stigler

Hello

I use the option Sweave to insert R code into my lyx documents. I like 
to modify the default sweave.sty to obtain customised features. When 
modified, I then just put the .sty file into the same folder as my .tex 
and run latex: so the customised one is used rather than the original 
.sty (well this work at least with package Sweave, I don't know if this 
is the proper way).


I would love to do it with lyx but the problem is it uses the default 
package even if I put the .syt package in the same folder as my .lyx 
file. The solution I found is to move myself the customised package into 
the tmp (on Linux) directory and then it works. But is there a way to do 
it automatically? I have lyx 1.5.5 and R 2.7 on Ubuntu 8.04


Thanks!

Mat



using customised .sty package

2008-12-17 Thread Matthieu Stigler

Hello

I use the option Sweave to insert R code into my lyx documents. I like 
to modify the default sweave.sty to obtain customised features. When 
modified, I then just put the .sty file into the same folder as my .tex 
and run latex: so the customised one is used rather than the original 
.sty (well this work at least with package Sweave, I don't know if this 
is the proper way).


I would love to do it with lyx but the problem is it uses the default 
package even if I put the .syt package in the same folder as my .lyx 
file. The solution I found is to move myself the customised package into 
the tmp (on Linux) directory and then it works. But is there a way to do 
it automatically? I have lyx 1.5.5 and R 2.7 on Ubuntu 8.04


Thanks!

Mat



Re: Include image in title page when documentclass = report

2008-08-23 Thread Matthieu Stigler


On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote:
 Hello
 
 I want to include an image in the title page. However, I see that using 
 the class report puts automatically the image at the second page... is 
 there a way to force the image to be on the first page within report 
 documentclass? thank you!
 
 Mat


You can use (for example) Ctrl-Enter after your Title Environment
then InsertGraphics ...
The image will be located in the title page after the Title.

/Adi
  
Thank you for your help! I tried it and this works, but I'm unable to 
put spaces between the title and the image.
As I wish to make something more complicate (a logo at the top, a 
picture at the bottom), I  tried to use the \begin{titlepage} 
environment. This works but not entirely since the pictures are printed 
whith pdflatex (version pdf of the pictures) but not with the postscript 
(version pdf of the pictures). And there is still a spacing problem, the 
first image comes at the middle and not at the top... maybe should I 
just forget this idea and make myself the first page in a usual 
environment and then see with the counting of the images?


Thank you!!

Mattheiu


Re: Include image in title page when documentclass = report

2008-08-23 Thread Matthieu Stigler


On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote:
 Hello
 
 I want to include an image in the title page. However, I see that using 
 the class report puts automatically the image at the second page... is 
 there a way to force the image to be on the first page within report 
 documentclass? thank you!
 
 Mat


You can use (for example) Ctrl-Enter after your Title Environment
then InsertGraphics ...
The image will be located in the title page after the Title.

/Adi
  
Thank you for your help! I tried it and this works, but I'm unable to 
put spaces between the title and the image.
As I wish to make something more complicate (a logo at the top, a 
picture at the bottom), I  tried to use the \begin{titlepage} 
environment. This works but not entirely since the pictures are printed 
whith pdflatex (version pdf of the pictures) but not with the postscript 
(version pdf of the pictures). And there is still a spacing problem, the 
first image comes at the middle and not at the top... maybe should I 
just forget this idea and make myself the first page in a usual 
environment and then see with the counting of the images?


Thank you!!

Mattheiu


Re: Include image in title page when documentclass = report

2008-08-23 Thread Matthieu Stigler


On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote:
> Hello
> 
> I want to include an image in the title page. However, I see that using 
> the class "report" puts automatically the image at the second page... is 
> there a way to force the image to be on the first page within report 
> documentclass? thank you!
> 
> Mat


You can use (for example) Ctrl-Enter after your Title Environment
then Insert>Graphics ...
The image will be located in the title page after the Title.

/Adi
  
Thank you for your help! I tried it and this works, but I'm unable to 
put spaces between the title and the image.
As I wish to make something more complicate (a logo at the top, a 
picture at the bottom), I  tried to use the \begin{titlepage} 
environment. This works but not entirely since the pictures are printed 
whith pdflatex (version pdf of the pictures) but not with the postscript 
(version pdf of the pictures). And there is still a spacing problem, the 
first image comes at the middle and not at the top... maybe should I 
just forget this idea and make myself the first page in a usual 
environment and then see with the counting of the images?


Thank you!!

Mattheiu


Include image in title page when documentclass = report

2008-08-22 Thread Matthieu Stigler

Hello

I want to include an image in the title page. However, I see that using 
the class report puts automatically the image at the second page... is 
there a way to force the image to be on the first page within report 
documentclass? thank you!


Mat


Include image in title page when documentclass = report

2008-08-22 Thread Matthieu Stigler

Hello

I want to include an image in the title page. However, I see that using 
the class report puts automatically the image at the second page... is 
there a way to force the image to be on the first page within report 
documentclass? thank you!


Mat


Include image in title page when documentclass = report

2008-08-22 Thread Matthieu Stigler

Hello

I want to include an image in the title page. However, I see that using 
the class "report" puts automatically the image at the second page... is 
there a way to force the image to be on the first page within report 
documentclass? thank you!


Mat


Gui acess to \nocite )

2008-08-14 Thread Matthieu Stigler

Hello

I just discovered Lyx and use it since twodays (really nice!) so excuse 
me if my question is dummy, but I did not find any answer in the manuals 
of forums.


Is there a Gui acess to \nocite? From the menu I have only access to 
\cite... should I make it through tex code insertion?


And I have the same question for the option \setlanguage... Is there 
actually a page on document which present all in Gui implemented Latex 
functions and those which you have towrite through Tex code?


Thank you very much!!

Matthieu


Gui acess to \nocite )

2008-08-14 Thread Matthieu Stigler

Hello

I just discovered Lyx and use it since twodays (really nice!) so excuse 
me if my question is dummy, but I did not find any answer in the manuals 
of forums.


Is there a Gui acess to \nocite? From the menu I have only access to 
\cite... should I make it through tex code insertion?


And I have the same question for the option \setlanguage... Is there 
actually a page on document which present all in Gui implemented Latex 
functions and those which you have towrite through Tex code?


Thank you very much!!

Matthieu


Gui acess to \nocite )

2008-08-14 Thread Matthieu Stigler

Hello

I just discovered Lyx and use it since twodays (really nice!) so excuse 
me if my question is dummy, but I did not find any answer in the manuals 
of forums.


Is there a Gui acess to \nocite? From the menu I have only access to 
\cite... should I make it through tex code insertion?


And I have the same question for the option \setlanguage... Is there 
actually a page on document which present all in Gui implemented Latex 
functions and those which you have towrite through Tex code?


Thank you very much!!

Matthieu


problem of font

2006-02-28 Thread matthieu gaudet
hi everybody,
something strange happens to my lyx.
I try to explain the best I can:
on the lyx page, the é became kh with the h underlines and the
F is now a little black door. there many other changes but I can't
enumerate all of them.
When I create the pdf files related to my document, everything is ok!

I tried to uninstall lyx and reinstall it. nothing change...

so my question is : Does anybody know how to make this stop?
that all.

thanks you.

matthieu



problem of font

2006-02-28 Thread matthieu gaudet
hi everybody,
something strange happens to my lyx.
I try to explain the best I can:
on the lyx page, the é became kh with the h underlines and the
F is now a little black door. there many other changes but I can't
enumerate all of them.
When I create the pdf files related to my document, everything is ok!

I tried to uninstall lyx and reinstall it. nothing change...

so my question is : Does anybody know how to make this stop?
that all.

thanks you.

matthieu



problem of font

2006-02-28 Thread matthieu gaudet
hi everybody,
something strange happens to my lyx.
I try to explain the best I can:
on the "lyx page", the "é" became "kh" with the "h" underlines and the
"F" is now a little black door. there many other changes but I can't
enumerate all of them.
When I create the pdf files related to my document, everything is ok!

I tried to uninstall lyx and reinstall it. nothing change...

so my question is : Does anybody know how to make this stop?
that all.

thanks you.

matthieu



Re: troubles converting to pdf [Partially solved]

2002-11-25 Thread Matthieu Amiguet
I go on answering my own questions, hoping that it will help somebody else.

  I'm using the book class and I've got no problem when exporting to ps.
  However, when exporting to pdf, I've got three problems:
 
  - Whenever my document contains a completely blank page, acroread
  complains There was an error processing this page. The page contents
  object has the wrong type. This only happens in windows, acroread in
  linux doesn't complain.


This seems to be a known bug in ghostscript. I think it is fixed in CVS, but 
not in any official release. Please correct me if I'm wrong.
BTW, the problem does not occur only on Windows,  it does occur with acroread 
versions 5.0 and above (and I have 4.x on my linux box). It seems that 
acroread 5.x is much more strict on pdf specs...

  - all pages are shifted a few centimeters towards the bottom of the page.
  Things near the bottom jump out of the page.

 Funny... this occurs only when I use the hyperref package.
 I've got the hyperref 6.71 version, which is loaded last in my preamble
 (when exported to latex, babel is loaded after that, but I've got no
 control on this).
 If this is relevant, I've got gs version 6.51


This is still not solved.

I guess I'm going to use good old ps for my thesis...

Matthieu



Re: troubles converting to pdf [Partially solved]

2002-11-25 Thread Matthieu Amiguet
I go on answering my own questions, hoping that it will help somebody else.

  I'm using the book class and I've got no problem when exporting to ps.
  However, when exporting to pdf, I've got three problems:
 
  - Whenever my document contains a completely blank page, acroread
  complains There was an error processing this page. The page contents
  object has the wrong type. This only happens in windows, acroread in
  linux doesn't complain.


This seems to be a known bug in ghostscript. I think it is fixed in CVS, but 
not in any official release. Please correct me if I'm wrong.
BTW, the problem does not occur only on Windows,  it does occur with acroread 
versions 5.0 and above (and I have 4.x on my linux box). It seems that 
acroread 5.x is much more strict on pdf specs...

  - all pages are shifted a few centimeters towards the bottom of the page.
  Things near the bottom jump out of the page.

 Funny... this occurs only when I use the hyperref package.
 I've got the hyperref 6.71 version, which is loaded last in my preamble
 (when exported to latex, babel is loaded after that, but I've got no
 control on this).
 If this is relevant, I've got gs version 6.51


This is still not solved.

I guess I'm going to use good old ps for my thesis...

Matthieu



Re: troubles converting to pdf [Partially solved]

2002-11-25 Thread Matthieu Amiguet
I go on answering my own questions, hoping that it will help somebody else.

> > I'm using the book class and I've got no problem when exporting to ps.
> > However, when exporting to pdf, I've got three problems:
> >
> > - Whenever my document contains a completely blank page, acroread
> > complains "There was an error processing this page. The page contents
> > object has the wrong type". This only happens in windows, acroread in
> > linux doesn't complain.
>

This seems to be a known bug in ghostscript. I think it is fixed in CVS, but 
not in any official release. Please correct me if I'm wrong.
BTW, the problem does not occur only on Windows,  it does occur with acroread 
versions 5.0 and above (and I have 4.x on my linux box). It seems that 
acroread 5.x is much more strict on pdf specs...

> > - all pages are shifted a few centimeters towards the bottom of the page.
> > Things near the bottom jump out of the page.
>
> Funny... this occurs only when I use the hyperref package.
> I've got the hyperref 6.71 version, which is loaded last in my preamble
> (when exported to latex, babel is loaded after that, but I've got no
> control on this).
> If this is relevant, I've got gs version 6.51
>

This is still not solved.

I guess I'm going to use good old ps for my thesis...

Matthieu



Re: troubles converting to pdf [Partially solved]

2002-11-22 Thread Matthieu Amiguet
This is to answer my own posting. I found out some things, and some other 
remain obscure...

 I'm using the book class and I've got no problem when exporting to ps.
 However, when exporting to pdf, I've got three problems:

 - Whenever my document contains a completely blank page, acroread
 complains There was an error processing this page. The page contents
 object has the wrong type. This only happens in windows, acroread in linux
 doesn't complain.

This is not solved. Any help welcome. Blank pages are generated by this 
comment in my preamble:

  \let\cdp=\cleardoublepage
  \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\cdp}}

(Because I don't like to have page numbers and headers on a blank page at the 
end of a chapter)


 - when converting to pdf, I've got the message
 dvips: Warning: missing glyph `guillemotleft'
 dvips: Warning: missing glyph `guillemotright'
 ... And the french double quotes  and  don't display in the pdf file.


I found out that I've got to use the aeguill package too. Perhaps this 
should appear in section 5.3.6.2 of the french Extended features help file?

 - all pages are shifted a few centimeters towards the bottom of the page.
 Things near the bottom jump out of the page.


Funny... this occurs only when I use the hyperref package.
I've got the hyperref 6.71 version, which is loaded last in my preamble (when 
exported to latex, babel is loaded after that, but I've got no control on 
this).
If this is relevant, I've got gs version 6.51

Thank you for any help,

Matthieu



Re: troubles converting to pdf [Partially solved]

2002-11-22 Thread Matthieu Amiguet
This is to answer my own posting. I found out some things, and some other 
remain obscure...

 I'm using the book class and I've got no problem when exporting to ps.
 However, when exporting to pdf, I've got three problems:

 - Whenever my document contains a completely blank page, acroread
 complains There was an error processing this page. The page contents
 object has the wrong type. This only happens in windows, acroread in linux
 doesn't complain.

This is not solved. Any help welcome. Blank pages are generated by this 
comment in my preamble:

  \let\cdp=\cleardoublepage
  \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\cdp}}

(Because I don't like to have page numbers and headers on a blank page at the 
end of a chapter)


 - when converting to pdf, I've got the message
 dvips: Warning: missing glyph `guillemotleft'
 dvips: Warning: missing glyph `guillemotright'
 ... And the french double quotes  and  don't display in the pdf file.


I found out that I've got to use the aeguill package too. Perhaps this 
should appear in section 5.3.6.2 of the french Extended features help file?

 - all pages are shifted a few centimeters towards the bottom of the page.
 Things near the bottom jump out of the page.


Funny... this occurs only when I use the hyperref package.
I've got the hyperref 6.71 version, which is loaded last in my preamble (when 
exported to latex, babel is loaded after that, but I've got no control on 
this).
If this is relevant, I've got gs version 6.51

Thank you for any help,

Matthieu



Re: troubles converting to pdf [Partially solved]

2002-11-22 Thread Matthieu Amiguet
This is to answer my own posting. I found out some things, and some other 
remain obscure...

> I'm using the book class and I've got no problem when exporting to ps.
> However, when exporting to pdf, I've got three problems:
>
> - Whenever my document contains a completely blank page, acroread
> complains "There was an error processing this page. The page contents
> object has the wrong type". This only happens in windows, acroread in linux
> doesn't complain.

This is not solved. Any help welcome. Blank pages are generated by this 
comment in my preamble:

  \let\cdp=\cleardoublepage
  \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\cdp}}

(Because I don't like to have page numbers and headers on a blank page at the 
end of a chapter)

>
> - when converting to pdf, I've got the message
> dvips: Warning: missing glyph `guillemotleft'
> dvips: Warning: missing glyph `guillemotright'
> ... And the french double quotes << and >> don't display in the pdf file.
>

I found out that I've got to use the "aeguill" package too. Perhaps this 
should appear in section 5.3.6.2 of the french "Extended features" help file?

> - all pages are shifted a few centimeters towards the bottom of the page.
> Things near the bottom jump out of the page.
>

Funny... this occurs only when I use the hyperref package.
I've got the hyperref 6.71 version, which is loaded last in my preamble (when 
exported to latex, babel is loaded after that, but I've got no control on 
this).
If this is relevant, I've got gs version 6.51

Thank you for any help,

Matthieu



troubles converting to pdf

2002-11-19 Thread Matthieu Amiguet
I tried to convert my Ph.D. to pdf, using ae and aecompl to get vector cm 
fonts.

I'm using the book class and I've got no problem when exporting to ps. 
However, when exporting to pdf, I've got three problems:

- Whenever my document contains a completely blank page, acroread
complains There was an error processing this page. The page contents object 
has the wrong type. This only happens in windows, acroread in linux doesn't 
complain.

- when converting to pdf, I've got the message 
dvips: Warning: missing glyph `guillemotleft'
dvips: Warning: missing glyph `guillemotright'
... And the french double quotes  and  don't display in the pdf file.

- all pages are shifted a few centimeters towards the bottom of the page. 
Things near the bottom jump out of the page.

Thank you for your help,

Matthieu



troubles converting to pdf

2002-11-19 Thread Matthieu Amiguet
I tried to convert my Ph.D. to pdf, using ae and aecompl to get vector cm 
fonts.

I'm using the book class and I've got no problem when exporting to ps. 
However, when exporting to pdf, I've got three problems:

- Whenever my document contains a completely blank page, acroread
complains There was an error processing this page. The page contents object 
has the wrong type. This only happens in windows, acroread in linux doesn't 
complain.

- when converting to pdf, I've got the message 
dvips: Warning: missing glyph `guillemotleft'
dvips: Warning: missing glyph `guillemotright'
... And the french double quotes  and  don't display in the pdf file.

- all pages are shifted a few centimeters towards the bottom of the page. 
Things near the bottom jump out of the page.

Thank you for your help,

Matthieu



troubles converting to pdf

2002-11-19 Thread Matthieu Amiguet
I tried to convert my Ph.D. to pdf, using ae and aecompl to get vector cm 
fonts.

I'm using the book class and I've got no problem when exporting to ps. 
However, when exporting to pdf, I've got three problems:

- Whenever my document contains a completely blank page, acroread
complains "There was an error processing this page. The page contents object 
has the wrong type". This only happens in windows, acroread in linux doesn't 
complain.

- when converting to pdf, I've got the message 
dvips: Warning: missing glyph `guillemotleft'
dvips: Warning: missing glyph `guillemotright'
... And the french double quotes << and >> don't display in the pdf file.

- all pages are shifted a few centimeters towards the bottom of the page. 
Things near the bottom jump out of the page.

Thank you for your help,

Matthieu



Re: Itemize in table

2002-10-27 Thread Matthieu Amiguet
I'm still not able to use minipages in tables...

 put the cursor in the minipage and click right mouse...


If you mean put the cursor in the _cell_ and click right mouse, then it 
does not work for me: the minipage option is disabled.
If you mean something else, can you please give me some more detail...

Thank you,

Matthieu



Re: Itemize in table

2002-10-27 Thread Matthieu Amiguet
 not in the _cell_ but insert a minipage in the _cell_ with command Insert
 - Minipage. Then put the cursor in the minipage field by clicking
 minipage button. Click right mouse to view the minipage option. Type your
 items in this minipage...

I thought I had tried something like this, but obviously not exactly that... 
it works now, thank you.

Matthieu



Re: Itemize in table

2002-10-27 Thread Matthieu Amiguet
I'm still not able to use minipages in tables...

 put the cursor in the minipage and click right mouse...


If you mean put the cursor in the _cell_ and click right mouse, then it 
does not work for me: the minipage option is disabled.
If you mean something else, can you please give me some more detail...

Thank you,

Matthieu



Re: Itemize in table

2002-10-27 Thread Matthieu Amiguet
 not in the _cell_ but insert a minipage in the _cell_ with command Insert
 - Minipage. Then put the cursor in the minipage field by clicking
 minipage button. Click right mouse to view the minipage option. Type your
 items in this minipage...

I thought I had tried something like this, but obviously not exactly that... 
it works now, thank you.

Matthieu



Re: Itemize in table

2002-10-27 Thread Matthieu Amiguet
I'm still not able to use minipages in tables...

> put the cursor in the minipage and click right mouse...
>

If you mean "put the cursor in the _cell_ and click right mouse", then it 
does not work for me: the minipage option is disabled.
If you mean something else, can you please give me some more detail...

Thank you,

Matthieu



Re: Itemize in table

2002-10-27 Thread Matthieu Amiguet
> not in the _cell_ but insert a minipage in the _cell_ with command Insert
> -> Minipage. Then put the cursor in the minipage field by clicking
> minipage button. Click right mouse to view the minipage option. Type your
> items in this minipage...

I thought I had tried something like this, but obviously not exactly that... 
it works now, thank you.

Matthieu



Itemize in table

2002-10-25 Thread Matthieu Amiguet
Dear lyx users,

I'm trying to have an itemize environement inside a table cell; I tried 
several things and I'm getting a little bit confused.

- If I'm in a table cell, I cannot change the environment style
- I tried to select Use minipage in the cell dialog, which allowed me to 
use environements; however, I got unwanted space at the end of the cell. 
Moreover, I'm not able to reproduce this now (the minipage option is 
disabled).
- If I deselect minipage in a cell that was a minipage, the environement 
stays and the spacing is correct; but I guess this is not a clean way of 
doing it...

So I wonder if this is possible and how to do it properly...

Thank you,

Matthieu



Itemize in table

2002-10-25 Thread Matthieu Amiguet
Dear lyx users,

I'm trying to have an itemize environement inside a table cell; I tried 
several things and I'm getting a little bit confused.

- If I'm in a table cell, I cannot change the environment style
- I tried to select Use minipage in the cell dialog, which allowed me to 
use environements; however, I got unwanted space at the end of the cell. 
Moreover, I'm not able to reproduce this now (the minipage option is 
disabled).
- If I deselect minipage in a cell that was a minipage, the environement 
stays and the spacing is correct; but I guess this is not a clean way of 
doing it...

So I wonder if this is possible and how to do it properly...

Thank you,

Matthieu



Itemize in table

2002-10-25 Thread Matthieu Amiguet
Dear lyx users,

I'm trying to have an itemize environement inside a table cell; I tried 
several things and I'm getting a little bit confused.

- If I'm in a table cell, I cannot change the environment style
- I tried to select "Use minipage" in the cell dialog, which allowed me to 
use environements; however, I got unwanted space at the end of the cell. 
Moreover, I'm not able to reproduce this now (the minipage option is 
disabled).
- If I deselect minipage in a cell that was a minipage, the environement 
stays and the spacing is correct; but I guess this is not a clean way of 
doing it...

So I wonder if this is possible and how to do it properly...

Thank you,

Matthieu



Re: determining next style

2002-10-19 Thread Matthieu Amiguet

 However, a nice feature would be something to force keeping the previous 
   paragraph environment (though having said that, the defaults are 
 usually pretty logical).  You could bind it to something like M-Enter 
 (by analogy with C-Enter for a line-break within the current environment).

Wonderful idea... but just try it out: it's already there! at least it works 
for me: M-enter preserves the environment type and the nesting depth.

Matthieu




Re: determining next style

2002-10-19 Thread Matthieu Amiguet

 However, a nice feature would be something to force keeping the previous 
   paragraph environment (though having said that, the defaults are 
 usually pretty logical).  You could bind it to something like M-Enter 
 (by analogy with C-Enter for a line-break within the current environment).

Wonderful idea... but just try it out: it's already there! at least it works 
for me: M-enter preserves the environment type and the nesting depth.

Matthieu




Re: determining next style

2002-10-19 Thread Matthieu Amiguet

> However, a nice feature would be something to force keeping the previous 
>   paragraph environment (though having said that, the defaults are 
> usually pretty logical).  You could bind it to something like M-Enter 
> (by analogy with C-Enter for a line-break within the current environment).

Wonderful idea... but just try it out: it's already there! at least it works 
for me: M-enter preserves the environment type and the nesting depth.

Matthieu




bad caracter in math label

2002-09-30 Thread kretzschmar matthieu


Hi all,

I use to put the label of my equations in this form:

'toto_eq1'

and then to call it with the cross refrence menu.

But when I close and re-open my Lyx file, this label become:

'toto_{e}q1' 

and my reference can no more find the label.

I decided to change all my label in 'toto:eq1' and now it works. but I
guess it should something to be corrected ..

Matthieu
-




bad caracter in math label

2002-09-30 Thread kretzschmar matthieu


Hi all,

I use to put the label of my equations in this form:

'toto_eq1'

and then to call it with the cross refrence menu.

But when I close and re-open my Lyx file, this label become:

'toto_{e}q1' 

and my reference can no more find the label.

I decided to change all my label in 'toto:eq1' and now it works. but I
guess it should something to be corrected ..

Matthieu
-




bad caracter in math label

2002-09-30 Thread kretzschmar matthieu


Hi all,

I use to put the label of my equations in this form:

'toto_eq1'

and then to call it with the cross refrence menu.

But when I close and re-open my Lyx file, this label become:

'toto_{e}q1' 

and my reference can no more find the label.

I decided to change all my label in 'toto:eq1' and now it works. but I
guess it should something to be corrected ..

Matthieu
-




disable graphic display

2002-09-13 Thread kretzschmar matthieu


Hi all,

I can not disable the graphics display within Lyx. 
Because I have many ps figure in it, it causes some big troubles when
Lyx loads them.

I first tried to put don't display in 'preference' menu. Then I can
see the change in my '~/.lyx/preference' file, but it doesn't change
anything when using Lyx.

I tried something else: 
I have created a lyxrc file with the line:

\ps_commande 

hoping that lyx can not find the ps viewer, but this doesn't work
either.

Actually, the only way I found to prevent Lyx to display my graphics
is to select each figure (in lyx) and then put the Lyx view-Screen
Display field to

Don't display

or

Default. (when don't display in 'preference' menu is active)

Does someone have an easier way to do it ?

Is it a general bug or am I just stupid ?

Pease, help me to answer these questions... 

Matthieu
-




disable graphic display

2002-09-13 Thread kretzschmar matthieu


Hi all,

I can not disable the graphics display within Lyx. 
Because I have many ps figure in it, it causes some big troubles when
Lyx loads them.

I first tried to put don't display in 'preference' menu. Then I can
see the change in my '~/.lyx/preference' file, but it doesn't change
anything when using Lyx.

I tried something else: 
I have created a lyxrc file with the line:

\ps_commande 

hoping that lyx can not find the ps viewer, but this doesn't work
either.

Actually, the only way I found to prevent Lyx to display my graphics
is to select each figure (in lyx) and then put the Lyx view-Screen
Display field to

Don't display

or

Default. (when don't display in 'preference' menu is active)

Does someone have an easier way to do it ?

Is it a general bug or am I just stupid ?

Pease, help me to answer these questions... 

Matthieu
-




disable graphic display

2002-09-13 Thread kretzschmar matthieu


Hi all,

I can not disable the graphics display within Lyx. 
Because I have many ps figure in it, it causes some big troubles when
Lyx loads them.

I first tried to put "don't display" in 'preference' menu. Then I can
see the change in my '~/.lyx/preference' file, but it doesn't change
anything when using Lyx.

I tried something else: 
I have created a lyxrc file with the line:

\ps_commande ""

hoping that lyx can not find the ps viewer, but this doesn't work
either.

Actually, the only way I found to prevent Lyx to display my graphics
is to select each figure (in lyx) and then put the "Lyx view"->Screen
Display field to

Don't display

or

Default. (when "don't display" in 'preference' menu is active)

Does someone have an easier way to do it ?

Is it a general bug or am I just stupid ?

Pease, help me to answer these questions... 

Matthieu
-




re: Removing some prefs options (poll)

2002-08-30 Thread Matthieu Amiguet

 Speak now, or forever hold your peace, if you use either
 
 1. Lastfiles number of files shown. This is currently configurable
 between 4 and 9. Does anybody actually have this configured  differently
 from the default, and if so, please tell me why.

I wrote quite a lot of little reports or articles recently, and as I'm 
writing my thesis now, I'm copy-pasting from all of them...
I don't want to open them all at lyx startup (so command-line is not an 
option) and since they are in different directories, it makes a lot of 
browsing through the file-open dialog.
I increased the lastfiles number to 9 and would not be against an increase in 
the max possible number...

Best regards,

Matthieu



re: Removing some prefs options (poll)

2002-08-30 Thread Matthieu Amiguet

 Speak now, or forever hold your peace, if you use either
 
 1. Lastfiles number of files shown. This is currently configurable
 between 4 and 9. Does anybody actually have this configured  differently
 from the default, and if so, please tell me why.

I wrote quite a lot of little reports or articles recently, and as I'm 
writing my thesis now, I'm copy-pasting from all of them...
I don't want to open them all at lyx startup (so command-line is not an 
option) and since they are in different directories, it makes a lot of 
browsing through the file-open dialog.
I increased the lastfiles number to 9 and would not be against an increase in 
the max possible number...

Best regards,

Matthieu



re: Removing some prefs options (poll)

2002-08-30 Thread Matthieu Amiguet

> Speak now, or forever hold your peace, if you use either
> 
> 1. Lastfiles number of files shown. This is currently configurable
> between 4 and 9. Does anybody actually have this configured  differently
> from the default, and if so, please tell me why.

I wrote quite a lot of little reports or articles recently, and as I'm 
writing my thesis now, I'm copy-pasting from all of them...
I don't want to open them all at lyx startup (so command-line is not an 
option) and since they are in different directories, it makes a lot of 
browsing through the file-open dialog.
I increased the lastfiles number to 9 and would not be against an increase in 
the max possible number...

Best regards,

Matthieu



Error creating pixmap from xpm_image

2002-06-04 Thread Matthieu Amiguet

I compiled lyx 1.2.0 on YellowDogLinux 2.0 (ppc processor) without problem. 
It works very well, except that I cannot view any graphics in the lyx window.
I get the following error

Error creating pixmap from xpm_image 'XpmColorFailed'

and in lyx the picture box displays

Error scaling etc

Everything else works great and starting lyx with the graphics-debug option 
(-dbg 2097152) does not give other errors.
The .ps output is correct.
Any idea?

BTW, the new version is great. A huge thank you to the developers team.

Matthieu



Re: Error creating pixmap from xpm_image

2002-06-04 Thread Matthieu Amiguet


 What is the 'lyx -version' output?

LyX 1.2.0 of Thu, May 23, 2002
Built on May 31 2002, 08:56:05
Configuration
  Host type:  powerpc-unknown-linux-gnu
  Special build flags:included-libsigc
  C   Compiler:   gcc
  C   Compiler flags: -g -O2
  C++ Compiler:   g++ (2.95.3)
  C++ Compiler flags: -O -fno-exceptions
  Linker flags:   
  Frontend:   xforms
libXpm version:   4.11
libforms version: 0.88.1
  LyX binary dir: /usr/local/bin
  LyX files dir:  /usr/local/share/lyx

Matthieu



Re: Error creating pixmap from xpm_image

2002-06-04 Thread Matthieu Amiguet

Le Mardi, 4 Juin 2002 14.47, John Levon a écrit :
 On Tue, Jun 04, 2002 at 10:17:43AM +0200, Matthieu Amiguet wrote:
  Error creating pixmap from xpm_image 'XpmColorFailed'

 Upgrade your version of ImageMagick (convert), or use a different
 program to convert your images, or use a version of xforms with an
 internal image loader capability.

I've got ImageMagick-5.2.7-2.
On my laptop, I've got Image-Magick-5.2.6-4, whcih seems older, and it works. 
Does the problem really come from ImageMagick?
NB: convert seems to work, at least partially, as I get

Image conversion succeeded.
Loading image.
Image loading succeeded.
Error creating pixmap from xpm_image 'XpmColorFailed'

If this is a version problem, what version should I use?

Matthieu




Error creating pixmap from xpm_image

2002-06-04 Thread Matthieu Amiguet

I compiled lyx 1.2.0 on YellowDogLinux 2.0 (ppc processor) without problem. 
It works very well, except that I cannot view any graphics in the lyx window.
I get the following error

Error creating pixmap from xpm_image 'XpmColorFailed'

and in lyx the picture box displays

Error scaling etc

Everything else works great and starting lyx with the graphics-debug option 
(-dbg 2097152) does not give other errors.
The .ps output is correct.
Any idea?

BTW, the new version is great. A huge thank you to the developers team.

Matthieu



Re: Error creating pixmap from xpm_image

2002-06-04 Thread Matthieu Amiguet


 What is the 'lyx -version' output?

LyX 1.2.0 of Thu, May 23, 2002
Built on May 31 2002, 08:56:05
Configuration
  Host type:  powerpc-unknown-linux-gnu
  Special build flags:included-libsigc
  C   Compiler:   gcc
  C   Compiler flags: -g -O2
  C++ Compiler:   g++ (2.95.3)
  C++ Compiler flags: -O -fno-exceptions
  Linker flags:   
  Frontend:   xforms
libXpm version:   4.11
libforms version: 0.88.1
  LyX binary dir: /usr/local/bin
  LyX files dir:  /usr/local/share/lyx

Matthieu



Re: Error creating pixmap from xpm_image

2002-06-04 Thread Matthieu Amiguet

Le Mardi, 4 Juin 2002 14.47, John Levon a écrit :
 On Tue, Jun 04, 2002 at 10:17:43AM +0200, Matthieu Amiguet wrote:
  Error creating pixmap from xpm_image 'XpmColorFailed'

 Upgrade your version of ImageMagick (convert), or use a different
 program to convert your images, or use a version of xforms with an
 internal image loader capability.

I've got ImageMagick-5.2.7-2.
On my laptop, I've got Image-Magick-5.2.6-4, whcih seems older, and it works. 
Does the problem really come from ImageMagick?
NB: convert seems to work, at least partially, as I get

Image conversion succeeded.
Loading image.
Image loading succeeded.
Error creating pixmap from xpm_image 'XpmColorFailed'

If this is a version problem, what version should I use?

Matthieu




Error creating pixmap from xpm_image

2002-06-04 Thread Matthieu Amiguet

I compiled lyx 1.2.0 on YellowDogLinux 2.0 (ppc processor) without problem. 
It works very well, except that I cannot view any graphics in the lyx window.
I get the following error

Error creating pixmap from xpm_image 'XpmColorFailed'

and in lyx the picture box displays

Error scaling etc

Everything else works great and starting lyx with the graphics-debug option 
(-dbg 2097152) does not give other errors.
The .ps output is correct.
Any idea?

BTW, the new version is great. A huge thank you to the developers team.

Matthieu



  1   2   >