Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
Hello,

I mainly use lyx to write project reports in english, but I recently had
reason to write one in swedish and had some problems with writing swedish
characters.
Whenever I type å, ä, ö or their uppercase equivalents on the keyboard, I
get the à character instead.
However, if I input the characters in another program, I can copy/paste them
without any problems.

Does anyone know how to fix this problem?

I'm using LyX 1.6.1 on Gentoo.

/ Peter


Re: Setting Latin Modern fonts makescompley e the lyx unrecognisable by linux (text editors)

2009-03-04 Thread Nikos Alexandris
On Wed, 2009-03-04 at 07:22 +, Guenter Milde wrote:
 On 2009-03-04, Nikos Alexandris wrote:
 
  I've changed the fonts of my document over to Latin Modern. 
 ...
  Instead, it is seen as a binary file!
 
  Is this a known problem? Do I have to add something (fonts?) in my
  linux-box?
 
 I have lots of LyX documents set to Latin Modern. All are valid text.
 
 All that changes is the lines
 
 \font_roman lmodern
 \font_sans lmss
 \font_typewriter lmtt
 
 so I am quite sure there is some other problem. Maybe you also comressed the
 file or something else?
 
 You might try a look inside with a text editor that can open binary files
 too.
 
 Günter

Oh... yes, that's it: it was _compressed_ !! Thank you Guenter :-)
Cheers, Nikos




SV: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen
 I mainly use lyx to write project reports in english, but I 
 recently had
 reason to write one in swedish and had some problems with 
 writing swedish
 characters.
 Whenever I type å, ä, ö or their uppercase equivalents on the 
 keyboard, I
 get the à character instead.
 However, if I input the characters in another program, I can 
 copy/paste them
 without any problems.
 
 Does anyone know how to fix this problem?
 
 I'm using LyX 1.6.1 on Gentoo.

It might be caused by many different things...
So I am only guessing here :).

Try this:
Open a bash-shell
type: 
export LANG=sv_SE.UTF-8
Start Lyx frrom the bash-shell

Does this help?
If not, try the command xev
what does it print in the bash window 
when you type å,ä or ö?

Ingar



Help formatting

2009-03-04 Thread Mehrdad
Hallo All 

 

 

 I am really frustrated, and in lack of time! 

Ok I am using lyx to write my thesis, following are my document settings and
preambles: 

 

Document Class: report

Line spacing: Single

Page layout: A4

Headings style :plain

Two sided document

 

Margins: Top: 45 mm

  Bottom: 45mm

 Inner: 30mm

 Outer: 40mm

   Head step: 35mm 

   Head height: 15mm

 Foot skip: 35mm

 

Floar Placement: here definitely

 

Latex preamble: \usepackage{ %a4wide,

ellipsis, fixltx2e, mparhack, %Fehlerkorrektur für Marginalien

booktabs, longtable %schönere Tabellen

} 

\usepackage{microtype}

\usepackage{ifpdf} % part of the hyperref bundle

\ifpdf % if pdflatex is used

\usepackage{graphics}

 

Now I have following problems, my images end up sometime creating huge gaps
between image and paragraph etc. 

My paraghraps spaces are not formatted nicely 

And things like small skip medium skip etc is most of the time totally
ignored. 

 

I had one reply saying I should use: \nccparskip how do I write this into
the preamble, cuy if I just type this into the preamble I get an error code
during compiling pdf. 

 

Further I have attached one of these missformated images, plus its tex code.
One more thing I use both eps and jpg images in my text. 

 

 

Thanks. 

 

Tex code generated by lyx: 

 

A smilar pattern

is presented in Fig. 4.3, as a comparison, one can see a larger scan

range, which is left out in our case, since a larger scan range yielded

in no extra information. From the phase diagram in Fig. 2.14 it is

evident that hematite + magnetite can form over a large range of different

enviornmental conditions. %

\begin{figure}[H]

\includegraphics[clip,scale=0.6]{Graphics/OutofBooks/MgO_kbeta}

\caption[2$\theta-\theta$ scan of MgO substrate with iron oxide thin films
]{2$\theta-\theta$ scan of MgO substrate with iron oxide thin films

\cite{Soeya2002} }

\end{figure}

 Studying the oxygen flow influence on film formation, it can be concluded

that lower oxygen content during deposition at a deposition pressure

of 3$\times$10$^{-2}$ mbar yields better formation of Fe$_{3}$O$_{4}$.

This is evident in a more pronounced shoulder on the MgO peak, which

is shown in Fig. 4.4. The figure shows in acending order the
2$\theta-\theta$

scans of deposition runs in which O$_{2}$:Ar ratio have been varried.

This ratio is defined as $\frac{flow\, of\, oxygen\,[sccm]}{flow\, of\,
argon\,[sccm]}$.

It can be seen that the shoulder becomes more prominent as the oxygen

level decreases, at the same time a broader peak is seen, further

indicating the formation of magnetite. The first lowes scan shows

the 2$\theta-\theta$ of a cleaned and annealed MgO substrate, the

 



Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 1:20 PM, Ingar Pareliussen ingar.parelius...@dmmh.no
 wrote:

  I mainly use lyx to write project reports in english, but I
  recently had
  reason to write one in swedish and had some problems with
  writing swedish
  characters.
  Whenever I type å, ä, ö or their uppercase equivalents on the
  keyboard, I
  get the à character instead.
  However, if I input the characters in another program, I can
  copy/paste them
  without any problems.
 
  Does anyone know how to fix this problem?
 
  I'm using LyX 1.6.1 on Gentoo.

 It might be caused by many different things...
 So I am only guessing here :).

 Try this:
 Open a bash-shell
 type:
 export LANG=sv_SE.UTF-8
 Start Lyx frrom the bash-shell

 Does this help?
 If not, try the command xev
 what does it print in the bash window
 when you type å,ä or ö?

 Ingar


Thank you for your prompt answer.

I was already using a utf-8 locale (LANG=en_GB.utf8), and using the swedish
locale didn't help, I still have the same problem.
This is the output from xev when pressing and then releasing ö, å, ä. Since
these characters work in every other x program I have tried (i use various
kde4 programs, firefox, emacs...) I don't think that there is anything
(seriously) wrong with my X config.

KeyPress event, serial 31, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988497720, (-664,-228), root:(833,601),
state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 b6) ö
XmbLookupString gives 2 bytes: (c3 b6) ö
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988497808, (-664,-228), root:(833,601),
state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 b6) ö
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988498408, (-664,-228), root:(833,601),
state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 a4) ä
XmbLookupString gives 2 bytes: (c3 a4) ä
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988498504, (-664,-228), root:(833,601),
state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 a4) ä
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988499120, (-664,-228), root:(833,601),
state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
XLookupString gives 2 bytes: (c3 a5) å
XmbLookupString gives 2 bytes: (c3 a5) å
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988499217, (-664,-228), root:(833,601),
state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
XLookupString gives 2 bytes: (c3 a5) å
XFilterEvent returns: False


/ peter


Re: Help formatting

2009-03-04 Thread Nikos Alexandris
Mehrdad:

 [...] I have following problems, my images end up sometime creating
 huge gaps between image and paragraph etc.

 My paraghraps spaces are not formatted nicely. And things like small
 skip medium skip etc is most of the time totally ignored. 

 I had one reply saying I should use: \nccparskip how do I write this
 into the preamble, cuy if I just type this into the preamble I get an
 error code during compiling pdf.

Merhad,
when I use book(KOMA-script) there is one class option called
raggedbottom (plus _footnoterule_ so the footnotes are shown properly
after applying _raggedbottom_).

This avoids the _stretching_ of contents in a page to reach the bottom
as it is the default behaviour.

I know that this might NOT help you directly but perhaps there is a
similar option for the standard article class.

Cheers, Nikos




Re: Help formatting

2009-03-04 Thread Konrad Hofbauer

Mehrdad wrote:

Floar Placement: here definitely


THIS is very likely the cause of your problems. Select 'Use default 
placement' and let Latex figure out where it is best to put your images!!!


Also make sure the bounding boxes of your images are correct (or use the 
clip option in LyX).


Plus: Looking at your latex output, it seems like you would _manually_ 
cross-reference to you figures (i.e., you type 'Fig. 2.14'). Learn to 
use labels and LyX's cross-referencing (see the LyX UserGuide).



And things like small skip medium skip etc is most of the time totally
ignored. 


You normally should not need these. Do not try to do micro-formatting as 
one would do in Word and friends.


HTH,
Konrad



SV: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen
snip

To bad, it wasn't that easy :) Everything is as they 
should be as far as I can see.

Do you use any other Qt software or KDE? I guess you
have tried and it the characters works there?

If they work they problem may be:
1. something gone wrong with the compilation of the 
Qtlibs. 

2. somthing gone wrong with LyX like the keymapping. 
I do not know anything about this 
Maybe you could try to use somother keymaps and see if
those work as they should (lyx-option-Editing-Keymaps/mouse)

Ingar


Re: Help formatting

2009-03-04 Thread Hubert Christiaen
The best way to avoid a  needless white gap under wrap floats is to use 
the 'line span' setting in the wrap float settings. This counts only real 
lines, no blank lines and a header is also 1 line.

Sincerely,
Hubert

-- 
Hubert Christiaen
Bloesemlaan 17
3360 Korbeek-Lo
Belgium   


Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 2:16 PM, Ingar Pareliussen ingar.parelius...@dmmh.no
 wrote:

 snip

 To bad, it wasn't that easy :) Everything is as they
 should be as far as I can see.

 Do you use any other Qt software or KDE? I guess you
 have tried and it the characters works there?


