Re: problems with class and/or layout?

2008-07-31 Thread Paul A. Rubin

alexxx wrote:

Greetings,
I used LyX up to now for basic tasks, but now I have to use the Elsevier
class, and I'm discovering a lot of new problems.
I chosed LyX right to avoid all the complexities of the Tex/LaTeX world, and
I'd be very sorry if to simply switch classes this was not sufficient!

By choosing New->From template->elsart.lyx, even the standard template is
unable to be compiled, giving the errors:

1) undefined control sequence on " \title{Insert your Title Here}"
2) Missing number, treated as zero , always on \title
3) improper 'at' size (0.0pt), replaced by 10pt, always on \title
4) Missing = inserted for \ifnum on \author{Author's name}
5) Missing number, treated as zero, always on \author

Yet, I have:
/usr/share/lyx/templates/elsart.lyx and /usr/share/lyx/layouts/elsart.layout
(both by lyx-1.5.5-1.fc8)
and the directory /usr/share/texmf/tex/latex/elsart containing elsart.cls,
elsart5.cls (and yes, after installing it I did texhash on 
/usr/share/texmf, followed by reconfigure on lyx)



what's happening? I'm completely lost - and the article deadline is nearer
and nearer!

local system: Linux Fedora fc8

thank you for any help!

alessandro






As Bob said, the first thing to do is to make sure that elsart.cls is 
being found.  (I would run 'kpsewhich elsart.cls' to verify that texhash 
did its job.)  Assuming it shows up, and I suspect it will, try doing 
the new from template approach and export the document as a .tex file, 
then post it here.  That's just to make sure that nothing is creeping 
into the document that might break it.


Also, you might want to verify that your LaTeX installation is up to date.

The template compiles fine for me (LyX 1.5.6, Win XP).

/Paul



Re: Center Tables *AND* Table-Footnotes

2008-07-31 Thread Paul A. Rubin

Sebastian Rohrer wrote:
I  have several tables in my document, which I would like to align 
centered. The problem is that the tables have footnotes. Now if I set 
the paragraph alignment of the table to "centered", the table aligns how 
it should. However, the accompanying footnotes are aligned at the left 
margin.


Is there any way to align the footnotes with the table?



I'm not entirely sure I understand the question, so just to confirm: 
you are inserting tables directly into the text (not in table floats); 
the tables contain footnotes; the tables are centered horizontally 
within the page; the footnotes appear directly under the table (not at 
the bottom of the page); and you want the footnotes to begin at the left 
edge of the table (rather than the left margin of the document).  Is 
that correct?  If so, I think the following works (although it might not 
be the most elegant solution):


1.  Put the table inside a minipage, at the desired location.
2.  Set the minipage width to approximately the width of the table 
(otherwise the horizontal line above the footnotes is liable to be too 
long).  I don't see a way to do this automatically.
3.  Use left or default justification inside the minipage.  The footnote 
will be left justified regardless, so you want the table left justified 
within the box.
4.  Put horizontal fill on either side of the minipage to center it. 
(For some reason, setting the paragraph in which the minipage appears to 
be centered does not do the job.)


Is that what you had in mind?

/Paul



Re: problems with class and/or layout?

2008-07-31 Thread Alessandro Magni

Bob Lounsbury wrote:

On Thu, Jul 31, 2008 at 3:49 AM, alexxx <[EMAIL PROTECTED]> wrote:
  

Greetings,
I used LyX up to now for basic tasks, but now I have to use the Elsevier
class, and I'm discovering a lot of new problems.
I chosed LyX right to avoid all the complexities of the Tex/LaTeX world, and
I'd be very sorry if to simply switch classes this was not sufficient!

By choosing New->From template->elsart.lyx, even the standard template is
unable to be compiled, giving the errors:

1) undefined control sequence on " \title{Insert your Title Here}"
2) Missing number, treated as zero , always on \title
3) improper 'at' size (0.0pt), replaced by 10pt, always on \title
4) Missing = inserted for \ifnum on \author{Author's name}
5) Missing number, treated as zero, always on \author

Yet, I have:
/usr/share/lyx/templates/elsart.lyx and /usr/share/lyx/layouts/elsart.layout
(both by lyx-1.5.5-1.fc8)
and the directory /usr/share/texmf/tex/latex/elsart containing elsart.cls,
elsart5.cls (and yes, after installing it I did texhash on
/usr/share/texmf, followed by reconfigure on lyx)


what's happening? I'm completely lost - and the article deadline is nearer
and nearer!

local system: Linux Fedora fc8

thank you for any help!

alessandro




--
View this message in context: 
http://n2.nabble.com/problems-with-class-and-or-layout--tp662032p662032.html
Sent from the LyX - Users mailing list archive at Nabble.com.






Well, that's strange it works fine for me. So, first things first.
After you installed elsart and did a texhash and reconfigure on LyX.
Did you check to make sure that it was actually recognized by LyX?

Meaning 'article (Elsevier)' is actually listed in
Document->Settings->Document Class or Help->LaTeX Configuration
Section 4.11 says elsart is found.

Cheers,
/Bob

  

yes:

Document->Settings->Document Class lists it as:
article(Elsevier)

Help->LaTeX Configuration:

4.11 elsart
Found: yes
CTAN: macros/latex/contrib/elsevier/
WWW: http://authors.elsevier.com/
Notes: This package is intended for producing journal articles for 
publication by Elsevier Science.


misterious...

alessandro


--

~~~
/  Dr.Alessandro Magni
\Electromagnetics Division
/INRiM Strada delle Cacce 91, 10135 Torino (ITALIA)
\Email [EMAIL PROTECTED]
/Tel: 0039-011-3919821  Fax: 0039-011-3919834
\URL http://www.inrim.it/~magni
/ Our business in life is not to succeed but to continue to fail 
\ in high spirits.  -- Robert Louis Stevenson

~~~



Re: Matching fonts in figures (.EPS) with font in main text

2008-07-31 Thread Ivan Werning


On Jul 31, 2008, at 10:07 AM, James Sutherland wrote:



On Jul 31, 2008, at 7:35 AM, Luke Lindsay wrote:

I am using Lyx to write my thesis.  I have a number of figures in  
EPS format which are produced by various programs (Stata, Maple,  
Open office draw).  I would like the fonts in the figures to be  
consistent with the one used in the main body of the text, i.e.  
same font and size.  What is the best way to achieve this?   
Ideally, I'd like to be able to change the font in used in the main  
document have font used in the figures updated automatically but  
I’m not sure if this is possible.


Luke


have a look at psfrag
http://www.ctan.org/tex-archive/help/Catalogue/entries/psfrag.html
James


I have had the same problem. I resigned myself to drawing figures  
using psgraph from the pstricks-add package. It is a bit of a pain.  
You have to export the data (from Stata, Maple, etc.) into a text  
file. Then you have to write commands to load this information and  
display it.


-Ivan

Customizing "article" with page breaks

2008-07-31 Thread Paul Morin
Hello,

Fresh new user of LyX for a week now, I have been reading the documentation
ever since to try and be as at ease as possible with this great tool.

One thing I didn't find how to do is this :

I am using the "article" layout, which is as close as possible from the
layout I want (I am currently writing an internship report). The only
problem is that I want page breaks after the title page, the ToC page and
before every new section.

