Lyx -> Latex

2006-08-15 Thread David Philp

Hi

Sorry for coming in late on this one.  I'd like to add my voice to the
people who were perturbed by the automatic exporting of EPS files on
exporting of Latex.

* I usually export EPS files (foo.eps) from a program
* I then touch them up in Illustrator, saving them as foo.ai (for
editing) and foo.pdf (the PDF version is a stripped-down version,
without all the Adobe guff)
* I then insert them into lyx
* I sometimes export latex from lyx
* I then touch up the latex, and compile with pdflatex.

So the extra EPS files add no value to me (though it could be useful
one day).  Obviously I can work around this, but I suggest that it
would be better to have an option to "Export Latex Bundle" or
something, that creates a new directory, which contains the latex file
and the necessary EPS files.

David


Typewriter font not fixed width on screen

2006-08-15 Thread Andrew Harrington
I just loaded Lyx 1.4.2 onto a new Windows machine and copied over a 
document I was working on under Lyx 1.3.7 on another Windows XP machine.
Under 1.3.7 typewriter font displayed in a fixed width font on the 
screen.  With 1.4.2, it does not.  I may have loaded some fonts I forgot 
about on the old machine some time ago.


Suggestions appreciated so I see a fixed width font.

--
 Andrew N. Harrington
 Computer Science Department  Director of Academic Programs
 Loyola University Chicagohttp://www.cs.luc.edu/~anh
 512B Lewis Towers (office)   Office Phone: 312-915-7982
 Snail mail to Lewis Towers 416   Dept. Fax:312-915-7998
 820 North Michigan Avenue[EMAIL PROTECTED]
 Chicago, Illinois 60611  



Re: Copying and pasting

2006-08-15 Thread Matej Cepl
Pupeno wrote:
> Yes, this is KDE (Kubuntu to be precise).

Actually, for me inserting text from clipboard in UTF-8 works well (I have
UTF-8 locale though, maybe that's the difference) -- it comes to LyX in
ISO-8859-2.

However, character conversion of clipboard in KDE are really trivial:

prelozeno=$(dcop klipper klipper getClipboardContents \
| iconv -f utf8 -t iso-8859-2)
dcop klipper klipper setClipboardContents $prelozeno

(you may need to use -s and -c -- iconv(1) is your friend)

Play with it, make script out of it and attach the script to some key
shortcut in KDE (Control Center/Regional & Accessibility/Keyboard
shortcuts). You may also need to set correctly IFS variable (read in
bash(1) about that one; maybe unsetting is what's needed? -- just in case
your multi-line and multi-paragraph texts get mangled).

Best,

Matěj
-- 
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
http://www.ceplovi.cz/matej/blog/, Jabber: [EMAIL PROTECTED]
23 Marion St. #3, (617) 876-1259, ICQ 132822213
 
He inherited some good instincts from his Quaker forebears, but
by diligent hard work, he overcame them.
  -- James Reston
 (about Richard Nixon)




Re: Pasting with the mouse middle button inside math mode

2006-08-15 Thread Paul A. Rubin

Georg Baum wrote:

Am Dienstag, 15. August 2006 21:11 schrieb Paul Smith:

Dear All

Selecting a piece of text and clicking on the middle button of the
mouse pastes the selected text, with *no* need of CTRL+c. A similar
procedure worked fine inside math mode, but not anymore on LyX 1.4.2
(on Fedora Core 5). Is it possible to have that so useful feature
back?


Indeed. Note that you must leave the selected text highlighted before 
clicking the middle mouse button if this text is from LyX and no ther 
window, i.e. you must not first click with the left button to position the 
cursor, but if you followed this rule it used to work. Do you remember the 
last version that worked?




Worked for me in 1.3.7, not in 1.4.1.

/Paul



Re: nested paragraphs

2006-08-15 Thread L. R. Denham
On Tuesday 24 March 2009 17:36, Thomas Klimpel wrote:
> [description1] Some text ...
>     not realy important ...
>     but still belonging to the same description
>     1. first point of an inner enumeration
>     2. second point of an inner enumeration
>     more text, still belonging to the first description.
>     but I can't produce this paragraph after the inner enumeration,
>     because I don't know how to tell LyX, that I want to continue
>     the description after the inner enumeration.
> [description2] bla bla bla...

I believe that attached example is what you want.

Les


nesting.lyx
Description: application/lyx


Re: New to LyX 1.4

2006-08-15 Thread Paul A. Rubin

Georg Baum wrote:

Am Dienstag, 15. August 2006 21:05 schrieb Gunnar:

So, finaly I'm taking the step to 1.4 from 1.3.7
I have some customizations all over the the .lyx directory, keybindings, 
external templates, etc.


Is there something I should do before chaning to 1.4 except making a 
backup 

copy?


You'll need to update the external templates by hand, see the documentation 
and the external_templates file shipped with LyX 1.4.


Some keybindings might not work (some lfun names were changed). AFAIK 
everything else should continue to work.




Also,, the menus were rearranged, so any key bindings that invoked a 
menu item (say by the menu-open lfun) needs to be checked and possibly 
updated.


/Paul



Re: standard Lyx template/example does not work (?)

2006-08-15 Thread TechTonics

sk wrote:

Hello,

I am a somewhat experienced Lyx user. Using Lyx 1.4.2. with the latest
MiKTeX (2.5 with updated packages from the 14.august.2006) on Windows
xp. I have reconfigured Lyx via the Menu (Tools -> reconfigure) after
all MiKTeX updates. I don't know much about plain LaTeX though (thats
why I use Lyx ;-))