Yes, I use KDE 4.2, which also uses Qt. I can type swedish characters in
those programs




 If they work they problem may be:
 1. something gone wrong with the compilation of the
 Qtlibs.


I have just tried to recompile LyX without effect. I will start to recompile
the Qt libraries now.
(Version 4.5-rc1, does LyX work with Qt-4.5?)




 2. somthing gone wrong with LyX like the keymapping.
 I do not know anything about this
 Maybe you could try to use somother keymaps and see if
 those work as they should (lyx-option-Editing-Keymaps/mouse)

 Ingar


There is no swedish keymap, I tried loading the german one, but still got
the weird character

/ Peter


nested numbering?

2009-03-04 Thread Martijn Wisse
I'm just starting out with LyX as I need to make a report for my  
studies and I want it to look really good this time.
But now I have stumbled upon a thing I can't solve myself with the  
help files. I need to make this list of requirements like the example  
below (yes that's dutch :)) but I can't find a way to do this in a  
good way in LyX. I don't want to go back to Word and manually put in  
all the digits...


Can someone please help me? Thanks a lot!

So here is the example:

2)  Milieubelasting (geluidshinder, landschapvervuiling)

2.1  De milieuklasse voor betonconstructies moet milieuklasse  
3 conform NEN 6720 bedragen. (E200.21)


2.2  Voorzieningen tegen rook- en dampverspreiding; rookmuren  
ter plaatse van de tunnelportalen van het gesloten deel onder de  
Ringvaart en Bovenlanden. (E216.25)


2.3  Het natuurgebied ‘Bovenlanden’ moet behouden worden.

2.4  De rugstreeppad, wonend in de Bovenlanden, moet tijdens  
de bouw van een alternatief habitat worden voorzien. (E110.02)


2.5  Afgevoerde vloeistoffen anders dan regenwater mogen niet  
geloosd worden op oppervlakte water. (E216.03)


3)  Bouw (bouwtijd, bouwoverlast, levensduur, onderhoud)

 3.1  De volgende levensduur moet worden gehanteerd (E400.14)

3.1.1   Hoofddraagconstructies en niet-vervangbare  
constructiedelen: 100 jaar.


3.1.2   Vervangbare onderdelen, inclusief bouwkundige afwerking:  
25 jaar.


3.1.3   Opleggingen 50 jaar.

3.2  Hoofddraagconstructies en brugdekken moeten in beton of  
staal worden uitgevoerd. (E200.17)


3.3  Tussen constructiedelen en verhardingen moeten  
overgangsconstructies worden toegepast, conform Rijkswaterstaat,  
Rapport nr.7, Richtlijn overgangsconstructies. (E200.19)

Re: nested numbering?

2009-03-04 Thread Florian Rubach

accidentially didnt post it to the list, sorry for that...

Martijn Wisse schrieb:

I'm just starting out with LyX as I need to make a report for my 
studies and I want it to look really good this time.
But now I have stumbled upon a thing I can't solve myself with the 
help files. I need to make this list of requirements like the example 
below (yes that's dutch :)) but I can't find a way to do this in a 
good way in LyX. I don't want to go back to Word and manually put in 
all the digits...


Can someone please help me? Thanks a lot!

So here is the example:

2)  Milieubelasting (geluidshinder, landschapvervuiling)

2.1  De milieuklasse voor betonconstructies moet milieuklasse 
3 conform NEN 6720 bedragen. (E200.21)



Simply put the following in ERT (LaTeX-Code) before your enumeration starts:

\renewcommand{\theenumii}{\theenumi.\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumii}

Please note that this changes enumeration style for the rest of the 
document, if you want to reset it, put


\renewcommand{\theenumii}{(\alph{enumii})}
\renewcommand{\labelenumii}{\theenumii}

in ERT at the desired place.


Florian




Export Lyx files to LaTeX with non-ascii letters.

2009-03-04 Thread acolyte lee
Hi,
I have letters like  üäö in my lyx file, when I export to latex, they
are still üäö in latex.
This could be problematic and I would like to have
\{u},\{o} and \{a} inside .tex files.
can I do this?


Re: Help formatting

2009-03-04 Thread Helge Hafting

Mehrdad wrote:
Hallo All 

 I am really frustrated, and in lack of time! 




Ok I am using lyx to write my thesis, following are my document settings and
preambles: 

[...]

Floar Placement: here definitely

[...]
 
Now I have following problems, my images end up sometime creating huge gaps
between image and paragraph etc. 

My paraghraps spaces are not formatted nicely 


Hard to say why without seeing the document, but this often happens when 
there are many figures and little text. And especially if the here - 
definitely option is used.


Think about how page breaking works:
When there is lots of room on a page (but not enough for a float), the 
float goes to the next page. Without here - definitely, text you typed 
after that float is allowed to go before it to fill the big gap on that 
page. But with here - definitely, the rest of the page have to remain 
empty because the float _must_ print bnefore the text that follows it.


So that setting is usually a recipe for disaster, it creates half-filled 
pages.  Now combine this with how each page is laid out. The empty space 
between paragraphs (and between list items) is stretched so that the 
first paragraph is at the top of the page, and the last paragraph ends 
at the bottom. This makes books look better, as all pages end at exactly 
the same height. But this only works well if the gaps don't get too big 
- which they will when there is very little text to go on the page.


The fix is to let the floats float. Use cross references for referring 
to them, in case they move a page or two away.



Also, some people write a draft first and then fill in with more text 
later. A draft with little text but all the figures will tend to look 
really bad. Once you get more text in between the floats, things will 
look much better.


Documents with more illustrations than text is hard to make in LyX.
Using page of floats might help - it avoids mixing floats and text on 
the same page.





And things like small skip medium skip etc is most of the time totally
ignored. 


What exactly are you trying to achieve with skips? If you insert a skip 
where a bigger gap is present already, then nothing happens. As it should.

[...]

Further I have attached one of these missformated images, plus its tex code.
One more thing I use both eps and jpg images in my text. 


Please attach a file, or use a link if the files are too big for the 
list. Badly rendered pages can be shown with a .dvi or .pdf file.


Mixing jpeg and eps is not a problem for page breaking. Jpeg files 
sometimes has problems with low resolution when printed though.


Helge Hafting


Re: nested numbering?

2009-03-04 Thread Les Denham
On Wednesday 04 March 2009 08:40:16 am Martijn Wisse wrote:
 Can someone please help me? Thanks a lot!

 So here is the example:

 2)      Milieubelasting (geluidshinder, landschapvervuiling)

 2.1          De milieuklasse voor betonconstructies moet milieuklasse  

You can change the way nested environments are numbered by using ERT (LaTeX 
commands in an inset).  The attached example shows how to change the first 
three levels.

This will not change the appearance in LyX, but it will change the appearance 
in the PDF output.

Les


nesting.lyx
Description: application/lyx


RE: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen




I have just tried to recompile LyX without effect. I will start to recompile
the Qt libraries now.
(Version 4.5-rc1, does LyX work with Qt-4.5?)

Aha, that helped :). qt4.5rc1 an LyX is broken...

http://www.nabble.com/-Bug-48044--qt4,-NEW:-latest-qt4-4.5-update-broke-UTF-8-input-in-LyX-td22121248.html

If 4.5 Gold is fixed I do not know :). However:
Reverting qt4 to 4.4.3 resolved that issue.

Ingar


Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 5:20 PM, Ingar Pareliussen ingar.parelius...@dmmh.no
 wrote:





 I have just tried to recompile LyX without effect. I will start to
 recompile
 the Qt libraries now.
 (Version 4.5-rc1, does LyX work with Qt-4.5?)

 Aha, that helped :). qt4.5rc1 an LyX is broken...


 http://www.nabble.com/-Bug-48044--qt4,-NEW:-latest-qt4-4.5-update-broke-UTF-8-input-in-LyX-td22121248.html

 If 4.5 Gold is fixed I do not know :). However:
 Reverting qt4 to 4.4.3 resolved that issue.

 Ingar

Ok, I'll just have to live with it until LyX works with 4.5 - I very seldom
write in swedish.
Thanks for the help

/ Peter


Re: Export Lyx files to LaTeX with non-ascii letters.

2009-03-04 Thread Florian Rubach

acolyte lee schrieb:

Hi,
I have letters like  üäö in my lyx file, when I export to latex, they
are still üäö in latex.
This could be problematic and I would like to have
\{u},\{o} and \{a} inside .tex files.
can I do this?
Use any decent texteditor's search and replace function on the created 
.tex-file...


Florian


How to put an end to white spaces around figures

2009-03-04 Thread Tal Kenig

Hello all.
I have searched for this for a long time, but could not find a satisfactory
solution.
I usually insert figures into tables (which reside inside figure floats).
The problem is that lyx automatically inserts white spaces above, below, to
the left and to the right of the figures.
Sometimes I wish to get rid of that behavior, and to remove or reduce the
white spaces.
I can sometimes do it by inserting negative spaces, but this is tedious
work.

In addition, sometimes I have a figure which has white background, and I
want to add a thin black line around it, but it also has to be tight. I
tried a single cell table or a box inside the main table.
Once again, I am faced with the white spaces plus the alignment of the table
sometimes get messed up.

I would really appreciate it if someone could offer a remedy to this
situation, preferably a preamble fix.

Thanks in advance, 
Tal.
-- 
View this message in context: 
http://n2.nabble.com/How-to-put-an-end-to-white-spaces-around-figures-tp2424048p2424048.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Wrong characters when writing swedish

2009-03-04 Thread José Matos
On Wednesday 04 March 2009 16:30:37 Peter Gille wrote:
 Ok, I'll just have to live with it until LyX works with 4.5 - I very seldom
 write in swedish.

