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:




enter image description here




whereas setting documentclass[margin]{res} will yield




enter image description here




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!










share|improve this question






















  • 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 the res.cls template itself in any "clean" manner.
    – Vim
    17 hours ago

















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:




enter image description here




whereas setting documentclass[margin]{res} will yield




enter image description here




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!










share|improve this question






















  • 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 the res.cls template itself in any "clean" manner.
    – Vim
    17 hours ago















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:




enter image description here




whereas setting documentclass[margin]{res} will yield




enter image description here




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!










share|improve this question













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:




enter image description here




whereas setting documentclass[margin]{res} will yield




enter image description here




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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









Vim

1376




1376












  • 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 the res.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










  • @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 the res.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

















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',
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
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt