Re: pagebreaks and labeling

2005-10-13 Thread Juergen Spitzmueller
Todd Denniston wrote:
 Although I Generally like to force new major sections to start on a new
 page too, you can be a little gentler and ask LaTeX not to make widows[1]
 or orphans[2] most of the time anyway. The LaTeX way is to make it a
 penalty to create such a line, using \clubpenalty and \widowpenalty [3].
 I always put in my preamble:
 \widowpenalty=1
 \clubpenalty=1
 \raggedbottom

This is the preferred way, but sometimes, LaTeX still produces widows. Instead 
of forced page breaks, you can use conditional page breaks in this case, 
which only break pages when a given amount of space is not provided:

% In Preamble
\def\condbreak#1{\vskip 0pt plus #1\pagebreak[3]\vskip 0pt plus -#1\relax}

and in the document, e.g.
\condbreak{2\baselineskip}
inserts a pagebreak when there is less then 2 lines below.

Jürgen


Re: Problem with table and paranthesis wn Lyx 1.4pre2

2005-10-13 Thread Juergen Spitzmueller
Marius Ionescu wrote:
 I am using Lyx1.4pre2 with the qt frontend on Ubuntu 5.04. It behaves
 strange when, in the math mode (display), I want to insert a two-by-two
 matrix and then I select it and try to insert parenthesis to the left and
 right (a matrix). After I press the insert button (for parenthesis), the
 matrix becomes a 1X2 matrix (it erases on row).

Hello Marius,

this is a known bug, a fix has already been proposed. Thanks for reporting.

Jürgen


Re: Presentations using LyX

2005-10-13 Thread Gour
Rich Shepard ([EMAIL PROTECTED]) wrote:

   I've used beamer to prepare the slides for two public presentations over
 the past month. I've inserted tables within a slide frame, created graphics
 using tgif (which are included as .eps files) and PSTricks (compiled with
 ps4pdf before being inserted into the document), and used the full range of
 tools to create sections and sub-sections. 

I'd like to hear more regarding the drawing tools used with beamer/LyX.

afaics, in the beamer manual, pstricks does not work with pdflatex?

Is the ps4pdf right solution?

I am thinking about the power of pgf (TkiZ) package and how does it
compare with e.g. metapost/pstricks ?

Another option would be to use e.g. inkscape (which provides LaTeX with
PSTricks macros output format)  to have pgf backe-end so that inkscape
can integrate LaTeX fonts and macros ready for pgf  inclusion in
beamer presentation?

What is the status of SVG support in LyX/LaTeX?

Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Sorting the Bibliography

2005-10-13 Thread Charles de Miramon
Walid Maalej wrote:

 Dear all,
 
 I ve just added my references using the Lyx features. Now I would like to
 have theses references alphabetically sorted in the final document.
 Can I do it with Lyx? If No, do you know which LaTeX commands will solve
 my problem?

The way your bibliography is formatted and sorted is controlled by the
bibliographystyle. You can choose it from the Insert--List--Bibliography
dialog box.
The basic styles are plain, alpha and unsrt. The first two will sort
alphabetically your references. The last one will leave the references in
order of their appearance in your paper.

Beware that alphabetical sorting becomes a more complex task for a lot of
European languages for example the German ä or the French é, è or the
Spanish ll. Specialized bibliography styles may help.

For sorting a list or a glossary, I don't know of any tool.  

Cheers,
Charles
-- 
http://www.kde-france.org



Wiki page for Presentations using LyX

2005-10-13 Thread chr
Given the recent thread, I've posted some of the answers to this page:

http://wiki.lyx.org/LyX/PresentationsUsingLyX

feel free to add more or perhaps re-structure it.

On Wed, 12 Oct 2005, Robert Orr wrote:
 These were really nice.

 Is it possible to get a .tar.gz of this directory?
 
 http://fkurth.de/uwest/usti/Vortrag/ 

Maybe they could go in as examples in the examples section?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Presentations using LyX

2005-10-13 Thread Paul Smith
On 10/13/05, Gour [EMAIL PROTECTED] wrote:
I've used beamer to prepare the slides for two public presentations over
  the past month. I've inserted tables within a slide frame, created graphics
  using tgif (which are included as .eps files) and PSTricks (compiled with
  ps4pdf before being inserted into the document), and used the full range of
  tools to create sections and sub-sections.

 I'd like to hear more regarding the drawing tools used with beamer/LyX.

 afaics, in the beamer manual, pstricks does not work with pdflatex?

 Is the ps4pdf right solution?

 I am thinking about the power of pgf (TkiZ) package and how does it
 compare with e.g. metapost/pstricks ?

 Another option would be to use e.g. inkscape (which provides LaTeX with
 PSTricks macros output format)  to have pgf backe-end so that inkscape
 can integrate LaTeX fonts and macros ready for pgf  inclusion in
 beamer presentation?

 What is the status of SVG support in LyX/LaTeX?

Gour,

Beamer works fine with PSTricks, as long as one uses ps4pdf. People
who simultaneously know very well pgf and PSTricks claim that PSTricks
is much superior to pgf.

Regards,

Paul


Re: Presentations using LyX

2005-10-13 Thread Georg Baum
Gour wrote:

 Another option would be to use e.g. inkscape (which provides LaTeX with
 PSTricks macros output format)  to have pgf backe-end so that inkscape
 can integrate LaTeX fonts and macros ready for pgf  inclusion in
 beamer presentation?
 
 What is the status of SVG support in LyX/LaTeX?

It is the same as with any image format: If you have a converter that
transforms svg in eps (can inkscape do that from the command line?), you
can define it in the preferences and simply include svg figures in your
document. I don't know if the standard converter can handle this
transformation.

You could also write an external template to use the LaTeX with PSTricks
macros output format of inkscape. This would be very similar to the
existing xfig template.


Georg



Re: Presentations using LyX

2005-10-13 Thread Gour
Paul Smith ([EMAIL PROTECTED]) wrote:

 Beamer works fine with PSTricks, as long as one uses ps4pdf. People
 who simultaneously know very well pgf and PSTricks claim that PSTricks
 is much superior to pgf.

So, it means one can safely use Inkscape to draw illustrations and save
graphic as LaTeX with PSTricks extensions and use it in beamer?

Does anyone have any idea which PSTricks extensions are needed for 

Inkscape -- LaTeX ?


Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Presentations using LyX

2005-10-13 Thread Angus Leeming
Gour wrote:
 Beamer works fine with PSTricks, as long as one uses ps4pdf. People
 who simultaneously know very well pgf and PSTricks claim that PSTricks
 is much superior to pgf.
 
 So, it means one can safely use Inkscape to draw illustrations and save
 graphic as LaTeX with PSTricks extensions and use it in beamer?

If you're being funky, you could write an Inkscape template for the
External Inset (see share/lyx/external_templates) and include your
inkscape file directly into your LyX document. I do just that all the time
with my XFig figures.

As for SVG: If you define an svg format and define converters from
svg to png, pdf and eps then you'll be able to include SVG
graphics directly in the Graphcis inset and they'll just work.

-- 
Angus



Re: Presentations using LyX

2005-10-13 Thread Gour
Angus Leeming ([EMAIL PROTECTED]) wrote:

 If you're being funky, you could write an Inkscape template for the
 External Inset (see share/lyx/external_templates) and include your
 inkscape file directly into your LyX document. I do just that all the time
 with my XFig figures.

Whoah...this is something new!!

Thank you for the pointer.

I'm still returning to LyX (after not so successful adventure in XML 
ConTeXt world :-) so I'm still not aware of all the goodies developed
in LyX in the meantime ;)

Will definitely try this approach. (Now I have problems in pdflatex-ing
Inkscape's output, i.e. trying to discern what are the extensions (aka
pacakges) needed to produce output.)

 As for SVG: If you define an svg format and define converters from
 svg to png, pdf and eps then you'll be able to include SVG
 graphics directly in the Graphcis inset and they'll just work.

Well, SVG is not so interesting for itself, i.e. I just asked if one
can retain graphic and combine it with the LaTeX/LyX text. Otherwise,
converting the whole thing from Inkscape to .e.g. pdf, does not make
much sense, cause text on the graphic-oriented slides and text-only
slides would differ too much.

So, including Inkscape exported graphic as a template and combining it with
LyX text-capabilities is, imho, a right way to go.

btw, I saw on Inkscape mailing list there are several people migrating
from xfig :-)

Sincerely,
Gour


-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Presentations using LyX

2005-10-13 Thread Rich Shepard

On Thu, 13 Oct 2005, Gour wrote:


I'd like to hear more regarding the drawing tools used with beamer/LyX.


  Anything that produces a file in .eps format can be inserted directly into
the document.


afaics, in the beamer manual, pstricks does not work with pdflatex?


  This is correct.


Is the ps4pdf right solution?


  Yes. If you follow the directions for adding ps4pdf to LyX you'll have a
new choice, PDF4, on the View and File-Export menus. Use those.


I am thinking about the power of pgf (TkiZ) package and how does it compare
with e.g. metapost/pstricks ?


  Others need to address this. There are so many high quality applications
for vector graphics that one could spend a lot of time evaluating them all
and trying to select the best. What I did was consider the needs I had,
found a couple of solutions, learned to use them, and ignored the rest. This
is not to suggest that everyone should do the same.


Another option would be to use e.g. inkscape (which provides LaTeX with
PSTricks macros output format)  to have pgf backe-end so that inkscape can
integrate LaTeX fonts and macros ready for pgf  inclusion in beamer
presentation?


  What are you drawing? How much time do you want to spend on each figure?
Are you sufficiently fluent in one of the drawing languages (such as PSTricks
and pgf) that you can create what you want as quickly as with a visual editor
(such as tgif, jPicEdit, ipe and a ton of others)?


What is the status of SVG support in LyX/LaTeX?


  Dunno. Aren't there more than enough choices already? :-)

  What I find amusing is that those stuck behind the supposedly-bullet-proof
Windows have so few choices and those of us in the F/OSS world spend a lot of
time trying to wade through the plethora of choices. And, they're all good
ones.

Rich

--
Dr. Richard B. Shepard, President |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Caption and graphics within the same paragraph?!

2005-10-13 Thread Walid Maalej
Hi @ all,

I was wondering if it is possible to put the graphics centered within a
float and the caption justified. Every time I change the paragraph parameter
of the caption to justified it turns automatically to centered as the
graphic.

I will really appreciate any help
Walid




Re: Caption and graphics within the same paragraph?!

2005-10-13 Thread Daniel Watkins
 I was wondering if it is possible to put the graphics centered within
 a float and the caption justified. Every time I change the paragraph
 parameter of the caption to justified it turns automatically to
 centered as the graphic.

I presume that you don't want the graphics and caption on separate lines
within the caption. If you do, then just hit enter once before you
insert the graphics.

If that's the case, I'd be interested to hear why, because there doesn't
seem to be any good reason not to have them on separate lines...

