On 2/19/21 6:15 AM, Latex wrote:
Dear Enrico,
Thank you very much!
We have tested again, Everything is good now.
But we have a query about template maintain or update.
If we have to update template including cls and template.lyx (such as, in template.lyx, Original
title "This is the Capitalized Title of the Paper", we hope keep it as our latex
template, changing it to be "Title").
Templates are just ordinary LyX files. So you can open the template in
LyX and modify it as you would any LyX file. (They are also just text
files and can be edited as such, though it is easier to make mistakes
then.) The layout file is a text file and can be modified using any text
editor.
How can we do? Or if in emergency, who can we contact to help update
template.lyx, mdpi.layout, mdpi.cls?
It will always be fine to post here.
In the following time, we will launch lyx mdpi template on our home page. We
need to provide a brief instruction for LyX, do you have any suggestion about
this instruction?
If you want to provide a download link for LyX, then use
https://www.lyx.org/Download. As for the layout and template, something
like this should do:
Put the mdpi.layout file into the layouts/ subdirectory of your LyX user
directory (whose location can be found in the About LyX dialog). The
template should be put into the templates/ subdirectory.
Riki
----- Original Message -----
From: "Enrico Forestieri" <[email protected]>
To: "Latex" <[email protected]>
Cc: "rikiheck" <[email protected]>, "lyx-devel" <[email protected]>, "xiu li" <[email protected]>, "daum" <[email protected]>,
"jie zhang" <[email protected]>, "howland wu" <[email protected]>, "yi huang" <[email protected]>
Sent: Thursday, February 11, 2021 1:05:20 AM
Subject: Re: Apply for LyX Template Design for MDPI Publishing Ltd.
On Wed, Feb 10, 2021 at 05:11:04AM +0100, Latex wrote:
Dear Enrico,
Thank you very much again!
You're welcome!
We ran the lyx template and found there was a compile bug warning.
Please see the attached picture.
But if we run our latex template firstly, lyx template can be compiled
normally. Why is that? I saw it can't identify .eps picture directly,
right? Or what's wrong with our operation for lyx?
Sorry, it was an oversight on my part. I first ran pdflatex on the latex
template and thus was not aware of the problem. When a postscript file
is included, pdflatex launches epstopdf to convert it. So it executes
the command "epstopdf ----outfile=Definitions/logo-orcid-eps-converted-to.pdf
Definitions/logo-orcid.eps" and then includes the converted graphics.
However, LyX typesets the document by making a copy of all required
files to a temporary directory, so that the document directory is not
polluted. Of course, LyX can only copy the files it is aware of, i.e.,
the ones that are inserted by using the GUI. The files included by the
class cannot be copied because they are unknown. Anyway, LyX accounts
for that by including the document directory to the TEXINPUTS
environment variable used by TeX. In this way, TeX can find all required
files.
Unfortunately, epstopdf is an external program that does not follow the
same rules as TeX for finding the required files and thus it fails.
The simplest way for dealing with this is not specifying the extension
of the graphics to be included and provide all formats that can be
included by a given TeX backend. For example, if a latex document
contains \includegraphics{foo} and the files foo.eps and foo.pdf are
provided, then the dvi backend will use foo.eps and the pdf backend will
use foo.pdf, without the need of any conversion.
So, what I have done is removing all .eps extensions from mdpi.cls and
providing the necessary .pdf formats. In the attached archive you can
find only the files that I modified or added. Other than the .pdf files
and the modified mdpi.cls file, you can also find a new .layout file
with the correction of a small glitch and new template.lyx where I
simply added instructions on how to obtain the various \citeXXX variants
for citations. I am also attaching a diff showing what has changed.
And another question is about the argument in our latex template.
\documentclass[journal,article,submit,moreauthors,pdftex]{Definitions/mdpi}
In the command, all arguments in square brackets can be changed. Such
as "submit“ can be changed to "accept", "journal" can be changed to a
designated journal name, others are same.
When the arguments has been changed, they can produce a different
format pdf file. If we need to change them, how to modify lyx
template? or .layout file?
The class options can be found in
Document → Settings → Document Class → Custom
and can be easily changed there. Essentially, here you have all the
arguments that go in the square brackets of \documentclass.
Sorry for the inconvenience
--
lyx-devel mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-devel