How to use template
-
How can I use a journal template in the post or a HTML papge? Just like an online manuscript of a journal such as Elsevier.
-
Sorry for the delay.
I don’t know what’s the template you were using. May I suggest you to use a template actually, and show me the problem you were facing?
The Plugin LaTeX2HTML is designed to minic copy the
amsart
class style. I believe that it will work also for most the other LaTeX template. If not, please show me the problem.To use the plugin, just copy and paste your LaTeX source code into wordpress (the new version of wordpress is kind of inconvenient, since you need to past the raw code in HTML TEXT mode other than the Visual mode, so please use the older/classical WP editor).
Thank you very much for the reply. You know there are .cls files ‘classes’, and .sty files ‘style files’ for a journal template (such as AMS journal or Elsvier journal), and .bst ‘bib style files’.
On the other hand, it seems that the ‘Theorem environment, Proposition environment’ have been defined in this plugin, so I should use the defined environment and cannot use the one I defined already in a latex file.
It works well if I just write Latex code using this plugin, but I am trying to show the latex code in the style I want to use (like the Elsvier journal style or others). I just wander whether I change class style when I write a blog, and how if it is possible.
May I divide your question into the following two direction:
1. Journal class=>Blog
2. Blog=>Journal classIn case 1. The best practical is to use the template which I included in the Plugin, see the Plugin setting page>Support & Credit>A latex template. The following block
\usepackage[backrefs, msc-links, lite, abbrev, alphabetic]{amsrefs} \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} \newtheorem{cor}[thm]{Corollary} \newtheorem{claim}{Claim} \theoremstyle{definition} \newtheorem{defn}[thm]{Definition} \newtheorem{examp}{Example} \newtheorem{excs}[examp]{Exercise} \theoremstyle{remark} \newtheorem{rmk}[thm]{Remark} \newtheorem{answer}{Answer} \renewcommand{\theanswer}{\arabic{examp}.\arabic{answer}}
are where I defined the theorem like environments, and the citation style (which is based on
amsrefs
).So, if you want to post a blog by copy the raw latex code from a tex file, which is based on another journal style (the template of plugin is based on
amsart
), you should just replace your theorem names in the raw source by the theorem names I defined above. e.g.%in the journal submitted version of latex raw source \begin{theorem} The theorem content... \end{theorem}
which should be replace by
%in the blog post \begin{thm} The theorem content... \end{thm}
The
amsrefs
is almost compatible withbibtex
, you may ignore it at first.In the case 2. If you write a blog post based on the template of Plugin, and you want to submit to a journal, then just change the class will work:
\documentclass{amsart}
to\documentclass{journalclassname}
Thanks Van! Actually I am in the case 2. I want to make another journalclassname works. In fact, I want personalize the \documentclass and the theorem like environments. In a short word, how to make the following environment works by using your plugin
\begin{theory}
The theorem content…
\end{theory}
if I define
\newtheorem{theory}{Theorem}.I was hoping that putting something like this in the LaTeX preamble:
\newtheorem{Axiom}[thm]{Axiom} \newtheorem{Definition}[defn]{Definition}
would show some effect.
But looking at the source code, I realized that all environment variables for
l2h_latex_parse_thm
appear to be hardcoded. So there is no apparent way to extend this for e.g. axioms.Also no apparent way to do what @leiniu wants to do above.
Would it be possible to populate those parameters from a settings page like your LaTeX template page suggests?
- The topic ‘How to use template’ is closed to new replies.