Formatting section, subsection, subsubsection, paragraph titles and text
Background: I did my master's thesis 18 years ago in LaTeX, but basically haven't touched it since.
I am trying to format a xelatex
document to look like the following
sample: 1
So the short question is what would be the easiest way to do this?
Ideally it would be nice to use section
, subsection
, subsubsection
etc., so that I can still generate a toc and use the section names in the header, etc. But at this point, since the .tex
file is going to be computer generated, I'd be open to just viewing each of the lines as a paragraph and just styling them all individually to look like this.
I can go over what I've tried, basically I've spent a couple days trying to modify the commands section
, subsection
, etc using renewcommand
like (where 1
is a .otf
font that I've defined:
renewcommandsection{@startsection {section}{1}{z@}%
{-3.5ex @plus -1ex @minus -.2ex}%
{2.3ex @plus .2ex}%
{1bfseriessetlength{parskip}{0em}}}%
But I can't even seem to get the section to use the right font, be bold and italic when I need it to be, and adjust the margins around the title. So at this point I would love at least a big picture idea of how to tackle this problem (although if there's an easy solution, I'll take it). Thanks for considering!
xetex formatting sections-paragraphs
add a comment |
Background: I did my master's thesis 18 years ago in LaTeX, but basically haven't touched it since.
I am trying to format a xelatex
document to look like the following
sample: 1
So the short question is what would be the easiest way to do this?
Ideally it would be nice to use section
, subsection
, subsubsection
etc., so that I can still generate a toc and use the section names in the header, etc. But at this point, since the .tex
file is going to be computer generated, I'd be open to just viewing each of the lines as a paragraph and just styling them all individually to look like this.
I can go over what I've tried, basically I've spent a couple days trying to modify the commands section
, subsection
, etc using renewcommand
like (where 1
is a .otf
font that I've defined:
renewcommandsection{@startsection {section}{1}{z@}%
{-3.5ex @plus -1ex @minus -.2ex}%
{2.3ex @plus .2ex}%
{1bfseriessetlength{parskip}{0em}}}%
But I can't even seem to get the section to use the right font, be bold and italic when I need it to be, and adjust the margins around the title. So at this point I would love at least a big picture idea of how to tackle this problem (although if there's an easy solution, I'll take it). Thanks for considering!
xetex formatting sections-paragraphs
Sorry, I don't see a way to edit my question, but I noticed a typo in the code. There should be a setlength before {parskip}
– Josh
Mar 12 at 23:26
Please register your account, then you can edit your own question. Welcome to TeX.SE!
– Kurt
Mar 12 at 23:35
add a comment |
Background: I did my master's thesis 18 years ago in LaTeX, but basically haven't touched it since.
I am trying to format a xelatex
document to look like the following
sample: 1
So the short question is what would be the easiest way to do this?
Ideally it would be nice to use section
, subsection
, subsubsection
etc., so that I can still generate a toc and use the section names in the header, etc. But at this point, since the .tex
file is going to be computer generated, I'd be open to just viewing each of the lines as a paragraph and just styling them all individually to look like this.
I can go over what I've tried, basically I've spent a couple days trying to modify the commands section
, subsection
, etc using renewcommand
like (where 1
is a .otf
font that I've defined:
renewcommandsection{@startsection {section}{1}{z@}%
{-3.5ex @plus -1ex @minus -.2ex}%
{2.3ex @plus .2ex}%
{1bfseriessetlength{parskip}{0em}}}%
But I can't even seem to get the section to use the right font, be bold and italic when I need it to be, and adjust the margins around the title. So at this point I would love at least a big picture idea of how to tackle this problem (although if there's an easy solution, I'll take it). Thanks for considering!
xetex formatting sections-paragraphs
Background: I did my master's thesis 18 years ago in LaTeX, but basically haven't touched it since.
I am trying to format a xelatex
document to look like the following
sample: 1
So the short question is what would be the easiest way to do this?
Ideally it would be nice to use section
, subsection
, subsubsection
etc., so that I can still generate a toc and use the section names in the header, etc. But at this point, since the .tex
file is going to be computer generated, I'd be open to just viewing each of the lines as a paragraph and just styling them all individually to look like this.
I can go over what I've tried, basically I've spent a couple days trying to modify the commands section
, subsection
, etc using renewcommand
like (where 1
is a .otf
font that I've defined:
renewcommandsection{@startsection {section}{1}{z@}%
{-3.5ex @plus -1ex @minus -.2ex}%
{2.3ex @plus .2ex}%
{1bfseriessetlength{parskip}{0em}}}%
But I can't even seem to get the section to use the right font, be bold and italic when I need it to be, and adjust the margins around the title. So at this point I would love at least a big picture idea of how to tackle this problem (although if there's an easy solution, I'll take it). Thanks for considering!
xetex formatting sections-paragraphs
xetex formatting sections-paragraphs
edited Mar 12 at 23:38
Kurt
39.8k850164
39.8k850164
asked Mar 12 at 23:21
JoshJosh
1
1
Sorry, I don't see a way to edit my question, but I noticed a typo in the code. There should be a setlength before {parskip}
– Josh
Mar 12 at 23:26
Please register your account, then you can edit your own question. Welcome to TeX.SE!
– Kurt
Mar 12 at 23:35
add a comment |
Sorry, I don't see a way to edit my question, but I noticed a typo in the code. There should be a setlength before {parskip}
– Josh
Mar 12 at 23:26
Please register your account, then you can edit your own question. Welcome to TeX.SE!
– Kurt
Mar 12 at 23:35
Sorry, I don't see a way to edit my question, but I noticed a typo in the code. There should be a setlength before {parskip}
– Josh
Mar 12 at 23:26
Sorry, I don't see a way to edit my question, but I noticed a typo in the code. There should be a setlength before {parskip}
– Josh
Mar 12 at 23:26
Please register your account, then you can edit your own question. Welcome to TeX.SE!
– Kurt
Mar 12 at 23:35
Please register your account, then you can edit your own question. Welcome to TeX.SE!
– Kurt
Mar 12 at 23:35
add a comment |
0
active
oldest
votes
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
});
}
});
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%2f479191%2fformatting-section-subsection-subsubsection-paragraph-titles-and-text%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f479191%2fformatting-section-subsection-subsubsection-paragraph-titles-and-text%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
Sorry, I don't see a way to edit my question, but I noticed a typo in the code. There should be a setlength before {parskip}
– Josh
Mar 12 at 23:26
Please register your account, then you can edit your own question. Welcome to TeX.SE!
– Kurt
Mar 12 at 23:35