Re: Lining up text and graphics in tables?

2010-01-12 Thread Daniel Lohmann


On 12.01.2010, at 07:05, Steve Litt wrote:


Ugh!

I wanted rows with 3 columns. Column 1 is the name of the graphic.  
Column 2 is
the graphic itself. Column 3 is a short explanation of the graphic.  
I used
individual 1 row, 3 column tables to save room and make sure pages  
broke

reasonably.

Trouble is, no matter how I set cell alignment in any of the  
columns, the
graphic always rises to the top, and the text (in other columns/ 
cells mind
you) always starts just below where the graphic ends, thereby  
costing a lot of

space, looking ugly, and causing confusion.

Does anyone have an idea how to get the graphic and text to line up  
correctly,
vertically, within their respective cells? Does anyone have any idea  
what

would cause the behavior I describe?


Hi Steve,

have you tried using minipages instead? In my experience they tend to  
be less fragile than tables. I have never tried 3 columns (just 2 so  
far), but that shouldn't matter. Just insert 3 minipages side by side  
with a width of 33% \textwidth and a \hfill in between.


Daniel 


Beamer and custom enumeration

2010-01-12 Thread Andy Cheesman
Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy


Sent from Szeged, CS, Hungary


Using a custom style in Lyx1.6.5

2010-01-12 Thread Nick Gaens

Hello everyone,

I'm currently trying to tex2lyx the file instructions.tex, which can 
be found here: http://www.acm.org/publications/latex_style/, but I'm 
having a hard time adding the files acmtrans2m.cls and acmtrans.bst 
to my Lyx installation folder.


I'm using Lyx1.6.5 on Windows XP. I also have a MikTeX2.7 directory.

So my question is: where to put the above mentioned .cls file? What 
about the .bst file?


Can someone give me a short set of instructions I need to execute in 
order to make this work?


Thanks in advance,

Nick


Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread Nick Gaens

Nick Gaens schreef:

Hello everyone,

I'm currently trying to tex2lyx the file instructions.tex, which can 
be found here: http://www.acm.org/publications/latex_style/, but I'm 
having a hard time adding the files acmtrans2m.cls and 
acmtrans.bst to my Lyx installation folder.


I'm using Lyx1.6.5 on Windows XP. I also have a MikTeX2.7 directory.

So my question is: where to put the above mentioned .cls file? What 
about the .bst file?


Can someone give me a short set of instructions I need to execute in 
order to make this work?


Thanks in advance,

Nick


To add some additional information about the error I'm getting:

Error: Could not find layout file for textclass acmtrans2m.
Error: Cannot convert file

An error occurred whilst running tex2lyx -f instructions.tex 
instructions.lyx


Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread Guenter Milde
On 2010-01-12, Nick Gaens wrote:
 Hello everyone,

 I'm currently trying to tex2lyx the file instructions.tex, which can 
 be found here: http://www.acm.org/publications/latex_style/, but I'm 
 having a hard time adding the files acmtrans2m.cls and acmtrans.bst 
 to my Lyx installation folder.

You can keep the LaTeX documentclass files in the TEXPATH but for this to
work you need a LyX layout file. This (and how to write one) is explained
in the Customization manual (HelpCustomization).

 What about the .bst file?

This should just work.

Günter  



Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread rgheck

On 01/12/2010 09:56 AM, Guenter Milde wrote:

On 2010-01-12, Nick Gaens wrote:
   

I'm currently trying to tex2lyx the file instructions.tex, which can
be found here: http://www.acm.org/publications/latex_style/, but I'm
having a hard time adding the files acmtrans2m.cls and acmtrans.bst
to my Lyx installation folder.
 

You can keep the LaTeX documentclass files in the TEXPATH but for this to
work you need a LyX layout file. This (and how to write one) is explained
in the Customization manual (HelpCustomization).

   
And, unfortunately, this class does not seem to be based on any other 
class. Still, the basic environments provided look a lot like 
article.cls, so you could try copying article.layout to your local 
layout directory, renaming it to acmtrans2m.layout, and then changing 
the configuration line to read: \DeclareLaTeXClass{acmtrans2m}. That 
might get you 95% of the way.


rh



Re: Beamer and custom enumeration

2010-01-12 Thread Paul A. Rubin

Andy Cheesman wrote:

Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy



Does the following (in your document preamble) achieve what you want?

\setbeamertemplate{enumerate item}{H\insertenumlabel}

/Paul




Re: Beamer and custom enumeration