The accents work for me with qt-4.5.0 (final) in Fedora 10.

 Thanks for the help

 / Peter

-- 
José Abílio


Re: Help formatting

2009-03-04 Thread Uwe Stöhr

Mehrdad schrieb:


Ok I am using lyx to write my thesis, following are my document settings and
preambles: 



Floar Placement: here definitely


Use the default float placement. The EmbeddedObjects manual that you find in LyX's Help menu 
explains in detail how the float placement is working and how you can manipulate it if necessary.



Latex preamble: \usepackage{ %a4wide,

ellipsis, fixltx2e, mparhack, %Fehlerkorrektur für Marginalien

booktabs, longtable %schönere Tabellen

} 


This is weird code. a4wide is obsolete, and neither booktabs or longtable is needed, because LyX 
does this for you. To avoid errors, only use preamble code you understand and that is really necessary.


In general I can recommend to use instad of the report document class the class report 
(Koma-script). This package is excellently documented and provides everything you need for a proper 
thesis layout.



\usepackage{ifpdf} % part of the hyperref bundle

\ifpdf % if pdflatex is used

\usepackage{graphics}


This code makes no sense. There is an endif missing and LyX takes care of the 
package graphics for you.

regards Uwe


Page Headings

2009-03-04 Thread Paulina Restrepo

Dear Lyx users,

I'm writing a statement of purpose and one of the requirements is  
that my name and title appear at the top of each page.

How can I do this in Lyx? Right now I'm using document class article.

Does anyone have any ideas?

Thanks for your help,


Paulina Restrepo Echavarria
Economics PhD Student
University of California Los Angeles





Re: Page Headings

2009-03-04 Thread rgheck

Paulina Restrepo wrote:

Dear Lyx users,

I'm writing a statement of purpose and one of the requirements is that 
my name and title appear at the top of each page.

How can I do this in Lyx? Right now I'm using document class article.

Does anyone have any ideas?


Use the fancy heading, and see
 http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf
for how to use it. Something like:
   \lhead{Paulina Restrepo Echavarria}
   \rhead{Statement of Purpose}
in the preamble should do the trick.

rh



Re: graphics

2009-03-04 Thread Bob Wonderly

Manveru

Thank you. Your solution done with LyX 1.6 would not work with my 1.5.5 
so I installed 1.6.1 and then it worked fine. I had wasted hours and 
hours fighting with LyX then gave up and sought help. Thank you again.


Bob Wonderly

Manveru wrote:

2009/3/4 Bob Wonderly rwon...@attglobal.net:

Manveru and Wolfgang

I have already tried the things you suggested without success.

I have attached a test LyX file with the minimum to illustrate my problem.
And I attached the 400KB PDF of the graphic I want to display. One more
attachment: the PDF output generated by LyX.

FWIW I am using Mac OS-X current version. I am using LyX version 1.5.5

This problem is a show stopper. The graphics make up the most significant
part of the book.

Thank You

Bob Wonderly

Manveru wrote:

2009/3/3 Bob Wonderly rwon...@attglobal.net:

I have a LyX math book in the works. It is in landscape format so I can
show
wide page sized graphics -- PDF files (generated by gnuplot and converted
to
PDF by AquaTerm).

The output book file (using pdflatex) shows only part of the graphic.
Nothing I have tried has convinced LyX to show the whole plot/graphic.

Could someone help me -- off list perhaps -- get LyX to display the
entire
graphic?

I would like to send the PDF file but it is 400KB and I did not want to
do
that to the list.

Actually, of course, I have a whole bunch of such PDFs to display and
can't
even get the first one working right.

Thanks

Bob Wonderly

We, LyX users here on the list, do not prefer off-list solutions* -
this is library of solutions for further generations of users.

Did you use options in image properties dialog which allows to set
width or height of the picture in percentage of with of text column or
page? Try that, if not. It works in most cases.

If you still have problems, please provide more details about your
document, such as style (document class) you use, packages loaded,
whether your pictures are floating or not... etc.

* - sometimes with deep technical problems some developers drive
finding solutions off-lists, sharing results later.



Try this one - I change the options and for me it seems fine. Image
file is put without a path, so you probably have to modify it.



Re: Page Headings

2009-03-04 Thread Les Denham
On Wednesday 04 March 2009, Paulina Restrepo wrote:
 Dear Lyx users,

 I'm writing a statement of purpose and one of the requirements is
 that my name and title appear at the top of each page.
 How can I do this in Lyx? Right now I'm using document class article.

 Does anyone have any ideas?

 Thanks for your help,


 Paulina Restrepo Echavarria
 Economics PhD Student
 University of California Los Angeles

Paulina,

The attached file should help.  Look at the DocumentSettingsLaTeX Preamble 
and DocumentSettingsPage Layout.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
#LyX 1.5.7 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\begin_preamble
\fancyhead{} % clear all header fields
\fancyhead[L]{\bfseries Your Name}
\fancyhead[R]{\bfseries Your Title}
\end_preamble
\language english
\inputencoding auto
\font_roman times
\font_sans helvet
\font_typewriter courier
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 10
\spacing single
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\leftmargin 2cm
\topmargin 2cm
\rightmargin 2cm
\bottommargin 2cm
\headheight 1cm
\headsep 1cm
\footskip 1cm
\secnumdepth -1
\tocdepth 1
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 2
\papersides 1
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\author  
\end_header

\begin_body

\begin_layout Standard
Sample page
\end_layout

\end_body
\end_document


Re: Degree symbol

2009-03-04 Thread Uwe Stöhr

Yago schrieb:


With LyX 1.5.6 the degree symbol was, for example:

$sin30\textrm{\textdegree}$


You can alternatively insert it directly, see sec. 16.4 of the Math manual that you find in LyX's 
the Help menu.


regards Uwe


Re: graphics

2009-03-04 Thread Manveru
2009/3/4 Bob Wonderly rwon...@attglobal.net:
 Thank you. Your solution done with LyX 1.6 would not work with my 1.5.5 so I
 installed 1.6.1 and then it worked fine. I had wasted hours and hours
 fighting with LyX then gave up and sought help. Thank you again.

Preferred version by supporters on this list are always latest
version. It is good way be up to date with features. Sometimes for
many reasons this is not possible, to use latest - but then there are
couple of people who may help in that case.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
Hello,

I mainly use lyx to write project reports in english, but I recently had
reason to write one in swedish and had some problems with writing swedish
characters.
Whenever I type å, ä, ö or their uppercase equivalents on the keyboard, I
get the à character instead.
However, if I input the characters in another program, I can copy/paste them
without any problems.

Does anyone know how to fix this problem?

I'm using LyX 1.6.1 on Gentoo.

/ Peter


Re: Setting Latin Modern fonts makescompley e the lyx unrecognisable by linux (text editors)

2009-03-04 Thread Nikos Alexandris
On Wed, 2009-03-04 at 07:22 +, Guenter Milde wrote:
 On 2009-03-04, Nikos Alexandris wrote:
 
  I've changed the fonts of my document over to Latin Modern. 
 ...
  Instead, it is seen as a binary file!
 
  Is this a known problem? Do I have to add something (fonts?) in my
  linux-box?
 
 I have lots of LyX documents set to Latin Modern. All are valid text.
 
 All that changes is the lines
 
 \font_roman lmodern
 \font_sans lmss
 \font_typewriter lmtt
 
 so I am quite sure there is some other problem. Maybe you also comressed the
 file or something else?
 
 You might try a look inside with a text editor that can open binary files
 too.
 
 Günter

Oh... yes, that's it: it was _compressed_ !! Thank you Guenter :-)
Cheers, Nikos




SV: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen
 I mainly use lyx to write project reports in english, but I 
 recently had
 reason to write one in swedish and had some problems with 
 writing swedish
 characters.
 Whenever I type å, ä, ö or their uppercase equivalents on the 
 keyboard, I
 get the à character instead.
 However, if I input the characters in another program, I can 
 copy/paste them
 without any problems.
 
 Does anyone know how to fix this problem?
 
 I'm using LyX 1.6.1 on Gentoo.

It might be caused by many different things...
So I am only guessing here :).

Try this:
Open a bash-shell
type: 
export LANG=sv_SE.UTF-8
Start Lyx frrom the bash-shell

Does this help?
If not, try the command xev
what does it print in the bash window 
when you type å,ä or ö?

Ingar



Help formatting

2009-03-04 Thread Mehrdad
Hallo All 

 

 

 I am really frustrated, and in lack of time! 

Ok I am using lyx to write my thesis, following are my document settings and
preambles: 

 

Document Class: report

Line spacing: Single

Page layout: A4

Headings style :plain

Two sided document

 

Margins: Top: 45 mm

  Bottom: 45mm

 Inner: 30mm

 Outer: 40mm

   Head step: 35mm 

   Head height: 15mm

 Foot skip: 35mm

 

Floar Placement: here definitely

 

Latex preamble: \usepackage{ %a4wide,

ellipsis, fixltx2e, mparhack, %Fehlerkorrektur für Marginalien

booktabs, longtable %schönere Tabellen

} 

\usepackage{microtype}

\usepackage{ifpdf} % part of the hyperref bundle

\ifpdf % if pdflatex is used

\usepackage{graphics}

 

Now I have following problems, my images end up sometime creating huge gaps
between image and paragraph etc. 

My paraghraps spaces are not formatted nicely 

And things like small skip medium skip etc is most of the time totally
ignored. 

 

I had one reply saying I should use: \nccparskip how do I write this into
the preamble, cuy if I just type this into the preamble I get an error code
during compiling pdf. 

 