Dan



Re: pdflatex MacOS X

2005-10-13 Thread Geoffrey Lloyd

David and Bennett

I too have problems when I try an view or export you file with pdflatex - I 
am using winXP


I have had a fiddle about and find the following interesting although have 
no idea what t means or how to fix it!!


I called the original lyx document test1.lyx and the file to be included 
test2.pdf


Export-Latex on test1.lyx produces test1true.tex (as i have remnamed it)
Export-pdflatex produces test1.tex

These two files differ slightly (why i do not know - surley lyx should 
produce the same .tex file in the lyx-tex step**see below) but importantly 
they both compile correctl with pdflatex in the command window.


But Export-pdflatex also produces test1.tex.dep-pdf

I have no idea what this file is used for but you will see there are two 
columns of numbers on the left. For test2.pdf the second value is zero. This 
is not good. And maybe this is the source of the problem.


**
What I dont understand is why lyx doesnt simply generate the tex and then 
run pdflatex. Doing this by hand produces the correct result. What is it 
that lyx is doing differently to do this conversion?


Geoff
- Original Message - 
From: David Philp [EMAIL PROTECTED]
To: Geoffrey Lloyd [EMAIL PROTECTED]; Bennett Helm 
[EMAIL PROTECTED]

Sent: Thursday, October 13, 2005 1:38 AM
Subject: Re: pdflatex  MacOS X


the maximally simple example.  Thanks, D


test1.lyx
Description: application/lyx


test2.pdf
Description: Adobe PDF document


test1true.tex
Description: Binary data


test1.tex
Description: Binary data


test1.tex.dep-pdf
Description: Binary data


lyx-code - date-insert

2005-10-13 Thread David Wolfson
hello lyx-list,

I've just subscribed having had a trawl through the wiki (but not found the 
answer to my problem), so  a quick intro seems in order. I'm currently trying 
to write up and engineering thesis in lyx, having migrated to linux for all 
but a few apps in the last couple of years. Having not had any trainning 
pre-se, I'm into ugly scripting hacks and a big fan of mailing lists (the 
local lug in nottingham is *very* active and really helpful). 

So far I seem to have got my various chapter documents interacting sensbily 
and a have been really impressed with the look of the documents (they're just 
laking text and that's my problem!). However, the more reading round I do and 
the closer to having to sort out final layout, the more I fear I'm going to 
have to start using ERT and the like, so I might be after some hint and tips 
to get going in the next couple of months...

Anyway, the first of these problems is with inserting a date. I do the 
occasion print out and would like to include the current date when I do . I 
found some of the lyx-codes described in the wiki, and by adding 
'date-insert' and formating as lyxCode I get the current date nicely in the 
page :-) However I then get a page with nothing but 'date-insert' after it!

Have I gone about this the right way? If so, how do I get rid of the actual 
lyx-code text?

I'm using Version 1.3.5 on madrake 10.1 community...

Thanks in advance for any help/advice,

Dave



Re: Presentations using LyX

2005-10-13 Thread Gour
Rich Shepard ([EMAIL PROTECTED]) wrote:

   Yes. If you follow the directions for adding ps4pdf to LyX you'll have a
 new choice, PDF4, on the View and File-Export menus. Use those.

I've found something in wiki, is that the right thing?

   Others need to address this. There are so many high quality applications
 for vector graphics that one could spend a lot of time evaluating them all
 and trying to select the best. What I did was consider the needs I had,
 found a couple of solutions, learned to use them, and ignored the rest. This
 is not to suggest that everyone should do the same.

Still, it's very good advice. Better to master one package, then to
encounter many and know none.

   What are you drawing? 

I intend to illustrate my slides with a clipart-like drawings  combine
them with e.g. openclipart library.

 How much time do you want to spend on each figure?

This one is not easy to estimate atm.

 Are you sufficiently fluent in one of the drawing languages (such as
 PSTricks and pgf) that you can create what you want as quickly as with
 a visual editor (such as tgif, jPicEdit, ipe and a ton of others)?

No. I'm just beginning with this stuff, and although I could dive in
into PSTricks and pgf, I'll probably get some help from my better half
and she will be more comfortable with Inkscape, GIMP...using some
simple tablet. That's why I'm talking about e.g. inkscape  LyX.

   What I find amusing is that those stuck behind the
   supposedly-bullet-proof Windows have so few choices and those of us
   in the F/OSS world spend a lot of time trying to wade through the
   plethora of choices. And, they're all good ones.

I fully agree, but people are belong to the weird species :-)

Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Walid Maalej

Subject: RE: Caption and graphics within the same paragraph?!

Hi Dan,

Thanks for your replay.

 I presume that you don't want the graphics and caption on separate lines
 within the caption. If you do, then just hit enter once before you
 insert the graphics.

Yes. Sure the graphic and its name are in separate lines -- separate
paragraphs. However I'm not able to define two different styles for each
paragraph: Justified for the caption and centered for the graphic. I have
both of them inside a float:Figure
Do you know if this possible? Or do I have to put them without a float?


Cheers
Walid




Re: lyx-code - date-insert

2005-10-13 Thread chr
On Thu, 13 Oct 2005, David Wolfson wrote:

 Anyway, the first of these problems is with inserting a date. I do the
 occasion print out and would like to include the current date when I do.

Hang on... you actually want to have the current date in the printout??? 
(One of the most frequent questions is how to *not* get the date:-)

It's been a while, but I think you'll need an ERT that contains 
\today{}
LaTeX will automaticall replace '\today{}' with the time the document is
compiled. You can place this command in headers/footers if you want it on 
every page.

cheers
/Christian


-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Presentations using LyX

2005-10-13 Thread Rich Shepard

On Thu, 13 Oct 2005, Gour wrote:


I've found something in wiki, is that the right thing?


  I don't know. I followed the instructions with the ps4pdf package ... I
think. Once I get some application or add-on installed and working I do a
dump of that knowledge from the NPU[1] so there's room for more current
information.


No. I'm just beginning with this stuff, and although I could dive in into
PSTricks and pgf, I'll probably get some help from my better half and she
will be more comfortable with Inkscape, GIMP...using some simple tablet.
That's why I'm talking about e.g. inkscape  LyX.


  For clipart-type images I believe that inkscape, sketch, tgif, ipe,
jpicedit and the others that let you visually assemble the image will be
quicker and easier than applications such as PSTricks, pgf, xfig, and gri
which are drawing languages. The GIMP is raster based rather than vector
based and may not be quite as good for your purposes as the others.


I fully agree, but people are belong to the weird species :-)


  Life would be very boring if we were all the same, eh?

Rich

--
Dr. Richard B. Shepard, President |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863

[1] Neural Processing Unit


Re: FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Angus Leeming
Walid Maalej wrote:
 Yes. Sure the graphic and its name are in separate lines -- separate
 paragraphs. However I'm not able to define two different styles for each
 paragraph: Justified for the caption and centered for the graphic. I have
 both of them inside a float:Figure
 Do you know if this possible? Or do I have to put them without a float?

Open the Layout-Paragraph dialog and set the justification as you desire.

-- 
Angus



Re: FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Angus Leeming
On Thursday 13 October 2005 20:43, Walid Maalej wrote:
   Yes. Sure the graphic and its name are in separate lines -- separate
   paragraphs. However I'm not able to define two different styles for
   each paragraph: Justified for the caption and centered for the graphic.
   I
 
  have
 
   both of them inside a float:Figure
   Do you know if this possible? Or do I have to put them without a float?
 
  Open the Layout-Paragraph dialog and set the justification as you
  desire.

 No it does not work! Every time I change the justification for the caption,
 it gets back to the paragraph's value.
 I guess within a float one can have only one justification even if we have
 more than one paragraph?!

Sorry, my misunderstanding. I thought you wanted to center the graphic.

To center the caption you need to redefine the LaTeX.

I've used this in the past. Add it to your preamble.