2010-01-12 Thread Andy Cheesman
2010/1/12 Paul A. Rubin ru...@msu.edu

 Andy Cheesman wrote:

 Dear People

 I'm trying to create custom enumeration using Beamer and Lyx on a few
 slides
 I would like some like the example below as well as other options.
 H1
 H2
 H3

 However, all the online references suggest something like
 \renewcommand{\theenumi}{\alph{enumi} or

 \bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

  these Lyx errores with theenumi, \labelenumi being undefined

 What am I missing?

 Andy


 Does the following (in your document preamble) achieve what you want?

 \setbeamertemplate{enumerate item}{H\insertenumlabel}

 /Paul

 That method does indeed work but unfortunately its creates a global pattern
and I would like to make custom indivual lists for slides
i.e
H1, H2, H3 H4
Step I, Step II, Step III

I know this works in Beamer/LaTeX but I would prefer a native solution

Andy


Re: Lining up text and graphics in tables?

2010-01-12 Thread Steve Litt
On Tuesday 12 January 2010 03:47:03 Daniel Lohmann wrote:
 On 12.01.2010, at 07:05, Steve Litt wrote:
  Ugh!
 
  I wanted rows with 3 columns. Column 1 is the name of the graphic.
  Column 2 is
  the graphic itself. Column 3 is a short explanation of the graphic.
  I used
  individual 1 row, 3 column tables to save room and make sure pages
  broke
  reasonably.
 
  Trouble is, no matter how I set cell alignment in any of the
  columns, the
  graphic always rises to the top, and the text (in other columns/
  cells mind
  you) always starts just below where the graphic ends, thereby
  costing a lot of
  space, looking ugly, and causing confusion.
 
  Does anyone have an idea how to get the graphic and text to line up
  correctly,
  vertically, within their respective cells? Does anyone have any idea
  what
  would cause the behavior I describe?
 
 Hi Steve,
 
 have you tried using minipages instead? In my experience they tend to
 be less fragile than tables. I have never tried 3 columns (just 2 so
 far), but that shouldn't matter. Just insert 3 minipages side by side
 with a width of 33% \textwidth and a \hfill in between.
 
 Daniel

Thanks Daniel,

Yeah, I tried a minipage containing three minipages just before I wrote the 
original email. It walked waay off the right side of the page.

Hmmm, but I didn't try the textwidth and hfill. Where would I place the 
\textwidth, and how would I back it out once all these triples are complete?

Thanks

SteveT

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



Re: Lining up text and graphics in tables?

2010-01-12 Thread Yago

Hello.

See the attached files lyx and tex. I began with the tex file and then this 
was imported to lyx; this is more easy for me. The command 
\renewcommand{\tablename}{Table} is because I work in spanish language.


Regards.
- Original Message - 
From: Steve Litt sl...@troubleshooters.com

To: lyx-users@lists.lyx.org
Sent: Tuesday, January 12, 2010 7:05 AM
Subject: Lining up text and graphics in tables?



Ugh!

I wanted rows with 3 columns. Column 1 is the name of the graphic. Column 
2 is

the graphic itself. Column 3 is a short explanation of the graphic. I used
individual 1 row, 3 column tables to save room and make sure pages broke
reasonably.

Trouble is, no matter how I set cell alignment in any of the columns, the
graphic always rises to the top, and the text (in other columns/cells mind
you) always starts just below where the graphic ends, thereby costing a 
lot of

space, looking ugly, and causing confusion.

Does anyone have an idea how to get the graphic and text to line up 
correctly,

vertically, within their respective cells? Does anyone have any idea what
would cause the behavior I describe?

Thanks

SteveT

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



tabla_con_graficos_120110.lyx
Description: application/lyx


tabla_con_graficos_120110.tex
Description: Binary data


Help with configuring BibTex in Lyx

2010-01-12 Thread Gregory Toole
Hello,
My name is Greg and I have been a Lyx user for some time now.  I am running
Ubuntu 8.04 and LyX version 1.5.3.  I am trying to get started using BibTex
in Lyx, but I am running into some problems.  The citations only come up as
[?] in my documents when I generate pdf's from Lyx.  So far, here is what I
have done: I have set the BIBINPUTS and BSTINPUTS environment variables to
the folder where I keep my bib files.  I created a Bibtex file and inserted
it into Lyx with Insert--List/TOC--BibTex Bibliography.  A gray box
appears in my document that says BibTeX Generated Bibliography, and when I
go to put in citations, the keys that I have in my bibtex file appear, and I
can put in citations that are in the .bib file. However, when I click the
generate pdf button, the citations only come up as [?] in the document.   I
suspect that my problem may be that my TEXINPUTS variable is not set.  I am
not sure what to set it to.  I believe the Latex packages I have installed
are texlive.  Could you possibly help me get Bibtex working? Thank you so
much!
Sincerely,
Gregory Toole


Layout file for ASME conference paper

2010-01-12 Thread Zack Norwood
Hello Lyx users.  I'd like to format a paper I wrote in Lyx for an ASME
conference publication.  The ASME provides a latex template, so I'm trying
to use that template file in Lyx using Mac OSX 10.5 and Lyx version 1.6.5
with TexLive2009.  So far I have copied the provided asme2e.bib, asme2e.cls,
and asme2e.bst files to Library/texmf/tex/latex/asme in my local users home
directory.  I then ran a texhash from the admin account to include the latex
file.  So, my question is, it appears Lyx now requires a layout file.
 Unfortunately, I have no experience writing these, and the asme2e.cls file
doesn't appear to have a base class, which makes this process difficult from
what I can tell reading part 5 of the Lyx Customization manual.  So, does
anyone have an existing asme2e.layout file or can you point me to someone
that does...or am I misunderstanding the apparent difficulty of writing
a layout file from scratch?  The relevant files for the template can be
found here:
http://iel.ucdavis.edu/code/ASME/conf-1.7b.html

thank you very much for any potential advice you could give,

Zack
Renewable and Appropriate Energy Laboratory
University of California at Berkeley


Question on latext2html conversion of tables

2010-01-12 Thread Myriam Abramson

Hello,

I've posted this question to the latex2html list but got no
answers. Basically, my problem is that latex2html does not transfer
the content of the tables. The tables are there but they are
empty. What to do?

TIA

-- 
   myriam


From the cat's little instruction handbook:

When in doubt, let your tail do all the talking for you.


Re: Question on latext2html conversion of tables

2010-01-12 Thread john

Ross Moore (Maths dept, McQuarrie University) had fixed the bug in
latex2html which was bodging tables. Unfortunately this fix was not
carried through into some Linux distros.
Current and  recent versions of  OpenSUSE  have incorporated the fix
into their downloads.
 
The fix is quite simple and the patch is as follows:

The latex2html program is a perl script. The patch needed is:


-- latex2html 2006-01-13 17:48:27.0 +1300

+++ /usr/bin/latex2html 2005-03-23 06:49:49.0 +1200

@@ -5285,7 +5285,6 @@ 
elsif ($this_cmd) { push(@pieces, $this_cmd) } 
   } 
   push(@pieces, $after); 
