LyXarticle-hermes | how to use the hermes class with LyX

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
asma
Posts: 2
Joined: Mon Feb 27, 2012 3:46 pm

article-hermes | how to use the hermes class with LyX

Post by asma »

Hi everybody,
Pleaaaaaase tell me : How to use the class document \documentclass{article-hermes}
in Lyx.
I've tried to add the hermes layout in layouts then reconfigure, print "texhash" in cmd and re-open Lyx, But that was in vain !!!!!!!!!!!!
It was not recognised !!!!!

Please Helpppppp !!!
I don't want to use Latex and its editors to use this document class

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: hermes class-document

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Do you expect the same writing style in answers, with dozens exclamation marks? Do you use it in your documents, or just when talking to us here? If not, then please also use a normal style here. The post above is kind of deterrent in its language and I guess that few readers would actually consider writing an answer. Just an advice. You still could edit your question.

Stefan
LaTeX.org admin
asma
Posts: 2
Joined: Mon Feb 27, 2012 3:46 pm

Re: hermes class-document

Post by asma »

Ok, Thx for the advice.
I've written like that because I haven't really found a solution after long hours of searchs.
I'm pressed with time and still have no solution.

I'd be so grateful to whom helps me.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

article-hermes | how to use the hermes class with LyX

Post by Stefan Kottwitz »

Perhaps add further information, such as error messages and the .log file, and your used template perhaps together with your test .lyx file as attachment to a post. Especially when there's time pressure, it's good to post as many information as possible. Otherwise you loose time, as people have to ask for details.

Btw. here is a very good place for getting LaTeX help. Regarding LyX, we try to help here as well, but for specific topics it could be good to ask in the LyX users mailing list.

Stefan
LaTeX.org admin
thibaud74
Posts: 13
Joined: Fri May 27, 2011 4:33 pm

article-hermes | how to use the hermes class with LyX

Post by thibaud74 »

Hi,

I've the same problem. I use Ubuntu Natty and this package that contains bst and cls files : http://dn.revuesonline.com/revues/HermesLatex.zip

I copied cls file in those folders :
/usr/local/share/texmf/tex/latex/hermes/
/usr/share/texmf/tex/latex/hermes
~/texmf/

Then I rebuilt the base with texhash :

Code: Select all

sudo texhash
texhash: Updating /usr/local/share/texmf/ls-R...
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
texhash: Updating /var/lib/texmf/ls-R-TEXLIVE...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Done.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
How can I verify that this class is understood by texlive ? With Lyx, I do Tools/Reconfigure and restart it, but when I see the list of class (Tools/Information tex) I don't find my hermes-journal class.

Is it a problem resolved with texhash, are paths good ?

Thanks a lot,
Thibaud.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

article-hermes | how to use the hermes class with LyX

Post by Stefan Kottwitz »

Hi Thibaud,
thibaud74 wrote:How can I verify that this class is understood by texlive?
you can check it by

Code: Select all

kpsewhich hermes-journal.sty
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
at the command prompt. It should return the full path and file name of the class if the TeX installation knows about it.

Stefan
LaTeX.org admin
thibaud74
Posts: 13
Joined: Fri May 27, 2011 4:33 pm

article-hermes | how to use the hermes class with LyX

Post by thibaud74 »

Thanks Stephan. The command give nothing. In fact, I have no sty files with hermes-journal, only cls. Do you think I copied the class in the bad folder ? I looked /etc/texmf/texmf.cnf to find paths, they seem be good.
When I launch texhash it indicates ls-R files. So when I look /usr/local/share/texmf/ls-R , hermes-journal.cls seems have been found :

Code: Select all

$ cat /usr/local/share/texmf/ls-R
% ls-R -- filename database for kpathsea; do not change this line.
./:
.:
ls-R
tex
./tex:
latex
./tex/latex:
hermes
hermes-journal.cls
./tex/latex/hermes:
hermes-journal.cls
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: hermes class-document

Post by Stefan Kottwitz »

Perhaps post the .log file of a compiler run as an attachment to a post, this information could help.

Stefan
LaTeX.org admin
thibaud74
Posts: 13
Joined: Fri May 27, 2011 4:33 pm

article-hermes | how to use the hermes class with LyX

Post by thibaud74 »

I tried with a local class, but it seems to have a confusion between two classes :

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2012.2.28) 13 MAR 2012 20:46
entering extended mode
%&-line parsing enabled.
**nouveau1.tex
(./nouveau1.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, farsi, arabic, ibycus, monogreek, greek, ancientgreek, loaded.
(/home/hulin/texmf/tex/latex/article-hermes.cls
LaTeX Warning: You have requested document class `article-hermes',
but the document class provides `./hermes-journal'.
Document Class: ./hermes-journal 2012/01/24, version 3.1.2, LaTeX2e document cl
ass for journal published by Hermes Sciences Publication
(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
)
hermes-journal.cls: ``english'' option enabled
hermes-journal.cls WARNING: ``french'' option is unknown
Valid options: cropmarks, editorMode, english
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

article-hermes | how to use the hermes class with LyX

Post by justdeath »

Download the file as given.
http://dn.revuesonline.com/revues/HermesLatex.zip

Go to C:\texlive\2011\texmf-dist\tex\latex\
and put the directory from the archive there.
Rename it to hermes, so the complete path is:
C:\texlive\2011\texmf-dist\tex\latex\hermes

And inside you have the hermes-journal.cls

For MiKTeX: C:\Program Files\MiKTeX 2.9\miktex\tex\latex\hermes
For Linux: /usr/local/texlive/2011/texmf-dist/tex/latex/hermes

Open command prompt, run texhash.

Create an empty text file, put the following code inside:

Code: Select all

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[hermes-journal]{article (hermes-journal)}
# Input general definitions
Input stdclass.inc
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Save it as hermes-journal.layout
Copy the file to C:\Program Files\LyX20\Resources\layouts
On Linux: ~/.lyx/layouts, or similar directory, check yourself.

Run Lyx, then Tools -> Reconfigure. Restart Lyx.

Run Lyx again, open the desired document, select Document -> Settings,
go to Document Class and select the layout called article (hermes-journal),
also go to Language and select Encoding -> Other -> ASCII from the drop down menu.

Save and close the windows. Compile your document. Voila!

From:
http://stefaanlippens.net/customLaTeXclassesinLyX
http://www.paulkiddie.com/2010/02/addin ... vironment/
http://lyx.475766.n2.nabble.com/LaTeX-E ... 30429.html

Nikolay
Post Reply