Re: problem with creating layout file for some class
Thanks, now it seems everything works more or less correctly. Leslaw > Sorry, I hadn't realized that you were using 2.0.x, so I used layout > commands that are only valid in later versions. Use the attached. > > Richard
Re: problem with creating layout file for some class
On 09/10/2016 11:49 AM, Bieniasz Leslaw wrote: > > My attempts to open the new/converted LyX file cause a message > > (this is a translation; it may be not exact): > > > "The class cannot be loaded. As a result of the error in the document > class file: ijnam > > could not be loaded. A default document class will be used with a > default layout. > > LyX cannot produce a correct result". > > > The file is then opened, but indeed the file structure seems to be > different from the intended one. > Sorry, I hadn't realized that you were using 2.0.x, so I used layout commands that are only valid in later versions. Use the attached. Richard #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} Format 35 Input amsart.layout Style Author OptionalArgs 1 End Style URLAddress CopyStyle Address LabelString "URL Address:" End Style CommunicatedBy CopyStyle Address LabelString "Communicated By:" End Style Abstract LatexType Command End
Re: problem with creating layout file for some class
On 09/10/2016 11:49 AM, Bieniasz Leslaw wrote: > > My attempts to open the new/converted LyX file cause a message > > (this is a translation; it may be not exact): > > > "The class cannot be loaded. As a result of the error in the document > class file: ijnam > > could not be loaded. A default document class will be used with a > default layout. > > LyX cannot produce a correct result". > > > The file is then opened, but indeed the file structure seems to be > different from the intended one. > Sorry, I hadn't realized that you were using 2.0.x, so I used layout commands that are only valid in later versions. Use the attached. Richard #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} Format 35 Input amsart.layout Style Author OptionalArgs 1 End Style URLAddress CopyStyle Address LabelString "URL Address:" End Style CommunicatedBy CopyStyle Address LabelString "Communicated By:" End Style Abstract LatexType Command End
Re: problem with creating layout file for some class
My attempts to open the new/converted LyX file cause a message (this is a translation; it may be not exact): "The class cannot be loaded. As a result of the error in the document class file: ijnam could not be loaded. A default document class will be used with a default layout. LyX cannot produce a correct result". The file is then opened, but indeed the file structure seems to be different from the intended one. I stress that in my opinion the class has been installed correctly, as it works with TeXWorks. Also, there were no messages of this sort previously, before installing your layout file. So, I would rather suspect that something has to be changed in the layout file. My inability to import the original TeX file into LyX (after installing the layout file) seems to confirm this idea. Leslaw
Re: problem with creating layout file for some class
Here are the files in your LyX 2.2 version format. I need the format for 2.0.2. Leslaw On 2016-09-05 16:45, Richard Heck wrote: > Attached are a working layout and test file. The problem with the file you > sent was that some of the unknown commands were being imported as ERT in > Standard environments, which breaks the entire title block. > > Richard
Re: problem with creating layout file for some class
On 09/07/2016 03:46 AM, Bieniasz Leslaw wrote: > Unfortunately, an attempt to open the LyX file results in a message: > > C:/LyXTemp/lyx_tmpdir.gq2504/Buffer_convertLyXFormat. Ya254 is not a > LyX document. > > Another attempt, to import the original TeX file yields a message: > > An error occurred while running: tex2lyx -f "ijnam.tex" "ijnam.lyx" > > and nothing is read. > > Possibly there is some version incompatibility. I have LyX 2.0.2 > installed. > > Is there any way to solve the problem without installing a different > version? > If you send me the file back, I can convert it to 2.0.x format. Richard
Re: problem with creating layout file for some class
Thank you very much. I have copied the layout file and reconfigured LyX, apparently without any visible problems. Unfortunately, an attempt to open the LyX file results in a message: C:/LyXTemp/lyx_tmpdir.gq2504/Buffer_convertLyXFormat. Ya254 is not a LyX document. Another attempt, to import the original TeX file yields a message: An error occurred while running: tex2lyx -f "ijnam.tex" "ijnam.lyx" and nothing is read. Possibly there is some version incompatibility. I have LyX 2.0.2 installed. Is there any way to solve the problem without installing a different version? Leslaw --- *---* Dr. Leslaw Bieniasz, Faculty of Physics, Mathematics and Computer Science, Cracow University of Technology, ul. Warszawska 24, 31-155 Cracow, Poland. E-mail: nbbie...@cyf-kr.edu.pl If this address does not work, please try: leslaw.bieni...@pk.edu.pl *---* Interested in Computational Electrochemistry? Visit my web site: http://www.cyf-kr.edu.pl/~nbbienia *---* On 2016-09-05 16:45, Richard Heck wrote: > Attached are a working layout and test file. The problem with the file you > sent was that some of the unknown commands were being imported as ERT in > Standard environments, which breaks the entire title block. > > Richard > > On 09/03/2016 03:30 AM, Bieniasz Leslaw wrote: > > The layout file was exactly as you suggested in the message included below. > > Leslaw > > On 2016-08-13 17:21, Richard Heck wrote: > On 08/13/2016 07:22 AM, Bieniasz Leslaw wrote: Hi, > > I am still using LyX 2.0 under Windows Vista, with MikTeX 2.0. > > I am trying to use a LaTeX class provided by one scientific journal for > writing articles. I have installed the class, but I have a problem with > creating a *.layout file for LyX, that would work properly. > At the moment I use the following layout file: > > #% Do not delete the line below; configure depends on this > # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} > > # Input general definitions > Input stdclass.inc > Since the class file was "generated by modifying amsart.cls", your best > place to start would be: > > #% Do not delete the line below; configure depends on this > # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} > > Format 35 > > Input amsart.layout > > If this does not help matters, then it would help me to see the TeX file > that works. > > Richard > > PS Make sure to reply to the list.
Re: problem with creating layout file for some class
Attached are a working layout and test file. The problem with the file you sent was that some of the unknown commands were being imported as ERT in Standard environments, which breaks the entire title block. Richard On 09/03/2016 03:30 AM, Bieniasz Leslaw wrote: > > > The layout file was exactly as you suggested in the message included > below. > > Leslaw > > > > > On 2016-08-13 17:21, Richard Heck wrote: > >> On 08/13/2016 07:22 AM, Bieniasz Leslaw wrote: >>> Hi, >>> >>> I am still using LyX 2.0 under Windows Vista, with MikTeX 2.0. >>> >>> I am trying to use a LaTeX class provided by one scientific journal for >>> writing articles. I have installed the class, but I have a problem with >>> creating a *.layout file for LyX, that would work properly. >>> At the moment I use the following layout file: >>> >>> #% Do not delete the line below; configure depends on this >>> # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} >>> >>> # Input general definitions >>> Input stdclass.inc >> >> Since the class file was "generated by modifying amsart.cls", your best >> place to start would be: >> >> #% Do not delete the line below; configure depends on this >> # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} >> >> Format 35 >> >> Input amsart.layout >> >> If this does not help matters, then it would help me to see the TeX file >> that works. >> >> Richard >> >> PS Make sure to reply to the list. >> >> ijnam.lyx Description: application/lyx #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} Format 35 Input amsart.layout Style Author Argument 1 LabelString "Short Author|S" Tooltip "Short author which appears in the sidebar/header" EndArgument End Style URLAddress CopyStyle Address LabelString "URL Address:" End Style CommunicatedBy CopyStyle Address LabelString "Communicated By:" End Style Abstract LatexType Command End
Re: problem with creating layout file for some class
The layout file was exactly as you suggested in the message included below. Leslaw On 2016-08-13 17:21, Richard Heck wrote: > On 08/13/2016 07:22 AM, Bieniasz Leslaw wrote: > >> Hi, >> >> I am still using LyX 2.0 under Windows Vista, with MikTeX 2.0. >> >> I am trying to use a LaTeX class provided by one scientific journal for >> writing articles. I have installed the class, but I have a problem with >> creating a *.layout file for LyX, that would work properly. >> At the moment I use the following layout file: >> >> #% Do not delete the line below; configure depends on this >> # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} >> >> # Input general definitions >> Input stdclass.inc > > Since the class file was "generated by modifying amsart.cls", your best > place to start would be: > > #% Do not delete the line below; configure depends on this > # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} > > Format 35 > > Input amsart.layout > > If this does not help matters, then it would help me to see the TeX file > that works. > > Richard > > PS Make sure to reply to the list.
Re: problem with creating layout file for some class
On 08/18/2016 08:03 AM, Bieniasz Leslaw wrote: > Hello, > Is the problem solvable? I've been on vacation. I'll try to have a look soon. Richard
Re: problem with creating layout file for some class
Hello, Is the problem solvable? Leslaw > On 08/13/2016 02:17 PM, Bieniasz Leslaw wrote: >> Thank you. I did as you suggested, and there is some progress, as the >> title >> is now visible in the pdf file, but some other details (abstract, author >> names, addresses, etc.) are still wrong. I am attaching the >> ijnam.tex file which is compiled to the seemingly correct >> ijnam_TexWorks.pdf >> file (also attached) when using TexWorks, and the result of compiling >> using LyX (file ijnam.pdf). > > Can you also post whatever LyX file you are trying to use? > >> PS. Is there any way to view messages in the list via www, as this was >> possible some time ago? The links indicated in your (LyX) web pages do >> not work. > > Will this > https://www.mail-archive.com/lyx-users@lists.lyx.org/ > do? > > Richard
Re: problem with creating layout file for some class
I am attaching also the LyX file. Leslaw > On 08/13/2016 02:17 PM, Bieniasz Leslaw wrote: >> Thank you. I did as you suggested, and there is some progress, as the >> title >> is now visible in the pdf file, but some other details (abstract, author >> names, addresses, etc.) are still wrong. I am attaching the >> ijnam.tex file which is compiled to the seemingly correct >> ijnam_TexWorks.pdf >> file (also attached) when using TexWorks, and the result of compiling >> using LyX (file ijnam.pdf). > > Can you also post whatever LyX file you are trying to use? > >> PS. Is there any way to view messages in the list via www, as this was >> possible some time ago? The links indicated in your (LyX) web pages do >> not work. > > Will this > https://www.mail-archive.com/lyx-users@lists.lyx.org/ > do? > > Richard > > ijnam.lyx Description: application/lyx
Re: problem with creating layout file for some class
On 08/13/2016 02:17 PM, Bieniasz Leslaw wrote: > Thank you. I did as you suggested, and there is some progress, as the title > is now visible in the pdf file, but some other details (abstract, author > names, addresses, etc.) are still wrong. I am attaching the > ijnam.tex file which is compiled to the seemingly correct ijnam_TexWorks.pdf > file (also attached) when using TexWorks, and the result of compiling > using LyX (file ijnam.pdf). Can you also post whatever LyX file you are trying to use? > PS. Is there any way to view messages in the list via www, as this was > possible some time ago? The links indicated in your (LyX) web pages do not > work. Will this https://www.mail-archive.com/lyx-users@lists.lyx.org/ do? Richard
Re: problem with creating layout file for some class
On 08/13/2016 02:49 PM, Steve Litt wrote: > On Sat, 13 Aug 2016 11:21:31 -0400 > Richard Heckwrote: > > >> Since the class file was "generated by modifying amsart.cls", your >> best place to start would be: >> >> #% Do not delete the line below; configure depends on this >> # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} >> >> Format 35 > See, this has boggled my mind since the 20th century. How did you just > knowingly pick format 35 out of thin air? There are quadrillions of formats: > How did you know to use 35? It was the current format for the 2.0.x series. I found that out by looking at the git source for the 2.0.0 tag. The current format for whatever version you are using can be found by looking at any layout files shipped with it. Richard
Re: problem with creating layout file for some class
On 08/13/2016 07:22 AM, Bieniasz Leslaw wrote: > Hi, > > I am still using LyX 2.0 under Windows Vista, with MikTeX 2.0. > > I am trying to use a LaTeX class provided by one scientific journal for > writing articles. I have installed the class, but I have a problem with > creating a *.layout file for LyX, that would work properly. > At the moment I use the following layout file: > > #% Do not delete the line below; configure depends on this > # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} > > # Input general definitions > Input stdclass.inc Since the class file was "generated by modifying amsart.cls", your best place to start would be: #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[ijnam]{amsart (ijnam)} Format 35 Input amsart.layout If this does not help matters, then it would help me to see the TeX file that works. Richard PS Make sure to reply to the list.