+  $within_preamble=0; 
  } 
  print  $replacements new-command replacements\n

  if (($VERBOSITY1)  $replacements);

The line prefixed with the + must be inserted into the latex2html script.

Myriam Abramson wrote:
 Hello,

 I've posted this question to the latex2html list but got no
 answers. Basically, my problem is that latex2html does not transfer
 the content of the tables. The tables are there but they are
 empty. What to do?

 TIA

   



Re: Help with configuring BibTex in Lyx

2010-01-12 Thread Guenter Milde
On 2010-01-13, Gregory Toole wrote:

 I am running Ubuntu 8.04 and LyX version 1.5.3.  I am trying to get
 started using BibTex in Lyx, but I am running into some problems.  The
 citations only come up as [?] in my documents when I generate pdf's
 from Lyx.

 So far, here is what I have done: I have set the BIBINPUTS and
 BSTINPUTS environment variables to the folder where I keep my bib
 files.  I created a Bibtex file and inserted it into Lyx with
 Insert--List/TOC--BibTex Bibliography.  A gray box appears in my
 document that says BibTeX Generated Bibliography, and when I go to
 put in citations, the keys that I have in my bibtex file appear, and I
 can put in citations that are in the .bib file. 

So far so good.

 However, when I click the generate pdf button, the citations only come
 up as [?] in the document. I suspect that my problem may be that my
 TEXINPUTS variable is not set.  I am not sure what to set it to.  I
 believe the Latex packages I have installed are texlive.  Could you
 possibly help me get Bibtex working? Thank you so much!

It could be some error in your *.bib database file.
Try with a minimal example.
Try with FileExportLaTeX and running 
 latex 
 bibtex
 latex
on the *.tex file by hand and watch the output.

Günter



Re: Lining up text and graphics in tables?

2010-01-12 Thread Daniel Lohmann


On 12.01.2010, at 07:05, Steve Litt wrote:


Ugh!

I wanted rows with 3 columns. Column 1 is the name of the graphic.  
Column 2 is
the graphic itself. Column 3 is a short explanation of the graphic.  
I used
individual 1 row, 3 column tables to save room and make sure pages  
broke

reasonably.

Trouble is, no matter how I set cell alignment in any of the  
columns, the
graphic always rises to the top, and the text (in other columns/ 
cells mind
you) always starts just below where the graphic ends, thereby  
costing a lot of

space, looking ugly, and causing confusion.

Does anyone have an idea how to get the graphic and text to line up  
correctly,
vertically, within their respective cells? Does anyone have any idea  
what

would cause the behavior I describe?


Hi Steve,

have you tried using minipages instead? In my experience they tend to  
be less fragile than tables. I have never tried 3 columns (just 2 so  
far), but that shouldn't matter. Just insert 3 minipages side by side  
with a width of 33% \textwidth and a \hfill in between.


Daniel 


Beamer and custom enumeration

2010-01-12 Thread Andy Cheesman
Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy


Sent from Szeged, CS, Hungary


Using a custom style in Lyx1.6.5

2010-01-12 Thread Nick Gaens

Hello everyone,

I'm currently trying to tex2lyx the file instructions.tex, which can 
be found here: http://www.acm.org/publications/latex_style/, but I'm 
having a hard time adding the files acmtrans2m.cls and acmtrans.bst 
to my Lyx installation folder.


I'm using Lyx1.6.5 on Windows XP. I also have a MikTeX2.7 directory.

So my question is: where to put the above mentioned .cls file? What 
about the .bst file?


Can someone give me a short set of instructions I need to execute in 
order to make this work?


Thanks in advance,

