Re: Guidance in starting to use LyX/LaTex

2011-07-13 Thread Anders Host-Madsen
 My ability to make documents look the way I want them to is limited. 

In my personal opinion, this is the weakness of LaTeX/LyX. 
LaTeX is great when you write for a medium 
with a defined formatting, e.g., a journal, and they give you a 
style file to use. Then you just fill out the 
contents. But if you a free to format your document, and have 
specific ideas on how it should look like, it's 
not that convenient. I found the easiest way is to use 
LaTeX packages such as enumitem, fancyhdr, and 
titlesec. Once you have formatted one document, you 
can use it as template for following documents.



Lion

2011-07-20 Thread Anders Host-Madsen
Has anyone tried LyX (2.0) under Mac OSX Lion? Has anyone encountered 
any problems? I will wait with upgrading until I know LyX can 
run under Lion.



Re: A period after section number

2011-07-24 Thread Anders Host-Madsen
You should be able to do this with the titlesec package.

For example, it has the following command:

and you may add a dot after the counter simply with
\titlelabel{\thetitle.\quad}

My experience is that trying to change the section labels
manually gives headaches.



Missing templates

2011-09-19 Thread Anders Host-Madsen
I use LyX 2.0 on Mac. But I cannot find any templates.
One one computer I installed on top of LyX 1.6, on the other
computer it was a fresh install of 2.0. In either, no templates.
What can I do?



Re: Missing templates

2011-09-19 Thread Anders Host-Madsen
Thanks, that solved the problem!



Re: Missing templates

2011-09-20 Thread Anders Host-Madsen
I did this:

copy them from there (e. g. /Applications/LyX.app/Contents/Resources/templates)
to ~/Library/Application Support/LyX/templates

Of course, that is not very user friendly. In particular now that Apple has
decided to hide Library. Would it be possible to run some
kind of installation script that does this automatically?





Re: converting from doc (doc import) - html and LaTeX approach failed

2011-11-16 Thread Anders Host-Madsen
It depends on whether or not you want to import equations as well. 
I have been using Word2tex to convert word documents with
mainly equations, and it works fairly well. Some hand-editing is
required, but it is fairly limited. Word2tex is not free, though.
Still, I have found that all the free approaches work very
poorly for equations.



Re: How to select via keyboard?

2011-11-21 Thread Anders Host-Madsen
You can hold down the shift key while you use the arrow keys, at
least on Mac.



Re: copying from MS Word to LyX

2012-01-12 Thread Anders Host-Madsen

 My experience has been that word2tex is the only program that will work well
 with lots of math equations.  But over the years, Word has handled math
 in a bunch of different ways, so I'd recommend getting an evaluation version
 first, and making sure it works for your particular word documents.
 

I agree. I also bought word2tex after trying all the free options. 
The problem with
OpenOffice, at least when I tried it, was that it tried to copy the exact 
style of
equations into latex, so the resulting latex was a terrible mess.

Word2tex has worked quite well to me. It is not completely automatic. 
I usually
do some hand editing of the latex code before finally converting 
it into LyX.



Mountain Lion

2012-07-26 Thread Anders Host-Madsen
Did anyone try to run LyX under Mountain Lion? Any problems?

Thanks.



Re: lyx and pdf fonts

2009-11-10 Thread Anders Host-Madsen
I get great PDF output, that can be scaled to
any size. The only thing I did was to set the encoding
to OT1. If you don't use international characters, that
should enable LaTeX to use vector fonts.





side-by-side figures

2009-11-25 Thread Anders Host-Madsen
This is possibly more of a latex question. Is there some packet 
that can place figures side by side? I know of wrap figure, but I have
never made it work very well. I always have to manually manipulate
the figure placement and settings, which is somewhat contrary to
the idea of LyX/LaTeX. 

I'm asking for something more modest. In Latex,
as far as I can see, a figure always takes up the whole 
width of a page (or column).

What I want is figures that have less width, and are then AUTOMATICALLY
placed side-by-side (e.g., in groups of two). I don't need text to wrap
around, just the figures grouped and placed side-by-side.

There is the package subfig, which does something like that, but
that requires manually grouping figures.



Re: side-by-side figures

2009-11-25 Thread Anders Host-Madsen
Follow up question: even if I use subfig, it's not clear how to
do that from within lyx, unless I put the figure as ERT. But
then I cannot see a preview in LyX.



Re: side-by-side figures

2009-11-25 Thread Anders Host-Madsen

 Follow up question: even if I use subfig, it's not clear how to
 do that from within lyx, unless I put the figure as ERT. But
 then I cannot see a preview in LyX.

Oh, I see, this is actually in the manual. But not my original question.




Re: side-by-side figures

2009-11-25 Thread Anders Host-Madsen
 
 http://wiki.lyx.org/FAQ/FiguresSideBySide
 
 I've been using this trick to typeset code examples and latex output and
 I've been very happy so far.

Thanks. Both of these solution (minipages, subfigures) are similar to what
I have been doing so far, placing two figures (graphics) together inside a 
float.
However, what I hoped for was a package that automatically would place
two floats side by side, if it fits on the width of the page.

The issue is like this: suppose you want figures side by side just to
save space. So, you group unrelated figures together. But, then
if you move sections around you may have to regroup figures. Or
if you change to a two column layout, you will have to ungroup
figures again. This can easily be done in the final layout, but
it's not very elegant, and it is not in the spirit of LaTeX, where
the author should care about contents, not formatting.




Re: 'quadratic' problem