I could use the "report" layout" but it is more different of what I'm
looking for (I don't need the "parts" and "chapters", for isntance).

I know I can insert a newpage with the LaTeX command "\newpage", that I've
been using so far, but I'd rather customize a layout so these break pages
were automatic (what is the point of using LyX otherwise ?).

I navigated among the .layout and .inc files, trying to find a property to
change, but I couldn't. I also heard about package inclusion but I didnt'
find any matching my needs.

I would truly appreciate any help.

Thanks,

Paul Morin


LyX version : 1.5.5
OS : Ubuntu 8.04 (kernel 2.6.24-16-generic), with Gnome


Re: Blank page without page number

2008-07-31 Thread Wolfgang Engelmann
Am Donnerstag, 31. Juli 2008 12:46 schrieb James Sutherland:

does this apply also for a floating object? I have a figure and a table and in 
both cases the legend is beyond the page number. However, if I insert your 
suggested ERT just in front of the float the page number is still there. 

Wolfgang
 
> Insert an ERT with \thispagestyle{empty}
>
>
> On Jul 31, 2008, at 2:38 AM, Waluyo Adi Siswanto <[EMAIL PROTECTED]>
>
> wrote:
> > Hi All
> >
> > When I write a new chapter (book-KOMA script) and the end of the
> > previous chapter exactly in an odd page, LyX automatically creates a
> > blank page in even page with page number and heading.
> >
> > Is that possible to remove the page number and heading in that
> > transition blank page.
> >
> > Another thing, when I use Part, it has a page number as well. Is that
> > possible to have this without page number, so I can write "Part A" in
> > the middle of the clean page (without page number)
> >
> > Thank you in advance
> >
> > Regards
> > /Adi


Re: Blank page without page number

2008-07-31 Thread James Sutherland


On Jul 31, 2008, at 12:02 PM, Wolfgang Engelmann wrote:


Am Donnerstag, 31. Juli 2008 12:46 schrieb James Sutherland:

does this apply also for a floating object? I have a figure and a  
table and in
both cases the legend is beyond the page number. However, if I  
insert your
suggested ERT just in front of the float the page number is still  
there.


Wolfgang


Insert an ERT with \thispagestyle{empty}



It removes page headers & footers (including numbering) from the  
"current" page, i.e. the page that the text is on.  Floats may end up  
on a different page.  Try putting the \thispagestyle{empty} inside the  
figure environment (but not in the caption) within an ERT.  Does that  
work?


James


Re: Multiple index

2008-07-31 Thread rgheck

Reuven Chen wrote:


Dear Sirs,

I am preparing a book with Lyx 1.5, using document class "Book (AMS)". 
I would like to have separate Subject Index and Author Index. I wonder 
if there is a straightforward way to do it.


Not in LyX directly---at least not in 1.5---but there are LaTeX packages 
for this kind of thing. Searching for "multiple index" on ctan.org got me

   http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=index
   http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=multind
and there may be others, if you just search on "index" and wade through 
the mountain of hits.


Richard



Re: Hollywood template author's address

2008-07-31 Thread Thomas King
Thomas King <[EMAIL PROTECTED]> writes:
> > I looked through the archives and wiki, and didn't find an answer to
> > this issue (although it was mentioned on the devel list). The
> > hollywood.lyx template doesn't render the author's address. Is there
> > something I need to tweak first? 
> > 
> > Thank you, 
> > Tom King
> > 
> 
> Sorry to be a pest, but does anyone know if there is a tweak for this issue
> besides changing the attribute away from author's address? 
> 
> Thanks!

Well, I guess no one either knows or cares about this issue. :/ I need to find
another solution besides lyx for writing/editing screenplays. 

Take care!
Tom



Re: Hollywood template author's address

2008-07-31 Thread Rich Shepard

On Thu, 31 Jul 2008, Thomas King wrote:


Well, I guess no one either knows or cares about this issue. :/ I need to
find another solution besides lyx for writing/editing screenplays.


Tom,

  I've not looked at that template, but I'm sure that the author's address
can be added. Or, the KOMA-Script or Memoir classes might serve your needs,
since they're almost infinitely adjustable.

  Not knowing anything about screenplay writing or editing I probably would
not be of any help.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Blank page without page number

2008-07-31 Thread Wolfgang Engelmann
Am Donnerstag, 31. Juli 2008 17:05 schrieben Sie:
> On Jul 31, 2008, at 12:02 PM, Wolfgang Engelmann wrote:
> > Am Donnerstag, 31. Juli 2008 12:46 schrieb James Sutherland:
> >
> > does this apply also for a floating object? I have a figure and a
> > table and in
> > both cases the legend is beyond the page number. However, if I
> > insert your
> > suggested ERT just in front of the float the page number is still
> > there.
> >
> > Wolfgang
> >
> >> Insert an ERT with \thispagestyle{empty}
>
> It removes page headers & footers (including numbering) from the
> "current" page, i.e. the page that the text is on.  Floats may end up
> on a different page.  Try putting the \thispagestyle{empty} inside the
> figure environment (but not in the caption) within an ERT.  Does that
> work?
>
> James

No, it does not work. I tried to put it before and after the legend(s), but 
the page nr is still shown (both in fig and table)
Wolfgang


Re: Customizing "article" with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

Hello,

Fresh new user of LyX for a week now, I have been reading the documentation
ever since to try and be as at ease as possible with this great tool.

One thing I didn't find how to do is this :

I am using the "article" layout, which is as close as possible from the
layout I want (I am currently writing an internship report). The only
problem is that I want page breaks after the title page, the ToC page and
before every new section.

  
For the title page, just use the document option "titlepage" 
(Document>Settings>Options).



I could use the "report" layout" but it is more different of what I'm
looking for (I don't need the "parts" and "chapters", for isntance).

  
You could also try the koma-script article class, which is very 
customizable.


I know I can insert a newpage with the LaTeX command "\newpage", 

  

In LyX you can do it with Insert>Formatting>Page Break.


that I've
been using so far, but I'd rather customize a layout so these break pages
were automatic (what is the point of using LyX otherwise ?).

  

It's kind of a hack, but something like this in the preamble ought to work:

\let\oldtoc=\tableofcontents
\renewcommand\tableofcontents{\oldtoc{}\newpage{}}
\let\oldsec=\section
\renewcommand\section{\pagebreak\oldsec}

It'd probably be neater to do this via the titlesec package.


I navigated among the .layout and .inc files, trying to find a property to
change, but I couldn't. I also heard about package inclusion but I didnt'
find any matching my needs.

  

This kind of thing mostly has to be done at the LaTeX level.

rh



Re: Customizing "article" with page breaks

2008-07-31 Thread Steve Litt
On Thursday 31 July 2008 11:53, Paul Morin wrote:
> Hello,
>
> Fresh new user of LyX for a week now, I have been reading the documentation
> ever since to try and be as at ease as possible with this great tool.
>
> One thing I didn't find how to do is this :
>
> I am using the "article" layout, which is as close as possible from the
> layout I want (I am currently writing an internship report). The only
> problem is that I want page breaks after the title page, the ToC page and
> before every new section.
>
> I could use the "report" layout" but it is more different of what I'm
> looking for (I don't need the "parts" and "chapters", for isntance).
>
> I know I can insert a newpage with the LaTeX command "\newpage", that I've
> been using so far, but I'd rather customize a layout so these break pages
> were automatic (what is the point of using LyX otherwise ?).
>
> I navigated among the .layout and .inc files, trying to find a property to
> change, but I couldn't. I also heard about package inclusion but I didnt'
> find any matching my needs.
>
> I would truly appreciate any help.

Hi Paul,

In my opinion, frontmatter should be fine tuned (put LaTeX code in the doc 
using LyX's LaTeX Code button, also called Evil Red Text (ERT)). That's how 
I'd handle the page breaks after the title page and the ToC page.

For the section pages, I recommend doing just what you said and modifying the 
\section environment inside a layout file of your creation. I've done a lot 
of writing on how to do that on my LyX subsite:

http://www.troubleshooters.com/linux/lyx/index.htm

IMHO what you want to do is fairly easy.

HTH

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



Re: Hollywood template author's address

2008-07-31 Thread rgheck

Thomas King wrote:

Thomas King <[EMAIL PROTECTED]> writes:
  

I looked through the archives and wiki, and didn't find an answer to
this issue (although it was mentioned on the devel list). The
hollywood.lyx template doesn't render the author's address. Is there
something I need to tweak first? 

Thank you, 
Tom King


  

Sorry to be a pest, but does anyone know if there is a tweak for this issue
besides changing the attribute away from author's address? 


Thanks!



Well, I guess no one either knows or cares about this issue. :/ I need to find
another solution besides lyx for writing/editing screenplays. 

  
I think there aren't many people nowadays using the hollywood class, and 
none of us want just to make something up. ;-) But I've had a quick 
look. If you open the template and remove the vertical space following 
"", then the address gets rendered in the lower right corner 
of the title page. So this should be OK.


I've fixed this bug for the next release.

rh



Re: failures converting to HTML

2008-07-31 Thread rgheck

Travis wrote:

I tried to add some graphics to my security_concepts paper, but when I try
to convert to HTML I get:

lyx -e html security_concepts.lyx
Including LaTeX commands
 Unknown command \batchmode, (0 user-defined) Line 1
 Unknown command \makeatletter, (0 user-defined) Line 2
 Unknown command \makeatother, (1 user-defined) Line 4
 Unknown command \usepackage, (0 user-defined) Line 6
 Unknown parameter/dimension/glue command \parskip = Line 8
 Unknown command \medskipamount, (0 user-defined) Line 8
 Unknown parameter/dimension/glue command \parindent = Line 9
Segmentation fault
Error: Cannot convert file

An error occurred whilst running tth  -t -e2 
-L'/tmp/lyx_tmpdir11139zuufC2/lyx_tmpb
make: *** [security_concepts.html] Error 1

Is there a simple fix for this?  I'd like people to not have to use
the PDF exclusively.

  

It's hard to know what the problem is in the abstract. Try to "bisect" the problem: 
Delete the second half of the document and try again. If it still fails, delete half of what's 
left. If it works, put some back, etc, until you pinpoint the problem. Then, even better, see if 
you can use what you've learned to construct a "minimal case" that causes this problem. 
Then we'll have a chance to debug it.

Richard




Re: failures converting to HTML

2008-07-31 Thread rgheck

Travis wrote:

Also, is there a way to specify alternate stuff for the various output
media types?  I know I've seen that feature in other software...
  

One question at a time! ;-)

Do you mean, say: A different graphic for output to HTML? I don't think 
we have that, though I could be wrong. But feel free to file an 
enhancement request. I don't think that would be very difficult.


Oh, no wait, we do kind of have that. You could use branches. Have a 
"PDF" branch for your PDF stuff and an "HTML" branch for the HTML stuff. 
Not perfect, but workable.


rh



Re: Blank page without page number

2008-07-31 Thread James Sutherland


It removes page headers & footers (including numbering) from the
"current" page, i.e. the page that the text is on.  Floats may end up
on a different page.  Try putting the \thispagestyle{empty} inside  
the

figure environment (but not in the caption) within an ERT.  Does that
work?

James


No, it does not work. I tried to put it before and after the  
legend(s), but

the page nr is still shown (both in fig and table)
Wolfgang



Wolfgang,
Can you send an example that demonstrates the problem?  It seems to  
work for me on a very simple test I ran.

James


Re: Customizing "article" with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

2008/7/31 rgheck <[EMAIL PROTECTED] >


I could use the "report" layout" but it is more different of
what I'm
looking for (I don't need the "parts" and "chapters", for
isntance).

 


You could also try the koma-script article class, which is very
customizable.


Thanks for the detailed answer, it helps ! Can you tell me which files 
are related to the article koma script, I didn't find them in the 
/usr/share/lyx/layouts directory...


This is scrartcl.layout, but you'll want to look at the koma-script 
documentation, which is in scrguien.pdf. Try "locate scrguien.pdf" at a 
shell prompt, or use whatever file finder thingy you have available. Or 
here:
   
http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
These kinds of changes all go into the preamble. LyX won't help you once 
you're down to this level of customization.


Oh, and keep replies on list, if only so they're archived for future users.

rh



Re: Customizing "article" with page breaks

2008-07-31 Thread Paul Morin
2008/7/31 rgheck <[EMAIL PROTECTED]>

> Paul Morin wrote:
>
>> 2008/7/31 rgheck <[EMAIL PROTECTED] >
>>
>>
>>
>>I could use the "report" layout" but it is more different of
>>what I'm
>>looking for (I don't need the "parts" and "chapters", for
>>isntance).
>>
>>
>>You could also try the koma-script article class, which is very
>>customizable.
>>
>>
>> Thanks for the detailed answer, it helps ! Can you tell me which files are
>> related to the article koma script, I didn't find them in the
>> /usr/share/lyx/layouts directory...
>>
>>  This is scrartcl.layout, but you'll want to look at the koma-script
> documentation, which is in scrguien.pdf. Try "locate scrguien.pdf" at a
> shell prompt, or use whatever file finder thingy you have available. Or
> here:
>
> http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
> These kinds of changes all go into the preamble. LyX won't help you once
> you're down to this level of customization.


I'll look into it and hopefully find what I need. Thanks for the time and
help.

Paul Morin


Re: Blank page without page number

2008-07-31 Thread Waluyo Adi Siswanto
Thank you for the suggestion
I did searching in this forum and found related topic under the thread "turn
off page numbers but still count page" and learned from there as well. Now I
can get what I want (to have a clean transition blank (even) page, without
page number, but counted).
These tricks work:
In the end of every chapter
  ERT \thispagestyle{headings}\pagestyle{empty}
In the beginning of every chapter, a line after the Chapter environment
  ERT \pagestyle{headings}

For the clean Part environment
 ERT  \thispagestyle{empty}

I am just wondering whether it can be defined globally (maybe in the
preamble ?), so I do not need to type many times?

Regards
\Adi

On Thu, Jul 31, 2008 at 8:46 PM, James Sutherland <[EMAIL PROTECTED]
> wrote:

> Insert an ERT with \thispagestyle{empty}
>
>
>
> On Jul 31, 2008, at 2:38 AM, Waluyo Adi Siswanto <[EMAIL PROTECTED]>
> wrote:
>
> Hi All
>>
>> When I write a new chapter (book-KOMA script) and the end of the
>> previous chapter exactly in an odd page, LyX automatically creates a
>> blank page in even page with page number and heading.
>>
>> Is that possible to remove the page number and heading in that
>> transition blank page.
>>
>> Another thing, when I use Part, it has a page number as well. Is that
>> possible to have this without page number, so I can write "Part A" in
>> the middle of the clean page (without page number)
>>
>> Thank you in advance
>>
>> Regards
>> /Adi
>>
>>


-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


<    1   2