Nick


Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread Nick Gaens

Nick Gaens schreef:

Hello everyone,

I'm currently trying to tex2lyx the file instructions.tex, which can 
be found here: http://www.acm.org/publications/latex_style/, but I'm 
having a hard time adding the files acmtrans2m.cls and 
acmtrans.bst to my Lyx installation folder.


I'm using Lyx1.6.5 on Windows XP. I also have a MikTeX2.7 directory.

So my question is: where to put the above mentioned .cls file? What 
about the .bst file?


Can someone give me a short set of instructions I need to execute in 
order to make this work?


Thanks in advance,

Nick


To add some additional information about the error I'm getting:

Error: Could not find layout file for textclass acmtrans2m.
Error: Cannot convert file

An error occurred whilst running tex2lyx -f instructions.tex 
instructions.lyx


Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread Guenter Milde
On 2010-01-12, Nick Gaens wrote:
 Hello everyone,

 I'm currently trying to tex2lyx the file instructions.tex, which can 
 be found here: http://www.acm.org/publications/latex_style/, but I'm 
 having a hard time adding the files acmtrans2m.cls and acmtrans.bst 
 to my Lyx installation folder.

You can keep the LaTeX documentclass files in the TEXPATH but for this to
work you need a LyX layout file. This (and how to write one) is explained
in the Customization manual (HelpCustomization).

 What about the .bst file?

This should just work.

Günter  



Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread rgheck

On 01/12/2010 09:56 AM, Guenter Milde wrote:

On 2010-01-12, Nick Gaens wrote:
   

I'm currently trying to tex2lyx the file instructions.tex, which can
be found here: http://www.acm.org/publications/latex_style/, but I'm
having a hard time adding the files acmtrans2m.cls and acmtrans.bst
to my Lyx installation folder.
 

You can keep the LaTeX documentclass files in the TEXPATH but for this to
work you need a LyX layout file. This (and how to write one) is explained
in the Customization manual (HelpCustomization).

   
And, unfortunately, this class does not seem to be based on any other 
class. Still, the basic environments provided look a lot like 
article.cls, so you could try copying article.layout to your local 
layout directory, renaming it to acmtrans2m.layout, and then changing 
the configuration line to read: \DeclareLaTeXClass{acmtrans2m}. That 
might get you 95% of the way.


rh



Re: Beamer and custom enumeration

2010-01-12 Thread Paul A. Rubin

Andy Cheesman wrote:

Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy



Does the following (in your document preamble) achieve what you want?

\setbeamertemplate{enumerate item}{H\insertenumlabel}

/Paul




Re: Beamer and custom enumeration

