Section styling similar to the elsarticle classadd elsarticle class to texstudioPlacing date on the front...

An Undercover Army

What can I do if someone tampers with my SSH public key?

Rationale to prefer local variables over instance variables?

How do we objectively assess if a dialogue sounds unnatural or cringy?

Regex Too Complicated - replaceAll - large strings preprocessed before deserialize

Is every open circuit a capacitor?

Is divide-by-zero a security vulnerability?

Searching for a string that contains the file name

Sundering Titan and basic normal lands and snow lands

3.5% Interest Student Loan or use all of my savings on Tuition?

Paper published similar to PhD thesis

Why do phishing e-mails use faked e-mail addresses instead of the real one?

Where does the proton come in the reduction of NAD?

Convert an array of objects to array of the objects' values

Deal the cards to the players

Split a number into equal parts given the number of parts

Why are special aircraft used for the carriers in the United States Navy?

Is this nominative case or accusative case?

Can a space-faring robot still function over a billion years?

Can a Mexican citizen living in US under DACA drive to Canada?

“I had a flat in the centre of town, but I didn’t like living there, so …”

Is there a math equivalent to the conditional ternary operator?

How to roleplay my character's ethics according to the DM when I don't understand those ethics?

Being asked to review a paper in conference one has submitted to



Section styling similar to the elsarticle class


add elsarticle class to texstudioPlacing date on the front matter (elsarticle document class)Introduction part interleaved with the abstract and i am using elsarticle classElsarticle - BibliographyChange the label on authors in elsarticle class documentBibTex bibliography for elsarticle classSome issues in elsarticle-num bibliography style for elsarticle classMany corresponding authors in elsarticle classResize Table, elsarticle document classElsarticle class title note problem













1















Since I have become quite used to the style of Elsevier articles, I would like to adopt a similar style also for notes that are not intended for submission. In particular, I attempted to mimic the font selection as well as the paragraph and section styling. I did, however, find it difficult to extract the relevant declarations from the elsarticle.cls. Therefore I was hoping for a more trained eye to read them out, or point me to a similar template. Here's a direct link to the class file.










share|improve this question







New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Welcome to TeX.SX! Look for @startsection in the class file. You'll find the relevant styling for each sectioning command. @startsection is a LaTeX internal, so you can just copy that definition to your document and it'll work.

    – Phelype Oleinik
    5 hours ago











  • Thanks, that looks very promising! Do you know where to look for the fonts?

    – q49168
    5 hours ago











  • You have to ping @PhelypeOleinik like I just did to get a prompt about your message. Welcome from me too. Also: usually in latex the font is chosen by using a package... If this is commented inside the documentclass code, you can check the output pdf from its properties and then just search "latex <font name>" to find the appropriate package except if you are willing to use XeLaTeX (where the method of using a specific font is easier if this is available on your operating system)

    – koleygr
    5 hours ago













  • @q49168 elsarticle uses Computer Modern by default, unless you pass the times option, in which case it uses a close of Times New Roman. Computer Modern is the default in LaTeX, so you don't need to do anything. If you use the times option then usepackage{newtxtext} and usepackage{newtxmath} (elsarticle actually uses another package, which is a deprecated version of the ones I mentioned).

    – Phelype Oleinik
    5 hours ago






  • 1





    @koleygr Just so that you know, your last comment didn't send a notification. Don't ask me ¯_(ツ)_/¯

    – Phelype Oleinik
    4 hours ago
















1















Since I have become quite used to the style of Elsevier articles, I would like to adopt a similar style also for notes that are not intended for submission. In particular, I attempted to mimic the font selection as well as the paragraph and section styling. I did, however, find it difficult to extract the relevant declarations from the elsarticle.cls. Therefore I was hoping for a more trained eye to read them out, or point me to a similar template. Here's a direct link to the class file.










share|improve this question







New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Welcome to TeX.SX! Look for @startsection in the class file. You'll find the relevant styling for each sectioning command. @startsection is a LaTeX internal, so you can just copy that definition to your document and it'll work.

    – Phelype Oleinik
    5 hours ago











  • Thanks, that looks very promising! Do you know where to look for the fonts?

    – q49168
    5 hours ago











  • You have to ping @PhelypeOleinik like I just did to get a prompt about your message. Welcome from me too. Also: usually in latex the font is chosen by using a package... If this is commented inside the documentclass code, you can check the output pdf from its properties and then just search "latex <font name>" to find the appropriate package except if you are willing to use XeLaTeX (where the method of using a specific font is easier if this is available on your operating system)

    – koleygr
    5 hours ago













  • @q49168 elsarticle uses Computer Modern by default, unless you pass the times option, in which case it uses a close of Times New Roman. Computer Modern is the default in LaTeX, so you don't need to do anything. If you use the times option then usepackage{newtxtext} and usepackage{newtxmath} (elsarticle actually uses another package, which is a deprecated version of the ones I mentioned).

    – Phelype Oleinik
    5 hours ago






  • 1





    @koleygr Just so that you know, your last comment didn't send a notification. Don't ask me ¯_(ツ)_/¯

    – Phelype Oleinik
    4 hours ago














1












1








1








Since I have become quite used to the style of Elsevier articles, I would like to adopt a similar style also for notes that are not intended for submission. In particular, I attempted to mimic the font selection as well as the paragraph and section styling. I did, however, find it difficult to extract the relevant declarations from the elsarticle.cls. Therefore I was hoping for a more trained eye to read them out, or point me to a similar template. Here's a direct link to the class file.










share|improve this question







New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Since I have become quite used to the style of Elsevier articles, I would like to adopt a similar style also for notes that are not intended for submission. In particular, I attempted to mimic the font selection as well as the paragraph and section styling. I did, however, find it difficult to extract the relevant declarations from the elsarticle.cls. Therefore I was hoping for a more trained eye to read them out, or point me to a similar template. Here's a direct link to the class file.







fonts sectioning sections-paragraphs elsarticle






share|improve this question







New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 6 hours ago









q49168q49168

163




163




New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    Welcome to TeX.SX! Look for @startsection in the class file. You'll find the relevant styling for each sectioning command. @startsection is a LaTeX internal, so you can just copy that definition to your document and it'll work.

    – Phelype Oleinik
    5 hours ago











  • Thanks, that looks very promising! Do you know where to look for the fonts?

    – q49168
    5 hours ago











  • You have to ping @PhelypeOleinik like I just did to get a prompt about your message. Welcome from me too. Also: usually in latex the font is chosen by using a package... If this is commented inside the documentclass code, you can check the output pdf from its properties and then just search "latex <font name>" to find the appropriate package except if you are willing to use XeLaTeX (where the method of using a specific font is easier if this is available on your operating system)

    – koleygr
    5 hours ago













  • @q49168 elsarticle uses Computer Modern by default, unless you pass the times option, in which case it uses a close of Times New Roman. Computer Modern is the default in LaTeX, so you don't need to do anything. If you use the times option then usepackage{newtxtext} and usepackage{newtxmath} (elsarticle actually uses another package, which is a deprecated version of the ones I mentioned).

    – Phelype Oleinik
    5 hours ago






  • 1





    @koleygr Just so that you know, your last comment didn't send a notification. Don't ask me ¯_(ツ)_/¯

    – Phelype Oleinik
    4 hours ago














  • 1





    Welcome to TeX.SX! Look for @startsection in the class file. You'll find the relevant styling for each sectioning command. @startsection is a LaTeX internal, so you can just copy that definition to your document and it'll work.

    – Phelype Oleinik
    5 hours ago











  • Thanks, that looks very promising! Do you know where to look for the fonts?

    – q49168
    5 hours ago











  • You have to ping @PhelypeOleinik like I just did to get a prompt about your message. Welcome from me too. Also: usually in latex the font is chosen by using a package... If this is commented inside the documentclass code, you can check the output pdf from its properties and then just search "latex <font name>" to find the appropriate package except if you are willing to use XeLaTeX (where the method of using a specific font is easier if this is available on your operating system)

    – koleygr
    5 hours ago













  • @q49168 elsarticle uses Computer Modern by default, unless you pass the times option, in which case it uses a close of Times New Roman. Computer Modern is the default in LaTeX, so you don't need to do anything. If you use the times option then usepackage{newtxtext} and usepackage{newtxmath} (elsarticle actually uses another package, which is a deprecated version of the ones I mentioned).

    – Phelype Oleinik
    5 hours ago






  • 1





    @koleygr Just so that you know, your last comment didn't send a notification. Don't ask me ¯_(ツ)_/¯

    – Phelype Oleinik
    4 hours ago








1




1





Welcome to TeX.SX! Look for @startsection in the class file. You'll find the relevant styling for each sectioning command. @startsection is a LaTeX internal, so you can just copy that definition to your document and it'll work.

– Phelype Oleinik
5 hours ago





Welcome to TeX.SX! Look for @startsection in the class file. You'll find the relevant styling for each sectioning command. @startsection is a LaTeX internal, so you can just copy that definition to your document and it'll work.

– Phelype Oleinik
5 hours ago













Thanks, that looks very promising! Do you know where to look for the fonts?

– q49168
5 hours ago





Thanks, that looks very promising! Do you know where to look for the fonts?

– q49168
5 hours ago













You have to ping @PhelypeOleinik like I just did to get a prompt about your message. Welcome from me too. Also: usually in latex the font is chosen by using a package... If this is commented inside the documentclass code, you can check the output pdf from its properties and then just search "latex <font name>" to find the appropriate package except if you are willing to use XeLaTeX (where the method of using a specific font is easier if this is available on your operating system)

– koleygr
5 hours ago







You have to ping @PhelypeOleinik like I just did to get a prompt about your message. Welcome from me too. Also: usually in latex the font is chosen by using a package... If this is commented inside the documentclass code, you can check the output pdf from its properties and then just search "latex <font name>" to find the appropriate package except if you are willing to use XeLaTeX (where the method of using a specific font is easier if this is available on your operating system)

– koleygr
5 hours ago















@q49168 elsarticle uses Computer Modern by default, unless you pass the times option, in which case it uses a close of Times New Roman. Computer Modern is the default in LaTeX, so you don't need to do anything. If you use the times option then usepackage{newtxtext} and usepackage{newtxmath} (elsarticle actually uses another package, which is a deprecated version of the ones I mentioned).

– Phelype Oleinik
5 hours ago





@q49168 elsarticle uses Computer Modern by default, unless you pass the times option, in which case it uses a close of Times New Roman. Computer Modern is the default in LaTeX, so you don't need to do anything. If you use the times option then usepackage{newtxtext} and usepackage{newtxmath} (elsarticle actually uses another package, which is a deprecated version of the ones I mentioned).

– Phelype Oleinik
5 hours ago




1




1





@koleygr Just so that you know, your last comment didn't send a notification. Don't ask me ¯_(ツ)_/¯

– Phelype Oleinik
4 hours ago





@koleygr Just so that you know, your last comment didn't send a notification. Don't ask me ¯_(ツ)_/¯

– Phelype Oleinik
4 hours ago










1 Answer
1






active

oldest

votes


















1














Alright, so thanks to Phelype Oleinik the snippet below styles sections the way that the elsarticle class does.



makeatletter
renewcommandsection{@startsection {section}{1}{z@}%
{18p@ @plus 6p@ @minus 3p@}%
{9p@ @plus 6p@ @minus 3p@}%
{normalsizebfseriesboldmath}}
renewcommandsubsection{@startsection{subsection}{2}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{3p@ @plus 6p@ @minus 3p@}%
{normalfontnormalsizeitshape}}
renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{p@}%
{normalfontnormalsizeitshape}}
makeatother


Headings of environments from the amsthm package are changed to small caps. For example:



newtheorem{theorem}{normalfontscshape Theorem}


Also, as kolegyr mentioned, Elsevier simply uses the default font (Computer Modern) unless one passes the times option, in which case the font resembles Times New Roman.






share|improve this answer








New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • (+1) for the answer but I didn't mentioned anything about Elsevier fonts, @Phelipe did... I just told about a general approach of finding a font of any template...

    – koleygr
    2 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






q49168 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478201%2fsection-styling-similar-to-the-elsarticle-class%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Alright, so thanks to Phelype Oleinik the snippet below styles sections the way that the elsarticle class does.



makeatletter
renewcommandsection{@startsection {section}{1}{z@}%
{18p@ @plus 6p@ @minus 3p@}%
{9p@ @plus 6p@ @minus 3p@}%
{normalsizebfseriesboldmath}}
renewcommandsubsection{@startsection{subsection}{2}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{3p@ @plus 6p@ @minus 3p@}%
{normalfontnormalsizeitshape}}
renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{p@}%
{normalfontnormalsizeitshape}}
makeatother


Headings of environments from the amsthm package are changed to small caps. For example:



newtheorem{theorem}{normalfontscshape Theorem}


Also, as kolegyr mentioned, Elsevier simply uses the default font (Computer Modern) unless one passes the times option, in which case the font resembles Times New Roman.






share|improve this answer








New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • (+1) for the answer but I didn't mentioned anything about Elsevier fonts, @Phelipe did... I just told about a general approach of finding a font of any template...

    – koleygr
    2 hours ago
















1














Alright, so thanks to Phelype Oleinik the snippet below styles sections the way that the elsarticle class does.



makeatletter
renewcommandsection{@startsection {section}{1}{z@}%
{18p@ @plus 6p@ @minus 3p@}%
{9p@ @plus 6p@ @minus 3p@}%
{normalsizebfseriesboldmath}}
renewcommandsubsection{@startsection{subsection}{2}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{3p@ @plus 6p@ @minus 3p@}%
{normalfontnormalsizeitshape}}
renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{p@}%
{normalfontnormalsizeitshape}}
makeatother


Headings of environments from the amsthm package are changed to small caps. For example:



newtheorem{theorem}{normalfontscshape Theorem}


Also, as kolegyr mentioned, Elsevier simply uses the default font (Computer Modern) unless one passes the times option, in which case the font resembles Times New Roman.






share|improve this answer








New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • (+1) for the answer but I didn't mentioned anything about Elsevier fonts, @Phelipe did... I just told about a general approach of finding a font of any template...

    – koleygr
    2 hours ago














1












1








1







Alright, so thanks to Phelype Oleinik the snippet below styles sections the way that the elsarticle class does.



makeatletter
renewcommandsection{@startsection {section}{1}{z@}%
{18p@ @plus 6p@ @minus 3p@}%
{9p@ @plus 6p@ @minus 3p@}%
{normalsizebfseriesboldmath}}
renewcommandsubsection{@startsection{subsection}{2}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{3p@ @plus 6p@ @minus 3p@}%
{normalfontnormalsizeitshape}}
renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{p@}%
{normalfontnormalsizeitshape}}
makeatother


Headings of environments from the amsthm package are changed to small caps. For example:



newtheorem{theorem}{normalfontscshape Theorem}


Also, as kolegyr mentioned, Elsevier simply uses the default font (Computer Modern) unless one passes the times option, in which case the font resembles Times New Roman.






share|improve this answer








New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










Alright, so thanks to Phelype Oleinik the snippet below styles sections the way that the elsarticle class does.



makeatletter
renewcommandsection{@startsection {section}{1}{z@}%
{18p@ @plus 6p@ @minus 3p@}%
{9p@ @plus 6p@ @minus 3p@}%
{normalsizebfseriesboldmath}}
renewcommandsubsection{@startsection{subsection}{2}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{3p@ @plus 6p@ @minus 3p@}%
{normalfontnormalsizeitshape}}
renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
{12p@ @plus 6p@ @minus 3p@}%
{p@}%
{normalfontnormalsizeitshape}}
makeatother


Headings of environments from the amsthm package are changed to small caps. For example:



newtheorem{theorem}{normalfontscshape Theorem}


Also, as kolegyr mentioned, Elsevier simply uses the default font (Computer Modern) unless one passes the times option, in which case the font resembles Times New Roman.







share|improve this answer








New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 4 hours ago









q49168q49168

163




163




New contributor




q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






q49168 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • (+1) for the answer but I didn't mentioned anything about Elsevier fonts, @Phelipe did... I just told about a general approach of finding a font of any template...

    – koleygr
    2 hours ago



















  • (+1) for the answer but I didn't mentioned anything about Elsevier fonts, @Phelipe did... I just told about a general approach of finding a font of any template...

    – koleygr
    2 hours ago

















(+1) for the answer but I didn't mentioned anything about Elsevier fonts, @Phelipe did... I just told about a general approach of finding a font of any template...

– koleygr
2 hours ago





(+1) for the answer but I didn't mentioned anything about Elsevier fonts, @Phelipe did... I just told about a general approach of finding a font of any template...

– koleygr
2 hours ago










q49168 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















q49168 is a new contributor. Be nice, and check out our Code of Conduct.













q49168 is a new contributor. Be nice, and check out our Code of Conduct.












q49168 is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478201%2fsection-styling-similar-to-the-elsarticle-class%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

Castillo d'Acher Características Menú de navegación

Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...