2009-12-05 Thread Anders Host-Madsen
An alternative that I use is to use \Box in math mode. 
That way font problems are avoided.



Subfloats alignment

2009-12-10 Thread Anders Host-Madsen
I have two figures of different height that I want side-by-side.
I use subfloats.
LyX (and Latex) always aligns them at the bottom edge. How
can I align them at the top edge (or center them)? I have tried
to insert vspace on either side, but it has no effect. Any
suggestions?



Re: Subfloats alignment

2009-12-11 Thread Anders Host-Madsen
Thanks for your help. The second example (with a table cell) does work.
I'm not sure it does exactly what I wanted, as it also moves up the caption. My
idea was probably more to have the images themselves centered,
but the (sub)captions aligned. However, it's all about the visual
impression, and this looks better than before. 
Again, thanks for your help.




Re: Change order of bibliography entries

2009-12-11 Thread Anders Host-Madsen
A suggestion:
You could use the unsrt bibliography style. That will put
the references in order of appearance. You can then
use the \nocite command in the beginning of the
document to get the order you want.

I haven't tried this, but it should work -- but
you have to manually sort the references,
which is a hassle if you have many. 



Redefining sections

2009-12-17 Thread Anders Host-Madsen
This is really a latex question, but I hope someone can answer anyway.

I redefine sections with the latex preamble
\newcommand{\tmpsection}[1]{}
\let\tmpsection=\section
\renewcommand{\section}[1]{\vspace{-0.15in}\tmpsection{#1}\vspace{-0.1in}}

It works as it's supposed to, but it makes latex unable to make a table
of contents, and the 'references' heading comes out strangely (7 * in large
and then references in small on the next line).

What do I do wrong?



Re: Redefining sections

2009-12-17 Thread Anders Host-Madsen
Thanks, it seems the titlesec package is quite flexible. The
secsty package seems limited; for example it cannot redefine
spacing before and after section headings, which was exactly
what I wanted here (I needed a document to fit 15 pages). 
I will try to use the titlesec package.



Re: Redefining sections

2009-12-18 Thread Anders Host-Madsen
\usepackage[compact]{titlesec} does exactly what I want, so
that was easy.



Weird disappearance of references

2010-01-27 Thread Anders Host-Madsen
I have one particular document where LyX just will not include certain
references from my bibtex file. When I do insert citation, they do not
show up in the list. If I insert them anyway (copying from another file), 
the \cite{..} show as ?? in the pdf file. However, it's only for some
references from the bibtex file; others work fine. Here is the weird thing

1) If I export to LaTeX and compile, the broken references work fine.
2) They work fine in other LyX documents. I can also create
a new LyX document, copy the bibtex statement from the
   old document, and the references work.
3) But if I create a new document and copy the text from
 the old document, the references stop working.

I just don't understand how this can happen. I have tried
both on a Mac and a PC, and I get exactly the same result,
so it's nothing in my system setup, but something with the
document.

For now I can solve it by simply exporting to latex and compile,
but it's somewhat annoying.

Any ideas?



Re: question about overriding Lyx default document class

2010-07-31 Thread Anders Host-Madsen
Just a comment here, not a solution.

A problem is, as stated, that open office produces very poor latex. It seems
that the goal of the designers of the translation module was to make
the latex output resemble the formatting of the open office document, rather
than making the contents the same. That is, they are trying to
'finger-paint' with latex, directly opposed to the philosophy of LyX.

I tried to use open office to convert MS Word documents into lyx
(MS Word-OO-Latex-LyX), but had to give up because the
latex produced by OO was so poor.



Re: question about overriding Lyx default document class

2010-07-31 Thread Anders Host-Madsen
Thanks, maybe I'll try this. I have a lot of documents in
MS Word that I continually update, and ideally I would like
to convert all of those to LyX. So far, though, it has been
too cumbersome to be worth the while, so I continue
to use MS Word.






Re: Word Import

2010-08-01 Thread Anders Host-Madsen
Richard Heck rgheck at comcast.net writes:

 
 What I'd propose is that someone begin a proper word2lyx project based 
 upon Rob's ideas. 

That would be great. I would be happy to donate to such a project 
if it was set up as a 'donation project' as other projects on LyX's 
homepage.

A lyx2word converter would also be nice. The situation is this:
you have material in LyX, but the agency/publisher/collaborator
requires a word document.




LyX theorem environment

2010-08-06 Thread Anders Host-Madsen
I have a lyx and a latex question

First, is it possible to define new theorem environments in LyX? 
I looked through the help manuals, but could not find anything.

If not possible in LyX, of course I can use latex \newtheorem. Here the 
question is, is it possible to make this follow the style of an already 
defined theorem environment? Specifically, I want my environment 
to look like the theorem style in the IEEETran class,
but if I just use \newtheorem it has a completely different style.



Re: LyX theorem environment

2010-08-06 Thread Anders Host-Madsen
Sorry, I think I was not quite clear about what I would like to do.
I'm using the IEEETran class. I would like to define a new
type of theorem (a property) that looks the same was as
theorems look in the IEEETran class.



Re: LyX theorem environment

2010-08-06 Thread Anders Host-Madsen
Richard Heck rgheck at comcast.net writes:

Thanks, I will try that.



BIBINPUTS

2012-09-08 Thread Anders Host-Madsen
This is more of a latex question. Bibtex finds the location of BIB files 
from the environmental variable 
BIBINPUTS. This is true on both Windows and Mac, and has worked 
so far. But suddenly, today, it doesn't 
work on Mac anymore. What I have used until now is the 
following method