2010-01-12 Thread Andy Cheesman
2010/1/12 Paul A. Rubin ru...@msu.edu

 Andy Cheesman wrote:

 Dear People

 I'm trying to create custom enumeration using Beamer and Lyx on a few
 slides
 I would like some like the example below as well as other options.
 H1
 H2
 H3

 However, all the online references suggest something like
 \renewcommand{\theenumi}{\alph{enumi} or

 \bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

  these Lyx errores with theenumi, \labelenumi being undefined

 What am I missing?

 Andy


 Does the following (in your document preamble) achieve what you want?

 \setbeamertemplate{enumerate item}{H\insertenumlabel}

 /Paul

 That method does indeed work but unfortunately its creates a global pattern
and I would like to make custom indivual lists for slides
i.e
H1, H2, H3 H4
Step I, Step II, Step III

I know this works in Beamer/LaTeX but I would prefer a native solution

Andy


Re: Lining up text and graphics in tables?

2010-01-12 Thread Steve Litt
On Tuesday 12 January 2010 03:47:03 Daniel Lohmann wrote:
 On 12.01.2010, at 07:05, Steve Litt wrote:
  Ugh!
 
  I wanted rows with 3 columns. Column 1 is the name of the graphic.
  Column 2 is
  the graphic itself. Column 3 is a short explanation of the graphic.
  I used
  individual 1 row, 3 column tables to save room and make sure pages
  broke
  reasonably.
 
  Trouble is, no matter how I set cell alignment in any of the
  columns, the
  graphic always rises to the top, and the text (in other columns/
  cells mind
  you) always starts just below where the graphic ends, thereby
  costing a lot of
  space, looking ugly, and causing confusion.
 
  Does anyone have an idea how to get the graphic and text to line up
  correctly,
  vertically, within their respective cells? Does anyone have any idea
  what
  would cause the behavior I describe?
 
 Hi Steve,
 
 have you tried using minipages instead? In my experience they tend to
 be less fragile than tables. I have never tried 3 columns (just 2 so
 far), but that shouldn't matter. Just insert 3 minipages side by side
 with a width of 33% \textwidth and a \hfill in between.
 
 Daniel

Thanks Daniel,

Yeah, I tried a minipage containing three minipages just before I wrote the 
original email. It walked waay off the right side of the page.

Hmmm, but I didn't try the textwidth and hfill. Where would I place the 
\textwidth, and how would I back it out once all these triples are complete?

Thanks

SteveT

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



Re: Lining up text and graphics in tables?

2010-01-12 Thread Yago

Hello.

See the attached files lyx and tex. I began with the tex file and then this 
was imported to lyx; this is more easy for me. The command 
\renewcommand{\tablename}{Table} is because I work in spanish language.


Regards.
- Original Message - 
From: Steve Litt sl...@troubleshooters.com

To: lyx-users@lists.lyx.org
Sent: Tuesday, January 12, 2010 7:05 AM
Subject: Lining up text and graphics in tables?



Ugh!

I wanted rows with 3 columns. Column 1 is the name of the graphic. Column 
2 is

the graphic itself. Column 3 is a short explanation of the graphic. I used
individual 1 row, 3 column tables to save room and make sure pages broke
reasonably.

Trouble is, no matter how I set cell alignment in any of the columns, the
graphic always rises to the top, and the text (in other columns/cells mind
you) always starts just below where the graphic ends, thereby costing a 
lot of

space, looking ugly, and causing confusion.

Does anyone have an idea how to get the graphic and text to line up 
correctly,

vertically, within their respective cells? Does anyone have any idea what
would cause the behavior I describe?

Thanks

SteveT

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



tabla_con_graficos_120110.lyx
Description: application/lyx


tabla_con_graficos_120110.tex
Description: Binary data


Help with configuring BibTex in Lyx

2010-01-12 Thread Gregory Toole
Hello,
My name is Greg and I have been a Lyx user for some time now.  I am running
Ubuntu 8.04 and LyX version 1.5.3.  I am trying to get started using BibTex
in Lyx, but I am running into some problems.  The citations only come up as
[?] in my documents when I generate pdf's from Lyx.  So far, here is what I
have done: I have set the BIBINPUTS and BSTINPUTS environment variables to
the folder where I keep my bib files.  I created a Bibtex file and inserted
it into Lyx with Insert--List/TOC--BibTex Bibliography.  A gray box
appears in my document that says BibTeX Generated Bibliography, and when I
go to put in citations, the keys that I have in my bibtex file appear, and I
can put in citations that are in the .bib file. However, when I click the
generate pdf button, the citations only come up as [?] in the document.   I
suspect that my problem may be that my TEXINPUTS variable is not set.  I am
not sure what to set it to.  I believe the Latex packages I have installed
are texlive.  Could you possibly help me get Bibtex working? Thank you so
much!
Sincerely,
Gregory Toole


Layout file for ASME conference paper

2010-01-12 Thread Zack Norwood
Hello Lyx users.  I'd like to format a paper I wrote in Lyx for an ASME
conference publication.  The ASME provides a latex template, so I'm trying
to use that template file in Lyx using Mac OSX 10.5 and Lyx version 1.6.5
with TexLive2009.  So far I have copied the provided asme2e.bib, asme2e.cls,
and asme2e.bst files to Library/texmf/tex/latex/asme in my local users home
directory.  I then ran a texhash from the admin account to include the latex
file.  So, my question is, it appears Lyx now requires a layout file.
 Unfortunately, I have no experience writing these, and the asme2e.cls file
doesn't appear to have a base class, which makes this process difficult from
what I can tell reading part 5 of the Lyx Customization manual.  So, does
anyone have an existing asme2e.layout file or can you point me to someone
that does...or am I misunderstanding the apparent difficulty of writing
a layout file from scratch?  The relevant files for the template can be
found here:
http://iel.ucdavis.edu/code/ASME/conf-1.7b.html

thank you very much for any potential advice you could give,

Zack
Renewable and Appropriate Energy Laboratory
University of California at Berkeley


Question on latext2html conversion of tables

2010-01-12 Thread Myriam Abramson

Hello,

I've posted this question to the latex2html list but got no
answers. Basically, my problem is that latex2html does not transfer
the content of the tables. The tables are there but they are
empty. What to do?

TIA

-- 
   myriam


From the cat's little instruction handbook:

When in doubt, let your tail do all the talking for you.


Re: Question on latext2html conversion of tables

2010-01-12 Thread john

Ross Moore (Maths dept, McQuarrie University) had fixed the bug in
latex2html which was bodging tables. Unfortunately this fix was not
carried through into some Linux distros.
Current and  recent versions of  OpenSUSE  have incorporated the fix
into their downloads.
 
The fix is quite simple and the patch is as follows:

The latex2html program is a perl script. The patch needed is:


-- latex2html 2006-01-13 17:48:27.0 +1300

+++ /usr/bin/latex2html 2005-03-23 06:49:49.0 +1200

@@ -5285,7 +5285,6 @@ 
elsif ($this_cmd) { push(@pieces, $this_cmd) } 
   } 
   push(@pieces, $after); 
+  $within_preamble=0; 
  } 
  print  $replacements new-command replacements\n

  if (($VERBOSITY1)  $replacements);

The line prefixed with the + must be inserted into the latex2html script.

Myriam Abramson wrote:
 Hello,

 I've posted this question to the latex2html list but got no
 answers. Basically, my problem is that latex2html does not transfer
 the content of the tables. The tables are there but they are
 empty. What to do?

 TIA

   