Recently I have an annoying problem with a lyx document class
(g-brief-de). Whenever I try to export documents of this type to PDF via
pdflatex I get the following error:


LaTex Error: Command \Telefon already defined.

\newcommand\Telefon{\mvchr{84}}

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.


At first I thought that there is something wrong with my document. So I
tried the g-brief-de.lyx template file from the Lyx templates folder. It
produces the same error!

I tried an uninstall of Lyx 1.4.2 and reinstalled 1.4.1 (with 1.4.1 it
used to work). But then it wouldn't even work in 1.4.1.! Now I have
1.4.2 up and running but the error persists!

Is this error reproducible by anyone? What causes the error? If it is
not reproducible, what am I doing wrong with my lyx installation?

Please help me. I have lots of old documents using this class. Also I
like the layout more than the g-brief2 class.

Thank you very much,

Stephan



I saw this problem mentioned not so long ago
and this is all I know about it.



Telefon double definition in g-brief and mavrosym

Michael Hartje
Fri, 04 Aug 2006 14:29:26 -0700

dear readers,

may be this is not lyx but TeX error. (I use the last Miktex WinXP)


mavrosym.sty (2006/05/11 v2.1) defines

\def\Telefon{{\mvchr84}}

while g-brief-de.layout (and the g-brief.cls in tex) defines

Style Telefon
...
LatexName   Telefon
...
End


this stops latex every time using g-brief with errors when running 
automatic through mavrosym while using g-brief.


I would recommend for mavrosym.sty to change "Telefon" to "Telefone"!

best regards

Michael

---

Hope it helps,

Stephen



Re: Pasting with the mouse middle button inside math mode

2006-08-15 Thread Paul Smith

On 8/15/06, Georg Baum <[EMAIL PROTECTED]> wrote:

> Selecting a piece of text and clicking on the middle button of the
> mouse pastes the selected text, with *no* need of CTRL+c. A similar
> procedure worked fine inside math mode, but not anymore on LyX 1.4.2
> (on Fedora Core 5). Is it possible to have that so useful feature
> back?

Indeed. Note that you must leave the selected text highlighted before
clicking the middle mouse button if this text is from LyX and no ther
window, i.e. you must not first click with the left button to position the
cursor, but if you followed this rule it used to work. Do you remember the
last version that worked?


Thanks Georg. I have followed the rule that you have just enunciated,
but it does not work. I remember it worked fine before version 1.4.

Paul


