For refering a proof to a theory I know there are other ways to use but I want to know how to use by this " \newproof{pot}{Proof of Theorem \ref{thm2}}". If I put this in preamble and make proof environment by \begin{pot} … \end{pot}, it will refer all proof to thm2.
[Tex/LaTex] how can I use “\newproof{pot}{Proof of Theorem \ref{thm2}}” in elsarticle
elsarticle
Related Solutions
The width of the tabular can be set by right-clicking in it, selecting More --> Settings. For the Table-wide settings set the width to 100% of text width.
The distance between the caption text and table/figure can be set with the skip=<distance>
option to caption
, so you could add that option, e.g.
\usepackage[labelfont=bf,labelsep=newline,
justification=raggedright,singlelinecheck=false,
font=small ,skip=0pt]{caption}
but that will affect the figures as well. Instead, do this:
\usepackage[labelfont=bf,labelsep=newline,
justification=raggedright,singlelinecheck=false,
font=small]{caption}
\captionsetup[table]{skip=0pt}
This will change that skip for just the table captions.
I cannot say why the font size is different. Possibly some other package you're loading that interferes. If it is still a problem, I recommend asking a new question about just this issue.
No one wanted to answer my question, there were just some comments debating whether documentation is adequate or not (notably without any links to support claims of adequate documentation). So I will try to answer it myself.
The first trick is to use a titlepage, where you can design the first page of the document regardless of how the rest looks. I ended up using this to just put some header picture and text, title, author, date, with some nice formatting. So I diverged from my original intention to make a copy of the Elsevier article, which has both abstract and start of the article text on the front page. But by using the titlepage tag, I don't need to learn how to write a document class, because I can just use the standard article class (probably works with report class too I guess).
\begin{titlepage}
... code for first page ...
\end{titlepage}
The second trick is to use minipages. It can be seen in the "header" example I linked in the question, but can also be used to set a list of authors to the left and then the abstract to the right of that. Here is an example to put two authors spaced out left and right side of the page using minipages:
\begin{minipage}[t]{0.5\textwidth}
\begin{flushleft}
\large
\emph{Author:}
\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Author
Mr.~Dan-Erik \textsc{Lindberg}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Author
\end{flushleft}
\end{minipage}
%
\begin{minipage}[t]{0.3\textwidth}
\begin{flushright}
\large
\emph{Co-author:}
\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Co-author
Dr. Firstname \textsc{Surname}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Co-author
\end{flushright}
\end{minipage}
These few things should be enough to put together any layout. But there are some additional things you might want to look at. Such as, the package xcolor with the colorbox and parbox combination, for an easy way to put boxes with background color and white text (for example) or similar layout things.
Since I ended up in an entirely different place than where I started, I don't really see a reason to post my final solution here, because it isn't an answer to the question, but the above tips should get anyone started to produce something similar to Elsevier et al.
Best Answer
You can define a generic environment using
\newproof
that has a text depending on a macro that can be redefined.