In finder, choose Go-go to folder... ~/.MacOSX
Edit environment.plist 
Add BIBINPUTS as a new key, and put path(s).
Restart computer (seems necessary).

But again, this doesn't work anymore. Any suggestions? 

I did some search on the internet, and it seems the /.MacOSX doesn't work
 any longer in Mountain Lion 
(but I'm pretty sure I did compile after installing mountain lion). People 
say things should now be set in 
launchd. But, hey, that's too technical for me. Anyone have a solution
for directing bibtex to look for bib 
files in a central location?



Re: BIBINPUTS

2012-09-08 Thread Anders Host-Madsen
The alternative is to give direct paths to the BIB files.
However, that is an issue when you collaborate with people
on a document.

Furthermore, it seems there is a bug in LyX. When
I give direct paths to the BIB files, the citation dialog box
becomes superwide, stretching beyond the width of my large
screen. How can I solve that?



Re: BIBINPUTS

2012-09-08 Thread Anders Host-Madsen
Sorry for posting to quick, the last issue with wide citation dialog box
solved itself. But still, the question is how to set
the path for bibtex.





Re: BIBINPUTS

2012-09-08 Thread Anders Host-Madsen
I solved the problem through help on the Apple discussions. I will
post the solution here for reference in case others have the
same issue. Perhaps I can put it on a wiki?

1) In finder, choose Go-go to folder... /etc
2) Edit launchd.conf This file may not exist. 
In that case create it. Make sure it's called
launchd.conf and not lauchd.conf.txt
3) add setenv BIBINPUTS path(s). Separate multiple paths with :
Notice that the string after BIBINPUTS cannot contain spaces.
4) Restart computer.



Re: Track changes but don't show them in LyX?

2012-09-17 Thread Anders Host-Madsen
This is also a feature I sorely miss. Unless you only have
a few changes, the LyX display quickly becomes unreadable.
The consequence is that the the resulting pdf can have errors
that are overlooked in LyX, a typical example being missing
spaces.



Re: Wrapfigure placing figures at beginning

2013-02-14 Thread Anders Host-Madsen
karl at linek.at karl at linek.at writes:

 
 Hi,
 
 I'm using wrapfigure. I would like to have the top of a figure adjusted
 with the paragraph. Although I place the wrapfigure environment at the
 beginning of the paragraph, lyx places the figure about one line below
 the first line.

In my experience, wrapfigure doesn't work very well. I think you have to
experiment with manual adjustments. You can insert a negative
vertical space before the graphic (i.e., inside the wrapfigure
environment) and adjust it so you get alignment. After this
you may have to manually adjust the length of the wrapfigure
environment to avoid too much space below.



documentclass{sig-alternate}

2013-02-14 Thread Anders Host-Madsen
I need to produce a paper using the ACM sig-alternate document class.
Is there anyway I can do that in LyX? I tried to import an example file to
LyX, but it gave an error.

For now it seems the only option is to write a draft in LyX, export
to Latex and then continue working there.



Re: documentclass{sig-alternate}

2013-02-14 Thread Anders Host-Madsen
I found one LyX layout file at: 
http://krono.act.uji.es/people/ismael/lyx-templates-1

This helps, but it lacks theorems (which is
key to what I write). Any other suggestions?



Automatic save of PDF

2013-03-01 Thread Anders Host-Madsen
Is it possible to configure/program LyX so that whenever the LyX files is saved
by the user (not auto-save) the pdf version (and latex) version is also saved
(without the warning about overwrite)? I realized I do this hundred of times
every day: save the LyX file then export it to pdf. It would be nice if it could
be done automatically.



LyX very slow on Mac

2014-01-07 Thread Anders Host-Madsen
I have been using LyX for quite a while now, mainly on Mac.
But these days for many of my documents LyX is just extremely slow.
When I scroll, LyX just slowly scrolls line by line. I can wait for long time
while it just continues to slowly scroll. And to insert math,
it can take several seconds to open the math box, and then
there is a long wait for every keystroke.

I have two Macs: a slower MacBook Air, and a one year
top of the line iMac (the absolute fastest configuration
available), and on both LyX is just behaving like a snail.

It seems to be fairly recent. I doesn't seem to be every document,
but I cannot find a clear reason for what makes a document slow,
except for length (but we are talking 5 page documents versus
one page). Perhaps one thing: many LyX comments?

Has anyone else experienced this. Any ideas what I can do?



Re: LyX very slow on Mac

2014-01-08 Thread Anders Host-Madsen

I'm running LyX 2.0.6 and OS X 10.9.1, latest version of both. 
I'm downloading the beta and will try if that solves the problem.



Re: LyX very slow on Mac

2014-01-08 Thread Anders Host-Madsen
Yes, it seems LyX 2.1 solves the problem. It is definitely
faster than LyX 2.0.6. Very good. LyX had become so
slow that I almost couldn't use it.



Re: LyX very slow on Mac

2014-01-09 Thread Anders Host-Madsen
Hi Jerry,

I just tested again. On my computer there IS
a considerable speed up in 2.1. In 2.0.6 I do the two
finger scroll and then wait and wait. In 2.1 the
scroll is quite fluent. Not as fast as, for example,
MS Word, but acceptable.

But then, it could be a different problem. In
my case it was not only the scroll that got slower.
Everything in LyX was slow, for example insert
math. That seems to have been solved with 2.1.



Re: set default bibliography path on Mac

2014-04-17 Thread Anders Host-Madsen
This should work:

Mac
1) In finder, choose Go-go to folder... /etc
2) Edit launchd.conf This file may not exist. 
In that case create it. Make sure it's called
launchd.conf and not lauchd.conf.txt
3) add setenv BIBINPUTS path(s). Separate multiple paths with :
Notice that the string after BIBINPUTS cannot contain spaces.
4) Restart computer.



BiBTeX and LyX 2.1.0rc1

2014-04-18 Thread Anders Host-Madsen
I would like to weigh in on this (not sure if this is the
right place). I really hope it would be possible to compile
in spite of bibtex errors. I have hundreds of
LyX files, and none of them compile any more.
Let's say I collaborate with a colleague (who uses
LaTeX). The colleague gives me a BiBTeX
file. I use a few references from there. But
the file has problems with other entries.
Now I have to go in and correct my colleagues
numerous (non-important) errors just
to get these few reference. 

One idea of LyX is that it's a front-end
to LaTeX. But now suddenly, things that
compile fine in LaTeX (many BibTeX errors
are non-essential) no longer works in
LyX. That makes it difficult to
collaborate with people who use LaTeX
(I certainly try to sell LyX to my colleagues,
but many are too used to pure LaTeX).



Re: BiBTeX and LyX 2.1.0rc1

2014-04-18 Thread Anders Host-Madsen
To elaborate a little further. So, to
compile my file I have to correct my
colleagues bibtex errors. But when
he then sends me an updated bibtex
file, I have to make the corrections all
over again. Of course I could send him
back his corrected bibtex file, but
that has its own set of issues, and
might not be popular.

As long as all collaborators use
LyX (2.1) it's not a problem. They will
get the bibtex errors, and will have
to correct them. But if some collaborators
use LaTeX, this can cause problems.
The issue with bibtex somewhat
breaks the compatibility between
LaTeX and LyX.




Re: BiBTeX and LyX 2.1.0rc1

2014-04-18 Thread Anders Host-Madsen
Sorry, another example. I'm trying to make 2.1.0 work,
and correcting in BiBTeX, so I continually encounter issues. 
Say you have two bibtex
files X.bib and Y.bib. Some documents
use X.bib, some use Y.bib. Now you make
a new document that uses both X.bib and Y.bib,
but they have some entries repeated. It will
not compile. You
could delete those entries from X.bib
or Y.bib, but then files that rely on
only X.bib or Y.bib will no longer compile.

I feel there needs to be at least a
preference to disable checking bibtex errors,
although this has been rejected in previous
emails. This is really needed to collaborate
with people who use only LaTeX.



Re: BiBTeX and LyX 2.1.0rc1

2014-04-18 Thread Anders Host-Madsen
Pavel Sanda sanda at lyx.org writes:
 It is, the change was reverted for final 2.1.0. Pavel

OK, thanks. It has given my a lot of headache.






Re: Ctrl-Enter handling is different whether AMS math is used explicitly or automatically

2014-05-06 Thread Anders Host-Madsen
Thanks for the tip. That solved one mystery for me.



Re: Ctrl-Enter handling is different whether AMS math is used explicitly or automatically

2014-05-06 Thread Anders Host-Madsen
Thanks for the tip. I was also confused about the different
behavior in different documents. This clears it up.




Re: Wrapped figure

2014-10-03 Thread Anders Host-Madsen
Unfortunately, wrapfig in latex works very poorly. Even when letting
wrapped figures float, they are often placed unfortunate. What
I do is in the final version of a document, I manually move
wrapped figures around, reduce spaces etc. so that it
looks right. This is of course against the latex philosophy.



Enumitem and IEEETran

2014-10-03 Thread Anders Host-Madsen
It seems enumitem and IEEETran.cls are not compatible. I
found the following solution on the web. Insert

\let\labelindent\relax

BEFORE enuitem is included. That works. The issue is
that in LyX, the latex preamble comes after enumitem
is called. Any way to include the above statement
before enumitem is called? 



BIBINPUTS and Yosemite

2014-10-19 Thread Anders Host-Madsen
Every time Apple comes out with a new version of OS X,
BIBINPUTS gets broken, and a new workaround has to be
found. I found the following works
for Yosemite, so I post here (I should I put it on a wiki)?

Mac Yosemite
Adapted from:
http://stackoverflow.com/questions/25385934/
yosemite-launchd-conf-no-longer-work

launch AppleScript Editor, enter:

do shell script launchctl setenv setenv BIBINPUTS path(s). 
Separate multiple paths with :
Notice that the string after BIBINPUTS cannot contain spaces.

Now save (⌘+s) as File format: Application. Finally open 
System Settings → Users  Groups → Login Items and add your new application.

Notice that if LyX starts before the script is
run, the environment will not be active. Then restart
LyX.




LyX cannot find any TeX classes!

2014-10-19 Thread Anders Host-Madsen
I installed LyX 2.1.2 from 2.1.0. Now LyX cannot find any
classes. I kept 2.1.0, but when I run that it cannot find any
classes either. But the classes are there. It worked with 2.1.0
before I installed 2.1.2. And if I compile directly in TeXShop,
there is not problem, all the classes are there. What can I do?
Probably it's some kind of path problem.



Re: LyX cannot find any TeX classes!

2014-10-19 Thread Anders Host-Madsen
Anders Host-Madsen ahostmadsen at yahoo.com writes:

 
 I installed LyX 2.1.2 from 2.1.0. Now LyX cannot find any
 classes. I kept 2.1.0, but when I run that it cannot find any
 classes either. But the classes are there. It worked with 2.1.0
 before I installed 2.1.2. And if I compile directly in TeXShop,
 there is not problem, all the classes are there. What can I do?
 Probably it's some kind of path problem.
 
 