Further I have attached one of these missformated images, plus its tex code.
One more thing I use both eps and jpg images in my text. 

 

 

Thanks. 

 

Tex code generated by lyx: 

 

A smilar pattern

is presented in Fig. 4.3, as a comparison, one can see a larger scan

range, which is left out in our case, since a larger scan range yielded

in no extra information. From the phase diagram in Fig. 2.14 it is

evident that hematite + magnetite can form over a large range of different

enviornmental conditions. %

\begin{figure}[H]

\includegraphics[clip,scale=0.6]{Graphics/OutofBooks/MgO_kbeta}

\caption[2$\theta-\theta$ scan of MgO substrate with iron oxide thin films
]{2$\theta-\theta$ scan of MgO substrate with iron oxide thin films

\cite{Soeya2002} }

\end{figure}

 Studying the oxygen flow influence on film formation, it can be concluded

that lower oxygen content during deposition at a deposition pressure

of 3$\times$10$^{-2}$ mbar yields better formation of Fe$_{3}$O$_{4}$.

This is evident in a more pronounced shoulder on the MgO peak, which

is shown in Fig. 4.4. The figure shows in acending order the
2$\theta-\theta$

scans of deposition runs in which O$_{2}$:Ar ratio have been varried.

This ratio is defined as $\frac{flow\, of\, oxygen\,[sccm]}{flow\, of\,
argon\,[sccm]}$.

It can be seen that the shoulder becomes more prominent as the oxygen

level decreases, at the same time a broader peak is seen, further

indicating the formation of magnetite. The first lowes scan shows

the 2$\theta-\theta$ of a cleaned and annealed MgO substrate, the

 



Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 1:20 PM, Ingar Pareliussen ingar.parelius...@dmmh.no
 wrote:

  I mainly use lyx to write project reports in english, but I
  recently had
  reason to write one in swedish and had some problems with
  writing swedish
  characters.
  Whenever I type å, ä, ö or their uppercase equivalents on the
  keyboard, I
  get the à character instead.
  However, if I input the characters in another program, I can
  copy/paste them
  without any problems.
 
  Does anyone know how to fix this problem?
 
  I'm using LyX 1.6.1 on Gentoo.

 It might be caused by many different things...
 So I am only guessing here :).

 Try this:
 Open a bash-shell
 type:
 export LANG=sv_SE.UTF-8
 Start Lyx frrom the bash-shell

 Does this help?
 If not, try the command xev
 what does it print in the bash window
 when you type å,ä or ö?

 Ingar


Thank you for your prompt answer.

I was already using a utf-8 locale (LANG=en_GB.utf8), and using the swedish
locale didn't help, I still have the same problem.
This is the output from xev when pressing and then releasing ö, å, ä. Since
these characters work in every other x program I have tried (i use various
kde4 programs, firefox, emacs...) I don't think that there is anything
(seriously) wrong with my X config.

KeyPress event, serial 31, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988497720, (-664,-228), root:(833,601),
state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 b6) ö
XmbLookupString gives 2 bytes: (c3 b6) ö
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988497808, (-664,-228), root:(833,601),
state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 b6) ö
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988498408, (-664,-228), root:(833,601),
state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 a4) ä
XmbLookupString gives 2 bytes: (c3 a4) ä
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988498504, (-664,-228), root:(833,601),
state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 a4) ä
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988499120, (-664,-228), root:(833,601),
state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
XLookupString gives 2 bytes: (c3 a5) å
XmbLookupString gives 2 bytes: (c3 a5) å
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988499217, (-664,-228), root:(833,601),
state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
XLookupString gives 2 bytes: (c3 a5) å
XFilterEvent returns: False


/ peter


Re: Help formatting

2009-03-04 Thread Nikos Alexandris
Mehrdad:

 [...] I have following problems, my images end up sometime creating
 huge gaps between image and paragraph etc.

 My paraghraps spaces are not formatted nicely. And things like small
 skip medium skip etc is most of the time totally ignored. 

 I had one reply saying I should use: \nccparskip how do I write this
 into the preamble, cuy if I just type this into the preamble I get an
 error code during compiling pdf.

Merhad,
when I use book(KOMA-script) there is one class option called
raggedbottom (plus _footnoterule_ so the footnotes are shown properly
after applying _raggedbottom_).

This avoids the _stretching_ of contents in a page to reach the bottom
as it is the default behaviour.

I know that this might NOT help you directly but perhaps there is a
similar option for the standard article class.

Cheers, Nikos




Re: Help formatting

2009-03-04 Thread Konrad Hofbauer

Mehrdad wrote:

Floar Placement: here definitely


THIS is very likely the cause of your problems. Select 'Use default 
placement' and let Latex figure out where it is best to put your images!!!


Also make sure the bounding boxes of your images are correct (or use the 
clip option in LyX).


Plus: Looking at your latex output, it seems like you would _manually_ 
cross-reference to you figures (i.e., you type 'Fig. 2.14'). Learn to 
use labels and LyX's cross-referencing (see the LyX UserGuide).



And things like small skip medium skip etc is most of the time totally
ignored. 


You normally should not need these. Do not try to do micro-formatting as 
one would do in Word and friends.


HTH,
Konrad



SV: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen
snip

To bad, it wasn't that easy :) Everything is as they 
should be as far as I can see.

Do you use any other Qt software or KDE? I guess you
have tried and it the characters works there?

If they work they problem may be:
1. something gone wrong with the compilation of the 
Qtlibs. 

2. somthing gone wrong with LyX like the keymapping. 
I do not know anything about this 
Maybe you could try to use somother keymaps and see if
those work as they should (lyx-option-Editing-Keymaps/mouse)

Ingar


Re: Help formatting

2009-03-04 Thread Hubert Christiaen
The best way to avoid a  needless white gap under wrap floats is to use 
the 'line span' setting in the wrap float settings. This counts only real 
lines, no blank lines and a header is also 1 line.

Sincerely,
Hubert

-- 
Hubert Christiaen
Bloesemlaan 17
3360 Korbeek-Lo
Belgium   


Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 2:16 PM, Ingar Pareliussen ingar.parelius...@dmmh.no
 wrote:

 snip

 To bad, it wasn't that easy :) Everything is as they
 should be as far as I can see.

 Do you use any other Qt software or KDE? I guess you
 have tried and it the characters works there?


Yes, I use KDE 4.2, which also uses Qt. I can type swedish characters in
those programs




 If they work they problem may be:
 1. something gone wrong with the compilation of the
 Qtlibs.


I have just tried to recompile LyX without effect. I will start to recompile
the Qt libraries now.
(Version 4.5-rc1, does LyX work with Qt-4.5?)




 2. somthing gone wrong with LyX like the keymapping.
 I do not know anything about this
 Maybe you could try to use somother keymaps and see if
 those work as they should (lyx-option-Editing-Keymaps/mouse)

 Ingar


There is no swedish keymap, I tried loading the german one, but still got
the weird character

/ Peter


nested numbering?

2009-03-04 Thread Martijn Wisse
I'm just starting out with LyX as I need to make a report for my  
studies and I want it to look really good this time.
But now I have stumbled upon a thing I can't solve myself with the  
help files. I need to make this list of requirements like the example  
below (yes that's dutch :)) but I can't find a way to do this in a  
good way in LyX. I don't want to go back to Word and manually put in  
all the digits...


Can someone please help me? Thanks a lot!

So here is the example:

2)  Milieubelasting (geluidshinder, landschapvervuiling)

2.1  De milieuklasse voor betonconstructies moet milieuklasse  
3 conform NEN 6720 bedragen. (E200.21)


2.2  Voorzieningen tegen rook- en dampverspreiding; rookmuren  
ter plaatse van de tunnelportalen van het gesloten deel onder de  
Ringvaart en Bovenlanden. (E216.25)


2.3  Het natuurgebied ‘Bovenlanden’ moet behouden worden.

2.4  De rugstreeppad, wonend in de Bovenlanden, moet tijdens  
de bouw van een alternatief habitat worden voorzien. (E110.02)


2.5  Afgevoerde vloeistoffen anders dan regenwater mogen niet  
geloosd worden op oppervlakte water. (E216.03)


3)  Bouw (bouwtijd, bouwoverlast, levensduur, onderhoud)

 3.1  De volgende levensduur moet worden gehanteerd (E400.14)

3.1.1   Hoofddraagconstructies en niet-vervangbare  
constructiedelen: 100 jaar.


3.1.2   Vervangbare onderdelen, inclusief bouwkundige afwerking:  
25 jaar.


3.1.3   Opleggingen 50 jaar.

3.2  Hoofddraagconstructies en brugdekken moeten in beton of  
staal worden uitgevoerd. (E200.17)


3.3  Tussen constructiedelen en verhardingen moeten  
overgangsconstructies worden toegepast, conform Rijkswaterstaat,  
Rapport nr.7, Richtlijn overgangsconstructies. (E200.19)

Re: nested numbering?

2009-03-04 Thread Florian Rubach

accidentially didnt post it to the list, sorry for that...

Martijn Wisse schrieb:

I'm just starting out with LyX as I need to make a report for my 
studies and I want it to look really good this time.
But now I have stumbled upon a thing I can't solve myself with the 
help files. I need to make this list of requirements like the example 
below (yes that's dutch :)) but I can't find a way to do this in a 
good way in LyX. I don't want to go back to Word and manually put in 
all the digits...


Can someone please help me? Thanks a lot!

So here is the example:

2)  Milieubelasting (geluidshinder, landschapvervuiling)

2.1  De milieuklasse voor betonconstructies moet milieuklasse 
3 conform NEN 6720 bedragen. (E200.21)