Re: Is it easy to add collaboration feature into LyX?

2006-08-15 Thread TechTonics

Michael wrote:

On 8/14/06, Bo Peng <[EMAIL PROTECTED]> wrote:


> Hi TechTonics,
>
> The one feature that I've mentioned is the real time communication,
> real-time math discussion, and real-time collaboration. I guess it is
not
> exist in the current version of LyX.
>
> any more thoughts?

I am interested in, right now, is a way to compare/diff two lyx
documents (maybe two versions of a svn repository), and result in a
change-marked one. This might be a nice addition to the
change-tracking feature. I think this can be easier to do when lyx is
converted to xml format with UUID paragraph ids.

As of real-time communication stuff, have you tried the latest MS
word? I have not tried it, but they have boasted for years that word
is 10 years ahead of any other word processor for its collaboration
features.

Cheers,
Bo




Hi Bo,

The best collaboration and brainstorming software is in MS Office called
OneNote, and it is also a note-taking software.

Now I am interested in adding math discussion capability to it, using the
math inset box and instant preview in LyX.

Any more thoughts?

Michael.



I'll mention Tech Explorer of which some people may not have
heard. htlatex export in Lyx to html to do a preview is not
working (Windows) and so it is done from the command line
which is a long ways to go. Tech Explorer, originally developed
by IBM, is free for personal use from Integre. It loads a .tex
file directly working as a plug-in for IE, Firefox and Opera.
It is always good to have a backup. I changed the file a bit,
\displaystyle\int_{0}^{1}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx=
\frac{22}{7}-\pi for comparison reasons.








Re: Pasting with the mouse middle button inside math mode

2006-08-15 Thread Georg Baum
Am Dienstag, 15. August 2006 21:11 schrieb Paul Smith:
> Dear All
> 
> Selecting a piece of text and clicking on the middle button of the
> mouse pastes the selected text, with *no* need of CTRL+c. A similar
> procedure worked fine inside math mode, but not anymore on LyX 1.4.2
> (on Fedora Core 5). Is it possible to have that so useful feature
> back?

Indeed. Note that you must leave the selected text highlighted before 
clicking the middle mouse button if this text is from LyX and no ther 
window, i.e. you must not first click with the left button to position the 
cursor, but if you followed this rule it used to work. Do you remember the 
last version that worked?


Georg



Re: New to LyX 1.4

2006-08-15 Thread Georg Baum
Am Dienstag, 15. August 2006 21:05 schrieb Gunnar:
> So, finaly I'm taking the step to 1.4 from 1.3.7
> I have some customizations all over the the .lyx directory, keybindings, 
> external templates, etc.
> 
> Is there something I should do before chaning to 1.4 except making a 
backup 
> copy?

You'll need to update the external templates by hand, see the documentation 
and the external_templates file shipped with LyX 1.4.

Some keybindings might not work (some lfun names were changed). AFAIK 
everything else should continue to work.


Georg



Table of content line wrap problem.

2006-08-15 Thread Bo Peng

Dear list,

I am using a customized thesis cls file. I notice that the long
section titles do not wrap in table of content when using ps2pdf, but
wraps when using pdflatex. Does anybody know what I should look for in
the cls file to correct this problem?

Many thanks in advance.

Bo


Pasting with the mouse middle button inside math mode

2006-08-15 Thread Paul Smith

Dear All

Selecting a piece of text and clicking on the middle button of the
mouse pastes the selected text, with *no* need of CTRL+c. A similar
procedure worked fine inside math mode, but not anymore on LyX 1.4.2
(on Fedora Core 5). Is it possible to have that so useful feature
back?

Thanks in advance,

Paul


New to LyX 1.4

2006-08-15 Thread Gunnar
So, finaly I'm taking the step to 1.4 from 1.3.7
I have some customizations all over the the .lyx directory, keybindings, 
external templates, etc.

Is there something I should do before chaning to 1.4 except making a backup 
copy?


standard Lyx template/example does not work (?)

2006-08-15 Thread sk
Hello,

I am a somewhat experienced Lyx user. Using Lyx 1.4.2. with the latest
MiKTeX (2.5 with updated packages from the 14.august.2006) on Windows
xp. I have reconfigured Lyx via the Menu (Tools -> reconfigure) after
all MiKTeX updates. I don't know much about plain LaTeX though (thats
why I use Lyx ;-))

Recently I have an annoying problem with a lyx document class
(g-brief-de). Whenever I try to export documents of this type to PDF via
pdflatex I get the following error:


LaTex Error: Command \Telefon already defined.

\newcommand\Telefon{\mvchr{84}}

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.


At first I thought that there is something wrong with my document. So I
tried the g-brief-de.lyx template file from the Lyx templates folder. It
produces the same error!

I tried an uninstall of Lyx 1.4.2 and reinstalled 1.4.1 (with 1.4.1 it
used to work). But then it wouldn't even work in 1.4.1.! Now I have
1.4.2 up and running but the error persists!

Is this error reproducible by anyone? What causes the error? If it is
not reproducible, what am I doing wrong with my lyx installation?

Please help me. I have lots of old documents using this class. Also I
like the layout more than the g-brief2 class.

Thank you very much,

Stephan


Re: Copying and pasting

2006-08-15 Thread José Matos
On Tuesday 15 August 2006 14:58, Pupeno wrote:
> >   In 1.4.2 I don't have any problem copy and pasting from an external
> > source to lyx.
>
> Is the external selection in UTF-8 ? is your locale in UTF-8 ? is your
> desktop environment all using UTF-8 as well ? If so, can you track that it
> is a fix on LyX 1.4.2 ? (otherwise, the works-for-me is useless).

  Is there any other encoding other than utf-8? ;-)

  Yes, all encodings here are utf-8:
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

  I guess that this was a fix from 1.4.0, but I am not sure.

  I use Fedora (Core) 5 and my desktop environment is kde 3.5.4.

> >   Also as Matěj said lyx 1.4 does not support unicode, that is the goal
> > of next version 1.5.
>
> That'd be nice.

  The code has been merged recently, we already have lyx files in utf-8. Now 
the funny part is to work the latex export. It will take some time to get it 
right. :-)

-- 
José Abílio


Re: Copying and pasting

2006-08-15 Thread Pupeno
On Monday 14 August 2006 15:51, José Matos wrote:
> On Monday 14 August 2006 14:25, Pupeno wrote:
> > My wife is doing some work in which she pastes lots of text from mails
> > and other places, most of the on UTF-8 and pastes it on Lyx, but Lyx uses
> > Latin-1, so she ends up with a lot of weird characters. Any ideas how to
> > solve the problem ? something that is agile ?
> > If upgrading to 4.0 is needed, I'll consider it, we are currently running
> > 1.3.7, but the last time I tried 4.0, it didn't seem to be have UTF-8
> > support.
>
>   By 4.0 I think that you mean 1.4.x, right?

Yes, a typo, sorry.

>   In 1.4.2 I don't have any problem copy and pasting from an external
> source to lyx.

Is the external selection in UTF-8 ? is your locale in UTF-8 ? is your desktop 
environment all using UTF-8 as well ? If so, can you track that it is a fix 
on LyX 1.4.2 ? (otherwise, the works-for-me is useless).

>   Also as Matěj said lyx 1.4 does not support unicode, that is the goal of
> next version 1.5.

That'd be nice.
-- 
Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)


pgpopIAiYyjvq.pgp
Description: PGP signature


Re: Copying and pasting

2006-08-15 Thread Pupeno
On Monday 14 August 2006 13:51, Matej Cepl wrote:
> Pupeno wrote:
> > My wife is doing some work in which she pastes lots of text from mails
> > and other places, most of the on UTF-8 and pastes it on Lyx, but Lyx uses
> > Latin-1, so she ends up with a lot of weird characters. Any ideas how to
> > solve the problem ? something that is agile ?
>
> What's your platform? I could help with KDE (and klipper), where it should
> be trivial to make a script which would convert between encodings in
> clipboard. Anything else is beyond my ability.