Well, the problem seems to have been with Yosemite. The solution
was in a previous email thread:

http://tex.stackexchange.com/questions/203810/lyx-2-x-document-class-not-available-mac-os-
x-10-10-yosemite-pb-3



Re: Lagging in math command completion combo box

2014-10-21 Thread Anders Host-Madsen
You can press the tab key.



Instant preview no longer works in OSX Yosemite

2014-10-21 Thread Anders Host-Madsen
After I upgraded to Yosemite, instant preview of math no longer works.
Is that a general issue?



Re: Instant preview no longer works in OSX Yosemite

2014-10-21 Thread Anders Host-Madsen
Stephan Witt st.witt at gmx.net writes:

 
 Am 21.10.2014 um 16:41 schrieb Anders Host-Madsen ahostmadsen at 
 yahoo.com:
 
  After I upgraded to Yosemite, instant preview of math no longer works.
  Is that a general issue?
 
 Yes, seems so. At least you aren't the first one who reports this on this 
 list.
 
 Stephan
 

OK, thanks. Then it might be fixed in some future update. It is not a huge 
issue,
so I can wait.

Sometimes I wonder if these Apple updates are worth it. So little new, but
so many things (LyX, Matlab, Mathematica, BiBTeX, VNC) don't work without a
lot of fiddling.



Re: Instant preview no longer works in OSX Yosemite

2014-10-21 Thread Anders Host-Madsen

 
 I'm afraid you're talking about different things.
 
 The math preview fails silently if enabled but non-functioning.
 The document preview raises an error - your case?
 
 I'd like to help you solving this Yosemite problems.
 But I don't have enough machines to try and install all releases.
 At the moment I am bound to 10.8 and 10.9. 
 I'll see what I can do with an external disk if I find the time.
 
 Stephan
 

Yes, I think we're discussing two different things. I'm talking about 
instantpreview of math inside the LyX document. The view 
command (cmd-R) works finefor me.

I tried to start LyX from the command line to see if that fixed 
the instant previewproblem, but that does not seem to be the case.




Re: BIBINPUTS and Yosemite

2014-10-22 Thread Anders Host-Madsen
The above works for LaTeX, but not inside LyX. When the file is compiled,
it finds the bib files in the path. However, Insert Citation inside LyX
does not respect the BIBINPUTS path. How can this be fixed?




Re: BIBINPUTS and Yosemite [FIXED -- I think]

2014-10-22 Thread Anders Host-Madsen
Anders Host-Madsen ahostmadsen at yahoo.com writes:

 
 The above works for LaTeX, but not inside LyX. When the file is compiled,
 it finds the bib files in the path. However, Insert Citation inside LyX
 does not respect the BIBINPUTS path. How can this be fixed?
 
 

I added the latex path to the TEXINPUTS prefix. That seems to solve
the problem inside LyX.



Re: BIBINPUTS and Yosemite [NOT Fixed]

2014-10-22 Thread Anders Host-Madsen
Anders Host-Madsen ahostmadsen at yahoo.com writes:


 
 I added the latex path to the TEXINPUTS prefix. That seems to solve
 the problem inside LyX.
 
 

Sorry, it didn't work. Only gave me the references from bib files in
the current directory. So, I hope someone can find a solution.




Mac: cannot see graphics, classes

2009-01-16 Thread Anders Host-Madsen
I just discovered LyX. What a great program! I have been using LateX and MS 
Word for many years, but never been happy. This looks just like what I have 
been looking for. I have some basic questions

1. I use LyX on OS X 10.5.6. Graphics (eps and pdf) never show up. It just says 
'error converting...' This is true even for the LyX user manual. When I typeset 
using latex, the figures look fine. What could be the problem?

2. Many classes show Unavailable: specifically, I'm interested in the 
IEEETran.cls. I have the IEEETran.cls file, but how do I get it into the system 
so that LyX can use it? It may be an issue of installing it in my Latex 
installation. I use gwtex.

 
-
Anders Host-Madsen, Associate Professor
Department of Electrical Engineering
University of Hawaii, Honolulu, HI 96822



Problem showing graphics

2009-01-17 Thread Anders Host-Madsen
Sorry, this is actually I follow up to my previous posting. I did not figure 
out how to post replies. So

Thanks to Konrad Hofbauer I found out how to use the IEEEtran class. Now I know 
how to install new classes (run sudo texhash and reconfigure LyX).

But graphics is still hit and miss. I installed imagemagic, as adviced, and now 
it shows some graphics. pdf works, some .eps files work (e.g., the one in the 
documentation), but most of my .eps files do not show up (funny, the one .eps I 
could make work does not work if it's in another directory). Any idea what 
could be the problem?

 
-
Anders Host-Madsen, Associate Professor
Department of Electrical Engineering
University of Hawaii, Honolulu, HI 96822


Re: Copy and Paste Latex

2009-01-21 Thread Anders Host-Madsen
I don't really understand how to post replies to messages on the mailing list, 
so excuse me if this appears as a separate thread. Thanks to Guenter Milde for 
the trick about converting latex formulas into lyx. That should work for short 
pieces of latex code: just select the equation parts and convert that. For 
longer pieces, a conversion would be usefull. I will try to post this on 
bugzilla.


How to post reply?

2009-01-21 Thread Anders Host-Madsen
Maybe this is not the right place to ask: I just don't understand how to post 
replies to previous messages (including my own, and answers to my questions) on 
this kind of mail forum. Could someone let me know where to find help? I tried 
mailing lyx-users-h...@lists.lyx.org for help, but it doesn't say how to post 
replies. Maybe that's too obvious?


Re: How to post reply?

2009-01-22 Thread Anders Host-Madsen
Piero Faustini pierofaust...@... writes:


Yes, now I see, I can use gmane to post. There is some action 
menu in the upper right corner.










Re: I: paste latex code into lyx?

2009-01-23 Thread Anders Host-Madsen
Giovanni Bedetti giovanni_bede...@... writes:

 
 What i mean is that i paste LaTeX code and see the layout. I'd like to paste
  it in the source view. 

I just started using LyX, and I had exactly the same question, 
see the list below. 
I feel that would be one of the most useful additions to LyX. 
I will copy and paste one answer I got from Guenter Milde. Especially c)
 I find useful: you can