Re: Help with configuring BibTex in Lyx

2010-01-12 Thread Guenter Milde
On 2010-01-13, Gregory Toole wrote:

 I am running Ubuntu 8.04 and LyX version 1.5.3.  I am trying to get
 started using BibTex in Lyx, but I am running into some problems.  The
 citations only come up as [?] in my documents when I generate pdf's
 from Lyx.

 So far, here is what I have done: I have set the BIBINPUTS and
 BSTINPUTS environment variables to the folder where I keep my bib
 files.  I created a Bibtex file and inserted it into Lyx with
 Insert--List/TOC--BibTex Bibliography.  A gray box appears in my
 document that says BibTeX Generated Bibliography, and when I go to
 put in citations, the keys that I have in my bibtex file appear, and I
 can put in citations that are in the .bib file. 

So far so good.

 However, when I click the generate pdf button, the citations only come
 up as [?] in the document. I suspect that my problem may be that my
 TEXINPUTS variable is not set.  I am not sure what to set it to.  I
 believe the Latex packages I have installed are texlive.  Could you
 possibly help me get Bibtex working? Thank you so much!

It could be some error in your *.bib database file.
Try with a minimal example.
Try with FileExportLaTeX and running 
 latex 
 bibtex
 latex
on the *.tex file by hand and watch the output.

Günter



Re: Lining up text and graphics in tables?

2010-01-12 Thread Daniel Lohmann


On 12.01.2010, at 07:05, Steve Litt wrote:


Ugh!

I wanted rows with 3 columns. Column 1 is the name of the graphic.  
Column 2 is
the graphic itself. Column 3 is a short explanation of the graphic.  
I used
individual 1 row, 3 column tables to save room and make sure pages  
broke

reasonably.

Trouble is, no matter how I set cell alignment in any of the  
columns, the
graphic always rises to the top, and the text (in other columns/ 
cells mind
you) always starts just below where the graphic ends, thereby  
costing a lot of

space, looking ugly, and causing confusion.

Does anyone have an idea how to get the graphic and text to line up  
correctly,
vertically, within their respective cells? Does anyone have any idea  
what

would cause the behavior I describe?


Hi Steve,

have you tried using minipages instead? In my experience they tend to  
be less fragile than tables. I have never tried 3 columns (just 2 so  
far), but that shouldn't matter. Just insert 3 minipages side by side  
with a width of 33% \textwidth and a \hfill in between.


Daniel 


Beamer and custom enumeration

2010-01-12 Thread Andy Cheesman
Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy


Sent from Szeged, CS, Hungary


Using a custom style in Lyx1.6.5

2010-01-12 Thread Nick Gaens

Hello everyone,

I'm currently trying to "tex2lyx" the file instructions.tex, which can 
be found here: http://www.acm.org/publications/latex_style/, but I'm 
having a hard time adding the files "acmtrans2m.cls" and "acmtrans.bst" 
to my Lyx installation folder.


I'm using Lyx1.6.5 on Windows XP. I also have a MikTeX2.7 directory.

So my question is: where to put the above mentioned .cls file? What 
about the .bst file?


Can someone give me a short set of instructions I need to execute in 
order to make this work?


Thanks in advance,

Nick


Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread Nick Gaens

Nick Gaens schreef:

Hello everyone,

I'm currently trying to "tex2lyx" the file instructions.tex, which can 
be found here: http://www.acm.org/publications/latex_style/, but I'm 
having a hard time adding the files "acmtrans2m.cls" and 
"acmtrans.bst" to my Lyx installation folder.


I'm using Lyx1.6.5 on Windows XP. I also have a MikTeX2.7 directory.

So my question is: where to put the above mentioned .cls file? What 
about the .bst file?


Can someone give me a short set of instructions I need to execute in 
order to make this work?


Thanks in advance,

Nick


To add some additional information about the error I'm getting:

Error: Could not find layout file for textclass "acmtrans2m".
Error: Cannot convert file

An error occurred whilst running tex2lyx -f "instructions.tex" 
"instructions.lyx"


Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread Guenter Milde
On 2010-01-12, Nick Gaens wrote:
> Hello everyone,

> I'm currently trying to "tex2lyx" the file instructions.tex, which can 
> be found here: http://www.acm.org/publications/latex_style/, but I'm 
> having a hard time adding the files "acmtrans2m.cls" and "acmtrans.bst" 
> to my Lyx installation folder.

You can keep the LaTeX documentclass files in the TEXPATH but for this to
work you need a LyX layout file. This (and how to write one) is explained
in the Customization manual (Help>Customization).

> What about the .bst file?

This should "just work".

Günter  



Re: Using a custom style in Lyx1.6.5

2010-01-12 Thread rgheck

On 01/12/2010 09:56 AM, Guenter Milde wrote:

On 2010-01-12, Nick Gaens wrote:
   

I'm currently trying to "tex2lyx" the file instructions.tex, which can
be found here: http://www.acm.org/publications/latex_style/, but I'm
having a hard time adding the files "acmtrans2m.cls" and "acmtrans.bst"
to my Lyx installation folder.
 

