Changing chapter format in reportChanging the chapter styleChange chapter heading formatFormat Latex report Chapter, Section, Subsection header stylesChapter and Section formatFormat title for chapter*Change format of chapterHelp changing chapter title formatChanging chapter styleFormatting Chapter in reportChange chapter title format in report document without titlesec?

Supports in 3d printing

Why do we use polarized capacitors?

What do the Banks children have against barley water?

Where to refill my bottle in India?

Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?

On the insanity of kings as an argument against Monarchy

New order #4: World

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Unbreakable Formation vs. Cry of the Carnarium

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Could a US political party gain complete control over the government by removing checks & balances?

Why do UK politicians seemingly ignore opinion polls on Brexit?

What does "rabbited" mean/imply in this sentence?

Calculate Levenshtein distance between two strings in Python

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

Can I legally use front facing blue light in the UK?

Is there a name of the flying bionic bird?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Is "plugging out" electronic devices an American expression?

Are there any other methods to apply to solving simultaneous equations?

What does 'script /dev/null' do?

If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?

What is this 4-propeller plane?

Solve this specific large sparse system of linear equations



Changing chapter format in report


Changing the chapter styleChange chapter heading formatFormat Latex report Chapter, Section, Subsection header stylesChapter and Section formatFormat title for chapter*Change format of chapterHelp changing chapter title formatChanging chapter styleFormatting Chapter in reportChange chapter title format in report document without titlesec?













0















I'd like to change chapter format, including lines up and down and text right aligned, like in the next figure, without using titlesec package:



enter image description here



Here it's my code:



documentclass[a4paper,openright,12pt]report
usepackage[utf8]inputenc

makeatletter
def@makechapterhead#1%
vspace*0p@%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
hugebfseries
% @chapappspace % removed
thechapter
nobreakspace% parnobreakvskip 20p@ % replaced
fi
interlinepenalty@M
huge % Huge % replaced
bfseries #1parnobreak
vskip 25p@

makeatother

begindocument

chapterChapter

enddocument


In the preamble, the code it's in order to change chapter format from "Chapter 1 \ Chapter title" to "1. Chapter title".



Someone has any idea to include lines and align text to the right as shown in the above image?
Thank you.










share|improve this question






















  • Why don't you want to use titlesec?

    – JouleV
    34 mins ago











  • Because in my main document I have a lot of packages included, and when I load titlesecpackage, compilation fails. It seems like there are problems among packages.

    – Daniel
    29 mins ago















0















I'd like to change chapter format, including lines up and down and text right aligned, like in the next figure, without using titlesec package:



enter image description here



Here it's my code:



documentclass[a4paper,openright,12pt]report
usepackage[utf8]inputenc

makeatletter
def@makechapterhead#1%
vspace*0p@%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
hugebfseries
% @chapappspace % removed
thechapter
nobreakspace% parnobreakvskip 20p@ % replaced
fi
interlinepenalty@M
huge % Huge % replaced
bfseries #1parnobreak
vskip 25p@

makeatother

begindocument

chapterChapter

enddocument


In the preamble, the code it's in order to change chapter format from "Chapter 1 \ Chapter title" to "1. Chapter title".



Someone has any idea to include lines and align text to the right as shown in the above image?
Thank you.










share|improve this question






















  • Why don't you want to use titlesec?

    – JouleV
    34 mins ago











  • Because in my main document I have a lot of packages included, and when I load titlesecpackage, compilation fails. It seems like there are problems among packages.

    – Daniel
    29 mins ago













0












0








0








I'd like to change chapter format, including lines up and down and text right aligned, like in the next figure, without using titlesec package:



enter image description here



Here it's my code:



documentclass[a4paper,openright,12pt]report
usepackage[utf8]inputenc

makeatletter
def@makechapterhead#1%
vspace*0p@%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
hugebfseries
% @chapappspace % removed
thechapter
nobreakspace% parnobreakvskip 20p@ % replaced
fi
interlinepenalty@M
huge % Huge % replaced
bfseries #1parnobreak
vskip 25p@

makeatother

begindocument

chapterChapter

enddocument


In the preamble, the code it's in order to change chapter format from "Chapter 1 \ Chapter title" to "1. Chapter title".



Someone has any idea to include lines and align text to the right as shown in the above image?
Thank you.










share|improve this question














I'd like to change chapter format, including lines up and down and text right aligned, like in the next figure, without using titlesec package:



enter image description here



Here it's my code:



documentclass[a4paper,openright,12pt]report
usepackage[utf8]inputenc

makeatletter
def@makechapterhead#1%
vspace*0p@%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
hugebfseries
% @chapappspace % removed
thechapter
nobreakspace% parnobreakvskip 20p@ % replaced
fi
interlinepenalty@M
huge % Huge % replaced
bfseries #1parnobreak
vskip 25p@

makeatother

begindocument

chapterChapter

enddocument


In the preamble, the code it's in order to change chapter format from "Chapter 1 \ Chapter title" to "1. Chapter title".



Someone has any idea to include lines and align text to the right as shown in the above image?
Thank you.







formatting chapters






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 35 mins ago









DanielDaniel

396




396












  • Why don't you want to use titlesec?

    – JouleV
    34 mins ago











  • Because in my main document I have a lot of packages included, and when I load titlesecpackage, compilation fails. It seems like there are problems among packages.

    – Daniel
    29 mins ago

















  • Why don't you want to use titlesec?

    – JouleV
    34 mins ago











  • Because in my main document I have a lot of packages included, and when I load titlesecpackage, compilation fails. It seems like there are problems among packages.

    – Daniel
    29 mins ago
















Why don't you want to use titlesec?

– JouleV
34 mins ago





Why don't you want to use titlesec?

– JouleV
34 mins ago













Because in my main document I have a lot of packages included, and when I load titlesecpackage, compilation fails. It seems like there are problems among packages.

– Daniel
29 mins ago





Because in my main document I have a lot of packages included, and when I load titlesecpackage, compilation fails. It seems like there are problems among packages.

– Daniel
29 mins ago










1 Answer
1






active

oldest

votes


















0














With hrule.



documentclass[a4paper,openright,12pt]report
usepackage[utf8]inputenc

makeatletter
def@makechapterhead#1%
vspace*0p@
hrule \[4mm]
parindent z@ raggedleft normalfont
ifnum c@secnumdepth >m@ne
hugebfseries
% @chapappspace % removed
thechapter
nobreakspace% parnobreakvskip 20p@ % replaced
fi
interlinepenalty@M
huge % Huge % replaced
bfseries #1parnobreak
vskip 25p@
hrule

makeatother

begindocument

chapterChapter

enddocument


enter image description here



With rule.



documentclass[a4paper,openright,12pt]report
usepackage[utf8]inputenc

makeatletter
def@makechapterhead#1%
vspace*0p@
noindentruletextwidth2pt \[5mm]
parindent z@ raggedleft normalfont
ifnum c@secnumdepth >m@ne
huge
% @chapappspace % removed
thechapter
nobreakspace% parnobreakvskip 20p@ % replaced
fi
interlinepenalty@M
normalfont % Huge % replaced
#1parnobreak
vskip 25p@
noindentruletextwidth2pt

makeatother

begindocument

chapterChapter

enddocument


enter image description here