%% Set the captions to be italic
\newcommand\myCaption[1]{\itshape\refstepcounter{figure}%
   \begin{center}\figurename\ \thefigure :\ #1\end{center}\upshape}
\let\caption\myCaption

Please reply to the list...

Angus


Problems with installing/running

2005-10-13 Thread Robert Badzey


Hi:

So I've been using LyX for awhile now.  Great program - wrote my 
dissertation on it in about half the time it would have taken for LatTeX.


So I noticed the new build (1.3.6) for Windows, and figured I'd give it a 
shot.  I don't know what the problem is, but it's been giving me fits ever 
since, with a progressive degrading of performance that's a bit startling.


First, I couldn't import LaTex files correctly.  Always got an error 
message.  Tried installing tex2lyx -- no dice.  I just got a generic error 
message, and so was never able to track it down beyond that.


Then, just yesterday, LyX apparently lost the ability to generate previews 
- no DVI, nothing.  The pull-down menu options which existed before simply 
vanished.  Only output to PDF.  Having removed and re-installed, now I 
can't even run it.  I get an error message which tells me that it wasn't 
able to find any layout description and the program fails to run.


So in the space of three days I've gone from a functional program to one 
which simply won't run at all.


Any ideas/suggestions?  This is very worrying and not at all explicable.

Rob Badzey


Re: Problems with installing/running

2005-10-13 Thread Angus Leeming
Robert Badzey wrote:

 
 Hi:
 
 So I've been using LyX for awhile now.  Great program - wrote my
 dissertation on it in about half the time it would have taken for LatTeX.
 
 So I noticed the new build (1.3.6) for Windows, and figured I'd give it a
 shot.  I don't know what the problem is, but it's been giving me fits
 ever since, with a progressive degrading of performance that's a bit
 startling.
 
 First, I couldn't import LaTex files correctly.  Always got an error
 message.  Tried installing tex2lyx -- no dice.  I just got a generic
 error message, and so was never able to track it down beyond that.
 
 Then, just yesterday, LyX apparently lost the ability to generate
 previews
 - no DVI, nothing.  The pull-down menu options which existed before
 simply
 vanished.  Only output to PDF.  Having removed and re-installed, now I
 can't even run it.  I get an error message which tells me that it wasn't
 able to find any layout description and the program fails to run.
 
 So in the space of three days I've gone from a functional program to one
 which simply won't run at all.
 
 Any ideas/suggestions?  This is very worrying and not at all explicable.

Try running it as
   lyx -dbg init
from the command line. Here, on a linux machine I get:

$ qlyx13x -dbg init
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... yes
package
binary_dir /home/angus/bin/
system_support /home/angus/lyx/13x/lib/
build_support /home/angus/lyx/13x/build-qt/lib/
user_support /home/angus/.lyx/
locale_dir
document_dir /home/angus
temp_dir /tmp
home_dir /home/angus
/package

Your output will, of course, be different but informative.

LyX works quite hard to determine its system support directory

1. Specify it using the -sysdir command line parameter.
   lyx -sysdir 'C:/Program Files/LyX/Resources/lyx'

2. It checks the value of the LYX_DIR_13x environment variable.

3. It checks relative to the location of the LyX binary, looking
for a file chkconfig.ltx in a directory

   OnlyPath(abs_binary)/../Resources/LyX

So, if your LyX binary is found at
   C:/Program Files/LyX/bin/lyx.exe
it'll look for chlconfig.ltx at
   C:/Program Files/LyX/bin/../Resources/LyX/chkconfig.ltx

This directory should contain everything that LyX needs to function.

$ ls -F /mnt/windowsC/Program\ Files/LyX/Resources/lyx/
bind/   encodings*   languages*   reLyX/  ui/
chkconfig.ltx*  examples/layouts/ scripts/   
xfonts/
clipart/external_templates*  lyx2lyx/ symbols*
configure*  help/lyxrc.defaults*  templates/
CREDITS*images/  lyxrc.example*   tex/
doc/kbd/ packages.lst*textclass.lst*

Important files: lyxrc.defaults should contain a whole heap of stuff about
your system, as probed by the configure shell script (same dir). Of
course, for it to run LyX must be able to find a working sh.exe.
I attach my lyxrc.default, for reference.

Note that the path_prefix entry is set by the installer script at install
time.

LyX's layouts should be in the layouts directory.

Hope some of this helps...

-- 
Angus# This file has been automatically generated by LyX' lib/configure
# script. It contains default settings that have been determined by
# examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
# want to customize LyX, make a copy of the file LYXDIR/lyxrc as
# ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
# override the values given here.
\Format text  txt   ASCII   A
\Format textparagraph txt ASCII(paragraphs) 
\Format docbook  sgml   DocBook B
\Format bmp  bmpBMP 
\Format dvi   dvi   DVI D
\Format dvi2  dvi   DraftDVI
\Format eps   eps   EPS 
\Format fax   Fax 
\Format fig   fig   XFig
\Format agr  agrGRACE   
\Format html  html  HTMLH
\Format gif   gif   GIF 
\Format jpg   jpg   JPG 
\Format latex tex   LaTeX   L
\Format linuxdoc sgml   LinuxDocx
\Format lyx  lyxLyX 
\Format literate nw NoWeb   N
\Format pdf   pdf   PDF P
\Format pdf2  pdf  PDF (pdflatex) F
\Format pdf3  pdf  PDF (dvipdfm)  m
\Format png   png   PNG 
\Format ppm   ppm   PPM 
\Format pgm   pgm   PGM 
\Format pbm   pbm   PBM 
\Format pspsPostscript  t
\Format program   Program 
\Format tgif objTGIF
\Format tiff tifTIFF
\Format word  doc   WordW
\Format xbm   xbm   XBM 
\Format xpm   xpm   XPM 
\Format lyxpreview  lyxpreview  LyX Preview   

\converter latex dvi2 

pdflatex

2005-10-13 Thread Geoffrey Lloyd
Hi

In trying to help with another thread (pdflatex  MacOS X) I have come across 
something I don't understand.

It appears that when you do Export-pdflatex Lyx does not do what I expected. 

Here is what I think should happen:

Lyx-Latex-pdf (using pdflatex) AND it should produce the same results as if I 
did by hand

Lyx-Latex and then Latex-pdf (using pdflatex)

However it doesn't. 

Could someone in the know please explain to me how Lyx goes about this 
conversion. 

Geoff

Re: Presentations using LyX

2005-10-13 Thread Raymond Ouellette
I'm using LyX and Beamer class these days for a presentation of Gimp 2.2.x. The 
result is great by the way! To add special effects I also use minipages in 
slides (or frames)

As for svg graphics here is my solution:

I inserted 2 small identical images, the first one is svg and the other is png 
generated from Inkscape (older Sodipodi would do the same) to illustrate the 
differences between vector and bitmap graphics. Beamer uses pdflatex as 
converter and it manages very well pdf pages.

I created with Scribus [http://www.scribus.net/] a small pdf pages (19mmx25mm) 
in which I inserted both images scaled to 17mmx20mm; I added the words 
vectoriel (vector) and matriciel (bitmap) with a 4pt Bitstream Vera font over 
each image. The choice of such a small page (correct me if I'm wrong) is 
because Beamer works with slides 96mmx128mm.

I added the small pdf page with this ERT:
\includegraphics [scale=1]{thepage.pdf}

You can scale to the wanted size, I added the option in the ERT so that you may 
use this possibility.

Finally, when you view your final presentation (in pdf format), you can view it 
fullscreen even with xpdf (3.01 is the version I use) this way:

xpdf -fullscreen presentation.pdf

But, if you use Acrobat Reader, be aware of this hidden trick: press z when a 
page is shown to switch to the zoom mode, Ctrl+= will zoom in, Ctrl+- will zoom 
out, and Ctrl+0 will go back to the original fullscreen size. Once the page is 
zoomed, you can mouve around the page by dragging with the mouse with the left 
button pressed.

Raymond Ouellette

-- 

Édité et transmis avec des logiciels libres sous Linux !




Re: pdflatex

2005-10-13 Thread Angus Leeming
Geoffrey Lloyd wrote:
 It appears that when you do Export-pdflatex Lyx does not do what I
 expected.
 
 Here is what I think should happen:
 
 Lyx-Latex-pdf (using pdflatex) AND it should produce the same results
 as if I did by hand

Not necessarily.

When LyX knows that it's outputing latex for the pdflatex compiler, it
tunes one or two things specifically for it. Unfortunately, we don't have
an option to export to LaTeX (pdflatex). Thus, when you export the latex
file and run the conversion process by hand the results *may well* be
slightly different.

Paths to external graphics and databases will also differ, for obvious
reasons.

Compare the LaTeX file you get with Export-LaTeX with that in the temp
directory where the conversion takes place:

$ diff -u yourfile.tex /tmp/lyx_tmpdirXX/lyx_tmpbuf0/yourfile.tex

In the 1.4 series we go to great pains to make sure that absolutely
everything used by LyX to generate your pdf or dvi file is in the tmp
directory, so you can simply zip up this directory and give it to someone
else (a publisher, say) and they'll be able to generate the book.

-- 
Angus



Re: pdflatex MacOS X

2005-10-13 Thread David Philp
Hi

Just for the record, in case anyone else has a similar problem:
(1) my problem is fixed by using absolute rather than relative paths
(thanks Bennett)
(2) Since I didn't used to need absolute paths, I have entered this
into bugzilla.

Thanks!  D


poster view/export postscript page size problem.

2005-10-13 Thread Bo Peng
Dear list,

I am using sciposter.cls to produce a poster. I set a0 and other
options as recommended by the sciposter manual. If I export latex, run
latex, dvips, I would get a correct poster. However, within lyx, view
dvi is fine but view/export ps/pdf only gives me a corner of the
poster. I checked converters, dvi-ps uses dvips -o $$o $$i which is
perfectly normal.

What might went wrong? How can I know what command, option lyx
actually used to view/export? (The status-line goes too quickly.)

BTW, I simply use Input article.layout in sciposter.layout. Maybe
this is causing the problem?

Thanks.
Bo


Re: pagebreaks and labeling

2005-10-13 Thread Juergen Spitzmueller
Todd Denniston wrote:
 Although I Generally like to force new major sections to start on a new
 page too, you can be a little gentler and ask LaTeX not to make widows[1]
 or orphans[2] most of the time anyway. The LaTeX way is to make it a
 penalty to create such a line, using \clubpenalty and \widowpenalty [3].
 I always put in my preamble:
 \widowpenalty=1
 \clubpenalty=1
 \raggedbottom

This is the preferred way, but sometimes, LaTeX still produces widows. Instead 
of forced page breaks, you can use conditional page breaks in this case, 
which only break pages when a given amount of space is not provided:

% In Preamble
\def\condbreak#1{\vskip 0pt plus #1\pagebreak[3]\vskip 0pt plus -#1\relax}

and in the document, e.g.
\condbreak{2\baselineskip}
inserts a pagebreak when there is less then 2 lines below.

Jürgen


Re: Problem with table and paranthesis wn Lyx 1.4pre2

2005-10-13 Thread Juergen Spitzmueller
Marius Ionescu wrote:
 I am using Lyx1.4pre2 with the qt frontend on Ubuntu 5.04. It behaves
 strange when, in the math mode (display), I want to insert a two-by-two
 matrix and then I select it and try to insert parenthesis to the left and
 right (a matrix). After I press the insert button (for parenthesis), the
 matrix becomes a 1X2 matrix (it erases on row).

Hello Marius,

this is a known bug, a fix has already been proposed. Thanks for reporting.

Jürgen


Re: Presentations using LyX

2005-10-13 Thread Gour
Rich Shepard ([EMAIL PROTECTED]) wrote:

   I've used beamer to prepare the slides for two public presentations over
 the past month. I've inserted tables within a slide frame, created graphics
 using tgif (which are included as .eps files) and PSTricks (compiled with
 ps4pdf before being inserted into the document), and used the full range of
 tools to create sections and sub-sections. 

I'd like to hear more regarding the drawing tools used with beamer/LyX.

afaics, in the beamer manual, pstricks does not work with pdflatex?

Is the ps4pdf right solution?

I am thinking about the power of pgf (TkiZ) package and how does it
compare with e.g. metapost/pstricks ?

Another option would be to use e.g. inkscape (which provides LaTeX with
PSTricks macros output format)  to have pgf backe-end so that inkscape
can integrate LaTeX fonts and macros ready for pgf  inclusion in
beamer presentation?

What is the status of SVG support in LyX/LaTeX?

Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Sorting the Bibliography

2005-10-13 Thread Charles de Miramon
Walid Maalej wrote:

 Dear all,
 
 I ve just added my references using the Lyx features. Now I would like to
 have theses references alphabetically sorted in the final document.
 Can I do it with Lyx? If No, do you know which LaTeX commands will solve
 my problem?

The way your bibliography is formatted and sorted is controlled by the
bibliographystyle. You can choose it from the Insert--List--Bibliography
dialog box.
The basic styles are plain, alpha and unsrt. The first two will sort
alphabetically your references. The last one will leave the references in
order of their appearance in your paper.

Beware that alphabetical sorting becomes a more complex task for a lot of
European languages for example the German ä or the French é, è or the
Spanish ll. Specialized bibliography styles may help.

For sorting a list or a glossary, I don't know of any tool.  

Cheers,
Charles
-- 
http://www.kde-france.org



Wiki page for Presentations using LyX

2005-10-13 Thread chr
Given the recent thread, I've posted some of the answers to this page:

http://wiki.lyx.org/LyX/PresentationsUsingLyX

feel free to add more or perhaps re-structure it.

On Wed, 12 Oct 2005, Robert Orr wrote:
 These were really nice.

 Is it possible to get a .tar.gz of this directory?
 
 http://fkurth.de/uwest/usti/Vortrag/ 

Maybe they could go in as examples in the examples section?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Presentations using LyX

2005-10-13 Thread Paul Smith
On 10/13/05, Gour [EMAIL PROTECTED] wrote:
I've used beamer to prepare the slides for two public presentations over
  the past month. I've inserted tables within a slide frame, created graphics
  using tgif (which are included as .eps files) and PSTricks (compiled with
  ps4pdf before being inserted into the document), and used the full range of
  tools to create sections and sub-sections.

 I'd like to hear more regarding the drawing tools used with beamer/LyX.

 afaics, in the beamer manual, pstricks does not work with pdflatex?

 Is the ps4pdf right solution?

 I am thinking about the power of pgf (TkiZ) package and how does it
 compare with e.g. metapost/pstricks ?

 Another option would be to use e.g. inkscape (which provides LaTeX with
 PSTricks macros output format)  to have pgf backe-end so that inkscape
 can integrate LaTeX fonts and macros ready for pgf  inclusion in
 beamer presentation?

 What is the status of SVG support in LyX/LaTeX?

Gour,

Beamer works fine with PSTricks, as long as one uses ps4pdf. People
who simultaneously know very well pgf and PSTricks claim that PSTricks
is much superior to pgf.

Regards,

Paul


Re: Presentations using LyX

2005-10-13 Thread Georg Baum
Gour wrote:

 Another option would be to use e.g. inkscape (which provides LaTeX with
 PSTricks macros output format)  to have pgf backe-end so that inkscape
 can integrate LaTeX fonts and macros ready for pgf  inclusion in
 beamer presentation?
 
 What is the status of SVG support in LyX/LaTeX?

It is the same as with any image format: If you have a converter that
transforms svg in eps (can inkscape do that from the command line?), you
can define it in the preferences and simply include svg figures in your
document. I don't know if the standard converter can handle this
transformation.

You could also write an external template to use the LaTeX with PSTricks
macros output format of inkscape. This would be very similar to the
existing xfig template.


Georg



Re: Presentations using LyX

2005-10-13 Thread Gour
Paul Smith ([EMAIL PROTECTED]) wrote:

 Beamer works fine with PSTricks, as long as one uses ps4pdf. People
 who simultaneously know very well pgf and PSTricks claim that PSTricks
 is much superior to pgf.

So, it means one can safely use Inkscape to draw illustrations and save
graphic as LaTeX with PSTricks extensions and use it in beamer?

Does anyone have any idea which PSTricks extensions are needed for 

Inkscape -- LaTeX ?


Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Presentations using LyX

2005-10-13 Thread Angus Leeming
Gour wrote:
 Beamer works fine with PSTricks, as long as one uses ps4pdf. People
 who simultaneously know very well pgf and PSTricks claim that PSTricks
 is much superior to pgf.
 
 So, it means one can safely use Inkscape to draw illustrations and save
 graphic as LaTeX with PSTricks extensions and use it in beamer?

If you're being funky, you could write an Inkscape template for the
External Inset (see share/lyx/external_templates) and include your
inkscape file directly into your LyX document. I do just that all the time
with my XFig figures.

As for SVG: If you define an svg format and define converters from
svg to png, pdf and eps then you'll be able to include SVG
graphics directly in the Graphcis inset and they'll just work.

-- 
Angus



Re: Presentations using LyX

2005-10-13 Thread Gour
Angus Leeming ([EMAIL PROTECTED]) wrote:

 If you're being funky, you could write an Inkscape template for the
 External Inset (see share/lyx/external_templates) and include your
 inkscape file directly into your LyX document. I do just that all the time
 with my XFig figures.

Whoah...this is something new!!

Thank you for the pointer.

I'm still returning to LyX (after not so successful adventure in XML 
ConTeXt world :-) so I'm still not aware of all the goodies developed
in LyX in the meantime ;)

Will definitely try this approach. (Now I have problems in pdflatex-ing
Inkscape's output, i.e. trying to discern what are the extensions (aka
pacakges) needed to produce output.)

 As for SVG: If you define an svg format and define converters from
 svg to png, pdf and eps then you'll be able to include SVG
 graphics directly in the Graphcis inset and they'll just work.