You can keep the LaTeX documentclass files in the TEXPATH but for this to
work you need a LyX layout file. This (and how to write one) is explained
in the Customization manual (Help>Customization).

   
And, unfortunately, this class does not seem to be based on any other 
class. Still, the basic environments provided look a lot like 
article.cls, so you could try copying article.layout to your local 
layout directory, renaming it to acmtrans2m.layout, and then changing 
the configuration line to read: \DeclareLaTeXClass{acmtrans2m}. That 
might get you 95% of the way.


rh



Re: Beamer and custom enumeration

2010-01-12 Thread Paul A. Rubin

Andy Cheesman wrote:

Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
\renewcommand\theenumi{(\alph{enumi})}
\renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy



Does the following (in your document preamble) achieve what you want?

\setbeamertemplate{enumerate item}{H\insertenumlabel}

/Paul




Re: Beamer and custom enumeration

2010-01-12 Thread Andy Cheesman
2010/1/12 Paul A. Rubin 

> Andy Cheesman wrote:
>
>> Dear People
>>
>> I'm trying to create custom enumeration using Beamer and Lyx on a few
>> slides
>> I would like some like the example below as well as other options.
>> H1
>> H2
>> H3
>>
>> However, all the online references suggest something like
>> \renewcommand{\theenumi}{\alph{enumi} or
>>
>> \bgroup
>>\renewcommand\theenumi{(\alph{enumi})}
>>\renewcommand\labelenumi{\theenumi}
>>
>>  these Lyx errores with theenumi, \labelenumi being undefined
>>
>> What am I missing?
>>
>> Andy
>>
>>
> Does the following (in your document preamble) achieve what you want?
>
> \setbeamertemplate{enumerate item}{H\insertenumlabel}
>
> /Paul
>
> That method does indeed work but unfortunately its creates a global pattern
and I would like to make custom indivual lists for slides
i.e
H1, H2, H3 H4
Step I, Step II, Step III

I know this works in Beamer/LaTeX but I would prefer a native solution

Andy


Re: Lining up text and graphics in tables?

2010-01-12 Thread Steve Litt
On Tuesday 12 January 2010 03:47:03 Daniel Lohmann wrote:
> On 12.01.2010, at 07:05, Steve Litt wrote:
> > Ugh!
> >
> > I wanted rows with 3 columns. Column 1 is the name of the graphic.
> > Column 2 is
> > the graphic itself. Column 3 is a short explanation of the graphic.
> > I used
> > individual 1 row, 3 column tables to save room and make sure pages
> > broke
> > reasonably.
> >
> > Trouble is, no matter how I set cell alignment in any of the
> > columns, the
> > graphic always rises to the top, and the text (in other columns/
> > cells mind
> > you) always starts just below where the graphic ends, thereby
> > costing a lot of
> > space, looking ugly, and causing confusion.
> >
> > Does anyone have an idea how to get the graphic and text to line up
> > correctly,
> > vertically, within their respective cells? Does anyone have any idea
> > what
> > would cause the behavior I describe?
> 
> Hi Steve,
> 
> have you tried using minipages instead? In my experience they tend to
> be less fragile than tables. I have never tried 3 columns (just 2 so
> far), but that shouldn't matter. Just insert 3 minipages side by side
> with a width of 33% \textwidth and a \hfill in between.
> 
> Daniel

Thanks Daniel,

Yeah, I tried a minipage containing three minipages just before I wrote the 
original email. It walked waay off the right side of the page.

Hmmm, but I didn't try the textwidth and hfill. Where would I place the 
\textwidth, and how would I back it out once all these triples are complete?

Thanks

SteveT

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



Re: Lining up text and graphics in tables?

2010-01-12 Thread Yago

Hello.

See the attached files lyx and tex. I began with the tex file and then this 
was imported to lyx; this is more easy for me. The command 
\renewcommand{\tablename}{Table} is because I work in spanish language.


Regards.
- Original Message - 
From: "Steve Litt" 

To: 
Sent: Tuesday, January 12, 2010 7:05 AM
Subject: Lining up text and graphics in tables?



Ugh!

I wanted rows with 3 columns. Column 1 is the name of the graphic. Column 
2 is

the graphic itself. Column 3 is a short explanation of the graphic. I used
individual 1 row, 3 column tables to save room and make sure pages broke
reasonably.

Trouble is, no matter how I set cell alignment in any of the columns, the
graphic always rises to the top, and the text (in other columns/cells mind
you) always starts just below where the graphic ends, thereby costing a 
lot of

space, looking ugly, and causing confusion.

Does anyone have an idea how to get the graphic and text to line up 
correctly,

vertically, within their respective cells? Does anyone have any idea what
would cause the behavior I describe?

Thanks

SteveT

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



tabla_con_graficos_120110.lyx
Description: application/lyx


tabla_con_graficos_120110.tex
Description: Binary data


Help with configuring BibTex in Lyx

2010-01-12 Thread Gregory Toole
Hello,
My name is Greg and I have been a Lyx user for some time now.  I am running
Ubuntu 8.04 and LyX version 1.5.3.  I am trying to get started using BibTex
in Lyx, but I am running into some problems.  The citations only come up as
[?] in my documents when I generate pdf's from Lyx.  So far, here is what I
have done: I have set the BIBINPUTS and BSTINPUTS environment variables to
the folder where I keep my bib files.  I created a Bibtex file and inserted
it into Lyx with Insert-->List/TOC-->BibTex Bibliography.  A gray box
appears in my document that says "BibTeX Generated Bibliography", and when I
go to put in citations, the keys that I have in my bibtex file appear, and I
can put in citations that are in the .bib file. However, when I click the
generate pdf button, the citations only come up as [?] in the document.   I
suspect that my problem may be that my TEXINPUTS variable is not set.  I am
not sure what to set it to.  I believe the Latex packages I have installed
are texlive.  Could you possibly help me get Bibtex working? Thank you so
much!
Sincerely,
Gregory Toole


Layout file for ASME conference paper

2010-01-12 Thread Zack Norwood
Hello Lyx users.  I'd like to format a paper I wrote in Lyx for an ASME
conference publication.  The ASME provides a latex template, so I'm trying
to use that template file in Lyx using Mac OSX 10.5 and Lyx version 1.6.5
with TexLive2009.  So far I have copied the provided asme2e.bib, asme2e.cls,
and asme2e.bst files to Library/texmf/tex/latex/asme in my local users home
directory.  I then ran a texhash from the admin account to include the latex
file.  So, my question is, it appears Lyx now requires a layout file.
 Unfortunately, I have no experience writing these, and the asme2e.cls file
doesn't appear to have a base class, which makes this process difficult from
what I can tell reading part 5 of the Lyx Customization manual.  So, does
anyone have an existing asme2e.layout file or can you point me to someone
that does...or am I misunderstanding the apparent difficulty of writing
a layout file from scratch?  The relevant files for the template can be
found here:
http://iel.ucdavis.edu/code/ASME/conf-1.7b.html

thank you very much for any potential advice you could give,

Zack
Renewable and Appropriate Energy Laboratory
University of California at Berkeley


Question on latext2html conversion of tables

2010-01-12 Thread Myriam Abramson

Hello,

I've posted this question to the latex2html list but got no
answers. Basically, my problem is that latex2html does not transfer
the content of the tables. The tables are there but they are
empty. What to do?

TIA

-- 
   myriam


>From the cat's little instruction handbook:

When in doubt, let your tail do all the talking for you.


Re: Question on latext2html conversion of tables

2010-01-12 Thread john

Ross Moore (Maths dept, McQuarrie University) had fixed the bug in
latex2html which was bodging tables. Unfortunately this fix was not
carried through into some Linux distros.
Current and  recent versions of  OpenSUSE  have incorporated the fix
into their downloads.
 
The fix is quite simple and the patch is as follows:

The latex2html program is a perl script. The patch needed is:


-- latex2html 2006-01-13 17:48:27.0 +1300

+++ /usr/bin/latex2html 2005-03-23 06:49:49.0 +1200

@@ -5285,7 +5285,6 @@ 
elsif ($this_cmd) { push(@pieces, $this_cmd) } 
   } 
   push(@pieces, $after); 