Simply put the following in ERT (LaTeX-Code) before your enumeration starts:

\renewcommand{\theenumii}{\theenumi.\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumii}

Please note that this changes enumeration style for the rest of the 
document, if you want to reset it, put


\renewcommand{\theenumii}{(\alph{enumii})}
\renewcommand{\labelenumii}{\theenumii}

in ERT at the desired place.


Florian




Export Lyx files to LaTeX with non-ascii letters.

2009-03-04 Thread acolyte lee
Hi,
I have letters like  üäö in my lyx file, when I export to latex, they
are still üäö in latex.
This could be problematic and I would like to have
\{u},\{o} and \{a} inside .tex files.
can I do this?


Re: Help formatting

2009-03-04 Thread Helge Hafting

Mehrdad wrote:
Hallo All 

 I am really frustrated, and in lack of time! 




Ok I am using lyx to write my thesis, following are my document settings and
preambles: 

[...]

Floar Placement: here definitely

[...]
 
Now I have following problems, my images end up sometime creating huge gaps
between image and paragraph etc. 

My paraghraps spaces are not formatted nicely 


Hard to say why without seeing the document, but this often happens when 
there are many figures and little text. And especially if the here - 
definitely option is used.


Think about how page breaking works:
When there is lots of room on a page (but not enough for a float), the 
float goes to the next page. Without here - definitely, text you typed 
after that float is allowed to go before it to fill the big gap on that 
page. But with here - definitely, the rest of the page have to remain 
empty because the float _must_ print bnefore the text that follows it.


So that setting is usually a recipe for disaster, it creates half-filled 
pages.  Now combine this with how each page is laid out. The empty space 
between paragraphs (and between list items) is stretched so that the 
first paragraph is at the top of the page, and the last paragraph ends 
at the bottom. This makes books look better, as all pages end at exactly 
the same height. But this only works well if the gaps don't get too big 
- which they will when there is very little text to go on the page.


The fix is to let the floats float. Use cross references for referring 
to them, in case they move a page or two away.



Also, some people write a draft first and then fill in with more text 
later. A draft with little text but all the figures will tend to look 
really bad. Once you get more text in between the floats, things will 
look much better.


Documents with more illustrations than text is hard to make in LyX.
Using page of floats might help - it avoids mixing floats and text on 
the same page.





And things like small skip medium skip etc is most of the time totally
ignored. 


What exactly are you trying to achieve with skips? If you insert a skip 
where a bigger gap is present already, then nothing happens. As it should.

[...]

Further I have attached one of these missformated images, plus its tex code.
One more thing I use both eps and jpg images in my text. 


Please attach a file, or use a link if the files are too big for the 
list. Badly rendered pages can be shown with a .dvi or .pdf file.


Mixing jpeg and eps is not a problem for page breaking. Jpeg files 
sometimes has problems with low resolution when printed though.


Helge Hafting


Re: nested numbering?

2009-03-04 Thread Les Denham
On Wednesday 04 March 2009 08:40:16 am Martijn Wisse wrote:
 Can someone please help me? Thanks a lot!

 So here is the example:

 2)      Milieubelasting (geluidshinder, landschapvervuiling)

 2.1          De milieuklasse voor betonconstructies moet milieuklasse  

You can change the way nested environments are numbered by using ERT (LaTeX 
commands in an inset).  The attached example shows how to change the first 
three levels.

This will not change the appearance in LyX, but it will change the appearance 
in the PDF output.

Les


nesting.lyx
Description: application/lyx


RE: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen




I have just tried to recompile LyX without effect. I will start to recompile
the Qt libraries now.
(Version 4.5-rc1, does LyX work with Qt-4.5?)

Aha, that helped :). qt4.5rc1 an LyX is broken...

http://www.nabble.com/-Bug-48044--qt4,-NEW:-latest-qt4-4.5-update-broke-UTF-8-input-in-LyX-td22121248.html

If 4.5 Gold is fixed I do not know :). However:
Reverting qt4 to 4.4.3 resolved that issue.

Ingar


Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 5:20 PM, Ingar Pareliussen ingar.parelius...@dmmh.no
 wrote:





 I have just tried to recompile LyX without effect. I will start to
 recompile
 the Qt libraries now.
 (Version 4.5-rc1, does LyX work with Qt-4.5?)

 Aha, that helped :). qt4.5rc1 an LyX is broken...


 http://www.nabble.com/-Bug-48044--qt4,-NEW:-latest-qt4-4.5-update-broke-UTF-8-input-in-LyX-td22121248.html

 If 4.5 Gold is fixed I do not know :). However:
 Reverting qt4 to 4.4.3 resolved that issue.

 Ingar

Ok, I'll just have to live with it until LyX works with 4.5 - I very seldom
write in swedish.
Thanks for the help

/ Peter


Re: Export Lyx files to LaTeX with non-ascii letters.

2009-03-04 Thread Florian Rubach

acolyte lee schrieb:

Hi,
I have letters like  üäö in my lyx file, when I export to latex, they
are still üäö in latex.
This could be problematic and I would like to have
\{u},\{o} and \{a} inside .tex files.
can I do this?
Use any decent texteditor's search and replace function on the created 
.tex-file...


Florian


How to put an end to white spaces around figures

2009-03-04 Thread Tal Kenig

Hello all.
I have searched for this for a long time, but could not find a satisfactory
solution.
I usually insert figures into tables (which reside inside figure floats).
The problem is that lyx automatically inserts white spaces above, below, to
the left and to the right of the figures.
Sometimes I wish to get rid of that behavior, and to remove or reduce the
white spaces.
I can sometimes do it by inserting negative spaces, but this is tedious
work.

In addition, sometimes I have a figure which has white background, and I
want to add a thin black line around it, but it also has to be tight. I
tried a single cell table or a box inside the main table.
Once again, I am faced with the white spaces plus the alignment of the table
sometimes get messed up.

I would really appreciate it if someone could offer a remedy to this
situation, preferably a preamble fix.

Thanks in advance, 
Tal.
-- 
View this message in context: 
http://n2.nabble.com/How-to-put-an-end-to-white-spaces-around-figures-tp2424048p2424048.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Wrong characters when writing swedish

2009-03-04 Thread José Matos
On Wednesday 04 March 2009 16:30:37 Peter Gille wrote:
 Ok, I'll just have to live with it until LyX works with 4.5 - I very seldom
 write in swedish.

The accents work for me with qt-4.5.0 (final) in Fedora 10.

 Thanks for the help

 / Peter

-- 
José Abílio


Re: Help formatting

2009-03-04 Thread Uwe Stöhr

Mehrdad schrieb:


Ok I am using lyx to write my thesis, following are my document settings and
preambles: 



Floar Placement: here definitely


Use the default float placement. The EmbeddedObjects manual that you find in LyX's Help menu 
explains in detail how the float placement is working and how you can manipulate it if necessary.



Latex preamble: \usepackage{ %a4wide,

ellipsis, fixltx2e, mparhack, %Fehlerkorrektur für Marginalien

booktabs, longtable %schönere Tabellen

} 


This is weird code. a4wide is obsolete, and neither booktabs or longtable is needed, because LyX 
does this for you. To avoid errors, only use preamble code you understand and that is really necessary.


In general I can recommend to use instad of the report document class the class report 
(Koma-script). This package is excellently documented and provides everything you need for a proper 
thesis layout.



\usepackage{ifpdf} % part of the hyperref bundle

\ifpdf % if pdflatex is used

\usepackage{graphics}


This code makes no sense. There is an endif missing and LyX takes care of the 
package graphics for you.

regards Uwe


Page Headings

2009-03-04 Thread Paulina Restrepo

Dear Lyx users,

I'm writing a statement of purpose and one of the requirements is  
that my name and title appear at the top of each page.

How can I do this in Lyx? Right now I'm using document class article.

Does anyone have any ideas?

Thanks for your help,


Paulina Restrepo Echavarria
Economics PhD Student
University of California Los Angeles





Re: Page Headings

2009-03-04 Thread rgheck

Paulina Restrepo wrote:

Dear Lyx users,

I'm writing a statement of purpose and one of the requirements is that 
my name and title appear at the top of each page.

How can I do this in Lyx? Right now I'm using document class article.

Does anyone have any ideas?


Use the fancy heading, and see
 http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf
for how to use it. Something like:
   \lhead{Paulina Restrepo Echavarria}
   \rhead{Statement of Purpose}
in the preamble should do the trick.

rh



Re: graphics

2009-03-04 Thread Bob Wonderly

Manveru

Thank you. Your solution done with LyX 1.6 would not work with my 1.5.5 
so I installed 1.6.1 and then it worked fine. I had wasted hours and 
hours fighting with LyX then gave up and sought help. Thank you again.


Bob Wonderly

Manveru wrote:

2009/3/4 Bob Wonderly rwon...@attglobal.net:

Manveru and Wolfgang

I have already tried the things you suggested without success.

I have attached a test LyX file with the minimum to illustrate my problem.
And I attached the 400KB PDF of the graphic I want to display. One more
attachment: the PDF output generated by LyX.

FWIW I am using Mac OS-X current version. I am using LyX version 1.5.5

This problem is a show stopper. The graphics make up the most significant
part of the book.

Thank You

Bob Wonderly

Manveru wrote:

2009/3/3 Bob Wonderly rwon...@attglobal.net:

I have a LyX math book in the works. It is in landscape format so I can
show
wide page sized graphics -- PDF files (generated by gnuplot and converted
to
PDF by AquaTerm).

The output book file (using pdflatex) shows only part of the graphic.
Nothing I have tried has convinced LyX to show the whole plot/graphic.

Could someone help me -- off list perhaps -- get LyX to display the
entire
graphic?