Well, SVG is not so interesting for itself, i.e. I just asked if one
can retain graphic and combine it with the LaTeX/LyX text. Otherwise,
converting the whole thing from Inkscape to .e.g. pdf, does not make
much sense, cause text on the graphic-oriented slides and text-only
slides would differ too much.

So, including Inkscape exported graphic as a template and combining it with
LyX text-capabilities is, imho, a right way to go.

btw, I saw on Inkscape mailing list there are several people migrating
from xfig :-)

Sincerely,
Gour


-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Presentations using LyX

2005-10-13 Thread Rich Shepard

On Thu, 13 Oct 2005, Gour wrote:


I'd like to hear more regarding the drawing tools used with beamer/LyX.


  Anything that produces a file in .eps format can be inserted directly into
the document.


afaics, in the beamer manual, pstricks does not work with pdflatex?


  This is correct.


Is the ps4pdf right solution?


  Yes. If you follow the directions for adding ps4pdf to LyX you'll have a
new choice, PDF4, on the View and File-Export menus. Use those.


I am thinking about the power of pgf (TkiZ) package and how does it compare
with e.g. metapost/pstricks ?


  Others need to address this. There are so many high quality applications
for vector graphics that one could spend a lot of time evaluating them all
and trying to select the best. What I did was consider the needs I had,
found a couple of solutions, learned to use them, and ignored the rest. This
is not to suggest that everyone should do the same.


Another option would be to use e.g. inkscape (which provides LaTeX with
PSTricks macros output format)  to have pgf backe-end so that inkscape can
integrate LaTeX fonts and macros ready for pgf  inclusion in beamer
presentation?


  What are you drawing? How much time do you want to spend on each figure?
Are you sufficiently fluent in one of the drawing languages (such as PSTricks
and pgf) that you can create what you want as quickly as with a visual editor
(such as tgif, jPicEdit, ipe and a ton of others)?


What is the status of SVG support in LyX/LaTeX?


  Dunno. Aren't there more than enough choices already? :-)

  What I find amusing is that those stuck behind the supposedly-bullet-proof
Windows have so few choices and those of us in the F/OSS world spend a lot of
time trying to wade through the plethora of choices. And, they're all good
ones.

Rich

--
Dr. Richard B. Shepard, President |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863


Caption and graphics within the same paragraph?!

2005-10-13 Thread Walid Maalej
Hi @ all,

I was wondering if it is possible to put the graphics centered within a
float and the caption justified. Every time I change the paragraph parameter
of the caption to justified it turns automatically to centered as the
graphic.

I will really appreciate any help
Walid




Re: Caption and graphics within the same paragraph?!

2005-10-13 Thread Daniel Watkins
 I was wondering if it is possible to put the graphics centered within
 a float and the caption justified. Every time I change the paragraph
 parameter of the caption to justified it turns automatically to
 centered as the graphic.

I presume that you don't want the graphics and caption on separate lines
within the caption. If you do, then just hit enter once before you
insert the graphics.

If that's the case, I'd be interested to hear why, because there doesn't
seem to be any good reason not to have them on separate lines...

Dan



Re: pdflatex MacOS X

2005-10-13 Thread Geoffrey Lloyd

David and Bennett

I too have problems when I try an view or export you file with pdflatex - I 
am using winXP


I have had a fiddle about and find the following interesting although have 
no idea what t means or how to fix it!!


I called the original lyx document test1.lyx and the file to be included 
test2.pdf


Export-Latex on test1.lyx produces test1true.tex (as i have remnamed it)
Export-pdflatex produces test1.tex

These two files differ slightly (why i do not know - surley lyx should 
produce the same .tex file in the lyx-tex step**see below) but importantly 
they both compile correctl with pdflatex in the command window.


But Export-pdflatex also produces test1.tex.dep-pdf

I have no idea what this file is used for but you will see there are two 
columns of numbers on the left. For test2.pdf the second value is zero. This 
is not good. And maybe this is the source of the problem.


**
What I dont understand is why lyx doesnt simply generate the tex and then 
run pdflatex. Doing this by hand produces the correct result. What is it 
that lyx is doing differently to do this conversion?


Geoff
- Original Message - 
From: David Philp [EMAIL PROTECTED]
To: Geoffrey Lloyd [EMAIL PROTECTED]; Bennett Helm 
[EMAIL PROTECTED]

Sent: Thursday, October 13, 2005 1:38 AM
Subject: Re: pdflatex  MacOS X


the maximally simple example.  Thanks, D


test1.lyx
Description: application/lyx


test2.pdf
Description: Adobe PDF document


test1true.tex
Description: Binary data


test1.tex
Description: Binary data


test1.tex.dep-pdf
Description: Binary data


lyx-code - date-insert

2005-10-13 Thread David Wolfson
hello lyx-list,

I've just subscribed having had a trawl through the wiki (but not found the 
answer to my problem), so  a quick intro seems in order. I'm currently trying 
to write up and engineering thesis in lyx, having migrated to linux for all 
but a few apps in the last couple of years. Having not had any trainning 
pre-se, I'm into ugly scripting hacks and a big fan of mailing lists (the 
local lug in nottingham is *very* active and really helpful). 

So far I seem to have got my various chapter documents interacting sensbily 
and a have been really impressed with the look of the documents (they're just 
laking text and that's my problem!). However, the more reading round I do and 
the closer to having to sort out final layout, the more I fear I'm going to 
have to start using ERT and the like, so I might be after some hint and tips 
to get going in the next couple of months...

Anyway, the first of these problems is with inserting a date. I do the 
occasion print out and would like to include the current date when I do . I 
found some of the lyx-codes described in the wiki, and by adding 
'date-insert' and formating as lyxCode I get the current date nicely in the 
page :-) However I then get a page with nothing but 'date-insert' after it!

Have I gone about this the right way? If so, how do I get rid of the actual 
lyx-code text?

I'm using Version 1.3.5 on madrake 10.1 community...

Thanks in advance for any help/advice,

Dave



Re: Presentations using LyX

2005-10-13 Thread Gour
Rich Shepard ([EMAIL PROTECTED]) wrote:

   Yes. If you follow the directions for adding ps4pdf to LyX you'll have a
 new choice, PDF4, on the View and File-Export menus. Use those.

I've found something in wiki, is that the right thing?

   Others need to address this. There are so many high quality applications
 for vector graphics that one could spend a lot of time evaluating them all
 and trying to select the best. What I did was consider the needs I had,
 found a couple of solutions, learned to use them, and ignored the rest. This
 is not to suggest that everyone should do the same.

Still, it's very good advice. Better to master one package, then to
encounter many and know none.

   What are you drawing? 

I intend to illustrate my slides with a clipart-like drawings  combine
them with e.g. openclipart library.

 How much time do you want to spend on each figure?

