Re: how to make this template?

2007-10-22 Thread Liviu Andronic
On 10/21/07, bai xuefeng <[EMAIL PROTECTED]> wrote:
> Hello Everybody,
>
> I want to save the following commands into a template for writing in
> Chinese. How can I make it a LyX template?
>
> \documentclass{article}
> \usepackage{CJK}
> \usepackage{ccmap}
> \AtBeginDocument{\begin{CJK*}{GBK}{song}}
> \AtEndDocument{\end{CJK*}}

Since I am a LaTeX / Lyx novice, consider my words with caution. If
these lines are options that fit the Latex Preamble, then you could
simply go to Document > Settings > Latex Preamble and insert there
these lines. Afterwards, you save the .lyx file and your done with
your template. For convenience, put it in the global templates
directory.


Regards,
Liviu


Re: how to make this template?

2007-10-22 Thread bai xuefeng
Thank you for reply. I have already done that. But when checking out
the latex source, I still  see the following codes:

---
\usepackage{ccmap}
\AtBeginDocument{\begin{CJK*}{GBK}{song}}
\AtEndDocument{\end{CJK*}}
\makeatother

\begin{document}
\begin{CJK}{GBK}{}
Hello
\end{CJK}
\end{document}
---

Obviously the global settings I put in Preamble were still over-ridden
by the default codes of LyX. What to do?

Besides, how does LyX choose font even when \begin{CJK}{GBK}{} does
not specify one?

regards,
--
bxf


Lyx running from USB-stick?

2007-10-22 Thread Matthias Schmidt
Hello together,

is it possible, to run Lyx from USB-stick? Has someone tested this?

-- 
Mit freundlichen Grüssen
Matthias Schmidt
mailto:[EMAIL PROTECTED]






___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de



problem with footnote in quote

2007-10-22 Thread Marcelo Acuña
Hello,
  When I put a footnote in a paragraph with quotes
I have a problem: a quote mark appears superposed over
the footnote number in footnote.
  This occurs even with an empty preamble.
  How I can avoid it?
  Thanks
 Marcelo


  Seguí de cerca a la Selección Argentina de Rugby en el Mundial de Francia 
2007.
http://ar.sports.yahoo.com/mundialderugby


Re: Lyx running from USB-stick?

2007-10-22 Thread Paul A. Rubin

Matthias Schmidt wrote:

Hello together,

is it possible, to run Lyx from USB-stick? Has someone tested this?



http://wiki.lyx.org/LyX/FeaturePoll#toc11 pertains to this.

/Paul



Search & Replace quotes

2007-10-22 Thread Laurent Duperval
Hi,

I accidentally started a document in English when it was supposed to be in
French. Now, I need to change all quotes (") to be guillements (>>). How
can I do that, other than manually?

L

-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Search & Replace quotes

2007-10-22 Thread Jürgen Spitzmüller
Laurent Duperval wrote:
> I accidentally started a document in English when it was supposed to be in
> French. Now, I need to change all quotes (") to be guillements (>>). How
> can I do that, other than manually?

- Open a copy of your document in an editor.
- Replace all "Quotes eld" by "Quotes fld"
- Replace all "Quotes erd" by "Quotes frd"

A very nice LaTeX solution to avoid such problems is this:
http://tug.ctan.org/tex-archive/macros/latex/contrib/csquotes

Jürgen


Magnification of screen fonts in LyX 1.5.2

2007-10-22 Thread gumm
Hi,

can someone please help me setting larger screen fonts in LyX 1.5.2?

In previous versions I used

   Tools/Settings/Screen Fonts/Magnification % 180

but this seems not to work in LyX1.5.2 under Windows-Vista. All it does is
magnify the spacing between words and between lines. The font itself
remains as before.

Is there a quick workaround ?

An otherwise happy LyX user,

H.Peter






Re: Magnification of screen fonts in LyX 1.5.2

2007-10-22 Thread Richard Heck

[EMAIL PROTECTED] wrote:

Hi,

can someone please help me setting larger screen fonts in LyX 1.5.2?

In previous versions I used

   Tools/Settings/Screen Fonts/Magnification % 180

but this seems not to work in LyX1.5.2 under Windows-Vista. All it does is
magnify the spacing between words and between lines. The font itself
remains as before.

Is there a quick workaround ?
  

This sounds rather like a bug.

rh



Re: French conventions: hacking the letter class

2007-10-22 Thread Liviu Andronic
Well, I finally hacked it myself all the way. It was trivial. I simply replaced

>   [EMAIL PROTECTED]@{}}%
> \toname\\ \toaddress
>   \end{tabular}\par

by these lines taken from the original letter class

[EMAIL PROTECTED]
  \toname\\ \toaddress \\*[2\parskip]%
  [EMAIL PROTECTED] \end{tabular}\par}%