Yes, this is KDE (Kubuntu to be precise).
-- 
Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)


pgpoAiOK9szuF.pgp
Description: PGP signature


Re: Flow Chart Drawing For LaTeX/LyX

2006-08-15 Thread John Pye

Hi,

For UML diagrams, consider taking a look at Gaphor which is a purpose 
built UML program that runs on Linux, Windows & Mac (using Python and GTK+).


It's also worth taking a look at Graphviz (dot, neato), especially if 
you think you might like to automate the production of your diagrams.


Cheers
JP

Rich Shepard wrote:

The last time I tried counting I found more than 17 different vector
drawing applications that are suitable for use with LaTeX/LyX documents.
I've used Tgif, Xfig, jpicedt, IDE, and PSTricks. Each has strengths and
weaknesses, so I use whichever seems to be the best for a particular 
type of

illustration.

What I want to draw now are software flowcharts that illustrate how a
model is structured and how data flow from one component to another. What
would be ideal is a set of primatives for various standard nodes: data
entry, decision points, printer, database storage, etc.

Does anyone know of any such library of pre-built images that can be
incorporated into a larger figure?

TIA,

Rich



--
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/



Re: placing a large table in landscape orientation

2006-08-15 Thread John Pye
Belated thanks to you both. The ERT "\scriptsize" ... "\normalsize" 
around the table was good, and I combined it with the rotated  table 
float, and got just what I needed.


Thanks a lot!
JP

José Matos wrote:

On Tuesday 08 August 2006 06:54, John Pye wrote:
  

Hi all,

I have moderately wide table that I would like to place on a page of my
LyX document in landscape format. I have been able to do this, although
note that it comes out wrong in the DVI viewer, but appears not bad in
the pdflatex output.

The problem is that the text is a little too large, and even with the
landscape orientation, my table is too big for the page.

How can I shrink down the size of the text used in the table?



  See attached file.

  

Alternatively, how can I make the table's caption show in landscape
format as well, rather than above the rotated figure?



  No idea here.

  

I don't know latex commands, so if I must use ERT for this, please
specify what it is that must do. Any tips would be much appreciated.

Cheers
JP



  


--
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/



Re: TIPA+Instant Preview in 1.4.2

2006-08-15 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote:
> M-m
> \textipa[EMAIL PROTECTED]

I have added some notes on the wiki about how to create a keyboard shortcut or 
menu entry to switch to TIPA mode. This is certainly more convenient if you 
need TIPA frequently:
http://wiki.lyx.org/LyX/LinguistLyX#tipa-lfun

HTH,
Jürgen


Re: LaTeX commands instead of KB shortcuts

2006-08-15 Thread Russell Davie
On Mon, 14 Aug 2006 23:24:10 -0700
Ravi Rao <[EMAIL PROTECTED]> wrote:

> Hello Russell and Gunnar,
> 
> Thanks for your replies.
> 
> Russell, what I meant was not a DVI/PDF preview as you type, but  
> rather the preview in LyX itself, for example, as you type math, LyX  
> converts it as you type without needing to run LaTeX on the document.

Ravi
this is what I thought you meant, and it sounds it could need a major addition 
to LyX.

> 
> Gunnar, your suggestion works.  I added the following command
> \bind "M-s e c t i o n" "layout Section"
> So, if I type Alt-section (close enough to \section for me), it has  
> the desired effect, and a new section environment begins. I'm sure  
> I'll get tired of it soon, and want to learn the shortcuts in  
> mac.bind. But it will help the transition for LaTeX users who are not  
> familiar with shortcuts. Once we have a bind file with shortcuts like  
> this for all common LaTeX commands, if we don't remember the  
> shortcut, we can just type the full LaTeX command, while replacing \  
> with Alt.
> 
> Russell, for automatically running LaTeX, I use latexmk (http:// 
> www.phys.psu.edu/~collins/software/latexmk-jcc/) which runs pdflatex 
> +bibtex the required number of times automatically when the file  
> changes. The effect is similar to your cron job + kdvi method, but  
> with the possible advantage that it runs latex and bibtex  
> automatically as many times as needed.


