inserting c/c++ program code into latex/lyx documents

2004-10-08 Thread Parminder Singh
hi all,
i have been trying to complete my thesis document using lyx. i need to insert c/c++ 
code into my documents. i need some examples as to how this can be accomplished. the c 
program is stored in a file and i would like to include a major part from the file 
into a lyx/latex document. i tried using the "insert code" option from within lyx but 
it does not format my code properly.
any help is greatly appreciated, thanx a lot, 
parminder gupta


Re: a problem with lyx

2004-10-08 Thread Uwe Stöhr
tanja salesch wrote:
i would be satisfied if i could label pages, so that
i could refer to a page number.. .
All pages are labeled internally. So you can refer to any of them.
To reference a page, set a label to the part of text that should be 
referenced. Now insert a reference. In the reference dialog, you can 
choose the format, e.g "page" if you only want the page number.

or is there possibility to "rename" index
Here a german explanation, how to do this:
(taken from the document LyXMathbefehle, which can be downloaded from
 http://wiki.lyx.org/pmwiki.php/LyX/LyXMathebefehle )
-
Damit der Index den Namen "Stichwortverzeichnis" erhält, wurde im 
LaTeX-Vorspann

\usepackage[ngerman]{babel}
\addto\captionsngerman {\renewcommand{\indexname} {Stichwortverzeichnis}}
eingefügt.
Das Paket babel sorgt dafür, dass die Beschriftungen in der ausgewählten 
Sprache erscheinen. Ehe man Beschriftungen ändern kann, muss es geladen 
werden. Außerdem wird babel von LyX automatisch nach dem LaTeX-Vorspann 
geladen. Das ruft aber keine Probleme hervor, solange im LaTeX-Vorspann 
die Dokumentsprache verwendet wurde.

Möchte man andere Beschriftungen ändern, ersetzt man \indexname durch 
\name. Eine Auflistung der möglichen Namen findet man unter

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixnam
Möchte man Beschriftungen für andere Sprachen ändern, ersetzt man 
ngerman durch die Dokumentsprache und

\captionsgerman durch \captions.
-

and put it in your "table of contents.."?
If you use a koma-script class, use the option "idxtotoc" (insert this 
option in the menu Layout -> Document -> Format -> Options)
Otherwise use the LaTeX-package "tocbibind" or the command \addcontentsline
in the preamble of your document. E.g. write

\addcontentsline{toc}{section}{\protect\numberline{}Indexname}
regards Uwe


a problem with lyx

2004-10-08 Thread tanja salesch
dear mailing-list users,

i have a big problem with lyx and i hope that there is an easy solution for
it.
as you know one can create an "index" in lyx. is there a possibility to
create
an "symbolverzeichnis" or an "namesverzeichnis",  so that they are listed in
my "table of contens"? i would be satisfied if i could label pages, so that
i could refer to a page number.. . or is there possibility to "rename" index
and put it in your "table of contents.."? thank you for any answer..

tanja ...

-- 
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl



-- 
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl



Re: lyx and tables

2004-10-08 Thread Uwe Stöhr
José Abílio Oliveira Matos wrote:
OK, I've uploaded the english documentation as csv2lyx-en.txt to
http://fkurth.de/uwest/LyX/
If the package author agrees I think that this version can be placed in
the contrib section of ftp. What do you think?
The author agrees, I was allowed to publish his program as public 
domain. So you can copy it to LyX's ftp repository.

regards Uwe


Re: Newbie Questions

2004-10-08 Thread Dominik Waßenhoven
Herbert Voss schrieb:
Uwe Stöhr wrote:
[...]
choose Layout -> Paragraph -> left aligned
this makes only sense for a few paragraphs. For the
whole document a \raggedroght in ERT is better
I think, \raggedright would be of more use ;-)
Dominik.-


Re: Newbie Questions

2004-10-08 Thread Herbert Voss
Uwe Stöhr wrote:
Also, LyX is hyphenating my text when it reaches the
margins. How do I disable this feature? I would rather
have text not hyphenated.

choose Layout -> Paragraph -> left aligned
this makes only sense for a few paragraphs. For the
whole document a \raggedroght in ERT is better
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Newbie Questions

2004-10-08 Thread N Castro

--- Uwe Stöhr <[EMAIL PROTECTED]> wrote:

> N Castro wrote:
> 
> > I think I would use some arrangement like Part,
> > Chapter, Section, but I don't want the extra
> numbers
> > (such as 1.1.1 subsection, or Chapter 1- Chapter
> > title), I would like to just have the names of
> each
> > section. How would I do this?
> 
> Use the starred form of the environments, e.g.
> choose "section*" instead 
> of "section"
> 
> > Also, LyX is hyphenating my text when it reaches
> the
> > margins. How do I disable this feature? I would
> rather
> > have text not hyphenated.
> 
> choose Layout -> Paragraph -> left aligned
> 
> regards Uwe
> 


=

Custom game sprites, custom animations, Free Downloads

http://www.nc-games.com




ff, fi ligatures and tex4ht

