Re: How to make a macro

2009-06-08 Thread Anthony Campbell
On 06 Jun 2009, Uwe Stöhr wrote:
 Anthony Campbell schrieb:
 I would like to make a macro for an ERT command:

 \clearpage \thispagetyle \mbox{} \clearpage

 I'm sure it is is possible but I don't seem able to find any
 documentation for it.

 Add this to your preamble:

 \newcommand{\mystyle}{\clearpage \thispagestyle \mbox{} \clearpage}

 In your document you can call your command by inserting \mystyle as ERT.
 (But I don't understand what your command sequence should do. Currently 
 it only clears the page, \mbox and \thispagestyle do nothing because they 
 are not called correctly.)

 \newommand is for example described in LyX's the Math manual, sec. 20.1.

 regards Uwe


Thanks very much, Uwe; that works fine. There was a typo in the ERT I
posted; it should have been \thispagestyl{empty}. The last \clearpage is
redundant. The \mbox{} is needed to produce a blank page (there may be
another way but that's the only one I know).

Anthony
-- 
Anthony Campbell - a...@acampbell.org.uk 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: How to make a macro

2009-06-08 Thread Anthony Campbell
On 06 Jun 2009, Uwe Stöhr wrote:
 Anthony Campbell schrieb:
 I would like to make a macro for an ERT command:

 \clearpage \thispagetyle \mbox{} \clearpage

 I'm sure it is is possible but I don't seem able to find any
 documentation for it.

 Add this to your preamble:

 \newcommand{\mystyle}{\clearpage \thispagestyle \mbox{} \clearpage}

 In your document you can call your command by inserting \mystyle as ERT.
 (But I don't understand what your command sequence should do. Currently 
 it only clears the page, \mbox and \thispagestyle do nothing because they 
 are not called correctly.)

 \newommand is for example described in LyX's the Math manual, sec. 20.1.

 regards Uwe


Thanks very much, Uwe; that works fine. There was a typo in the ERT I
posted; it should have been \thispagestyl{empty}. The last \clearpage is
redundant. The \mbox{} is needed to produce a blank page (there may be
another way but that's the only one I know).

Anthony
-- 
Anthony Campbell - a...@acampbell.org.uk 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: How to make a macro

2009-06-08 Thread Anthony Campbell
On 06 Jun 2009, Uwe Stöhr wrote:
> Anthony Campbell schrieb:
>> I would like to make a macro for an ERT command:
>>
>> \clearpage \thispagetyle \mbox{} \clearpage
>>
>> I'm sure it is is possible but I don't seem able to find any
>> documentation for it.
>
> Add this to your preamble:
>
> \newcommand{\mystyle}{\clearpage \thispagestyle \mbox{} \clearpage}
>
> In your document you can call your command by inserting \mystyle as ERT.
> (But I don't understand what your command sequence should do. Currently 
> it only clears the page, \mbox and \thispagestyle do nothing because they 
> are not called correctly.)
>
> \newommand is for example described in LyX's the Math manual, sec. 20.1.
>
> regards Uwe


Thanks very much, Uwe; that works fine. There was a typo in the ERT I
posted; it should have been \thispagestyl{empty}. The last \clearpage is
redundant. The \mbox{} is needed to produce a blank page (there may be
another way but that's the only one I know).

Anthony
-- 
Anthony Campbell - a...@acampbell.org.uk 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



How to make a macro

2009-06-06 Thread Anthony Campbell
I would like to make a macro for an ERT command:

\clearpage \thispagetyle \mbox{} \clearpage

I'm sure it is is possible but I don't seem able to find any
documentation for it.

Anthony

-- 
Anthony Campbell - a...@acampbell.org.uk 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: How to make a macro

2009-06-06 Thread Uwe Stöhr

Anthony Campbell schrieb:

I would like to make a macro for an ERT command:

\clearpage \thispagetyle \mbox{} \clearpage

I'm sure it is is possible but I don't seem able to find any
documentation for it.


Add this to your preamble:

\newcommand{\mystyle}{\clearpage \thispagestyle \mbox{} \clearpage}

In your document you can call your command by inserting \mystyle as ERT.
(But I don't understand what your command sequence should do. Currently it only clears the page, 
\mbox and \thispagestyle do nothing because they are not called correctly.)


\newommand is for example described in LyX's the Math manual, sec. 20.1.

regards Uwe


How to make a macro

2009-06-06 Thread Anthony Campbell
I would like to make a macro for an ERT command:

\clearpage \thispagetyle \mbox{} \clearpage

I'm sure it is is possible but I don't seem able to find any
documentation for it.

Anthony

-- 
Anthony Campbell - a...@acampbell.org.uk 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: How to make a macro

2009-06-06 Thread Uwe Stöhr

Anthony Campbell schrieb:

I would like to make a macro for an ERT command:

\clearpage \thispagetyle \mbox{} \clearpage

I'm sure it is is possible but I don't seem able to find any
documentation for it.


Add this to your preamble:

\newcommand{\mystyle}{\clearpage \thispagestyle \mbox{} \clearpage}

In your document you can call your command by inserting \mystyle as ERT.
(But I don't understand what your command sequence should do. Currently it only clears the page, 
\mbox and \thispagestyle do nothing because they are not called correctly.)


\newommand is for example described in LyX's the Math manual, sec. 20.1.

regards Uwe


How to make a macro

2009-06-06 Thread Anthony Campbell
I would like to make a macro for an ERT command:

\clearpage \thispagetyle \mbox{} \clearpage

I'm sure it is is possible but I don't seem able to find any
documentation for it.

Anthony

-- 
Anthony Campbell - a...@acampbell.org.uk 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: How to make a macro

2009-06-06 Thread Uwe Stöhr

Anthony Campbell schrieb:

I would like to make a macro for an ERT command:

\clearpage \thispagetyle \mbox{} \clearpage

I'm sure it is is possible but I don't seem able to find any
documentation for it.


Add this to your preamble:

\newcommand{\mystyle}{\clearpage \thispagestyle \mbox{} \clearpage}

In your document you can call your command by inserting \mystyle as ERT.
(But I don't understand what your command sequence should do. Currently it only clears the page, 
\mbox and \thispagestyle do nothing because they are not called correctly.)


\newommand is for example described in LyX's the Math manual, sec. 20.1.

regards Uwe