+  $within_preamble=0; 
  } 
  print " $replacements new-command replacements\n"

  if (($VERBOSITY>1) && $replacements);

The line prefixed with the + must be inserted into the latex2html script.

Myriam Abramson wrote:
> Hello,
>
> I've posted this question to the latex2html list but got no
> answers. Basically, my problem is that latex2html does not transfer
> the content of the tables. The tables are there but they are
> empty. What to do?
>
> TIA
>
>   



Re: Help with configuring BibTex in Lyx

2010-01-12 Thread Guenter Milde
On 2010-01-13, Gregory Toole wrote:

> I am running Ubuntu 8.04 and LyX version 1.5.3.  I am trying to get
> started using BibTex in Lyx, but I am running into some problems.  The
> citations only come up as [?] in my documents when I generate pdf's
> from Lyx.

> So far, here is what I have done: I have set the BIBINPUTS and
> BSTINPUTS environment variables to the folder where I keep my bib
> files.  I created a Bibtex file and inserted it into Lyx with
> Insert-->List/TOC-->BibTex Bibliography.  A gray box appears in my
> document that says "BibTeX Generated Bibliography", and when I go to
> put in citations, the keys that I have in my bibtex file appear, and I
> can put in citations that are in the .bib file. 

So far so good.

> However, when I click the generate pdf button, the citations only come
> up as [?] in the document. I suspect that my problem may be that my
> TEXINPUTS variable is not set.  I am not sure what to set it to.  I
> believe the Latex packages I have installed are texlive.  Could you
> possibly help me get Bibtex working? Thank you so much!

It could be some error in your *.bib database file.
Try with a minimal example.
Try with File>Export>LaTeX and running 
 latex 
 bibtex
 latex
on the *.tex file "by hand" and watch the output.

Günter