I like it!
I look forward to using it next time when writing LaTeX
methinks out loud: modifying it to do the same for LyX. ;-)
cheers
Russell

> 
> Regards,
> Ravi
> >
> > From: Russell Davie <[EMAIL PROTECTED]>
> > Date: August 13, 2006 9:55:29 PM MST
> > To: lyx-users@lists.lyx.org
> > Subject: Re: LaTeX commands instead of KB shortcuts
> >
> >
> > On Sun, 13 Aug 2006 16:35:18 -0700
> > Ravi Rao <[EMAIL PROTECTED]> wrote:
> >
> >> Hello,
> >>
> >> This may have been asked before, but I can't think of the right
> >> keywords to search for it.  I'm an experienced LaTeX user, and I
> >> would like to use LyX because it gives me an instant preview of what
> >> I "meant".  However, I find it's MS Word-like GUI interface with
> >> toolbars, menus, etc. tiresome.  As I already know LaTeX, can't I
> >> simply type the LaTeX code, and have Lyx interpret it on the fly?
> >> This functionality is already partially present in the Math editing.
> >> When I type \alpha, it immediately becomes the symbol alpha.  I would
> >> think it should be even easier to do things like convert \title{ into
> >> a title style. Is there some way to do this right now in LyX?  Are
> >> there others who think this would be a desirable feature?
> >>
> >> Ravi
> >
> > It would be nice to have this functionality, but it requires a  
> > compile of the .lyx or .tex file each keystroke.  Using existing  
> > means recompile the source with each keystroke (lyx -> tex -> dvi - 
> > > ps/pdf) would make this a computer intensive task.  To make the  
> > "real-time" rendering of the dvi/ps/pdf and reduce the redundant  
> > file compiling and cpu workload would need a different way than is  
> > currently implemented. IMHO.
> >
> > So far what I have is to use a cron job to make a dvi/ps/pdf each  
> > minute.  (using Linux)
> > eg making a pdf from cron:
> >
> > 0-59 * *  *  *  /usr/local/bin/lyx1.4.2 -e pdf2 ~/name-of-doc.lyx  
> > >> /dev/null  2>&1
> >
> > The command for lyx (or latex) and location of the edited file may  
> > differ.
> > If you want an email each time its done, remove the ">> /dev/null   
> > 2>&1"
> > Also setup the editor to save the file every minute, and do a save  
> > 5 seconds before the minute, so the cron job gets the most recent  
> > addition to your file.
> > Set up the file viewers set to "watch file". kdvi, gv and kpdf will  
> > do this for dvi, ps and pdf respectively.
> >
> > If you have dual monitors, set the viewer on one and editor on the  
> > other. It works a treat!
> > HTH
> > Russell
> >
> >
> >
> > From: Gunnar <[EMAIL PROTECTED]>
> > Date: August 13, 2006 11:54:20 PM MST
> > To: lyx-users@lists.lyx.org
> > Subject: Re: LaTeX commands instead of KB shortcuts
> > Reply-To: [EMAIL PROTECTED]
> >
> >
> > Have you tried to add a customized keyboard shortcut for your own  
> > commands?
> > That might work. But I think recognizing the leading "\" can be a  
> > problem.
> >
> > I use keyboard shorcuts for everything and I find it to be very  
> > efficient
> > (most of the time less keystrokes compared to the corresponding latex
> > command).
> > I get the \alpha by  M-m g a   (Alt-M followed by "g" and "a" ).
> > You shouldn't use the GUI interface, you really shouldn't.
> >
> > Have a look at the files in ~/.lyx/bind
> > start by looking at  the file cua.bind and math.bind see how it is  
> > done.
> > I think you will figure it out.
> >
> >
> > On Monday 14 August 2006 01:35, Ravi Rao wrote:
> >> Hello,
> >>
> >> This may have been asked before, but I can't think of the right
> >>