Recover style of section modified by titlesec

Clash Royale CLAN TAG#URR8PPP
After the section style is modified by the titlesec package, I want to return to the original style by let and renewcommand, but fails. Why and how to achieve this?
MWE:
documentclassarticle
usepackagetitlesec,xcolor
begindocument
sectionOriginal Section Style
letoldsectionsection %store the original macro section
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument

sectioning titlesec
add a comment |
After the section style is modified by the titlesec package, I want to return to the original style by let and renewcommand, but fails. Why and how to achieve this?
MWE:
documentclassarticle
usepackagetitlesec,xcolor
begindocument
sectionOriginal Section Style
letoldsectionsection %store the original macro section
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument

sectioning titlesec
Different section styles may confuse readers however, as it breaks the coporate design somehow
– user31729
Feb 16 at 11:06
add a comment |
After the section style is modified by the titlesec package, I want to return to the original style by let and renewcommand, but fails. Why and how to achieve this?
MWE:
documentclassarticle
usepackagetitlesec,xcolor
begindocument
sectionOriginal Section Style
letoldsectionsection %store the original macro section
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument

sectioning titlesec
After the section style is modified by the titlesec package, I want to return to the original style by let and renewcommand, but fails. Why and how to achieve this?
MWE:
documentclassarticle
usepackagetitlesec,xcolor
begindocument
sectionOriginal Section Style
letoldsectionsection %store the original macro section
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument

sectioning titlesec
sectioning titlesec
edited Feb 16 at 10:32
lyl
asked Feb 16 at 10:11
lyllyl
70438
70438
Different section styles may confuse readers however, as it breaks the coporate design somehow
– user31729
Feb 16 at 11:06
add a comment |
Different section styles may confuse readers however, as it breaks the coporate design somehow
– user31729
Feb 16 at 11:06
Different section styles may confuse readers however, as it breaks the coporate design somehow
– user31729
Feb 16 at 11:06
Different section styles may confuse readers however, as it breaks the coporate design somehow
– user31729
Feb 16 at 11:06
add a comment |
2 Answers
2
active
oldest
votes
In section 9.2 of the titlesec manual, you find that the default style for section is
titleformatsectionnormalfontLargebfseriesthesection1em
Thus you can go back and forward:
documentclassarticle
usepackagetitlesec,xcolor
newcommandoriginalsections%
titleformatsectionnormalfontLargebfseriesthesection1em%
newcommandmodifiedsections%
titleformatsectionhugecolorredRomansection1em%
originalsections
begindocument
sectionOriginal Section Style A
sectionOriginal Section Style B
modifiedsections
sectionNew Section Style A
sectionNew Section Style B
originalsections
sectionOriginal Section Style C
enddocument

add a comment |
The old definition of section etc. must be captured by a let statement
before
titlesec changes section etc, i.e.
letoldsectionsection
usepackagetitlesec

Here is the modified code:
documentclassarticle
letoldsectionsection %store the original macro section
usepackagetitlesec
usepackagexcolor
begindocument
sectionOriginal Section Style
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument
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
);
);
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%2f475161%2frecover-style-of-section-modified-by-titlesec%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In section 9.2 of the titlesec manual, you find that the default style for section is
titleformatsectionnormalfontLargebfseriesthesection1em
Thus you can go back and forward:
documentclassarticle
usepackagetitlesec,xcolor
newcommandoriginalsections%
titleformatsectionnormalfontLargebfseriesthesection1em%
newcommandmodifiedsections%
titleformatsectionhugecolorredRomansection1em%
originalsections
begindocument
sectionOriginal Section Style A
sectionOriginal Section Style B
modifiedsections
sectionNew Section Style A
sectionNew Section Style B
originalsections
sectionOriginal Section Style C
enddocument

add a comment |
In section 9.2 of the titlesec manual, you find that the default style for section is
titleformatsectionnormalfontLargebfseriesthesection1em
Thus you can go back and forward:
documentclassarticle
usepackagetitlesec,xcolor
newcommandoriginalsections%
titleformatsectionnormalfontLargebfseriesthesection1em%
newcommandmodifiedsections%
titleformatsectionhugecolorredRomansection1em%
originalsections
begindocument
sectionOriginal Section Style A
sectionOriginal Section Style B
modifiedsections
sectionNew Section Style A
sectionNew Section Style B
originalsections
sectionOriginal Section Style C
enddocument

add a comment |
In section 9.2 of the titlesec manual, you find that the default style for section is
titleformatsectionnormalfontLargebfseriesthesection1em
Thus you can go back and forward:
documentclassarticle
usepackagetitlesec,xcolor
newcommandoriginalsections%
titleformatsectionnormalfontLargebfseriesthesection1em%
newcommandmodifiedsections%
titleformatsectionhugecolorredRomansection1em%
originalsections
begindocument
sectionOriginal Section Style A
sectionOriginal Section Style B
modifiedsections
sectionNew Section Style A
sectionNew Section Style B
originalsections
sectionOriginal Section Style C
enddocument

In section 9.2 of the titlesec manual, you find that the default style for section is
titleformatsectionnormalfontLargebfseriesthesection1em
Thus you can go back and forward:
documentclassarticle
usepackagetitlesec,xcolor
newcommandoriginalsections%
titleformatsectionnormalfontLargebfseriesthesection1em%
newcommandmodifiedsections%
titleformatsectionhugecolorredRomansection1em%
originalsections
begindocument
sectionOriginal Section Style A
sectionOriginal Section Style B
modifiedsections
sectionNew Section Style A
sectionNew Section Style B
originalsections
sectionOriginal Section Style C
enddocument

answered Feb 16 at 11:33
egregegreg
726k8819193226
726k8819193226
add a comment |
add a comment |
The old definition of section etc. must be captured by a let statement
before
titlesec changes section etc, i.e.
letoldsectionsection
usepackagetitlesec

Here is the modified code:
documentclassarticle
letoldsectionsection %store the original macro section
usepackagetitlesec
usepackagexcolor
begindocument
sectionOriginal Section Style
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument
add a comment |
The old definition of section etc. must be captured by a let statement
before
titlesec changes section etc, i.e.
letoldsectionsection
usepackagetitlesec

Here is the modified code:
documentclassarticle
letoldsectionsection %store the original macro section
usepackagetitlesec
usepackagexcolor
begindocument
sectionOriginal Section Style
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument
add a comment |
The old definition of section etc. must be captured by a let statement
before
titlesec changes section etc, i.e.
letoldsectionsection
usepackagetitlesec

Here is the modified code:
documentclassarticle
letoldsectionsection %store the original macro section
usepackagetitlesec
usepackagexcolor
begindocument
sectionOriginal Section Style
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument
The old definition of section etc. must be captured by a let statement
before
titlesec changes section etc, i.e.
letoldsectionsection
usepackagetitlesec

Here is the modified code:
documentclassarticle
letoldsectionsection %store the original macro section
usepackagetitlesec
usepackagexcolor
begindocument
sectionOriginal Section Style
oldsectionOriginal Section Style stored
titleformatsectionhugecolorredRomansection1em
sectionNew Section Style
letsectionoldsection % recovery of section
renewcommandthesectionarabicsection% I tried by another way
sectionI want to restore the original section style, but fails
enddocument
answered Feb 16 at 11:03
user31729
add a comment |
add a comment |
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%2f475161%2frecover-style-of-section-modified-by-titlesec%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
Different section styles may confuse readers however, as it breaks the coporate design somehow
– user31729
Feb 16 at 11:06