This one is not easy to estimate atm.

 Are you sufficiently fluent in one of the drawing languages (such as
 PSTricks and pgf) that you can create what you want as quickly as with
 a visual editor (such as tgif, jPicEdit, ipe and a ton of others)?

No. I'm just beginning with this stuff, and although I could dive in
into PSTricks and pgf, I'll probably get some help from my better half
and she will be more comfortable with Inkscape, GIMP...using some
simple tablet. That's why I'm talking about e.g. inkscape  LyX.

   What I find amusing is that those stuck behind the
   supposedly-bullet-proof Windows have so few choices and those of us
   in the F/OSS world spend a lot of time trying to wade through the
   plethora of choices. And, they're all good ones.

I fully agree, but people are belong to the weird species :-)

Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Walid Maalej

Subject: RE: Caption and graphics within the same paragraph?!

Hi Dan,

Thanks for your replay.

 I presume that you don't want the graphics and caption on separate lines
 within the caption. If you do, then just hit enter once before you
 insert the graphics.

Yes. Sure the graphic and its name are in separate lines -- separate
paragraphs. However I'm not able to define two different styles for each
paragraph: Justified for the caption and centered for the graphic. I have
both of them inside a float:Figure
Do you know if this possible? Or do I have to put them without a float?


Cheers
Walid




Re: lyx-code - date-insert

2005-10-13 Thread chr
On Thu, 13 Oct 2005, David Wolfson wrote:

 Anyway, the first of these problems is with inserting a date. I do the
 occasion print out and would like to include the current date when I do.

Hang on... you actually want to have the current date in the printout??? 
(One of the most frequent questions is how to *not* get the date:-)

It's been a while, but I think you'll need an ERT that contains 
\today{}
LaTeX will automaticall replace '\today{}' with the time the document is
compiled. You can place this command in headers/footers if you want it on 
every page.

cheers
/Christian


-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Presentations using LyX

2005-10-13 Thread Rich Shepard

On Thu, 13 Oct 2005, Gour wrote:


I've found something in wiki, is that the right thing?


  I don't know. I followed the instructions with the ps4pdf package ... I
think. Once I get some application or add-on installed and working I do a
dump of that knowledge from the NPU[1] so there's room for more current
information.


No. I'm just beginning with this stuff, and although I could dive in into
PSTricks and pgf, I'll probably get some help from my better half and she
will be more comfortable with Inkscape, GIMP...using some simple tablet.
That's why I'm talking about e.g. inkscape  LyX.


  For clipart-type images I believe that inkscape, sketch, tgif, ipe,
jpicedit and the others that let you visually assemble the image will be
quicker and easier than applications such as PSTricks, pgf, xfig, and gri
which are drawing languages. The GIMP is raster based rather than vector
based and may not be quite as good for your purposes as the others.


I fully agree, but people are belong to the weird species :-)


  Life would be very boring if we were all the same, eh?

Rich

--
Dr. Richard B. Shepard, President |   Author of Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic
http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863

[1] Neural Processing Unit


Re: FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Angus Leeming
Walid Maalej wrote:
 Yes. Sure the graphic and its name are in separate lines -- separate
 paragraphs. However I'm not able to define two different styles for each
 paragraph: Justified for the caption and centered for the graphic. I have
 both of them inside a float:Figure
 Do you know if this possible? Or do I have to put them without a float?

Open the Layout-Paragraph dialog and set the justification as you desire.

-- 
Angus



Re: FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Angus Leeming
On Thursday 13 October 2005 20:43, Walid Maalej wrote:
   Yes. Sure the graphic and its name are in separate lines -- separate
   paragraphs. However I'm not able to define two different styles for
   each paragraph: Justified for the caption and centered for the graphic.
   I
 
  have
 
   both of them inside a float:Figure
   Do you know if this possible? Or do I have to put them without a float?
 
  Open the Layout-Paragraph dialog and set the justification as you
  desire.

 No it does not work! Every time I change the justification for the caption,
 it gets back to the paragraph's value.
 I guess within a float one can have only one justification even if we have
 more than one paragraph?!

Sorry, my misunderstanding. I thought you wanted to center the graphic.

To center the caption you need to redefine the LaTeX.

I've used this in the past. Add it to your preamble.

