Re: importing a LaTeX template

2018-03-24 Thread Guenter Milde
On 2018-03-21, Полина Пруцкова wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> Dear LyX experts,

> I am trying to use/import a LaTeX template for the ISMIR proceedings
> from here: http://ismir2018.ircam.fr/doc/latex.zip
>  It has .sty files but also a
> .tex, a .pdf and a .bib file. Which of them do I use and how?

The .sty file is a document style -- either a very very old
document class (for latex 2.09)
or a "package" (extension for another document class).

The .tex file is most likely a template document.

The .bib file is a bibliographic database

The .pdf is a documentation or the result of "LaTeXing" the template .tex.


For LyX, you may need a new "layout" or "module". This depends on the
content of the template .tex file: if the line starting with

   \documentclass
   
lists a standard document class (or one already supported by LyX) you have
luck and can simply try to import the .tex file into LyX.   


> I’ve googled and there are some solutions a couple of years old which
> seem to work for some and not for others. What is the latest wisdom on
> this?

The expansion of LyX to support new classes and modules is described in detail
in Help>Customization.

Günter



importing a LaTeX template

2018-03-21 Thread Полина Пруцкова
Dear LyX experts,
I am trying to use/import a LaTeX template for the ISMIR proceedings from here: 
http://ismir2018.ircam.fr/doc/latex.zip 
 
It has .sty files but also a .tex, a .pdf and a .bib file.
Which of them do I use and how?
I’ve googled and there are some solutions a couple of years old which seem to 
work for some and not for others. What is the latest wisdom on this?
Kind regards,
Polina

problem importing a latex template

2007-06-02 Thread Green Kobold

Hi Lyx Community,

First, thanks for Lyx, it made some things easier and nicer to do.

Well, I am trying to import a latex template for a conference, but the
title and authors disappear. It would be very nice if someone con
point me out how to import this template to Lyx.

I am appending the latex files to this message, they are small anyway.
If that should not be done, please tell me.

I am using Lyx 1.4.3, apt package for kubuntu 6.10.

Thanks in advace,
gk
@Book{knuth:89,
  author = 	 {Donald E. Knuth},
  title = 	 {The {\TeX} Book},
  publisher = 	 {Addison-Wesley},
  year = 	 {1989},
  edition = 	 {15th}
}



@InCollection{smith:99,
  author = 	 {A. Smith and B. Jones},
  title = 	 {On the Complexity of Computing},
  booktitle = 	 {Advances in Computer Science},
  pages = 	 {555--566},
  publisher ={Publishing Press},
  year = 	 {1999},
  editor = 	 {A. B. Smith-Jones}
}




example.tex
Description: TeX document


exampleFig.eps
Description: PostScript document
% LaTeX definitions for SBC 2001 style
%
% Created by Jomi  Rafael, june 2001

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sbc2003}[2001/06/09]

% margem sup 3.5 cm: há 1,5 cm para header, + 2 cm para top
% margem inf 2.5 cm: há 1,5 cm para foot, + 1 cm para bottom
% margem esq/dir 3 cm
\RequirePackage[a4paper,top=2cm,left=3cm,right=3cm,bottom=1.5cm]{geometry}


\parindent 1.27cm
\parskip   6pt

\flushbottom

% captions
\RequirePackage[bf,sf,footnotesize,hang]{caption}
\setlength{\captionmargin}{0.8cm}
\renewcommand{\captionfont}{\sffamily\footnotesize\bfseries}

% font
\RequirePackage{times}