I would like to send the PDF file but it is 400KB and I did not want to
do
that to the list.

Actually, of course, I have a whole bunch of such PDFs to display and
can't
even get the first one working right.

Thanks

Bob Wonderly

We, LyX users here on the list, do not prefer off-list solutions* -
this is library of solutions for further generations of users.

Did you use options in image properties dialog which allows to set
width or height of the picture in percentage of with of text column or
page? Try that, if not. It works in most cases.

If you still have problems, please provide more details about your
document, such as style (document class) you use, packages loaded,
whether your pictures are floating or not... etc.

* - sometimes with deep technical problems some developers drive
finding solutions off-lists, sharing results later.



Try this one - I change the options and for me it seems fine. Image
file is put without a path, so you probably have to modify it.



Re: Page Headings

2009-03-04 Thread Les Denham
On Wednesday 04 March 2009, Paulina Restrepo wrote:
 Dear Lyx users,

 I'm writing a statement of purpose and one of the requirements is
 that my name and title appear at the top of each page.
 How can I do this in Lyx? Right now I'm using document class article.

 Does anyone have any ideas?

 Thanks for your help,


 Paulina Restrepo Echavarria
 Economics PhD Student
 University of California Los Angeles

Paulina,

The attached file should help.  Look at the DocumentSettingsLaTeX Preamble 
and DocumentSettingsPage Layout.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
#LyX 1.5.7 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\begin_preamble
\fancyhead{} % clear all header fields
\fancyhead[L]{\bfseries Your Name}
\fancyhead[R]{\bfseries Your Title}
\end_preamble
\language english
\inputencoding auto
\font_roman times
\font_sans helvet
\font_typewriter courier
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 10
\spacing single
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\leftmargin 2cm
\topmargin 2cm
\rightmargin 2cm
\bottommargin 2cm
\headheight 1cm
\headsep 1cm
\footskip 1cm
\secnumdepth -1
\tocdepth 1
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 2
\papersides 1
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\author  
\end_header

\begin_body

\begin_layout Standard
Sample page
\end_layout

\end_body
\end_document


Re: Degree symbol

2009-03-04 Thread Uwe Stöhr

Yago schrieb:


With LyX 1.5.6 the degree symbol was, for example:

$sin30\textrm{\textdegree}$


You can alternatively insert it directly, see sec. 16.4 of the Math manual that you find in LyX's 
the Help menu.


regards Uwe


Re: graphics

2009-03-04 Thread Manveru
2009/3/4 Bob Wonderly rwon...@attglobal.net:
 Thank you. Your solution done with LyX 1.6 would not work with my 1.5.5 so I
 installed 1.6.1 and then it worked fine. I had wasted hours and hours
 fighting with LyX then gave up and sought help. Thank you again.

Preferred version by supporters on this list are always latest
version. It is good way be up to date with features. Sometimes for
many reasons this is not possible, to use latest - but then there are
couple of people who may help in that case.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
Hello,

I mainly use lyx to write project reports in english, but I recently had
reason to write one in swedish and had some problems with writing swedish
characters.
Whenever I type å, ä, ö or their uppercase equivalents on the keyboard, I
get the à character instead.
However, if I input the characters in another program, I can copy/paste them
without any problems.

Does anyone know how to fix this problem?

I'm using LyX 1.6.1 on Gentoo.

/ Peter


Re: Setting Latin Modern fonts makescompley e the lyx unrecognisable by linux (text editors)

2009-03-04 Thread Nikos Alexandris
On Wed, 2009-03-04 at 07:22 +, Guenter Milde wrote:
> On 2009-03-04, Nikos Alexandris wrote:
> 
> > I've changed the fonts of my document over to Latin Modern. 
> ...
> > Instead, it is seen as a binary file!
> 
> > Is this a known problem? Do I have to add something (fonts?) in my
> > linux-box?
> 
> I have lots of LyX documents set to Latin Modern. All are valid text.
> 
> All that changes is the lines
> 
> \font_roman lmodern
> \font_sans lmss
> \font_typewriter lmtt
> 
> so I am quite sure there is some other problem. Maybe you also comressed the
> file or something else?
> 
> You might try a look inside with a text editor that can open binary files
> too.
> 
> Günter

Oh... yes, that's it: it was _compressed_ !! Thank you Guenter :-)
Cheers, Nikos




SV: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen
> I mainly use lyx to write project reports in english, but I 
> recently had
> reason to write one in swedish and had some problems with 
> writing swedish
> characters.
> Whenever I type å, ä, ö or their uppercase equivalents on the 
> keyboard, I
> get the à character instead.
> However, if I input the characters in another program, I can 
> copy/paste them
> without any problems.
> 
> Does anyone know how to fix this problem?
> 
> I'm using LyX 1.6.1 on Gentoo.

It might be caused by many different things...
So I am only guessing here :).

Try this:
Open a bash-shell
type: 
export LANG=sv_SE.UTF-8
Start Lyx frrom the bash-shell

Does this help?
If not, try the command xev
what does it print in the bash window 
when you type å,ä or ö?

Ingar



Help formatting

2009-03-04 Thread Mehrdad
Hallo All 

 

 

 I am really frustrated, and in lack of time! 

Ok I am using lyx to write my thesis, following are my document settings and
preambles: 

 

Document Class: report

Line spacing: Single

Page layout: A4

Headings style :plain

Two sided document

 

Margins: Top: 45 mm

  Bottom: 45mm

 Inner: 30mm

 Outer: 40mm

   Head step: 35mm 

   Head height: 15mm

 Foot skip: 35mm

 

Floar Placement: here definitely

 

Latex preamble: \usepackage{ %a4wide,

ellipsis, fixltx2e, mparhack, %Fehlerkorrektur für Marginalien

booktabs, longtable %schönere Tabellen

} 

\usepackage{microtype}

\usepackage{ifpdf} % part of the hyperref bundle

\ifpdf % if pdflatex is used

\usepackage{graphics}

 

Now I have following problems, my images end up sometime creating huge gaps
between image and paragraph etc. 

My paraghraps spaces are not formatted nicely 

And things like small skip medium skip etc is most of the time totally
ignored. 

 

I had one reply saying I should use: \nccparskip how do I write this into
the preamble, cuy if I just type this into the preamble I get an error code
during compiling pdf. 

 

Further I have attached one of these missformated images, plus its tex code.
One more thing I use both eps and jpg images in my text. 

 

 

Thanks. 

 

Tex code generated by lyx: 

 

A smilar pattern

is presented in Fig. 4.3, as a comparison, one can see a larger scan

range, which is left out in our case, since a larger scan range yielded

in no extra information. From the phase diagram in Fig. 2.14 it is

evident that hematite + magnetite can form over a large range of different

enviornmental conditions. %

\begin{figure}[H]

\includegraphics[clip,scale=0.6]{Graphics/OutofBooks/MgO_kbeta}

\caption[2$\theta-\theta$ scan of MgO substrate with iron oxide thin films
]{2$\theta-\theta$ scan of MgO substrate with iron oxide thin films

\cite{Soeya2002} }

\end{figure}

 Studying the oxygen flow influence on film formation, it can be concluded

that lower oxygen content during deposition at a deposition pressure

of 3$\times$10$^{-2}$ mbar yields better formation of Fe$_{3}$O$_{4}$.

This is evident in a more pronounced shoulder on the MgO peak, which

is shown in Fig. 4.4. The figure shows in acending order the
2$\theta-\theta$

scans of deposition runs in which O$_{2}$:Ar ratio have been varried.

This ratio is defined as $\frac{flow\, of\, oxygen\,[sccm]}{flow\, of\,
argon\,[sccm]}$.

It can be seen that the shoulder becomes more prominent as the oxygen

level decreases, at the same time a broader peak is seen, further

indicating the formation of magnetite. The first lowes scan shows

the 2$\theta-\theta$ of a cleaned and annealed MgO substrate, the

 



Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 1:20 PM, Ingar Pareliussen  wrote:

> > I mainly use lyx to write project reports in english, but I
> > recently had
> > reason to write one in swedish and had some problems with
> > writing swedish
> > characters.
> > Whenever I type å, ä, ö or their uppercase equivalents on the
> > keyboard, I
> > get the à character instead.
> > However, if I input the characters in another program, I can
> > copy/paste them
> > without any problems.
> >
> > Does anyone know how to fix this problem?
> >
> > I'm using LyX 1.6.1 on Gentoo.
>
> It might be caused by many different things...
> So I am only guessing here :).
>
> Try this:
> Open a bash-shell
> type:
> export LANG=sv_SE.UTF-8
> Start Lyx frrom the bash-shell
>
> Does this help?
> If not, try the command xev
> what does it print in the bash window
> when you type å,ä or ö?
>
> Ingar


Thank you for your prompt answer.

I was already using a utf-8 locale (LANG=en_GB.utf8), and using the swedish
locale didn't help, I still have the same problem.
This is the output from xev when pressing and then releasing ö, å, ä. Since
these characters work in every other x program I have tried (i use various
kde4 programs, firefox, emacs...) I don't think that there is anything
(seriously) wrong with my X config.

KeyPress event, serial 31, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988497720, (-664,-228), root:(833,601),
state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 b6) "ö"
XmbLookupString gives 2 bytes: (c3 b6) "ö"
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988497808, (-664,-228), root:(833,601),
state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 b6) "ö"
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988498408, (-664,-228), root:(833,601),
state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 a4) "ä"
XmbLookupString gives 2 bytes: (c3 a4) "ä"
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988498504, (-664,-228), root:(833,601),
state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
XLookupString gives 2 bytes: (c3 a4) "ä"
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988499120, (-664,-228), root:(833,601),
state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
XLookupString gives 2 bytes: (c3 a5) "å"
XmbLookupString gives 2 bytes: (c3 a5) "å"
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x621,
root 0x1a6, subw 0x0, time 1988499217, (-664,-228), root:(833,601),
state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
XLookupString gives 2 bytes: (c3 a5) "å"
XFilterEvent returns: False