paste your text into LyX and then convert each equation to math.

 What you can do is...

a) 
 take the code and make it into a full latex document by adding things,
 import to LyX, and then copy and paste, but that seems cumbersome.

b) use the tex2lyx command with option -p on a file with incomplete LaTeX
   (you will need to specify the documentclass with -c too),

c) for Math (and only math): paste normally, select and press Ctrl-M:
   LyX will convert it into math in a math-box.

d) for your old LaTeX files: let lyx convert
   everything into a lyx file in a batch job.








MS Word to LyX

2009-01-26 Thread Anders Host-Madsen
LyX is really a great way to write math. Therefore I would like to 
convert my old MS Word documents -- 
with a lot of equation in Equation Editor -- to 
LyX (these are documents I continually revise). Any advise 
about this? I found two commercial packages for conversion 
to LaTeX: Grind EQ and Word2Tex. They are 
expensive, and the results are so-so. Definitely requires a
 lot of hand editing of the LaTeX code. Any 
experiences with these programs? It appears to me the 
results from Word2Tex is a little more faithful to 
the source, but it's hard to evaluate from the trial version.



Re: MS Word to LyX

2009-01-26 Thread Anders Host-Madsen
Richard Heck rgh...@... writes:


 OpenOffice will export LaTeX. You should be able to load your Word docs 
 there, and then export. Might be no worse. You WILL have to do hand 
 editing, one way or the other. There's just no way around it.

I tried to install open office (neo office). It does convert to LaTeX. 
But the issue is that it seems the philosophy in the OO converter is to make 
the 
typeset 
LaTeX document look like the OO document, rather than conveying the 
meaning/contents 
of the document -- WYSIWYG rather than WYSIWYM. The results is terrible, 
terrible 
LaTeX code. Maybe there is some option to set so that it's converted to nice 
latex code, 
that does not try to reproduce the formatting of the OO document? 
At least the 
commercial programs produce LaTeX code that reproduce the meaning of the 
original document fairly.







Re: Corss reference and math functions shortkey.

2009-01-27 Thread Anders Host-Madsen
Jens Noeckel noec...@... writes:


 Hi,
 yes, some of the lfun names have changed over time. For cross- 
 references, you now have to invoke the lengthy command dialog-show- 
 new-inset ref... In LyX 1.6.x you can find these function names by  
 searching in the Preferences  Editing  Shortcuts panels. 

I have wondered about the same thing. At least on Mac, when 
I search for
ref in the shortcuts, the only thing 
coming up is reference-next, no
insert-ref. If I search on ins there are lots 
of inserts (citation, quotation), but
no cross reference. Could this be a 
bug in the Mac version?






Re: MS Word to LyX

2009-01-28 Thread Anders Host-Madsen
Richard Heck rgh...@... writes:


 There's also the free wvLatex program that you can try. I don't know if 
 it runs on Windows. See here:
 http://wvware.sourceforge.net/
 But if it doesn't, that's a good reason to dual boot Linux. 


I looked vwLatex. They refer to AbiWord, 
But I couldn't make AbiWord convert equations at all. 
So, it seems the only solution is word2tex -- it appears to
do the conversion better than GrindEQ. But it is hard
to judge from the trial version, and the real version is
quite expensive (and risky, since it seems support is
non-existent).






Re: how to put an image

2009-01-30 Thread Anders Host-Madsen
Yakup Ayvaz yaka...@... writes:

 I inserted an images, which also shows the image correctly in lyx, 
 but then I try to export in pdf format I get an error like ... cannot 
 determine size of graphic.


I would suggest specifying width and height in the LyX graphics
dialog box. This sounds like the type of Latex error you could get if
you don't set those parameters.











Re: how to put an image

2009-01-30 Thread Anders Host-Madsen
Nikos Alexandris nikos.alexand...@... writes:


 Hi Yego.
 
 Hmm, that's a bit strange to me. I use .eps all the time without any
 problem and hit the pdf button (or export  PDF (pdlatex) ) and never
 experienced conflicts.
 
 Perhaps I don't understand the problem of Yakup very well, but I think
 it's probably a size problem.
 
 Kind regards, Nikos
 
 

Yes, I agree, LyX can handle eps, but you need the imagemagick package.
However, I think the problem here is that the size cannot be determined.
I had that kind of problem before in Latex, and I solved it by setting the
width in Latex, which I believe is equivalent to setting width in lyx.








Re: Installing biblatex-dw-style (Wassenhoven) on OSX

2009-02-03 Thread Anders Host-Madsen
I believe you need to run sudo texhash from the terminal 
after installing new packages.






Re: Installing biblatex-dw-style (Wassenhoven) on OSX

2009-02-03 Thread Anders Host-Madsen
jezZiFeR jezzi...@... writes:

From a few weeks of usage of LyX I find that the error messages 
I get from LyX is rather meaningless. It appears to my that LyX
cuts away exactly the important parts. I would suggest you look
at the LaTeX log, or try to export to LaTeX and compile to see what
exactly happens in LaTeX. That might give you a clue to what
exactly is wrong.



Re: Spell checking

2009-02-05 Thread Anders Host-Madsen
OK, I can see that there is an answer to my question
on the LyX wiki. Didn't realize that before asking here.



Re: Spell checking

2009-02-05 Thread Anders Host-Madsen
Installing cocoAspell worked. Great.






Spell checking

2009-02-05 Thread Anders Host-Madsen
I badly need spell checking for my typing. LyX relies on aspell, 
which I don't have. I went to the aspell web page and 
downloaded, but I find no installation
instructions. I'm lost. I use LyX on a Mac, and it seems aspell 
is some kind of unix thing. 
I can see that cocoAspell is a Mac 
version of aspell. If I install that,
will it also work from LyX? Thanks.



Re: How to edit

2009-02-05 Thread Anders Host-Madsen
I ran into the same problem. I just started using spellcheck.
There is a more direct solution. In Finder you can select
GoGo To Folder (or shift-command-G). Then you can type
/usr/local/etc (or just /usr and then navigate from there). 
You can then change the
access privileges for aspell.conf. However,
in my case I also had to change the access
privileges for the etc folder. Once
you have done that you can edit the
aspell.conf file. Maybe this should be
added to the wiki?



Re: Strange LaTex /bibtex error prevents successful compilation

2009-02-06 Thread Anders Host-Madsen
First, a question to someone knowledgeable. How does LyX do it's
compilation
of LaTeX? Does it leave .aux files between compilations? I have had
this kind of errors with LaTeX. An error in compilation leaves an
invalid .aux file. That prevents compilation next time. I have had
to manually delete the .aux file. If LyX leaves the .aux file,
this could be a reason for an error like this.



Re: continuous spell check on the fly: add more money in the pot bug 718

2009-02-09 Thread Anders Host-Madsen
Mac already has this feature as part of the
operating system. I wonder if it would be
possible without too much trouble 
to activate this in the Mac interface?
For a Mac user this would be better, since
it's nice to have one systemwide dictionary.



Search and replace in equations

2009-02-13 Thread Anders Host-Madsen
Is there any way to search and replace in equations in LyX?
Say I want to replace x with y in all my equations. Or
\mathbf with \mathsf. If not,
is there any plans to implement this?

One of the advantages of using Latex is that it's plain text,
so it's possible to search and replace in equations.
Is it a bad idea to export LyX to Latex,
then search and replace, and re-import in LyX?



Re: Search and replace in equations

2009-02-13 Thread Anders Host-Madsen
Uwe Stöhr uwesto...@... writes:

 This is currently only possible by opening a LyX file with a 
 text editor and then use find and replace.
Thanks, I didn't think about the fact that
LyX files are text files. That seems a better solution
than exporting to Latex and then re-importing to LyX.
It appears that equations in the LyX files
are standard Latex.

 This feature has been implemented for the next major LyX release LyX 2.0.0, 
 see
 http://wiki.lyx.org/LyX/NewInLyX20

Excellent! LyX is really a great program.







Re: elsevier natbib author-year problem

2009-02-13 Thread Anders Host-Madsen
Did you specify the elsart-harv.bst in the bibtex insert
(as style file)?
Otherwise, that would seem an obvious problem.



LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Is there any good way to convert LyX (or LaTeX perhaps 
more to the point) to HTML? I do know LyX can export 
to HTML, but the result is not pretty; it looks so
last century. Also, many packages seems to be
stripped away (such as enumitem). There is no
options to format the HTML to look nice.
I tried to google for LaTeX to HTML
converters, but it seems few are actively maintained.
Perhaps hyperlatex would be an option? There is also
elyxer, which produces nice looking output, but has
too many missing features. Any ideas?

I want to move all my word processing from MS Word
to LyX, but one of the things that keeps me with Word
is that it can do fair (not great, but fair) HTML conversion.



Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Iain Mac Donald iainj...@... writes:

Thanks, as I stated, I did try elyxer. That
actually produces nice output, but it seems
to support a very limited set of latex/lyx.
None of my equations or numbered lists
come out correctly. But maybe this will one
day be a good tool. It appears to be new.

I do like the philosophy of hyperlatex: you insert
some special commands to modify the html.
That way you can maintain and update a
document that you want to publish both
as pdf/print and html.



Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Robert Orr philip_...@... writes:


 One means that I've found as an alternative has been to export .pdf,
 then convert it to html by sending it to adobe.   

I actually did try this earlier, using Acrobat Pro. 
But the result was terrible, absolutely terrible. 
Any tricks?



Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Typhoon typh...@... writes:


 I use tex4ht or hevea. I find that either one of them does a reasonable
 job if you then apply a custom CSS. But my work is always plain text,
 no images. I'm using Debian Lenny.

Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?






Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Alex Fernandez ely...@... writes:

Thanks for making this available. I will experiment a little
more with it, and possibly send you some files. 



Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen

 tex4ht works on all platforms. It is normally accessed when you 
 view your document as HTML from LyX. 
 If this is not the case tex4ht is not installed. 
 (it is often part of the LaTeX distribution).

