See in the line 5, the example :

\usepackage{scrpage2}

\pagestyle{scrheadings}

\usepackage{graphics}

\newsavebox{\mylogo}

\savebox{\mylogo}{\includegraphics[width=1cm]{testlogo.eps}} Here you must put the path to testlogo.eps, for example in Linux {/home/miguel/testlogo.eps}} or Windows {C:\testlogo.eps}} if you testlogo.eps are in the C:\ directory

\rhead{\smallskip\usebox{\mylogo}}

\rhead{\usebox{\mylogo}}

###





Leo Gürtler escribió:
icebna schrieb:

Dear Miguel,

yes you're right but this does not make a difference, if I put all the
stuff in the latex preambel, see below for the error messages: it seems
that a "}" is wrong, but I don't get it.

best,
leo

that's all what's in the preambel + some dummy text in the document
(docuclass: komascript article or book):

###
\usepackage{scrpage2}

\pagestyle{scrheadings}

\usepackage{graphics}

\newsavebox{\mylogo}

\savebox{\mylogo}{\includegraphics[width=1cm]{testlogo.eps}}

\rhead{\smallskip\usebox{\mylogo}}

\rhead{\usebox{\mylogo}}

###


the following errors appear:

Argument of [EMAIL PROTECTED] has an extra }:

...\includegraphics[width=1cm]{testlogo.eps}}

I've run across a `}' that doesn't seem to match anything.

For example, `\def\a#1{...}' and `\a}' would produce

this error. If you simply proceed now, the `\par' that

I've just inserted will cause me to report a runaway

argument that might be the root of the problem. But if

your `}' was spurious, just type `2' and it will go away.


Paragraph ended before [EMAIL PROTECTED] was complete.:


...\includegraphics[width=1cm]{testlogo.eps}}

I suspect you've forgotten a `}', causing me to apply this

control sequence to too much text. How can we recover?

My plan is to forget the whole thing and hope for the best.


Undefined control sequence:

\rhead

{\smallskip\usebox{\mylogo}}

The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.


LaTeX Error: Missing \begin{document}:


\rhead{\smallskip\usebox{\mylogo}

}

You're in trouble here. Try typing <return> to proceed.

If that doesn't work, type X <return> to quit.


Undefined control sequence:

\rhead

{\usebox{\mylogo}}

The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.





Hello Leo :

Don't is in the ERT box, is in the menu Document → Configuration →
Preamble LaTex where you must copy the piece code that I send you.


Regards


Miguel





Leo Gürtler escribió:
icebna schrieb:

Dear Miguel,

thanks a lot - but I got error messages. If it is ok I added my lyx file
tot his mail, maybe you can help me or send me a small example (lyx
file) from you (which works for you).

thank your very much,
best regards

leo

In the preamble of document write the next command :

\newsavebox{\mylogo}
\savebox{\mylogo}{\includegraphics[width=1cm]{/home/miguel/ant.eps}}
\rhead{\smallskip\usebox{\mylogo}}
\rhead{\usebox{\mylogo}}

Previously make the logo in .eps format and put it in any directory.
In my example is /home/miguel as can view, and my logo is ant.eps

I hope that work fine

Regards


Miguel





Leo Gürtler escribió:
Dear lyx-list,

ist there a possibility to insert a small graphic (logo) on the
head of
each page (I use koma-script).
thanks.

best wishes
leo







Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to