Paul Lussier a �crit :
> Ah, where exactly should this go?
>
> Here's what I have now:
>
> \layout Subsection
>
> Books
> \begin_inset LatexCommand \label{Add_Docs:Books}
>
> \end_inset
>
> \layout Bibliography
>
> When I enter in the \renewcommand just after the \layout Bibliography line and
> restart LyX, I get the following error:
>
> LyX: Unknown token `\renewcommand'. Inserting as text. [around line 942 of file
>~/trash/ara_sitedoc.lyx]
> LyX: Unknown token `\bibname{}'. Inserting as text. [around line 943 of file
>~/trash/ara_sitedoc.lyx]
Put the \renewcommand in the latex preamble. If \bibname is not defined (such as for
article class), you
can try:
\renewcommand\refname{}
If you want to change the bibliography section header behaviour, you do like the
attached example, that
gives a numbered section, and a customised section name, but it is dirty!
Bye,
BG
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.15
\textclass article
\begin_preamble
\def\refname{My references section}
\end_preamble
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Section
Introduction
\layout Standard
I use a bibliography somewhere...
\layout Section
Example
\layout Standard
Let's consider the paper
\begin_inset LatexCommand \cite{1}
\end_inset
.
\layout Standard
\latex latex
\backslash
begingroup
\layout Standard
\latex latex
\backslash
let
\backslash
realsection=
\backslash
section
\layout Standard
\latex latex
\backslash
def
\backslash
section#1#2{
\backslash
realsection{#2}}
\layout Bibliography
\bibitem {1}
paper 1
\layout Bibliography
\bibitem {2}
book 2
\layout Bibliography
\bibitem {3}
another paper
\layout Bibliography
\bibitem {4}
article
\layout Standard
\latex latex
\backslash
endgroup
\layout Section
Other section
\layout Standard
Nothing to say.
\the_end