Michael DeCorte res.cls: trying to locally set section heading styles
up vote
0
down vote
favorite
I'm using the res.cls
to typeset my CV. This template has two different types of section
heading styles. I'm not familiar with latex hard coding etc but I think this part does overwrite the primitive section
:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% There are two types of section headings:
% 1) the section heading is all on one line and directly
% below it, is the body of the text
% 2) the section heading is entirely in the left margin
% (possibly taking multiple lines) with the body of
% the text next to it
%
let@@sectionrelax
defds@overlapped{ifx@@sectionrelaxnewsectionwidth{0.5in}let
@@sectionunboxed@sectiontitlefi}
defds@margin{ifx@@sectionrelaxnewsectionwidth{1.3in}let
@@sectionboxed@sectiontitlefi}
And we can determine which one to use in the documentclass
option: choosing the default documentclass[overlapped]{res}
will yield the "classic" style section headings:
documentclass[overlapped]{res}
begin{document}
begin{resume}
section{EDUCATION}
University of nowhere, master of none, jack of all trades, I'm just rumbling trying to make a new line new line new line
end{resume}
end{document}
which yields:
whereas setting documentclass[margin]{res}
will yield
I'm wondering whether I can switch between these two types of heading within one document
. Specifically, for the most part of the document I'll use the margin
style, but there are some places where I would want to switch to the default overlapped
, OR, to the latex primitive section
(is the primitive still recoverable?).
Thanks in advance!
sectioning templates document-classes resume
add a comment |
up vote
0
down vote
favorite
I'm using the res.cls
to typeset my CV. This template has two different types of section
heading styles. I'm not familiar with latex hard coding etc but I think this part does overwrite the primitive section
:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% There are two types of section headings:
% 1) the section heading is all on one line and directly
% below it, is the body of the text
% 2) the section heading is entirely in the left margin
% (possibly taking multiple lines) with the body of
% the text next to it
%
let@@sectionrelax
defds@overlapped{ifx@@sectionrelaxnewsectionwidth{0.5in}let
@@sectionunboxed@sectiontitlefi}
defds@margin{ifx@@sectionrelaxnewsectionwidth{1.3in}let
@@sectionboxed@sectiontitlefi}
And we can determine which one to use in the documentclass
option: choosing the default documentclass[overlapped]{res}
will yield the "classic" style section headings:
documentclass[overlapped]{res}
begin{document}
begin{resume}
section{EDUCATION}
University of nowhere, master of none, jack of all trades, I'm just rumbling trying to make a new line new line new line
end{resume}
end{document}
which yields:
whereas setting documentclass[margin]{res}
will yield
I'm wondering whether I can switch between these two types of heading within one document
. Specifically, for the most part of the document I'll use the margin
style, but there are some places where I would want to switch to the default overlapped
, OR, to the latex primitive section
(is the primitive still recoverable?).
Thanks in advance!
sectioning templates document-classes resume
Well, you know thatres.cls
is very outdated and should not be used an longer?
– Kurt
yesterday
@Kurt sure it is but for my specific needs I am unable to find better alternatives. If sometime in the future there's something I cannot work around about it, I'll consider migrating my CV to more modern templates.
– Vim
yesterday
There is even a warning in the wikibook about the class. en.wikibooks.org/wiki/LaTeX/Curriculum_Vitae
– Johannes_B
20 hours ago
@Johannes_B thanks for this piece of information. Actually I have solved my problem in a brute-force, non-robust way (adjusting space with heavy use ofvspace
,hspace
etc.), but Wikibook is defintiely correct that it is almost impossible to customise theres.cls
template itself in any "clean" manner.
– Vim
17 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using the res.cls
to typeset my CV. This template has two different types of section
heading styles. I'm not familiar with latex hard coding etc but I think this part does overwrite the primitive section
:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% There are two types of section headings:
% 1) the section heading is all on one line and directly
% below it, is the body of the text
% 2) the section heading is entirely in the left margin
% (possibly taking multiple lines) with the body of
% the text next to it
%
let@@sectionrelax
defds@overlapped{ifx@@sectionrelaxnewsectionwidth{0.5in}let
@@sectionunboxed@sectiontitlefi}
defds@margin{ifx@@sectionrelaxnewsectionwidth{1.3in}let
@@sectionboxed@sectiontitlefi}
And we can determine which one to use in the documentclass
option: choosing the default documentclass[overlapped]{res}
will yield the "classic" style section headings:
documentclass[overlapped]{res}
begin{document}
begin{resume}
section{EDUCATION}
University of nowhere, master of none, jack of all trades, I'm just rumbling trying to make a new line new line new line
end{resume}
end{document}
which yields:
whereas setting documentclass[margin]{res}
will yield
I'm wondering whether I can switch between these two types of heading within one document
. Specifically, for the most part of the document I'll use the margin
style, but there are some places where I would want to switch to the default overlapped
, OR, to the latex primitive section
(is the primitive still recoverable?).
Thanks in advance!
sectioning templates document-classes resume
I'm using the res.cls
to typeset my CV. This template has two different types of section
heading styles. I'm not familiar with latex hard coding etc but I think this part does overwrite the primitive section
:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% There are two types of section headings:
% 1) the section heading is all on one line and directly
% below it, is the body of the text
% 2) the section heading is entirely in the left margin
% (possibly taking multiple lines) with the body of
% the text next to it
%
let@@sectionrelax
defds@overlapped{ifx@@sectionrelaxnewsectionwidth{0.5in}let
@@sectionunboxed@sectiontitlefi}
defds@margin{ifx@@sectionrelaxnewsectionwidth{1.3in}let
@@sectionboxed@sectiontitlefi}
And we can determine which one to use in the documentclass
option: choosing the default documentclass[overlapped]{res}
will yield the "classic" style section headings:
documentclass[overlapped]{res}
begin{document}
begin{resume}
section{EDUCATION}
University of nowhere, master of none, jack of all trades, I'm just rumbling trying to make a new line new line new line
end{resume}
end{document}
which yields:
whereas setting documentclass[margin]{res}
will yield
I'm wondering whether I can switch between these two types of heading within one document
. Specifically, for the most part of the document I'll use the margin
style, but there are some places where I would want to switch to the default overlapped
, OR, to the latex primitive section
(is the primitive still recoverable?).
Thanks in advance!
sectioning templates document-classes resume
sectioning templates document-classes resume
asked yesterday
Vim
1376
1376
Well, you know thatres.cls
is very outdated and should not be used an longer?
– Kurt
yesterday
@Kurt sure it is but for my specific needs I am unable to find better alternatives. If sometime in the future there's something I cannot work around about it, I'll consider migrating my CV to more modern templates.
– Vim
yesterday
There is even a warning in the wikibook about the class. en.wikibooks.org/wiki/LaTeX/Curriculum_Vitae
– Johannes_B
20 hours ago
@Johannes_B thanks for this piece of information. Actually I have solved my problem in a brute-force, non-robust way (adjusting space with heavy use ofvspace
,hspace
etc.), but Wikibook is defintiely correct that it is almost impossible to customise theres.cls
template itself in any "clean" manner.
– Vim
17 hours ago
add a comment |
Well, you know thatres.cls
is very outdated and should not be used an longer?
– Kurt
yesterday
@Kurt sure it is but for my specific needs I am unable to find better alternatives. If sometime in the future there's something I cannot work around about it, I'll consider migrating my CV to more modern templates.
– Vim
yesterday
There is even a warning in the wikibook about the class. en.wikibooks.org/wiki/LaTeX/Curriculum_Vitae
– Johannes_B
20 hours ago
@Johannes_B thanks for this piece of information. Actually I have solved my problem in a brute-force, non-robust way (adjusting space with heavy use ofvspace
,hspace
etc.), but Wikibook is defintiely correct that it is almost impossible to customise theres.cls
template itself in any "clean" manner.
– Vim
17 hours ago
Well, you know that
res.cls
is very outdated and should not be used an longer?– Kurt
yesterday
Well, you know that
res.cls
is very outdated and should not be used an longer?– Kurt
yesterday
@Kurt sure it is but for my specific needs I am unable to find better alternatives. If sometime in the future there's something I cannot work around about it, I'll consider migrating my CV to more modern templates.
– Vim
yesterday
@Kurt sure it is but for my specific needs I am unable to find better alternatives. If sometime in the future there's something I cannot work around about it, I'll consider migrating my CV to more modern templates.
– Vim
yesterday
There is even a warning in the wikibook about the class. en.wikibooks.org/wiki/LaTeX/Curriculum_Vitae
– Johannes_B
20 hours ago
There is even a warning in the wikibook about the class. en.wikibooks.org/wiki/LaTeX/Curriculum_Vitae
– Johannes_B
20 hours ago
@Johannes_B thanks for this piece of information. Actually I have solved my problem in a brute-force, non-robust way (adjusting space with heavy use of
vspace
, hspace
etc.), but Wikibook is defintiely correct that it is almost impossible to customise the res.cls
template itself in any "clean" manner.– Vim
17 hours ago
@Johannes_B thanks for this piece of information. Actually I have solved my problem in a brute-force, non-robust way (adjusting space with heavy use of
vspace
, hspace
etc.), but Wikibook is defintiely correct that it is almost impossible to customise the res.cls
template itself in any "clean" manner.– Vim
17 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f461098%2fmichael-decorte-res-cls-trying-to-locally-set-section-heading-styles%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
Well, you know that
res.cls
is very outdated and should not be used an longer?– Kurt
yesterday
@Kurt sure it is but for my specific needs I am unable to find better alternatives. If sometime in the future there's something I cannot work around about it, I'll consider migrating my CV to more modern templates.
– Vim
yesterday
There is even a warning in the wikibook about the class. en.wikibooks.org/wiki/LaTeX/Curriculum_Vitae
– Johannes_B
20 hours ago
@Johannes_B thanks for this piece of information. Actually I have solved my problem in a brute-force, non-robust way (adjusting space with heavy use of
vspace
,hspace
etc.), but Wikibook is defintiely correct that it is almost impossible to customise theres.cls
template itself in any "clean" manner.– Vim
17 hours ago