/ peter


Re: Help formatting

2009-03-04 Thread Nikos Alexandris
Mehrdad:

> [...] I have following problems, my images end up sometime creating
> huge gaps between image and paragraph etc.

> My paraghraps spaces are not formatted nicely. And things like small
> skip medium skip etc is most of the time totally ignored. 

> I had one reply saying I should use: \nccparskip how do I write this
> into the preamble, cuy if I just type this into the preamble I get an
> error code during compiling pdf.

Merhad,
when I use book(KOMA-script) there is one class option called
"raggedbottom" (plus _footnoterule_ so the footnotes are shown properly
after applying _raggedbottom_).

This avoids the _stretching_ of contents in a page to reach the bottom
as it is the default behaviour.

I know that this might NOT help you directly but perhaps there is a
similar option for the standard article class.

Cheers, Nikos




Re: Help formatting

2009-03-04 Thread Konrad Hofbauer

Mehrdad wrote:

Floar Placement: here definitely


THIS is very likely the cause of your problems. Select 'Use default 
placement' and let Latex figure out where it is best to put your images!!!


Also make sure the bounding boxes of your images are correct (or use the 
clip option in LyX).


Plus: Looking at your latex output, it seems like you would _manually_ 
cross-reference to you figures (i.e., you type 'Fig. 2.14'). Learn to 
use labels and LyX's cross-referencing (see the LyX UserGuide).



And things like small skip medium skip etc is most of the time totally
ignored. 


You normally should not need these. Do not try to do micro-formatting as 
one would do in Word and friends.


HTH,
Konrad



SV: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen


To bad, it wasn't that easy :) Everything is as they 
should be as far as I can see.

Do you use any other Qt software or KDE? I guess you
have tried and it the characters works there?

If they work they problem may be:
1. something gone wrong with the compilation of the 
Qtlibs. 

2. somthing gone wrong with LyX like the keymapping. 
I do not know anything about this 
Maybe you could try to use somother keymaps and see if
those work as they should (lyx-option->Editing->Keymaps/mouse)

Ingar


Re: Help formatting

2009-03-04 Thread Hubert Christiaen
The best way to avoid a  needless white gap under wrap floats is to use 
the 'line span' setting in the wrap float settings. This counts only real 
lines, no blank lines and a header is also 1 line.

Sincerely,
Hubert

-- 
Hubert Christiaen
Bloesemlaan 17
3360 Korbeek-Lo
Belgium   


Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 2:16 PM, Ingar Pareliussen  wrote:

> 
>
> To bad, it wasn't that easy :) Everything is as they
> should be as far as I can see.
>
> Do you use any other Qt software or KDE? I guess you
> have tried and it the characters works there?


Yes, I use KDE 4.2, which also uses Qt. I can type swedish characters in
those programs


>
>
> If they work they problem may be:
> 1. something gone wrong with the compilation of the
> Qtlibs.


I have just tried to recompile LyX without effect. I will start to recompile
the Qt libraries now.
(Version 4.5-rc1, does LyX work with Qt-4.5?)


>
>
> 2. somthing gone wrong with LyX like the keymapping.
> I do not know anything about this
> Maybe you could try to use somother keymaps and see if
> those work as they should (lyx-option->Editing->Keymaps/mouse)
>
> Ingar


There is no swedish keymap, I tried loading the german one, but still got
the weird character

/ Peter


nested numbering?

2009-03-04 Thread Martijn Wisse
I'm just starting out with LyX as I need to make a report for my  
studies and I want it to look really good this time.
But now I have stumbled upon a thing I can't solve myself with the  
help files. I need to make this list of requirements like the example  
below (yes that's dutch :)) but I can't find a way to do this in a  
good way in LyX. I don't want to go back to Word and manually put in  
all the digits...


Can someone please help me? Thanks a lot!

So here is the example:

2)  Milieubelasting (geluidshinder, landschapvervuiling)

2.1  De milieuklasse voor betonconstructies moet milieuklasse  
3 conform NEN 6720 bedragen. (E200.21)


2.2  Voorzieningen tegen rook- en dampverspreiding; rookmuren  
ter plaatse van de tunnelportalen van het gesloten deel onder de  
Ringvaart en Bovenlanden. (E216.25)


2.3  Het natuurgebied ‘Bovenlanden’ moet behouden worden.

2.4  De rugstreeppad, wonend in de Bovenlanden, moet tijdens  
de bouw van een alternatief habitat worden voorzien. (E110.02)


2.5  Afgevoerde vloeistoffen anders dan regenwater mogen niet  
geloosd worden op oppervlakte water. (E216.03)


3)  Bouw (bouwtijd, bouwoverlast, levensduur, onderhoud)

 3.1  De volgende levensduur moet worden gehanteerd (E400.14)

3.1.1   Hoofddraagconstructies en niet-vervangbare  
constructiedelen: 100 jaar.


3.1.2   Vervangbare onderdelen, inclusief bouwkundige afwerking:  
25 jaar.


3.1.3   Opleggingen 50 jaar.

3.2  Hoofddraagconstructies en brugdekken moeten in beton of  
staal worden uitgevoerd. (E200.17)


3.3  Tussen constructiedelen en verhardingen moeten  
overgangsconstructies worden toegepast, conform Rijkswaterstaat,  
Rapport nr.7, Richtlijn overgangsconstructies. (E200.19)

Re: nested numbering?

2009-03-04 Thread Florian Rubach

accidentially didnt post it to the list, sorry for that...

Martijn Wisse schrieb:

I'm just starting out with LyX as I need to make a report for my 
studies and I want it to look really good this time.
But now I have stumbled upon a thing I can't solve myself with the 
help files. I need to make this list of requirements like the example 
below (yes that's dutch :)) but I can't find a way to do this in a 
good way in LyX. I don't want to go back to Word and manually put in 
all the digits...


Can someone please help me? Thanks a lot!

So here is the example:

2)  Milieubelasting (geluidshinder, landschapvervuiling)

2.1  De milieuklasse voor betonconstructies moet milieuklasse 
3 conform NEN 6720 bedragen. (E200.21)



Simply put the following in ERT (LaTeX-Code) before your enumeration starts:

\renewcommand{\theenumii}{\theenumi.\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumii}

Please note that this changes enumeration style for the rest of the 
document, if you want to reset it, put


\renewcommand{\theenumii}{(\alph{enumii})}
\renewcommand{\labelenumii}{\theenumii}

in ERT at the desired place.


Florian




Export Lyx files to LaTeX with non-ascii letters.

2009-03-04 Thread acolyte lee
Hi,
I have letters like  üäö in my lyx file, when I export to latex, they
are still "üäö" in latex.
This could be problematic and I would like to have
\"{u},\"{o} and \"{a} inside .tex files.
can I do this?


Re: Help formatting

2009-03-04 Thread Helge Hafting

Mehrdad wrote:
Hallo All 

 I am really frustrated, and in lack of time! 




Ok I am using lyx to write my thesis, following are my document settings and
preambles: 

[...]

Floar Placement: here definitely

[...]
 
Now I have following problems, my images end up sometime creating huge gaps
between image and paragraph etc. 

My paraghraps spaces are not formatted nicely 


Hard to say why without seeing the document, but this often happens when 
there are many figures and little text. And especially if the "here - 
definitely" option is used.


Think about how page breaking works:
When there is lots of room on a page (but not enough for a float), the 
float goes to the next page. Without "here - definitely", text you typed 
after that float is allowed to go before it to fill the big gap on that 
page. But with "here - definitely", the rest of the page have to remain 
empty because the float _must_ print bnefore the text that follows it.


So that setting is usually a recipe for disaster, it creates half-filled 
pages.  Now combine this with how each page is laid out. The empty space 
between paragraphs (and between list items) is stretched so that the 
first paragraph is at the top of the page, and the last paragraph ends 
at the bottom. This makes books look better, as all pages end at exactly 
the same height. But this only works well if the gaps don't get too big 
- which they will when there is very little text to go on the page.


The fix is to let the floats float. Use cross references for referring 
to them, in case they move a page or two away.



Also, some people write a draft first and then fill in with more text 
later. A draft with little text but all the figures will tend to look 
really bad. Once you get more text in between the floats, things will 
look much better.


Documents with more illustrations than text is hard to make in LyX.
Using "page of floats" might help - it avoids mixing floats and text on 
the same page.





And things like small skip medium skip etc is most of the time totally
ignored. 


What exactly are you trying to achieve with skips? If you insert a skip 
where a bigger gap is present already, then nothing happens. As it should.

[...]

Further I have attached one of these missformated images, plus its tex code.
One more thing I use both eps and jpg images in my text. 


Please attach a file, or use a link if the files are too big for the 
list. Badly rendered pages can be shown with a .dvi or .pdf file.


Mixing jpeg and eps is not a problem for page breaking. Jpeg files 
sometimes has problems with low resolution when printed though.


Helge Hafting


Re: nested numbering?

2009-03-04 Thread Les Denham
On Wednesday 04 March 2009 08:40:16 am Martijn Wisse wrote:
> Can someone please help me? Thanks a lot!
>
> So here is the example:
>
> 2)      Milieubelasting (geluidshinder, landschapvervuiling)
>
> 2.1          De milieuklasse voor betonconstructies moet milieuklasse  