I have little idea as to what they mean, but they seem to achieve the
desired effect. Those interested will find attached the latest
frletter class. I will put the layout, template and pdf output on the
Wiki.

Does anyone know how should I submit this "new" class to CTAN?

Liviu

On 10/20/07, Liviu Andronic <[EMAIL PROTECTED]> wrote:
> This is how I need it hacked: [4]. In words, I would simply need to
> keep the "send to address" left-aligned but somewhere next to the
> right-edge of the page, and between "my address" and "opening". It
> would essentially look and feel like the "my address" field
> (screenshot: [5]) from the original letter class, but would be
> immediately before the "opening" field.

> % changed the opening
> \renewcommand*{\opening}[1]{%
>   \thispagestyle{firstpage}%
>   [EMAIL PROTECTED]
>   \else  %if there is a from address
> [EMAIL PROTECTED]@{}}%
>   \fromaddress
> \end{tabular}\par%
>   \fi
>   [EMAIL PROTECTED]@{}}%
> \toname\\ \toaddress
>   \end{tabular}\par
>   [EMAIL PROTECTED]  Put the date on a line of it's own
> %[EMAIL PROTECTED]
>   \vspace{2\parskip}%
>   #1\par\nobreak
>   \vspace{2\parskip}%
> }


frletter.cls
Description: Binary data


How to break long code lines

2007-10-22 Thread Roberto Gorjão

Hi!

I have an article set with the APA class and two columns. In this 
article I need to write some amount of javascript code. The problem is 
that sometimes this code lines get too long, without any spaces, so 
lines extend beyond the columns width. How can I set those paragraphs to 
break when they reach the end of the column?


It would be perfect if broken lines of code got indented after the break.

Thanks!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Conditional resize of picture

2007-10-22 Thread Rudi van der Linde

Hi LyXers,

Is it possible to resize a picture only if it is larger than a 
predetermined size?  I am automatically generating a LyX document from a 
database and it is therefore not possible for me to know the size of the 
pictures beforehand.  I would like LyX to automatically reduce the size 
of the picture if it won't fit on the page.


I was wondering if LyX is able to do the equivalent of the following 
ImageMagick command:

"convert -resize "640x480>" picture.png"

Many thanks.

Warm regards,

--
Rudi van der Linde
[EMAIL PROTECTED]

Note:
This message (and attachments) is subject to restrictions and a disclaimer. 
Please refer to http://www.ansys.co.za/index.html or [EMAIL PROTECTED] for full 
details.



Re: Conditional resize of picture

2007-10-22 Thread Richard Heck

Rudi van der Linde wrote:

Hi LyXers,

Is it possible to resize a picture only if it is larger than a 
predetermined size?  I am automatically generating a LyX document from 
a database and it is therefore not possible for me to know the size of 
the pictures beforehand.  I would like LyX to automatically reduce the 
size of the picture if it won't fit on the page.


I was wondering if LyX is able to do the equivalent of the following 
ImageMagick command:

"convert -resize "640x480>" picture.png"
One way would be to define a converter for the format in question, and 
then have LyX call it. This is in Preferences>Converters.


rh

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Magnification of screen fonts in LyX 1.5.2

2007-10-22 Thread Jürgen Spitzmüller
[EMAIL PROTECTED] wrote:
> In previous versions I used
>
>    Tools/Settings/Screen Fonts/Magnification % 180
>
> but this seems not to work in LyX1.5.2 under Windows-Vista. All it does is
> magnify the spacing between words and between lines. The font itself
> remains as before.

This is a known bug (fixed in the next version). Currently, you have to 
restart LyX after the font change to get the correct display.

Jürgen