2004-10-08 Thread Angus Leeming
I have been playing around with tex4ht. Adding

\usepackage{tex4ht}

then running the file through latex and bibtex followed by a final 
run of tex4ht produces pretty impressive results. The only real 
problem I'm suffering from is what it's doin to 'fi' and 'ff' 
ligatures. Is there any way I can get it to be boring and just leave 
"fi" as "fi"?

-- 
Angus



Re: Printing problem

2004-10-08 Thread david wolfson
I think I have solved this. I was using a rather aged version of tetex 
(1.0. something), but after some google bashing, managed to beat some 
version 2 rpms into working, and can now print. 

Can't help thinking I have some more learning to do though...
Next game is gbib, but that'll be a whole new thread!
Thanks for the help,
Dave
This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


Summary for the query on use avant font in equations

2004-10-08 Thread Pep Roca
The original question was how to use avant font in the equations.

The problem is solved:

I a Linux Debian Sarge I do:

1) Download "sansmath.sty" from:

http://www.ctan.org/tex-archive/macros/latex/contrib/misc/

2) With then command "kpsepath tex" you get the paths, where TeX search for 
files. I get:

/home/totxo/texmf/tex/generic/
/usr/local/share/texmf/tex/generic/
/usr/local/lib/texmf/tex/generic/
/var/lib/texmf/tex/generic/
/usr/share/texmf/tex/generic/
/home/totxo/texmf/tex/
/usr/local/share/texmf/tex/
/usr/local/lib/texmf/tex/
/var/lib/texmf/tex/
/usr/share/texmf/tex/

3) As root, make the directory -p /usr/local/share/texmf/tex/latex

# mkdir -p /usr/local/share/texmf/tex/latex

4) As root, copy "sansmath.sty" to /usr/local/share/texmf/tex/latex/:

# cp sansmath.sty /usr/local/share/texmf/tex/latex/

3) Submit the command: # texhash

4) Start lyx

8) Put in the preamble (Format -> Document -> Preamble):

\usepackage{sansmath} \sansmath

and add commands like: \mathversion{sans} and \mathversion{normal} where 
necessary in your document.

Tanks to William F. Adams, Herbert Voss and Roberto Marabini 
(http://www.mail-archive.com/lyx-users%40lists.lyx.org/msg11937.html)



Re: Printing problem

2004-10-08 Thread Mark Connolly
This may be a wild goose chase for you.  Someone out there may have a 
*much* better answer.

Debug LyX:
from a line command, type in lyx -dbg.  This will give you the lyx debug 
flag definitions.

Debug dvips from within LyX:
In the Outputs Printers configuration section, change the printer 
command to dvips -d 2

This will set the debug level of dvips to 2.You can find all the 
debug flag definitions at
http://www.tug.org/texinfohtml/dvips.html#Debug-options

You may want to start out just debugging dvips.
You can capture the all the debug info by starting lyx from a command 
line with appropriate output redirection, for example
lyx -dbg 2 >debugoutput.txt 2>&1

Leave off the -dbg 2 to not start off with lyx debug.
lyx >debugoutput.txt 2>&1
These command forms will redirect standard output and standard error to 
the file debugoutput.txt.

You may want to investigate the "-u" option for dvips 
(http://www.tug.org/texinfohtml/dvips.html#Option-details):

-u /usr/share/texmf/dvips/config/psfonts.map
perhaps.
Lastly, and possibly most ignorantly of me, you could add the printer 
definition through texconfig

david wolfson wrote:
Thanks for the replys.
First off, I tried the 'hit the print button, not just enter' and had no 
luck. Would've been nice though...

Going into a bit more detail then.  When I hit print, the default 
printer is found ok, and its name is in the 'printer' box. However, when 
I hit the 'print' button, there's not a 'sending to print' progress bar; 
the menu just closes. To my mind this means it's not spooling (NB it's a 
network printer on another machine running CUPS, but works fine from 
other apps).
The 'output, printer' section of the 'preferences' menu also displays 
the correct name for the default printer.  Adapt output is checked, and 
the printer command is 'dvips'.  The options look reasonable compared to 
those from the dvips man page (I'll list them below).  The only 
difference is the the spool command is 'lp' rather than 'lpr', but 
either of these options work from the command line, and neither option 
works when I change them.

One thing I have spotted is the a warning from dvips when I print from 
the command line:

$ dvips -f test.dvi -P HP2300
dvips: warning: no config file for `HP2300'
This is dvips(k) 5.86 Copyright 1999 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2004.10.08:1016' -> | lpr -PHP2300

I know nothing about dvips, other than that lyx wants to use it to 
control print output, so I maybe need to have a look at this if it's 
important...?

Let me know if there are any more details I can provide.  Is there a way 
to get a debug output from lyx?

Cheers,
Dave
prefs-output-printer options:
Printer name: HP2300
adapt output: checked
even pages: -B
odd pages: -A
Page range: -pp
collated: -C
Copies: -c
Landscape: -t landscape
Reverse: -r
to file: -o
to printer: -P
Extra options:
file extension: .ps
spool prefix: -d
spool command: lp
paper size: -T
Paper type: -t
This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



Re: lyx and tables

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 12:42:32AM +0200, Uwe Stöhr wrote:
> José Abílio Oliveira Matos wrote:
> 
> No, Joachim Heidemeier is the author of my csv2lyx version. I retrieved 
> his posting on the mailing list:
> 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg29215.html
> 
> So it seems that he rewrote csv2lyx.
> His converter isn't able to convert longtables. Is the csv2lyx from 
> lyx.org able to do this?

  I don't think so. But it should be enough to change to table properties to
get that.

> >>You need the files csv2lyx.* and the file preamble-inc.tex.
> >>The file csv2lyx is a small german documentation.
> >>If someone wants to use it, I'll translate the doc into english.
> 
> >  Please do, it would be also interesting to have the new package in 
> >  contrib.
> 
> OK, I've uploaded the english documentation as csv2lyx-en.txt to
> 
> http://fkurth.de/uwest/LyX/

  If the package author agrees I think that this version can be placed in
the contrib section of ftp. What do you think?

> regards Uwe

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)


how to use a new class

2004-10-08 Thread Giorgio Zavarise
Hi
I have a basic experience of LyX, but now I got a problem that I am not 
able to solve: I have a class file "svmono.cls", and also another file 
"svind.ist" from a publisher. It is a style file for a book.
I tried to explore the customization manual, but without success. Is 
there anybody, or any place where I can get a step-by-step procedure to 
use this class within lyx and to create its layout? Any suggestion is 
welcomed

best regards
Giorgio Zavarise
__
Prof. Dr. Ing. Giorgio Zavarise
Dipartimento di Ingegneria Strutturale e Geotecnica
Politecnico di Torino
C.so Duca degli Abruzzi, 24
I-10129 Torino - ITALY
tel.  +39 049 827 5596
fax  +39 049 827 5604
e-mail [EMAIL PROTECTED]
__


Re: Mac-LyX is slow

2004-10-08 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> Jean-Marc Lasgouttes wrote:
>> It is not possible to get antialiasing with lyx/xforms. Actually we
>> had a patch to do that a long time ago, but it never got merged
>> (was not of good enough quality).

Angus> Really? Could you dig it out?

I guess the solution is to use Xft:
http://freedesktop.org/Software/Xft

There is a tutorial here (pay attention to section 5)
http://www.keithp.com/~keithp/render/Xft.tutorial

I do not have the original patch (which was rejected because too
C-like and not C++) anymore...

JMarc


Re: Keyboard switching between documents?

2004-10-08 Thread Dominik Waßenhoven
G. Milde schrieb:
On  7.10.04, Peter Ljunglöf wrote:
[switching between buffers]
You could file a feature request for next-buffer and
previous-buffer commands at the lyx bugzilla.
Have a look at http://bugzilla.lyx.org/show_bug.cgi?id=608 and 
http://bugzilla.lyx.org/show_bug.cgi?id=515

Dominik.-


Re: Printing problem

2004-10-08 Thread david wolfson
Thanks for the replys.
First off, I tried the 'hit the print button, not just enter' and had no 
luck. Would've been nice though...

Going into a bit more detail then.  When I hit print, the default 
printer is found ok, and its name is in the 'printer' box. However, when 
I hit the 'print' button, there's not a 'sending to print' progress bar; 
the menu just closes. To my mind this means it's not spooling (NB it's a 
network printer on another machine running CUPS, but works fine from 
other apps). 

The 'output, printer' section of the 'preferences' menu also displays 
the correct name for the default printer.  Adapt output is checked, and 
the printer command is 'dvips'.  The options look reasonable compared to 
those from the dvips man page (I'll list them below).  The only 
difference is the the spool command is 'lp' rather than 'lpr', but 
either of these options work from the command line, and neither option 
works when I change them.

One thing I have spotted is the a warning from dvips when I print from 
the command line:

$ dvips -f test.dvi -P HP2300
dvips: warning: no config file for `HP2300'
This is dvips(k) 5.86 Copyright 1999 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2004.10.08:1016' -> | lpr -PHP2300

I know nothing about dvips, other than that lyx wants to use it to 
control print output, so I maybe need to have a look at this if it's 
important...?

Let me know if there are any more details I can provide.  Is there a way 
to get a debug output from lyx?

Cheers,
Dave
prefs-output-printer options:
Printer name: HP2300
adapt output: checked
even pages: -B
odd pages: -A
Page range: -pp
collated: -C
Copies: -c
Landscape: -t landscape
Reverse: -r
to file: -o
to printer: -P
Extra options:
file extension: .ps
spool prefix: -d
spool command: lp
paper size: -T
Paper type: -t
This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


Re: [ANNOUNCE] LyX 1.3.5 is released

2004-10-08 Thread Jean-Marc Lasgouttes
> "Paul" == Paul Smith <[EMAIL PROTECTED]> writes:

Paul> The upload of the file is now done. However, I do not see the
Paul> file at:

Paul> ftp://ftp.lyx.org/pub/lyx/bin/

It is there now. Thanks.

JMarc