Yes, the translation from within lyx works (htlatex is there). But I'm
not very satisfied with the result. Maybe it's possible to customize,
as in heava? The documentation page seems to be down.






Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
BH bewih...@... writes:

 I haven't used hevea, but I have used tex4ht, which is a part of
 TeXLive; LyX should already recognize it.
 
 Bennett

I tried using tex4ht on some other documents, and the result is
better than my initial judgement made them. Equations are actually
rendered quite faithfully. But, although this might not
be the right place, I wonder if anybody has some answers
to these questions

1. How do I change formatting, in particular font size? 
2. Similar, how to I change the margins (i.e., so that if I make
the browser window very wide, the text does not continue
to expand)

In general, I have a hard time finding documentation for tex4ht. The web
site says it's highly configurable, but I cannot figure out how.
My knowledge of CSS is limited to knowing what the 
acronym stands for.

3. It seems tex4ht uses latex to compile, and then translates.
That sounds good as it should respect the packages you use.
But, for example, I use enumitem, but that never seems to
work. How come?

4. Tables come out very poorly. Is that a general problem?






Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
rgheck rgh...@... writes:

 The other possibility is plastex, which I haven't used but keep meaning 
 to investigate. It's pure python, so should run anywhere LyX does.

Now I tried out Plastex. The concept is a little different.
It makes the latex document into a complete, hierarchical web page.
The result is quite good (e.g., tables are rendered well, as
opposed to Tex4ht). I my case, though, I just want to
embed the html into an existing web page, with its
own navigational tools, so this is not exactly what I want.
But the documentation is comprehensive, so maybe
it can be configured to makes the document into a single
web page.



Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
john j...@... writes:

But looking at the web site, it looks like
latex2html was not updated since 2001. That makes
me somewhat reluctant to rely on it.



Re: Error converting to loadable format for EPS

2009-03-30 Thread Anders Host-Madsen
I have the same problem. However, only with SOME eps files.
In my case EPS files generated by Matlab just don't show in LyX,
but those from some other sources do show in LyX (for example
those in the user guide).

My only workaround has been to convert the EPS into PDF manually
(in OS X just use preview). If you need to export as LaTeX/eps, you can
just export as pdflatex, but compile with plain latex (if you export
as plain latex, LyX will try to convert the PDF files back to
EPS and overwrite the original files).



Re: LyX vs. wordprocessors

2009-04-04 Thread Anders Host-Madsen
Steve Litt sl...@... writes:

I'm not really sure I agree that it's as easy to do semantic
markup in MS Word is in Latex. There are a number of issues
First, it's much easier not to use styles. Personally, I always used
styles, but I'm the only one I know how does that. When I put
together documents from groups of people it's always a mess
because people used their personal formatting. Want a header?
Increase font size and make bold. Furthermore, when copying
between documents in MS Word, the result is not always as
expected, even if styles are used consistently. On the other
hand, I never had problem putting together documents
from groups of people in Latex. MS Word
also tends to make anything into a style. Often document
templates have both a 'normal' style and a 'body' style,
and if you just write you never know which style is used. Take
for example the IEEE MS Word template. There are
hundreds of styles in that which makes it very
hard to use. And try to switch back and forth between
a single column an multicolumn document in
MS Word. In Latex it's just changing a single option.
In my opinion, when I started using MS Word many
year ago it was more geared toward using styles.
But MS seems to have accepted that nobody uses
styles, and made it more and more difficult to use
styles, while easier to use finger painting. In Latex you
can write a document focusing on the contents without
any thoughts to formatting, and the result is good. In
MS Word that is just impossible (for example, MS Word
has no mechanism for automatic placement of floats).






Importing tables

2009-04-06 Thread Anders Host-Madsen
Talking about tables. I'm trying to import a table from excel.
I get the error this file is from an earlier version of LyX,
but LyX failed to convert it. If I try to open the file lyx created
from the CSV, LyX crashes. I tried to shorten my csv file
to a few lines, and then LyX managed to import it. It seems
to be purely a function of the length, I don't think the rest
of the table has any different kind of data than the first part.



Re: automatically create table based on external (ascii) data

2009-04-07 Thread Anders Host-Madsen
Guenter Milde mi...@... writes:
 Pasting into a table works with table-data if it is TAB separated. The
 space is too often needed inside a table cell in the general case.

Thanks for the tip. I didn't realize this was possible.
I tried exporting to csv and importing to LyX (see
my previous posting), but it didn't work. This does work, but
it should be added that it is necessary to paste
as plain text, otherwise the tabs are ignored.



Re: problem inserting .pdf as external material

2009-04-07 Thread Anders Host-Madsen
Giovanni giovanni...@... writes:


 It's possible to have the content inserted in line, as a paragraph?

Can't you just insert the pdf a graphic?
Anyway, I had the opposite problem. I wanted to insert whole pages
of an external pdf. I didn't know about the pdfpages package until
you posting. This solved my problem, thanks.






Re: Mac bug: default save path for creating docs from template

2009-04-07 Thread Anders Host-Madsen
I cannot confirm this either. In my 1.6.1 Lyx, the
save as location is my working directory. There
must be something amiss in your installation.





Re: Importing tables

2009-04-07 Thread Anders Host-Madsen
Problem solved: There was an apostrophe (') that had been converted to a 
weird character when Excel saved the file (Excel for Mac, it seems, only 
has the options of Windows 
format or MS-DOS format, both incompatible with Mac). After removing that, 
it converted correctly. So, it was Excel's problem, although the error
message from LyX was not informative.





  1   2   3   4   5   >