[EMAIL PROTECTED]@[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

% new commands
\newcounter{instn}
\setcounter{instn}{1}
\newcommand{\instnum}{\arabic{instn}}
\newcommand{\inst}[1]{\ensuremath{^#1}}
\newcommand{\nextinstitute}{\\\mbox{}\\[-6pt] \addtocounter{instn}{1}\inst{\instnum}}
\newcommand{\email}[1]{\\\mbox{}\\[-6pt]\footnotesize\texttt{#1}}
\renewcommand{\and}{, }

% to avoid [...] in the bibliography
% \item[] instead of [EMAIL PROTECTED]
[EMAIL PROTECTED]@filesw
  {\let\protect\noexpand
   \immediate
   [EMAIL PROTECTED]
\renewenvironment{thebibliography}[1]
 {\section*{\refname
[EMAIL PROTECTED]
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
   [EMAIL PROTECTED]
\leftmargin\labelwidth
\advance\leftmargin\labelsep
%% changed!
   \itemindent -\leftmargin
   \itemsep 6pt
%%%
[EMAIL PROTECTED]@code
\usecounter{enumiv}%
[EMAIL PROTECTED]@empty
[EMAIL PROTECTED]@enumiv}}%
  \sloppy
  \clubpenalty4000
  [EMAIL PROTECTED] \clubpenalty
  \widowpenalty4000%
  [EMAIL PROTECTED]
 [EMAIL PROTECTED]
   [EMAIL PROTECTED]@warning{Empty `thebibliography' environment}}%
  \endlist}


% itens
\setlength\leftmargini   {1.27cm}
\setlength\leftmargin{\leftmargini}
\setlength\leftmarginii  {\leftmargini}
\setlength\leftmarginiii {\leftmargini}
\setlength\leftmarginiv  {\leftmargini}
\setlength  \labelsep{.5em}
\setlength  \labelwidth  {\leftmargini}
\addtolength\labelwidth  {-\labelsep}
[EMAIL PROTECTED]
\parsep 0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
\topsep 0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
[EMAIL PROTECTED]
[EMAIL PROTECTED]@listI
[EMAIL PROTECTED]
[EMAIL PROTECTED] {\leftmargin\leftmarginii
  \labelwidth\leftmarginii
  \advance\labelwidth-\labelsep
  \topsep0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@}
[EMAIL PROTECTED]
  \labelwidth\leftmarginiii
  \advance\labelwidth-\labelsep
  \topsep0\p@ [EMAIL PROTECTED]@[EMAIL PROTECTED]@
  \parsep\z@
  \partopsep \p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@}


% sections
[EMAIL PROTECTED]@}%
   {-18\p@ [EMAIL PROTECTED] -4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {1\p@ [EMAIL PROTECTED] 4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {\normalfont\XIIIPT\bfseries\boldmath
\rightskip=\z@ [EMAIL PROTECTED] 8em\pretolerance=1 }}

[EMAIL PROTECTED]@}%
   {-6\p@ [EMAIL PROTECTED] -4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {1\p@ [EMAIL PROTECTED] 4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {\normalfont\normalsize\bfseries\boldmath
\rightskip=\z@ [EMAIL PROTECTED] 8em\pretolerance=1 }}

\RequirePackage{titlesec}
\titlelabel{\thetitle.\hspace{1ex}}



% first page

\pagestyle{empty}

\newcommand{\authortag}[1]{$^{#1}$}

[EMAIL PROTECTED]

[EMAIL PROTECTED]
 %\null % isso dava um espaco extra antes do title
 \begin{center}
   %\vglue -6pt
   \vspace*{12pt}
  [EMAIL PROTECTED]
   \vglue 6pt plus 3pt minus 3pt
  {\normalsize
   [EMAIL PROTECTED]
   \vglue 6pt plus 3pt minus 3pt
  {\normalsize
   [EMAIL 

problem importing a latex template

2007-06-02 Thread Green Kobold

Hi Lyx Community,

First, thanks for Lyx, it made some things easier and nicer to do.

Well, I am trying to import a latex template for a conference, but the
title and authors disappear. It would be very nice if someone con
point me out how to import this template to Lyx.

I am appending the latex files to this message, they are small anyway.
If that should not be done, please tell me.

I am using Lyx 1.4.3, apt package for kubuntu 6.10.

Thanks in advace,
gk
@Book{knuth:89,
  author = 	 {Donald E. Knuth},
  title = 	 {The {\TeX} Book},
  publisher = 	 {Addison-Wesley},
  year = 	 {1989},
  edition = 	 {15th}
}



@InCollection{smith:99,
  author = 	 {A. Smith and B. Jones},
  title = 	 {On the Complexity of Computing},
  booktitle = 	 {Advances in Computer Science},
  pages = 	 {555--566},
  publisher ={Publishing Press},
  year = 	 {1999},
  editor = 	 {A. B. Smith-Jones}
}




example.tex
Description: TeX document


exampleFig.eps
Description: PostScript document
% LaTeX definitions for SBC 2001 style
%
% Created by Jomi  Rafael, june 2001

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sbc2003}[2001/06/09]

% margem sup 3.5 cm: há 1,5 cm para header, + 2 cm para top
% margem inf 2.5 cm: há 1,5 cm para foot, + 1 cm para bottom
% margem esq/dir 3 cm
\RequirePackage[a4paper,top=2cm,left=3cm,right=3cm,bottom=1.5cm]{geometry}


\parindent 1.27cm
\parskip   6pt

\flushbottom

% captions
\RequirePackage[bf,sf,footnotesize,hang]{caption}
\setlength{\captionmargin}{0.8cm}
\renewcommand{\captionfont}{\sffamily\footnotesize\bfseries}

% font
\RequirePackage{times}

[EMAIL PROTECTED]@[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

% new commands
\newcounter{instn}
\setcounter{instn}{1}
\newcommand{\instnum}{\arabic{instn}}
\newcommand{\inst}[1]{\ensuremath{^#1}}
\newcommand{\nextinstitute}{\\\mbox{}\\[-6pt] \addtocounter{instn}{1}\inst{\instnum}}
\newcommand{\email}[1]{\\\mbox{}\\[-6pt]\footnotesize\texttt{#1}}
\renewcommand{\and}{, }

% to avoid [...] in the bibliography
% \item[] instead of [EMAIL PROTECTED]
[EMAIL PROTECTED]@filesw
  {\let\protect\noexpand
   \immediate
   [EMAIL PROTECTED]
\renewenvironment{thebibliography}[1]
 {\section*{\refname
[EMAIL PROTECTED]
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
   [EMAIL PROTECTED]
\leftmargin\labelwidth
\advance\leftmargin\labelsep
%% changed!
   \itemindent -\leftmargin
   \itemsep 6pt
%%%
[EMAIL PROTECTED]@code
\usecounter{enumiv}%
[EMAIL PROTECTED]@empty
[EMAIL PROTECTED]@enumiv}}%
  \sloppy
  \clubpenalty4000
  [EMAIL PROTECTED] \clubpenalty
  \widowpenalty4000%
  [EMAIL PROTECTED]
 [EMAIL PROTECTED]
   [EMAIL PROTECTED]@warning{Empty `thebibliography' environment}}%
  \endlist}


% itens
\setlength\leftmargini   {1.27cm}
\setlength\leftmargin{\leftmargini}
\setlength\leftmarginii  {\leftmargini}
\setlength\leftmarginiii {\leftmargini}
\setlength\leftmarginiv  {\leftmargini}
\setlength  \labelsep{.5em}
\setlength  \labelwidth  {\leftmargini}
\addtolength\labelwidth  {-\labelsep}
[EMAIL PROTECTED]
\parsep 0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
\topsep 0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
[EMAIL PROTECTED]
[EMAIL PROTECTED]@listI
[EMAIL PROTECTED]
[EMAIL PROTECTED] {\leftmargin\leftmarginii
  \labelwidth\leftmarginii
  \advance\labelwidth-\labelsep
  \topsep0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@}
[EMAIL PROTECTED]
  \labelwidth\leftmarginiii
  \advance\labelwidth-\labelsep
  \topsep0\p@ [EMAIL PROTECTED]@[EMAIL PROTECTED]@
  \parsep\z@
  \partopsep \p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@}


% sections
[EMAIL PROTECTED]@}%
   {-18\p@ [EMAIL PROTECTED] -4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {1\p@ [EMAIL PROTECTED] 4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {\normalfont\XIIIPT\bfseries\boldmath
\rightskip=\z@ [EMAIL PROTECTED] 8em\pretolerance=1 }}

[EMAIL PROTECTED]@}%
   {-6\p@ [EMAIL PROTECTED] -4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {1\p@ [EMAIL PROTECTED] 4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {\normalfont\normalsize\bfseries\boldmath
\rightskip=\z@ [EMAIL PROTECTED] 8em\pretolerance=1 }}

\RequirePackage{titlesec}
\titlelabel{\thetitle.\hspace{1ex}}



% first page

\pagestyle{empty}

\newcommand{\authortag}[1]{$^{#1}$}

[EMAIL PROTECTED]

[EMAIL PROTECTED]
 %\null % isso dava um espaco extra antes do title
 \begin{center}
   %\vglue -6pt
   \vspace*{12pt}
  [EMAIL PROTECTED]
   \vglue 6pt plus 3pt minus 3pt
  {\normalsize
   [EMAIL PROTECTED]
   \vglue 6pt plus 3pt minus 3pt
  {\normalsize
   [EMAIL 

problem importing a latex template

2007-06-02 Thread Green Kobold

Hi Lyx Community,

First, thanks for Lyx, it made some things easier and nicer to do.

Well, I am trying to import a latex template for a conference, but the
title and authors disappear. It would be very nice if someone con
point me out how to import this template to Lyx.

I am appending the latex files to this message, they are small anyway.
If that should not be done, please tell me.

I am using Lyx 1.4.3, apt package for kubuntu 6.10.

Thanks in advace,
gk
@Book{knuth:89,
  author = 	 {Donald E. Knuth},
  title = 	 {The {\TeX} Book},
  publisher = 	 {Addison-Wesley},
  year = 	 {1989},
  edition = 	 {15th}
}



@InCollection{smith:99,
  author = 	 {A. Smith and B. Jones},
  title = 	 {On the Complexity of Computing},
  booktitle = 	 {Advances in Computer Science},
  pages = 	 {555--566},
  publisher ={Publishing Press},
  year = 	 {1999},
  editor = 	 {A. B. Smith-Jones}
}




example.tex
Description: TeX document


exampleFig.eps
Description: PostScript document
% LaTeX definitions for SBC 2001 style
%
% Created by Jomi & Rafael, june 2001

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sbc2003}[2001/06/09]

% margem sup 3.5 cm: há 1,5 cm para header, + 2 cm para top
% margem inf 2.5 cm: há 1,5 cm para foot, + 1 cm para bottom
% margem esq/dir 3 cm
\RequirePackage[a4paper,top=2cm,left=3cm,right=3cm,bottom=1.5cm]{geometry}


\parindent 1.27cm
\parskip   6pt

\flushbottom

% captions
\RequirePackage[bf,sf,footnotesize,hang]{caption}
\setlength{\captionmargin}{0.8cm}
\renewcommand{\captionfont}{\sffamily\footnotesize\bfseries}

% font
\RequirePackage{times}

[EMAIL PROTECTED]@[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

% new commands
\newcounter{instn}
\setcounter{instn}{1}
\newcommand{\instnum}{\arabic{instn}}
\newcommand{\inst}[1]{\ensuremath{^#1}}
\newcommand{\nextinstitute}{\\\mbox{}\\[-6pt] \addtocounter{instn}{1}\inst{\instnum}}
\newcommand{\email}[1]{\\\mbox{}\\[-6pt]\footnotesize\texttt{#1}}
\renewcommand{\and}{, }

% to avoid [...] in the bibliography
% \item[] instead of [EMAIL PROTECTED]
[EMAIL PROTECTED]@filesw
  {\let\protect\noexpand
   \immediate
   [EMAIL PROTECTED]
\renewenvironment{thebibliography}[1]
 {\section*{\refname
[EMAIL PROTECTED]
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
   [EMAIL PROTECTED]
\leftmargin\labelwidth
\advance\leftmargin\labelsep
%% changed!
   \itemindent -\leftmargin
   \itemsep 6pt
%%%
[EMAIL PROTECTED]@code
\usecounter{enumiv}%
[EMAIL PROTECTED]@empty
[EMAIL PROTECTED]@enumiv}}%
  \sloppy
  \clubpenalty4000
  [EMAIL PROTECTED] \clubpenalty
  \widowpenalty4000%
  [EMAIL PROTECTED]
 [EMAIL PROTECTED]
   [EMAIL PROTECTED]@warning{Empty `thebibliography' environment}}%
  \endlist}


% itens
\setlength\leftmargini   {1.27cm}
\setlength\leftmargin{\leftmargini}
\setlength\leftmarginii  {\leftmargini}
\setlength\leftmarginiii {\leftmargini}
\setlength\leftmarginiv  {\leftmargini}
\setlength  \labelsep{.5em}
\setlength  \labelwidth  {\leftmargini}
\addtolength\labelwidth  {-\labelsep}
[EMAIL PROTECTED]
\parsep 0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
\topsep 0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
[EMAIL PROTECTED]
[EMAIL PROTECTED]@listI
[EMAIL PROTECTED]
[EMAIL PROTECTED] {\leftmargin\leftmarginii
  \labelwidth\leftmarginii
  \advance\labelwidth-\labelsep
  \topsep0\p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@}
[EMAIL PROTECTED]
  \labelwidth\leftmarginiii
  \advance\labelwidth-\labelsep
  \topsep0\p@ [EMAIL PROTECTED]@[EMAIL PROTECTED]@
  \parsep\z@
  \partopsep \p@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@}


% sections
[EMAIL PROTECTED]@}%
   {-18\p@ [EMAIL PROTECTED] -4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {1\p@ [EMAIL PROTECTED] 4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {\normalfont\XIIIPT\bfseries\boldmath
\rightskip=\z@ [EMAIL PROTECTED] 8em\pretolerance=1 }}

[EMAIL PROTECTED]@}%
   {-6\p@ [EMAIL PROTECTED] -4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {1\p@ [EMAIL PROTECTED] 4\p@ [EMAIL PROTECTED] [EMAIL PROTECTED]
   {\normalfont\normalsize\bfseries\boldmath
\rightskip=\z@ [EMAIL PROTECTED] 8em\pretolerance=1 }}

\RequirePackage{titlesec}
\titlelabel{\thetitle.\hspace{1ex}}



% first page

\pagestyle{empty}

\newcommand{\authortag}[1]{$^{#1}$}

[EMAIL PROTECTED]

[EMAIL PROTECTED]
 %\null % isso dava um espaco extra antes do title
 \begin{center}
   %\vglue -6pt
   \vspace*{12pt}
  [EMAIL PROTECTED]
   \vglue 6pt plus 3pt minus 3pt
  {\normalsize
   [EMAIL PROTECTED]
   \vglue 6pt plus 3pt minus 3pt
  {\normalsize
   [EMAIL