%% Set the captions to be italic
\newcommand\myCaption[1]{\itshape\refstepcounter{figure}%
   \begin{center}\figurename\ \thefigure :\ #1\end{center}\upshape}
\let\caption\myCaption

Please reply to the list...

Angus


Problems with installing/running

2005-10-13 Thread Robert Badzey


Hi:

So I've been using LyX for awhile now.  Great program - wrote my 
dissertation on it in about half the time it would have taken for LatTeX.


So I noticed the new build (1.3.6) for Windows, and figured I'd give it a 
shot.  I don't know what the problem is, but it's been giving me fits ever 
since, with a progressive degrading of performance that's a bit startling.


First, I couldn't import LaTex files correctly.  Always got an error 
message.  Tried installing tex2lyx -- no dice.  I just got a generic error 
message, and so was never able to track it down beyond that.


Then, just yesterday, LyX apparently lost the ability to generate previews 
- no DVI, nothing.  The pull-down menu options which existed before simply 
vanished.  Only output to PDF.  Having removed and re-installed, now I 
can't even run it.  I get an error message which tells me that it wasn't 
able to find any layout description and the program fails to run.


So in the space of three days I've gone from a functional program to one 
which simply won't run at all.


Any ideas/suggestions?  This is very worrying and not at all explicable.

Rob Badzey


Re: Problems with installing/running

2005-10-13 Thread Angus Leeming
Robert Badzey wrote:

 
 Hi:
 
 So I've been using LyX for awhile now.  Great program - wrote my
 dissertation on it in about half the time it would have taken for LatTeX.
 
 So I noticed the new build (1.3.6) for Windows, and figured I'd give it a
 shot.  I don't know what the problem is, but it's been giving me fits
 ever since, with a progressive degrading of performance that's a bit
 startling.
 
 First, I couldn't import LaTex files correctly.  Always got an error
 message.  Tried installing tex2lyx -- no dice.  I just got a generic
 error message, and so was never able to track it down beyond that.
 
 Then, just yesterday, LyX apparently lost the ability to generate
 previews
 - no DVI, nothing.  The pull-down menu options which existed before
 simply
 vanished.  Only output to PDF.  Having removed and re-installed, now I
 can't even run it.  I get an error message which tells me that it wasn't
 able to find any layout description and the program fails to run.
 
 So in the space of three days I've gone from a functional program to one
 which simply won't run at all.
 
 Any ideas/suggestions?  This is very worrying and not at all explicable.

Try running it as
   lyx -dbg init
from the command line. Here, on a linux machine I get:

$ qlyx13x -dbg init
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... yes
package
binary_dir /home/angus/bin/
system_support /home/angus/lyx/13x/lib/
build_support /home/angus/lyx/13x/build-qt/lib/
user_support /home/angus/.lyx/
locale_dir
document_dir /home/angus
temp_dir /tmp
home_dir /home/angus
/package

Your output will, of course, be different but informative.

LyX works quite hard to determine its system support directory

1. Specify it using the -sysdir command line parameter.
   lyx -sysdir 'C:/Program Files/LyX/Resources/lyx'

2. It checks the value of the LYX_DIR_13x environment variable.

3. It checks relative to the location of the LyX binary, looking
for a file chkconfig.ltx in a directory

   OnlyPath(abs_binary)/../Resources/LyX

So, if your LyX binary is found at
   C:/Program Files/LyX/bin/lyx.exe
it'll look for chlconfig.ltx at
   C:/Program Files/LyX/bin/../Resources/LyX/chkconfig.ltx

This directory should contain everything that LyX needs to function.

$ ls -F /mnt/windowsC/Program\ Files/LyX/Resources/lyx/
bind/   encodings*   languages*   reLyX/  ui/
chkconfig.ltx*  examples/layouts/ scripts/   
xfonts/
clipart/external_templates*  lyx2lyx/ symbols*
configure*  help/lyxrc.defaults*  templates/
CREDITS*images/  lyxrc.example*   tex/
doc/kbd/ packages.lst*textclass.lst*

Important files: lyxrc.defaults should contain a whole heap of stuff about
your system, as probed by the configure shell script (same dir). Of
course, for it to run LyX must be able to find a working sh.exe.
I attach my lyxrc.default, for reference.

Note that the path_prefix entry is set by the installer script at install
time.

LyX's layouts should be in the layouts directory.

Hope some of this helps...

-- 
Angus# This file has been automatically generated by LyX' lib/configure
# script. It contains default settings that have been determined by
# examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
# want to customize LyX, make a copy of the file LYXDIR/lyxrc as
# ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
# override the values given here.
\Format text  txt   ASCII   A
\Format textparagraph txt ASCII(paragraphs) 
\Format docbook  sgml   DocBook B
\Format bmp  bmpBMP 
\Format dvi   dvi   DVI D
\Format dvi2  dvi   DraftDVI
\Format eps   eps   EPS 
\Format fax   Fax 
\Format fig   fig   XFig
\Format agr  agrGRACE   
\Format html  html  HTMLH
\Format gif   gif   GIF 
\Format jpg   jpg   JPG 
\Format latex tex   LaTeX   L
\Format linuxdoc sgml   LinuxDocx
\Format lyx  lyxLyX 
\Format literate nw NoWeb   N
\Format pdf   pdf   PDF P
\Format pdf2  pdf  PDF (pdflatex) F
\Format pdf3  pdf  PDF (dvipdfm)  m
\Format png   png   PNG 
\Format ppm   ppm   PPM 
\Format pgm   pgm   PGM 
\Format pbm   pbm   PBM 
\Format pspsPostscript  t
\Format program   Program 
\Format tgif objTGIF
\Format tiff tifTIFF
\Format word  doc   WordW
\Format xbm   xbm   XBM 
\Format xpm   xpm   XPM 
\Format lyxpreview  lyxpreview  LyX Preview   

\converter latex dvi2 

pdflatex

2005-10-13 Thread Geoffrey Lloyd
Hi

In trying to help with another thread (pdflatex  MacOS X) I have come across 
something I don't understand.

It appears that when you do Export-pdflatex Lyx does not do what I expected. 

Here is what I think should happen:

Lyx-Latex-pdf (using pdflatex) AND it should produce the same results as if I 
did by hand

Lyx-Latex and then Latex-pdf (using pdflatex)

However it doesn't. 

Could someone in the know please explain to me how Lyx goes about this 
conversion. 

Geoff

Re: Presentations using LyX

2005-10-13 Thread Raymond Ouellette
I'm using LyX and Beamer class these days for a presentation of Gimp 2.2.x. The 
result is great by the way! To add special effects I also use minipages in 
slides (or frames)

As for svg graphics here is my solution:

I inserted 2 small identical images, the first one is svg and the other is png 
generated from Inkscape (older Sodipodi would do the same) to illustrate the 
differences between vector and bitmap graphics. Beamer uses pdflatex as 
converter and it manages very well pdf pages.

I created with Scribus [http://www.scribus.net/] a small pdf pages (19mmx25mm) 
in which I inserted both images scaled to 17mmx20mm; I added the words 
vectoriel (vector) and matriciel (bitmap) with a 4pt Bitstream Vera font over 
each image. The choice of such a small page (correct me if I'm wrong) is 
because Beamer works with slides 96mmx128mm.

I added the small pdf page with this ERT:
\includegraphics [scale=1]{thepage.pdf}

You can scale to the wanted size, I added the option in the ERT so that you may 
use this possibility.

Finally, when you view your final presentation (in pdf format), you can view it 
fullscreen even with xpdf (3.01 is the version I use) this way:

xpdf -fullscreen presentation.pdf

But, if you use Acrobat Reader, be aware of this hidden trick: press z when a 
page is shown to switch to the zoom mode, Ctrl+= will zoom in, Ctrl+- will zoom 
out, and Ctrl+0 will go back to the original fullscreen size. Once the page is 
zoomed, you can mouve around the page by dragging with the mouse with the left 
button pressed.

Raymond Ouellette

-- 

Édité et transmis avec des logiciels libres sous Linux !




Re: pdflatex

2005-10-13 Thread Angus Leeming
Geoffrey Lloyd wrote:
 It appears that when you do Export-pdflatex Lyx does not do what I
 expected.
 
 Here is what I think should happen:
 
 Lyx-Latex-pdf (using pdflatex) AND it should produce the same results
 as if I did by hand

Not necessarily.

When LyX knows that it's outputing latex for the pdflatex compiler, it
tunes one or two things specifically for it. Unfortunately, we don't have
an option to export to LaTeX (pdflatex). Thus, when you export the latex
file and run the conversion process by hand the results *may well* be
slightly different.

Paths to external graphics and databases will also differ, for obvious
reasons.

Compare the LaTeX file you get with Export-LaTeX with that in the temp
directory where the conversion takes place:

$ diff -u yourfile.tex /tmp/lyx_tmpdirXX/lyx_tmpbuf0/yourfile.tex

In the 1.4 series we go to great pains to make sure that absolutely
everything used by LyX to generate your pdf or dvi file is in the tmp
directory, so you can simply zip up this directory and give it to someone
else (a publisher, say) and they'll be able to generate the book.

-- 
Angus



Re: pdflatex MacOS X

2005-10-13 Thread David Philp
Hi

Just for the record, in case anyone else has a similar problem:
(1) my problem is fixed by using absolute rather than relative paths
(thanks Bennett)
(2) Since I didn't used to need absolute paths, I have entered this
into bugzilla.

Thanks!  D


poster view/export postscript page size problem.

2005-10-13 Thread Bo Peng
Dear list,

I am using sciposter.cls to produce a poster. I set a0 and other
options as recommended by the sciposter manual. If I export latex, run
latex, dvips, I would get a correct poster. However, within lyx, view
dvi is fine but view/export ps/pdf only gives me a corner of the
poster. I checked converters, dvi-ps uses dvips -o $$o $$i which is
perfectly normal.

What might went wrong? How can I know what command, option lyx
actually used to view/export? (The status-line goes too quickly.)

BTW, I simply use Input article.layout in sciposter.layout. Maybe
this is causing the problem?

Thanks.
Bo


Re: pagebreaks and labeling

2005-10-13 Thread Juergen Spitzmueller
Todd Denniston wrote:
> Although I Generally like to force new major sections to start on a new
> page too, you can be a little gentler and ask LaTeX not to make widows[1]
> or orphans[2] most of the time anyway. The LaTeX way is to make it a
> penalty to create such a line, using \clubpenalty and \widowpenalty [3].
> I always put in my preamble:
> \widowpenalty=1
> \clubpenalty=1
> \raggedbottom

This is the preferred way, but sometimes, LaTeX still produces widows. Instead 
of forced page breaks, you can use conditional page breaks in this case, 
which only break pages when a given amount of space is not provided:

% In Preamble
\def\condbreak#1{\vskip 0pt plus #1\pagebreak[3]\vskip 0pt plus -#1\relax}

and in the document, e.g.
\condbreak{2\baselineskip}
inserts a pagebreak when there is less then 2 lines below.

Jürgen


Re: Problem with table and paranthesis wn Lyx 1.4pre2

2005-10-13 Thread Juergen Spitzmueller
Marius Ionescu wrote:
> I am using Lyx1.4pre2 with the qt frontend on Ubuntu 5.04. It behaves
> strange when, in the math mode (display), I want to insert a two-by-two
> matrix and then I select it and try to insert parenthesis to the left and
> right (a matrix). After I press the insert button (for parenthesis), the
> matrix becomes a 1X2 matrix (it erases on row).

Hello Marius,

this is a known bug, a fix has already been proposed. Thanks for reporting.

Jürgen


Re: Presentations using LyX

2005-10-13 Thread Gour
Rich Shepard ([EMAIL PROTECTED]) wrote:

>   I've used beamer to prepare the slides for two public presentations over
> the past month. I've inserted tables within a slide frame, created graphics
> using tgif (which are included as .eps files) and PSTricks (compiled with
> ps4pdf before being inserted into the document), and used the full range of
> tools to create sections and sub-sections. 

I'd like to hear more regarding the drawing tools used with beamer/LyX.

afaics, in the beamer manual, pstricks does not work with pdflatex?

Is the ps4pdf right solution?

I am thinking about the power of pgf (TkiZ) package and how does it
compare with e.g. metapost/pstricks ?

Another option would be to use e.g. inkscape (which provides LaTeX with
PSTricks macros output format) & to have pgf backe-end so that inkscape
can integrate LaTeX fonts and macros ready for pgf & inclusion in
beamer presentation?

What is the status of SVG support in LyX/LaTeX?

Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Sorting the Bibliography

2005-10-13 Thread Charles de Miramon
Walid Maalej wrote:

> Dear all,
> 
> I ve just added my references using the Lyx features. Now I would like to
> have theses references alphabetically sorted in the final document.
> Can I do it with Lyx? If No, do you know which LaTeX commands will solve
> my problem?

The way your bibliography is formatted and sorted is controlled by the
bibliographystyle. You can choose it from the Insert-->List-->Bibliography
dialog box.
The basic styles are plain, alpha and unsrt. The first two will sort
alphabetically your references. The last one will leave the references in
order of their appearance in your paper.

Beware that alphabetical sorting becomes a more complex task for a lot of
European languages for example the German ä or the French é, è or the
Spanish ll. Specialized bibliography styles may help.

For sorting a list or a glossary, I don't know of any tool.  

Cheers,
Charles
-- 
http://www.kde-france.org



Wiki page for "Presentations using LyX"

2005-10-13 Thread chr
Given the recent thread, I've posted some of the answers to this page:

http://wiki.lyx.org/LyX/PresentationsUsingLyX

feel free to add more or perhaps re-structure it.

On Wed, 12 Oct 2005, Robert Orr wrote:
> These were really nice.
>
> Is it possible to get a .tar.gz of this directory?
> 
> http://fkurth.de/uwest/usti/Vortrag/ 

Maybe they could go in as examples in the examples section?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Presentations using LyX

2005-10-13 Thread Paul Smith
On 10/13/05, Gour <[EMAIL PROTECTED]> wrote:
> >   I've used beamer to prepare the slides for two public presentations over
> > the past month. I've inserted tables within a slide frame, created graphics
> > using tgif (which are included as .eps files) and PSTricks (compiled with
> > ps4pdf before being inserted into the document), and used the full range of
> > tools to create sections and sub-sections.
>
> I'd like to hear more regarding the drawing tools used with beamer/LyX.
>
> afaics, in the beamer manual, pstricks does not work with pdflatex?
>
> Is the ps4pdf right solution?
>
> I am thinking about the power of pgf (TkiZ) package and how does it
> compare with e.g. metapost/pstricks ?
>
> Another option would be to use e.g. inkscape (which provides LaTeX with
> PSTricks macros output format) & to have pgf backe-end so that inkscape
> can integrate LaTeX fonts and macros ready for pgf & inclusion in
> beamer presentation?
>
> What is the status of SVG support in LyX/LaTeX?

Gour,

Beamer works fine with PSTricks, as long as one uses ps4pdf. People
who simultaneously know very well pgf and PSTricks claim that PSTricks
is much superior to pgf.

Regards,

Paul


Re: Presentations using LyX

2005-10-13 Thread Georg Baum
Gour wrote:

> Another option would be to use e.g. inkscape (which provides LaTeX with
> PSTricks macros output format) & to have pgf backe-end so that inkscape
> can integrate LaTeX fonts and macros ready for pgf & inclusion in
> beamer presentation?
> 
> What is the status of SVG support in LyX/LaTeX?

It is the same as with any image format: If you have a converter that
transforms svg in eps (can inkscape do that from the command line?), you
can define it in the preferences and simply include svg figures in your
document. I don't know if the standard converter can handle this
transformation.

You could also write an "external template" to use the "LaTeX with PSTricks
macros output format" of inkscape. This would be very similar to the
existing xfig template.


Georg



Re: Presentations using LyX

2005-10-13 Thread Gour
Paul Smith ([EMAIL PROTECTED]) wrote:

> Beamer works fine with PSTricks, as long as one uses ps4pdf. People
> who simultaneously know very well pgf and PSTricks claim that PSTricks
> is much superior to pgf.

So, it means one can safely use Inkscape to draw illustrations and save
graphic as LaTeX with PSTricks extensions and use it in beamer?

Does anyone have any idea which PSTricks extensions are needed for 

Inkscape --> LaTeX ?


Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Presentations using LyX

2005-10-13 Thread Angus Leeming
Gour wrote:
>> Beamer works fine with PSTricks, as long as one uses ps4pdf. People
>> who simultaneously know very well pgf and PSTricks claim that PSTricks
>> is much superior to pgf.
> 
> So, it means one can safely use Inkscape to draw illustrations and save
> graphic as LaTeX with PSTricks extensions and use it in beamer?

If you're being funky, you could write an Inkscape template for the
"External Inset" (see share/lyx/external_templates) and include your
inkscape file directly into your LyX document. I do just that all the time
with my XFig figures.

As for SVG: If you define an "svg" format and define "converter"s from
"svg" to "png", "pdf" and "eps" then you'll be able to include SVG
graphics directly in the Graphcis inset and they'll "just work".

-- 
Angus



Re: Presentations using LyX

2005-10-13 Thread Gour
Angus Leeming ([EMAIL PROTECTED]) wrote:

> If you're being funky, you could write an Inkscape template for the
> "External Inset" (see share/lyx/external_templates) and include your
> inkscape file directly into your LyX document. I do just that all the time
> with my XFig figures.

Whoah...this is something new!!

Thank you for the pointer.

I'm still returning to LyX (after not so successful adventure in XML &
ConTeXt world :-) so I'm still not aware of all the goodies developed
in LyX in the meantime ;)

Will definitely try this approach. (Now I have problems in pdflatex-ing
Inkscape's output, i.e. trying to discern what are the extensions (aka
pacakges) needed to produce output.)

> As for SVG: If you define an "svg" format and define "converter"s from
> "svg" to "png", "pdf" and "eps" then you'll be able to include SVG
> graphics directly in the Graphcis inset and they'll "just work".

Well, SVG is not so interesting for itself, i.e. I just asked if one
can retain graphic and combine it with the LaTeX/LyX text. Otherwise,
converting the whole thing from Inkscape to .e.g. pdf, does not make
much sense, cause text on the graphic-oriented slides and text-only
slides would differ too much.

So, including Inkscape exported graphic as a template and combining it with
LyX text-capabilities is, imho, a right way to go.

btw, I saw on Inkscape mailing list there are several people migrating
from xfig :-)

Sincerely,
Gour


-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


Re: Presentations using LyX

2005-10-13 Thread Rich Shepard

On Thu, 13 Oct 2005, Gour wrote:


I'd like to hear more regarding the drawing tools used with beamer/LyX.


  Anything that produces a file in .eps format can be inserted directly into
the document.


afaics, in the beamer manual, pstricks does not work with pdflatex?


  This is correct.


Is the ps4pdf right solution?


  Yes. If you follow the directions for adding ps4pdf to LyX you'll have a
new choice, PDF4, on the View and File->Export menus. Use those.


I am thinking about the power of pgf (TkiZ) package and how does it compare
with e.g. metapost/pstricks ?


  Others need to address this. There are so many high quality applications
for vector graphics that one could spend a lot of time evaluating them all
and trying to select the "best". What I did was consider the needs I had,
found a couple of solutions, learned to use them, and ignored the rest. This
is not to suggest that everyone should do the same.


Another option would be to use e.g. inkscape (which provides LaTeX with
PSTricks macros output format) & to have pgf backe-end so that inkscape can
integrate LaTeX fonts and macros ready for pgf & inclusion in beamer
presentation?


  What are you drawing? How much time do you want to spend on each figure?
Are you sufficiently fluent in one of the drawing languages (such as PSTricks
and pgf) that you can create what you want as quickly as with a visual editor
(such as tgif, jPicEdit, ipe and a ton of others)?


What is the status of SVG support in LyX/LaTeX?


  Dunno. Aren't there more than enough choices already? :-)

  What I find amusing is that those stuck behind the supposedly-bullet-proof
Windows have so few choices and those of us in the F/OSS world spend a lot of
time trying to wade through the plethora of choices. And, they're all good
ones.

Rich

--
Dr. Richard B. Shepard, President |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Caption and graphics within the same paragraph?!

2005-10-13 Thread Walid Maalej
Hi @ all,

I was wondering if it is possible to put the graphics centered within a
float and the caption justified. Every time I change the paragraph parameter
of the caption to "justified" it turns automatically to centered as the
graphic.

I will really appreciate any help
Walid




Re: Caption and graphics within the same paragraph?!

2005-10-13 Thread Daniel Watkins
> I was wondering if it is possible to put the graphics centered within
> a float and the caption justified. Every time I change the paragraph
> parameter of the caption to "justified" it turns automatically to
> centered as the graphic.

I presume that you don't want the graphics and caption on separate lines
within the caption. If you do, then just hit enter once before you
insert the graphics.

If that's the case, I'd be interested to hear why, because there doesn't
seem to be any good reason not to have them on separate lines...

Dan



Re: pdflatex & MacOS X

2005-10-13 Thread Geoffrey Lloyd

David and Bennett

I too have problems when I try an view or export you file with pdflatex - I 
am using winXP


I have had a fiddle about and find the following interesting although have 
no idea what t means or how to fix it!!


I called the original lyx document test1.lyx and the file to be included 
test2.pdf


Export->Latex on test1.lyx produces test1true.tex (as i have remnamed it)
Export->pdflatex produces test1.tex

These two files differ slightly (why i do not know - surley lyx should 
produce the same .tex file in the lyx->tex step**see below) but importantly 
they both compile correctl with pdflatex in the command window.


But Export->pdflatex also produces test1.tex.dep-pdf

I have no idea what this file is used for but you will see there are two 
columns of numbers on the left. For test2.pdf the second value is zero. This 
is not good. And maybe this is the source of the problem.


**
What I dont understand is why lyx doesnt simply generate the tex and then 
run pdflatex. Doing this by hand produces the correct result. What is it 
that lyx is doing differently to do this conversion?


Geoff
- Original Message - 
From: "David Philp" <[EMAIL PROTECTED]>
To: "Geoffrey Lloyd" <[EMAIL PROTECTED]>; "Bennett Helm" 
<[EMAIL PROTECTED]>

Sent: Thursday, October 13, 2005 1:38 AM
Subject: Re: pdflatex & MacOS X


the maximally simple example.  Thanks, D


test1.lyx
Description: application/lyx


test2.pdf
Description: Adobe PDF document


test1true.tex
Description: Binary data


test1.tex
Description: Binary data


test1.tex.dep-pdf
Description: Binary data


lyx-code - date-insert

2005-10-13 Thread David Wolfson
hello lyx-list,

I've just subscribed having had a trawl through the wiki (but not found the 
answer to my problem), so  a quick intro seems in order. I'm currently trying 
to write up and engineering thesis in lyx, having migrated to linux for all 
but a few apps in the last couple of years. Having not had any trainning 
pre-se, I'm into ugly scripting hacks and a big fan of mailing lists (the 
local lug in nottingham is *very* active and really helpful). 

So far I seem to have got my various chapter documents interacting sensbily 
and a have been really impressed with the look of the documents (they're just 
laking text and that's my problem!). However, the more reading round I do and 
the closer to having to sort out final layout, the more I fear I'm going to 
have to start using ERT and the like, so I might be after some hint and tips 
to get going in the next couple of months...

Anyway, the first of these problems is with inserting a date. I do the 
occasion print out and would like to include the current date when I do . I 
found some of the lyx-codes described in the wiki, and by adding 
'date-insert' and formating as lyxCode I get the current date nicely in the 
page :-) However I then get a page with nothing but 'date-insert' after it!

Have I gone about this the right way? If so, how do I get rid of the actual 
lyx-code text?

I'm using Version 1.3.5 on madrake 10.1 community...

Thanks in advance for any help/advice,

Dave



Re: Presentations using LyX

2005-10-13 Thread Gour
Rich Shepard ([EMAIL PROTECTED]) wrote:

>   Yes. If you follow the directions for adding ps4pdf to LyX you'll have a
> new choice, PDF4, on the View and File->Export menus. Use those.

I've found something in wiki, is that the right thing?

>   Others need to address this. There are so many high quality applications
> for vector graphics that one could spend a lot of time evaluating them all
> and trying to select the "best". What I did was consider the needs I had,
> found a couple of solutions, learned to use them, and ignored the rest. This
> is not to suggest that everyone should do the same.

Still, it's very good advice. Better to master one package, then to
encounter many and know none.

>   What are you drawing? 

I intend to illustrate my slides with a clipart-like drawings & combine
them with e.g. openclipart library.

> How much time do you want to spend on each figure?

This one is not easy to estimate atm.

> Are you sufficiently fluent in one of the drawing languages (such as
> PSTricks and pgf) that you can create what you want as quickly as with
> a visual editor (such as tgif, jPicEdit, ipe and a ton of others)?

No. I'm just beginning with this stuff, and although I could dive in
into PSTricks and pgf, I'll probably get some help from my better half
and she will be more comfortable with Inkscape, GIMP...using some
simple tablet. That's why I'm talking about e.g. inkscape & LyX.

>   What I find amusing is that those stuck behind the
>   supposedly-bullet-proof Windows have so few choices and those of us
>   in the F/OSS world spend a lot of time trying to wade through the
>   plethora of choices. And, they're all good ones.

I fully agree, but people are belong to the weird species :-)

Sincerely,
Gour

-- 
Registered Linux User   | #278493
GPG Public Key  | 8C44EDCD
 


FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Walid Maalej

Subject: RE: Caption and graphics within the same paragraph?!

Hi Dan,

Thanks for your replay.

> I presume that you don't want the graphics and caption on separate lines
> within the caption. If you do, then just hit enter once before you
> insert the graphics.

Yes. Sure the graphic and its name are in separate lines --> separate
paragraphs. However I'm not able to define two different styles for each
paragraph: Justified for the caption and centered for the graphic. I have
both of them inside a float:Figure
Do you know if this possible? Or do I have to put them without a float?


Cheers
Walid




Re: lyx-code - date-insert

2005-10-13 Thread chr
On Thu, 13 Oct 2005, David Wolfson wrote:

> Anyway, the first of these problems is with inserting a date. I do the
> occasion print out and would like to include the current date when I do.

Hang on... you actually want to have the current date in the printout??? 
(One of the most frequent questions is how to *not* get the date:-)

It's been a while, but I think you'll need an ERT that contains 
\today{}
LaTeX will automaticall replace '\today{}' with the time the document is
compiled. You can place this command in headers/footers if you want it on 
every page.

cheers
/Christian


-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Presentations using LyX

2005-10-13 Thread Rich Shepard

On Thu, 13 Oct 2005, Gour wrote:


I've found something in wiki, is that the right thing?


  I don't know. I followed the instructions with the ps4pdf package ... I
think. Once I get some application or add-on installed and working I do a
dump of that knowledge from the NPU[1] so there's room for more current
information.


No. I'm just beginning with this stuff, and although I could dive in into
PSTricks and pgf, I'll probably get some help from my better half and she
will be more comfortable with Inkscape, GIMP...using some simple tablet.
That's why I'm talking about e.g. inkscape & LyX.


  For clipart-type images I believe that inkscape, sketch, tgif, ipe,
jpicedit and the others that let you visually assemble the image will be
quicker and easier than applications such as PSTricks, pgf, xfig, and gri
which are drawing languages. The GIMP is raster based rather than vector
based and may not be quite as good for your purposes as the others.


I fully agree, but people are belong to the weird species :-)


  Life would be very boring if we were all the same, eh?

Rich

--
Dr. Richard B. Shepard, President |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863

[1] Neural Processing Unit


Re: FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Angus Leeming
Walid Maalej wrote:
> Yes. Sure the graphic and its name are in separate lines --> separate
> paragraphs. However I'm not able to define two different styles for each
> paragraph: Justified for the caption and centered for the graphic. I have
> both of them inside a float:Figure
> Do you know if this possible? Or do I have to put them without a float?

Open the Layout->Paragraph dialog and set the justification as you desire.

-- 
Angus



Re: FW: Caption and graphics within the same paragraph?!