You can change the way nested environments are numbered by using ERT (LaTeX 
commands in an inset).  The attached example shows how to change the first 
three levels.

This will not change the appearance in LyX, but it will change the appearance 
in the PDF output.

Les


nesting.lyx
Description: application/lyx


RE: Wrong characters when writing swedish

2009-03-04 Thread Ingar Pareliussen




>I have just tried to recompile LyX without effect. I will start to recompile
>the Qt libraries now.
>(Version 4.5-rc1, does LyX work with Qt-4.5?)

Aha, that helped :). qt4.5rc1 an LyX is broken...

http://www.nabble.com/-Bug-48044--qt4,-NEW:-latest-qt4-4.5-update-broke-UTF-8-input-in-LyX-td22121248.html

If 4.5 Gold is fixed I do not know :). However:
"Reverting qt4 to 4.4.3 resolved that issue".

Ingar


Re: Wrong characters when writing swedish

2009-03-04 Thread Peter Gille
On Wed, Mar 4, 2009 at 5:20 PM, Ingar Pareliussen  wrote:

>
>
>
>
> >I have just tried to recompile LyX without effect. I will start to
> recompile
> >the Qt libraries now.
> >(Version 4.5-rc1, does LyX work with Qt-4.5?)
>
> Aha, that helped :). qt4.5rc1 an LyX is broken...
>
>
> http://www.nabble.com/-Bug-48044--qt4,-NEW:-latest-qt4-4.5-update-broke-UTF-8-input-in-LyX-td22121248.html
>
> If 4.5 Gold is fixed I do not know :). However:
> "Reverting qt4 to 4.4.3 resolved that issue".
>
> Ingar
>
Ok, I'll just have to live with it until LyX works with 4.5 - I very seldom
write in swedish.
Thanks for the help

/ Peter


Re: Export Lyx files to LaTeX with non-ascii letters.

2009-03-04 Thread Florian Rubach

acolyte lee schrieb:

Hi,
I have letters like  üäö in my lyx file, when I export to latex, they
are still "üäö" in latex.
This could be problematic and I would like to have
\"{u},\"{o} and \"{a} inside .tex files.
can I do this?
Use any decent texteditor's search and replace function on the created 
.tex-file...


Florian


How to put an end to white spaces around figures

2009-03-04 Thread Tal Kenig

Hello all.
I have searched for this for a long time, but could not find a satisfactory
solution.
I usually insert figures into tables (which reside inside figure floats).
The problem is that lyx automatically inserts white spaces above, below, to
the left and to the right of the figures.
Sometimes I wish to get rid of that behavior, and to remove or reduce the
white spaces.
I can sometimes do it by inserting negative spaces, but this is tedious
work.

In addition, sometimes I have a figure which has white background, and I
want to add a thin black line around it, but it also has to be tight. I
tried a single cell table or a box inside the main table.
Once again, I am faced with the white spaces plus the alignment of the table
sometimes get messed up.

I would really appreciate it if someone could offer a remedy to this
situation, preferably a preamble fix.

Thanks in advance, 
Tal.
-- 
View this message in context: 
http://n2.nabble.com/How-to-put-an-end-to-white-spaces-around-figures-tp2424048p2424048.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Wrong characters when writing swedish

2009-03-04 Thread José Matos
On Wednesday 04 March 2009 16:30:37 Peter Gille wrote:
> Ok, I'll just have to live with it until LyX works with 4.5 - I very seldom
> write in swedish.

The accents work for me with qt-4.5.0 (final) in Fedora 10.

> Thanks for the help
>
> / Peter

-- 
José Abílio


Re: Help formatting

2009-03-04 Thread Uwe Stöhr

Mehrdad schrieb:


Ok I am using lyx to write my thesis, following are my document settings and
preambles: 

>

Floar Placement: here definitely


Use the default float placement. The EmbeddedObjects manual that you find in LyX's Help menu 
explains in detail how the float placement is working and how you can manipulate it if necessary.



Latex preamble: \usepackage{ %a4wide,

ellipsis, fixltx2e, mparhack, %Fehlerkorrektur für Marginalien

booktabs, longtable %schönere Tabellen

} 


This is weird code. a4wide is obsolete, and neither booktabs or longtable is needed, because LyX 
does this for you. To avoid errors, only use preamble code you understand and that is really necessary.


In general I can recommend to use instad of the report document class the class report 
(Koma-script). This package is excellently documented and provides everything you need for a proper 
thesis layout.



\usepackage{ifpdf} % part of the hyperref bundle

\ifpdf % if pdflatex is used

\usepackage{graphics}


This code makes no sense. There is an endif missing and LyX takes care of the 
package graphics for you.

regards Uwe


Page Headings

2009-03-04 Thread Paulina Restrepo

Dear Lyx users,

I'm writing a statement of purpose and one of the requirements is  
that my name and title appear at the top of each page.

How can I do this in Lyx? Right now I'm using document class article.

Does anyone have any ideas?

Thanks for your help,


Paulina Restrepo Echavarria
Economics PhD Student
University of California Los Angeles





Re: Page Headings

2009-03-04 Thread rgheck

Paulina Restrepo wrote:

Dear Lyx users,

I'm writing a statement of purpose and one of the requirements is that 
my name and title appear at the top of each page.

How can I do this in Lyx? Right now I'm using document class article.

Does anyone have any ideas?


Use the "fancy" heading, and see
 http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf
for how to use it. Something like:
   \lhead{Paulina Restrepo Echavarria}
   \rhead{Statement of Purpose}
in the preamble should do the trick.

rh



Re: graphics

2009-03-04 Thread Bob Wonderly

Manveru

Thank you. Your solution done with LyX 1.6 would not work with my 1.5.5 
so I installed 1.6.1 and then it worked fine. I had wasted hours and 
hours "fighting with" LyX then gave up and sought help. Thank you again.


Bob Wonderly

Manveru wrote:

2009/3/4 Bob Wonderly :

Manveru and Wolfgang

I have already tried the things you suggested without success.

I have attached a test LyX file with the minimum to illustrate my problem.
And I attached the 400KB PDF of the graphic I want to display. One more
attachment: the PDF output generated by LyX.

FWIW I am using Mac OS-X current version. I am using LyX version 1.5.5

This problem is a "show stopper". The graphics make up the most significant
part of the book.

Thank You

Bob Wonderly

Manveru wrote:

2009/3/3 Bob Wonderly :

I have a LyX math book in the works. It is in landscape format so I can
show
wide page sized graphics -- PDF files (generated by gnuplot and converted
to
PDF by AquaTerm).

The output book file (using pdflatex) shows only part of the graphic.
Nothing I have tried has convinced LyX to show the whole plot/graphic.

Could someone help me -- off list perhaps -- get LyX to display the
entire
graphic?

I would like to send the PDF file but it is 400KB and I did not want to
do
that to the list.

Actually, of course, I have a whole bunch of such PDFs to display and
can't
even get the first one working right.

Thanks

Bob Wonderly

We, LyX users here on the list, do not prefer off-list solutions* -
this is library of solutions for further generations of users.

Did you use options in image properties dialog which allows to set
width or height of the picture in percentage of with of text column or
page? Try that, if not. It works in most cases.

If you still have problems, please provide more details about your
document, such as style (document class) you use, packages loaded,
whether your pictures are floating or not... etc.

* - sometimes with deep technical problems some developers drive
finding solutions off-lists, sharing results later.



Try this one - I change the options and for me it seems fine. Image
file is put without a path, so you probably have to modify it.



Re: Page Headings

2009-03-04 Thread Les Denham
On Wednesday 04 March 2009, Paulina Restrepo wrote:
> Dear Lyx users,
>
> I'm writing a statement of purpose and one of the requirements is
> that my name and title appear at the top of each page.
> How can I do this in Lyx? Right now I'm using document class article.
>
> Does anyone have any ideas?
>
> Thanks for your help,
>
>
> Paulina Restrepo Echavarria
> Economics PhD Student
> University of California Los Angeles

Paulina,

The attached file should help.  Look at the Document>Settings>LaTeX Preamble 
and Document>Settings>Page Layout.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
#LyX 1.5.7 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\begin_preamble
\fancyhead{} % clear all header fields
\fancyhead[L]{\bfseries Your Name}
\fancyhead[R]{\bfseries Your Title}
\end_preamble
\language english
\inputencoding auto
\font_roman times
\font_sans helvet
\font_typewriter courier
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 10
\spacing single
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\leftmargin 2cm
\topmargin 2cm
\rightmargin 2cm
\bottommargin 2cm
\headheight 1cm
\headsep 1cm
\footskip 1cm
\secnumdepth -1
\tocdepth 1
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 2
\papersides 1
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\author "" 
\end_header

\begin_body

\begin_layout Standard
Sample page
\end_layout

\end_body
\end_document


Re: Degree symbol

2009-03-04 Thread Uwe Stöhr

Yago schrieb:


With LyX 1.5.6 the degree symbol was, for example:

$sin30\textrm{\textdegree}$


You can alternatively insert it directly, see sec. 16.4 of the Math manual that you find in LyX's 
the Help menu.


regards Uwe


Re: graphics

2009-03-04 Thread Manveru
2009/3/4 Bob Wonderly :
> Thank you. Your solution done with LyX 1.6 would not work with my 1.5.5 so I
> installed 1.6.1 and then it worked fine. I had wasted hours and hours
> "fighting with" LyX then gave up and sought help. Thank you again.

Preferred version by supporters on this list are always latest
version. It is good way be up to date with features. Sometimes for
many reasons this is not possible, to use latest - but then there are
couple of people who may help in that case.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl