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
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
New contributor
|
show 4 more comments
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
New contributor
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
@q49168elsarticle
uses Computer Modern by default, unless you pass thetimes
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 thetimes
option thenusepackage{newtxtext}
andusepackage{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
|
show 4 more comments
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
New contributor
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
fonts sectioning sections-paragraphs elsarticle
New contributor
New contributor
New contributor
asked 6 hours ago
q49168q49168
163
163
New contributor
New contributor
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
@q49168elsarticle
uses Computer Modern by default, unless you pass thetimes
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 thetimes
option thenusepackage{newtxtext}
andusepackage{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
|
show 4 more comments
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
@q49168elsarticle
uses Computer Modern by default, unless you pass thetimes
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 thetimes
option thenusepackage{newtxtext}
andusepackage{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
|
show 4 more comments
1 Answer
1
active
oldest
votes
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.
New contributor
(+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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
New contributor
(+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
add a comment |
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.
New contributor
(+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
add a comment |
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.
New contributor
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.
New contributor
New contributor
answered 4 hours ago
q49168q49168
163
163
New contributor
New contributor
(+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
add a comment |
(+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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 thetimes
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 thetimes
option thenusepackage{newtxtext}
andusepackage{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