2005-10-13 Thread Angus Leeming
On Thursday 13 October 2005 20:43, Walid Maalej wrote:
> > > Yes. Sure the graphic and its name are in separate lines --> separate
> > > paragraphs. However I'm not able to define two different styles for
> > > each paragraph: Justified for the caption and centered for the graphic.
> > > I
> >
> > have
> >
> > > both of them inside a float:Figure
> > > Do you know if this possible? Or do I have to put them without a float?
> >
> > Open the Layout->Paragraph dialog and set the justification as you
> > desire.
>
> No it does not work! Every time I change the justification for the caption,
> it gets back to the paragraph's value.
> I guess within a float one can have only one justification even if we have
> more than one paragraph?!

Sorry, my misunderstanding. I thought you wanted to center the graphic.

To center the caption you need to redefine the LaTeX.

I've used this in the past. Add it to your preamble.

%% Set the captions to be italic
\newcommand\myCaption[1]{\itshape\refstepcounter{figure}%
   \begin{center}\figurename\ \thefigure :\ #1\end{center}\upshape}
\let\caption\myCaption

Please reply to the list...

Angus


Problems with installing/running

2005-10-13 Thread Robert Badzey


Hi:

So I've been using LyX for awhile now.  Great program - wrote my 
dissertation on it in about half the time it would have taken for LatTeX.


So I noticed the new build (1.3.6) for Windows, and figured I'd give it a 
shot.  I don't know what the problem is, but it's been giving me fits ever 
since, with a progressive degrading of performance that's a bit startling.


First, I couldn't import LaTex files correctly.  Always got an error 
message.  Tried installing tex2lyx -- no dice.  I just got a generic error 
message, and so was never able to track it down beyond that.


Then, just yesterday, LyX apparently lost the ability to generate previews 
- no DVI, nothing.  The pull-down menu options which existed before simply 
vanished.  Only output to PDF.  Having removed and re-installed, now I 
can't even run it.  I get an error message which tells me that it "wasn't 
able to find any layout description" and the program fails to run.


So in the space of three days I've gone from a functional program to one 
which simply won't run at all.


Any ideas/suggestions?  This is very worrying and not at all explicable.

Rob Badzey


Re: Problems with installing/running

2005-10-13 Thread Angus Leeming
Robert Badzey wrote:

> 
> Hi:
> 
> So I've been using LyX for awhile now.  Great program - wrote my
> dissertation on it in about half the time it would have taken for LatTeX.
> 
> So I noticed the new build (1.3.6) for Windows, and figured I'd give it a
> shot.  I don't know what the problem is, but it's been giving me fits
> ever since, with a progressive degrading of performance that's a bit
> startling.
> 
> First, I couldn't import LaTex files correctly.  Always got an error
> message.  Tried installing tex2lyx -- no dice.  I just got a generic
> error message, and so was never able to track it down beyond that.
> 
> Then, just yesterday, LyX apparently lost the ability to generate
> previews
> - no DVI, nothing.  The pull-down menu options which existed before
> simply
> vanished.  Only output to PDF.  Having removed and re-installed, now I
> can't even run it.  I get an error message which tells me that it "wasn't
> able to find any layout description" and the program fails to run.
> 
> So in the space of three days I've gone from a functional program to one
> which simply won't run at all.
> 
> Any ideas/suggestions?  This is very worrying and not at all explicable.

Try running it as
   lyx -dbg init
from the command line. Here, on a linux machine I get:

$ qlyx13x -dbg init
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... yes

binary_dir /home/angus/bin/
system_support /home/angus/lyx/13x/lib/
build_support /home/angus/lyx/13x/build-qt/lib/
user_support /home/angus/.lyx/
locale_dir
document_dir /home/angus
temp_dir /tmp
home_dir /home/angus


Your output will, of course, be different but informative.

LyX works quite hard to determine its system support directory

1. Specify it using the -sysdir command line parameter.
   lyx -sysdir 'C:/Program Files/LyX/Resources/lyx'

2. It checks the value of the "LYX_DIR_13x" environment variable.

3. It checks relative to the location of the LyX binary, looking
for a file "chkconfig.ltx" in a directory

   OnlyPath(abs_binary)/../Resources/LyX

So, if your LyX binary is found at
   C:/Program Files/LyX/bin/lyx.exe
it'll look for chlconfig.ltx at
   C:/Program Files/LyX/bin/../Resources/LyX/chkconfig.ltx

This directory should contain everything that LyX needs to function.

$ ls -F /mnt/windowsC/Program\ Files/LyX/Resources/lyx/
bind/   encodings*   languages*   reLyX/  ui/
chkconfig.ltx*  examples/layouts/ scripts/   
xfonts/
clipart/external_templates*  lyx2lyx/ symbols*
configure*  help/lyxrc.defaults*  templates/
CREDITS*images/  lyxrc.example*   tex/
doc/kbd/ packages.lst*textclass.lst*

Important files: lyxrc.defaults should contain a whole heap of stuff about
your system, as probed by the configure shell script (same dir). Of
course, for it to run LyX must be able to find a working sh.exe.
I attach my lyxrc.default, for reference.

Note that the path_prefix entry is set by the installer script at install
time.

LyX's layouts should be in the layouts directory.

Hope some of this helps...

-- 
Angus# This file has been automatically generated by LyX' lib/configure
# script. It contains default settings that have been determined by
# examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
# want to customize LyX, make a copy of the file LYXDIR/lyxrc as
# ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
# override the values given here.
\Format text  txt   ASCII   A
\Format textparagraph txt ASCII(paragraphs) ""
\Format docbook  sgml   DocBook B
\Format bmp  bmpBMP ""
\Format dvi   dvi   DVI D
\Format dvi2  dvi   DraftDVI""
\Format eps   eps   EPS ""
\Format fax   ""Fax ""
\Format fig   fig   XFig""
\Format agr  agrGRACE   ""
\Format html  html  HTMLH
\Format gif   gif   GIF ""
\Format jpg   jpg   JPG ""
\Format latex tex   LaTeX   L
\Format linuxdoc sgml   LinuxDocx
\Format lyx  lyxLyX ""
\Format literate nw NoWeb   N
\Format pdf   pdf   PDF P
\Format pdf2  pdf  "PDF (pdflatex)" F
\Format pdf3  pdf  "PDF (dvipdfm)"  m
\Format png   png   PNG ""
\Format ppm   ppm   PPM ""
\Format pgm   pgm   PGM ""
\Format pbm   pbm   PBM ""
\Format pspsPostscript  t
\Format program  "" Program ""
\Format tgif objTGIF""
\Format tiff tifTIFF""
\Format word  doc   WordW
\Format xbm   xbm   XBM ""
\Format xpm   xpm   XPM ""
\Format lyxpreview  

pdflatex

2005-10-13 Thread Geoffrey Lloyd
Hi

In trying to help with another thread (pdflatex & MacOS X) I have come across 
something I don't understand.

It appears that when you do Export->pdflatex Lyx does not do what I expected. 

Here is what I think should happen:

Lyx->Latex->pdf (using pdflatex) AND it should produce the same results as if I 
did by hand

Lyx->Latex and then Latex->pdf (using pdflatex)

However it doesn't. 

Could someone in the know please explain to me how Lyx goes about this 
conversion. 

Geoff

Re: Presentations using LyX

2005-10-13 Thread Raymond Ouellette
I'm using LyX and Beamer class these days for a presentation of Gimp 2.2.x. The 
result is great by the way! To add special effects I also use minipages in 
slides (or frames)

As for svg graphics here is my solution:

I inserted 2 small identical images, the first one is svg and the other is png 
generated from Inkscape (older Sodipodi would do the same) to illustrate the 
differences between vector and bitmap graphics. Beamer uses pdflatex as 
converter and it manages very well pdf pages.

I created with Scribus [http://www.scribus.net/] a small pdf pages (19mmx25mm) 
in which I inserted both images scaled to 17mmx20mm; I added the words 
vectoriel (vector) and matriciel (bitmap) with a 4pt Bitstream Vera font over 
each image. The choice of such a small page (correct me if I'm wrong) is 
because Beamer works with slides 96mmx128mm.

I added the small pdf page with this ERT:
\includegraphics [scale=1]{thepage.pdf}

You can scale to the wanted size, I added the option in the ERT so that you may 
use this possibility.

Finally, when you view your final presentation (in pdf format), you can view it 
fullscreen even with xpdf (3.01 is the version I use) this way:

xpdf -fullscreen presentation.pdf

But, if you use Acrobat Reader, be aware of this hidden trick: press z when a 
page is shown to switch to the zoom mode, Ctrl+= will zoom in, Ctrl+- will zoom 
out, and Ctrl+0 will go back to the original fullscreen size. Once the page is 
zoomed, you can mouve around the page by dragging with the mouse with the left 
button pressed.

Raymond Ouellette

-- 

Édité et transmis avec des logiciels libres sous Linux !




Re: pdflatex

2005-10-13 Thread Angus Leeming
Geoffrey Lloyd wrote:
> It appears that when you do Export->pdflatex Lyx does not do what I
> expected.
> 
> Here is what I think should happen:
> 
> Lyx->Latex->pdf (using pdflatex) AND it should produce the same results
> as if I did by hand

Not necessarily.

When LyX knows that it's outputing latex for the pdflatex compiler, it
tunes one or two things specifically for it. Unfortunately, we don't have
an option to export to "LaTeX (pdflatex)". Thus, when you export the latex
file and run the conversion process by hand the results *may well* be
slightly different.

Paths to external graphics and databases will also differ, for obvious
reasons.

Compare the LaTeX file you get with Export->LaTeX with that in the temp
directory where the conversion takes place:

$ diff -u yourfile.tex /tmp/lyx_tmpdirXX/lyx_tmpbuf0/yourfile.tex

In the 1.4 series we go to great pains to make sure that absolutely
everything used by LyX to generate your pdf or dvi file is in the tmp
directory, so you can simply zip up this directory and give it to someone
else (a publisher, say) and they'll be able to generate the book.

-- 
Angus



Re: pdflatex & MacOS X

2005-10-13 Thread David Philp
Hi

Just for the record, in case anyone else has a similar problem:
(1) my problem is fixed by using absolute rather than relative paths
(thanks Bennett)
(2) Since I didn't used to need absolute paths, I have entered this
into bugzilla.

Thanks!  D


poster view/export postscript page size problem.

2005-10-13 Thread Bo Peng
Dear list,

I am using sciposter.cls to produce a poster. I set a0 and other
options as recommended by the sciposter manual. If I export latex, run
latex, dvips, I would get a correct poster. However, within lyx, view
dvi is fine but view/export ps/pdf only gives me a corner of the
poster. I checked converters, dvi->ps uses "dvips -o $$o $$i" which is
perfectly normal.

What might went wrong? How can I know what command, option lyx
actually used to view/export? (The status-line goes too quickly.)

BTW, I simply use "Input article.layout" in sciposter.layout. Maybe
this is causing the problem?

Thanks.
Bo