share|improve this answer

























    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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483955%2fchanging-chapter-format-in-report%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









    0














    With hrule.



    documentclass[a4paper,openright,12pt]report
    usepackage[utf8]inputenc

    makeatletter
    def@makechapterhead#1%
    vspace*0p@
    hrule \[4mm]
    parindent z@ raggedleft normalfont
    ifnum c@secnumdepth >m@ne
    hugebfseries
    % @chapappspace % removed
    thechapter
    nobreakspace% parnobreakvskip 20p@ % replaced
    fi
    interlinepenalty@M
    huge % Huge % replaced
    bfseries #1parnobreak
    vskip 25p@
    hrule

    makeatother

    begindocument

    chapterChapter

    enddocument


    enter image description here



    With rule.



    documentclass[a4paper,openright,12pt]report
    usepackage[utf8]inputenc

    makeatletter
    def@makechapterhead#1%
    vspace*0p@
    noindentruletextwidth2pt \[5mm]
    parindent z@ raggedleft normalfont
    ifnum c@secnumdepth >m@ne
    huge
    % @chapappspace % removed
    thechapter
    nobreakspace% parnobreakvskip 20p@ % replaced
    fi
    interlinepenalty@M
    normalfont % Huge % replaced
    #1parnobreak
    vskip 25p@
    noindentruletextwidth2pt

    makeatother

    begindocument

    chapterChapter

    enddocument


    enter image description here






    share|improve this answer





























      0














      With hrule.



      documentclass[a4paper,openright,12pt]report
      usepackage[utf8]inputenc

      makeatletter
      def@makechapterhead#1%
      vspace*0p@
      hrule \[4mm]
      parindent z@ raggedleft normalfont
      ifnum c@secnumdepth >m@ne
      hugebfseries
      % @chapappspace % removed
      thechapter
      nobreakspace% parnobreakvskip 20p@ % replaced
      fi
      interlinepenalty@M
      huge % Huge % replaced
      bfseries #1parnobreak
      vskip 25p@
      hrule

      makeatother

      begindocument

      chapterChapter

      enddocument


      enter image description here



      With rule.



      documentclass[a4paper,openright,12pt]report
      usepackage[utf8]inputenc

      makeatletter
      def@makechapterhead#1%
      vspace*0p@
      noindentruletextwidth2pt \[5mm]
      parindent z@ raggedleft normalfont
      ifnum c@secnumdepth >m@ne
      huge
      % @chapappspace % removed
      thechapter
      nobreakspace% parnobreakvskip 20p@ % replaced
      fi
      interlinepenalty@M
      normalfont % Huge % replaced
      #1parnobreak
      vskip 25p@
      noindentruletextwidth2pt

      makeatother

      begindocument

      chapterChapter

      enddocument


      enter image description here






      share|improve this answer



























        0












        0








        0







        With hrule.



        documentclass[a4paper,openright,12pt]report
        usepackage[utf8]inputenc

        makeatletter
        def@makechapterhead#1%
        vspace*0p@
        hrule \[4mm]
        parindent z@ raggedleft normalfont
        ifnum c@secnumdepth >m@ne
        hugebfseries
        % @chapappspace % removed
        thechapter
        nobreakspace% parnobreakvskip 20p@ % replaced
        fi
        interlinepenalty@M
        huge % Huge % replaced
        bfseries #1parnobreak
        vskip 25p@
        hrule

        makeatother

        begindocument

        chapterChapter

        enddocument


        enter image description here



        With rule.



        documentclass[a4paper,openright,12pt]report
        usepackage[utf8]inputenc

        makeatletter
        def@makechapterhead#1%
        vspace*0p@
        noindentruletextwidth2pt \[5mm]
        parindent z@ raggedleft normalfont
        ifnum c@secnumdepth >m@ne
        huge
        % @chapappspace % removed
        thechapter
        nobreakspace% parnobreakvskip 20p@ % replaced
        fi
        interlinepenalty@M
        normalfont % Huge % replaced
        #1parnobreak
        vskip 25p@
        noindentruletextwidth2pt

        makeatother

        begindocument

        chapterChapter

        enddocument


        enter image description here






        share|improve this answer















        With hrule.



        documentclass[a4paper,openright,12pt]report
        usepackage[utf8]inputenc

        makeatletter
        def@makechapterhead#1%
        vspace*0p@
        hrule \[4mm]
        parindent z@ raggedleft normalfont
        ifnum c@secnumdepth >m@ne
        hugebfseries
        % @chapappspace % removed
        thechapter
        nobreakspace% parnobreakvskip 20p@ % replaced
        fi
        interlinepenalty@M
        huge % Huge % replaced
        bfseries #1parnobreak
        vskip 25p@
        hrule

        makeatother

        begindocument

        chapterChapter

        enddocument


        enter image description here



        With rule.



        documentclass[a4paper,openright,12pt]report
        usepackage[utf8]inputenc

        makeatletter
        def@makechapterhead#1%
        vspace*0p@
        noindentruletextwidth2pt \[5mm]
        parindent z@ raggedleft normalfont
        ifnum c@secnumdepth >m@ne
        huge
        % @chapappspace % removed
        thechapter
        nobreakspace% parnobreakvskip 20p@ % replaced
        fi
        interlinepenalty@M
        normalfont % Huge % replaced
        #1parnobreak
        vskip 25p@
        noindentruletextwidth2pt

        makeatother

        begindocument

        chapterChapter

        enddocument


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 5 mins ago

























        answered 11 mins ago









        ferahfezaferahfeza

        7,41411933




        7,41411933



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483955%2fchanging-chapter-format-in-report%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

            acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

            How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

            Problem using RevTeX4-1 with “! Undefined control sequence. @bibitemShut”