Titlesec - vertical align chapter and sectionVertical space before section title with titlesectitlesec and...

Did it take 3 minutes to reload a musket when the second amendment to the US constitution was ratified?

If you have a negative spellcasting ability modifier, how much damage does the Green-Flame Blade cantrip do to the second target below level 5?

Use GPLv3 library in a closed system (no software distribution)

What's the best way to annotate this syncopation?

How would a race of humanoids with tails design [vehicle] seats?

When was the famous "sudo warning" introduced? Under what background? By whom?

Is it allowed to let the engine of an aircraft idle without a pilot in the plane. (For both helicopters and aeroplanes)

What's the meaning of Electrical Inches?

Most optimal hallways with random gravity inside?

Why doesn't hot charcoal glow blue?

Transform this polynomial.

How to get to Antarctica without using a travel company

Are there any Baryons that have quark-antiquark combinations?

How can a stock trade for a fraction of a cent?

What are the advantages to banks being located in the City of London (the Square Mile)?

Can elves trance in armor without any downsides?

What is the white square near the viewfinder of the Fujica GW690?

Why is 1.e4 c5 2.Nf3 b6 so unpopular?

Is Uralic Possibly a Branch of the Indo-European Branch?

Given a fibonacci number , find just next fibonacci number

What are these objects near the Cosmonaut's faces?

If equal temperament divides octave into 12 equal parts, why hertz differences are not the same but element 12th of two?

What is the name of this Korean mobile sports game?

How can I seal 8 inch round holes in my siding?



Titlesec - vertical align chapter and section


Vertical space before section title with titlesectitlesec and section* in titleformatWidth of chapter section with titlesecVertical space within chapter label using titlesectitlesec and chapter&section missing zero errorTitlesec, space between header and chapter styleFind the mistake in titlesec usage : DO print the chapter and section numbers in the texttitlesec section formating with rulesTitlesec and titles vertical alignement






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








3

















I've found a nice titlesec style for my chapter that I want to use for my thesis. Unfortunately the chapter text doesn't align vertical with the section text:



Not vertical aligned



(I've added the red line in paint to demonstrate the problem).



I know that it's very close and I could fiddle with the hspace of the chapter from the line newcommand{hsp}{hspace{9pt} but i feel that it would never be 100% perfectly aligned. What would be an elegant way of doing it?



MWE look like this:



documentclass[12pt,a4paper,twoside]{report}
usepackage[utf8]{inputenc}
usepackage[german]{babel}
usepackage[T1]{fontenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


% Style for Chapterheadings
usepackage{titlesec, blindtext, color}
definecolor{gray75}{gray}{0.75}
newcommand{hsp}{hspace{9pt}}
titleformat{chapter}[hang]{Hugebfseries}{thechapterhsptextcolor{gray75}{|}hsp}{0pt}{Hugebfseries}
%%%


begin{document}

chapter{Beschreibung des Geschäftsprozesses}
section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

end{document}









share|improve this question

































    3

















    I've found a nice titlesec style for my chapter that I want to use for my thesis. Unfortunately the chapter text doesn't align vertical with the section text:



    Not vertical aligned



    (I've added the red line in paint to demonstrate the problem).



    I know that it's very close and I could fiddle with the hspace of the chapter from the line newcommand{hsp}{hspace{9pt} but i feel that it would never be 100% perfectly aligned. What would be an elegant way of doing it?



    MWE look like this:



    documentclass[12pt,a4paper,twoside]{report}
    usepackage[utf8]{inputenc}
    usepackage[german]{babel}
    usepackage[T1]{fontenc}
    usepackage{amsmath}
    usepackage{amsfonts}
    usepackage{amssymb}
    usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


    % Style for Chapterheadings
    usepackage{titlesec, blindtext, color}
    definecolor{gray75}{gray}{0.75}
    newcommand{hsp}{hspace{9pt}}
    titleformat{chapter}[hang]{Hugebfseries}{thechapterhsptextcolor{gray75}{|}hsp}{0pt}{Hugebfseries}
    %%%


    begin{document}

    chapter{Beschreibung des Geschäftsprozesses}
    section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

    end{document}









    share|improve this question





























      3












      3








      3








      I've found a nice titlesec style for my chapter that I want to use for my thesis. Unfortunately the chapter text doesn't align vertical with the section text:



      Not vertical aligned



      (I've added the red line in paint to demonstrate the problem).



      I know that it's very close and I could fiddle with the hspace of the chapter from the line newcommand{hsp}{hspace{9pt} but i feel that it would never be 100% perfectly aligned. What would be an elegant way of doing it?



      MWE look like this:



      documentclass[12pt,a4paper,twoside]{report}
      usepackage[utf8]{inputenc}
      usepackage[german]{babel}
      usepackage[T1]{fontenc}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


      % Style for Chapterheadings
      usepackage{titlesec, blindtext, color}
      definecolor{gray75}{gray}{0.75}
      newcommand{hsp}{hspace{9pt}}
      titleformat{chapter}[hang]{Hugebfseries}{thechapterhsptextcolor{gray75}{|}hsp}{0pt}{Hugebfseries}
      %%%


      begin{document}

      chapter{Beschreibung des Geschäftsprozesses}
      section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

      end{document}









      share|improve this question















      I've found a nice titlesec style for my chapter that I want to use for my thesis. Unfortunately the chapter text doesn't align vertical with the section text:



      Not vertical aligned



      (I've added the red line in paint to demonstrate the problem).



      I know that it's very close and I could fiddle with the hspace of the chapter from the line newcommand{hsp}{hspace{9pt} but i feel that it would never be 100% perfectly aligned. What would be an elegant way of doing it?



      MWE look like this:



      documentclass[12pt,a4paper,twoside]{report}
      usepackage[utf8]{inputenc}
      usepackage[german]{babel}
      usepackage[T1]{fontenc}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


      % Style for Chapterheadings
      usepackage{titlesec, blindtext, color}
      definecolor{gray75}{gray}{0.75}
      newcommand{hsp}{hspace{9pt}}
      titleformat{chapter}[hang]{Hugebfseries}{thechapterhsptextcolor{gray75}{|}hsp}{0pt}{Hugebfseries}
      %%%


      begin{document}

      chapter{Beschreibung des Geschäftsprozesses}
      section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

      end{document}






      align titlesec






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked 9 hours ago









      ChristianChristian

      503 bronze badges




      503 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          4


















          You can box the numbers to a certain width.



          documentclass[12pt,a4paper,twoside]{report}
          usepackage[utf8]{inputenc}
          usepackage[german]{babel}
          usepackage[T1]{fontenc}
          usepackage{amsmath}
          usepackage{amsfonts}
          usepackage{amssymb}
          usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


          % Style for Chapterheadings
          usepackage{titlesec, blindtext, color}

          definecolor{gray75}{gray}{0.75}

          titleformat{chapter}[hang]
          {Hugebfseriesfilright}
          {makebox[40pt][s]{thechapterhfilltextcolor{gray75}{|}hspace{9pt}}}
          {0pt}
          {Hugebfseries}
          titleformat{section}[hang]
          {Largebfseriesfilright}
          {makebox[40pt][l]{thesection}}
          {0pt}
          {Largebfseries}
          %%%


          begin{document}

          chapter{Beschreibung des Geschäftsprozesses}
          section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

          end{document}


          enter image description here



          I added filright to avoid hyphenation in titles.






          share|improve this answer



























          • Thats awesome, thank you very much for your incredible fast help.

            – Christian
            9 hours ago











          • @Christian Pronto prontissimo son come il fulmine: sono il factotum della città. (from my profile). ;-)

            – egreg
            8 hours ago













          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/4.0/"u003ecc by-sa 4.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%2f511981%2ftitlesec-vertical-align-chapter-and-section%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









          4


















          You can box the numbers to a certain width.



          documentclass[12pt,a4paper,twoside]{report}
          usepackage[utf8]{inputenc}
          usepackage[german]{babel}
          usepackage[T1]{fontenc}
          usepackage{amsmath}
          usepackage{amsfonts}
          usepackage{amssymb}
          usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


          % Style for Chapterheadings
          usepackage{titlesec, blindtext, color}

          definecolor{gray75}{gray}{0.75}

          titleformat{chapter}[hang]
          {Hugebfseriesfilright}
          {makebox[40pt][s]{thechapterhfilltextcolor{gray75}{|}hspace{9pt}}}
          {0pt}
          {Hugebfseries}
          titleformat{section}[hang]
          {Largebfseriesfilright}
          {makebox[40pt][l]{thesection}}
          {0pt}
          {Largebfseries}
          %%%


          begin{document}

          chapter{Beschreibung des Geschäftsprozesses}
          section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

          end{document}


          enter image description here



          I added filright to avoid hyphenation in titles.






          share|improve this answer



























          • Thats awesome, thank you very much for your incredible fast help.

            – Christian
            9 hours ago











          • @Christian Pronto prontissimo son come il fulmine: sono il factotum della città. (from my profile). ;-)

            – egreg
            8 hours ago
















          4


















          You can box the numbers to a certain width.



          documentclass[12pt,a4paper,twoside]{report}
          usepackage[utf8]{inputenc}
          usepackage[german]{babel}
          usepackage[T1]{fontenc}
          usepackage{amsmath}
          usepackage{amsfonts}
          usepackage{amssymb}
          usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


          % Style for Chapterheadings
          usepackage{titlesec, blindtext, color}

          definecolor{gray75}{gray}{0.75}

          titleformat{chapter}[hang]
          {Hugebfseriesfilright}
          {makebox[40pt][s]{thechapterhfilltextcolor{gray75}{|}hspace{9pt}}}
          {0pt}
          {Hugebfseries}
          titleformat{section}[hang]
          {Largebfseriesfilright}
          {makebox[40pt][l]{thesection}}
          {0pt}
          {Largebfseries}
          %%%


          begin{document}

          chapter{Beschreibung des Geschäftsprozesses}
          section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

          end{document}


          enter image description here



          I added filright to avoid hyphenation in titles.






          share|improve this answer



























          • Thats awesome, thank you very much for your incredible fast help.

            – Christian
            9 hours ago











          • @Christian Pronto prontissimo son come il fulmine: sono il factotum della città. (from my profile). ;-)

            – egreg
            8 hours ago














          4














          4










          4









          You can box the numbers to a certain width.



          documentclass[12pt,a4paper,twoside]{report}
          usepackage[utf8]{inputenc}
          usepackage[german]{babel}
          usepackage[T1]{fontenc}
          usepackage{amsmath}
          usepackage{amsfonts}
          usepackage{amssymb}
          usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


          % Style for Chapterheadings
          usepackage{titlesec, blindtext, color}

          definecolor{gray75}{gray}{0.75}

          titleformat{chapter}[hang]
          {Hugebfseriesfilright}
          {makebox[40pt][s]{thechapterhfilltextcolor{gray75}{|}hspace{9pt}}}
          {0pt}
          {Hugebfseries}
          titleformat{section}[hang]
          {Largebfseriesfilright}
          {makebox[40pt][l]{thesection}}
          {0pt}
          {Largebfseries}
          %%%


          begin{document}

          chapter{Beschreibung des Geschäftsprozesses}
          section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

          end{document}


          enter image description here



          I added filright to avoid hyphenation in titles.






          share|improve this answer














          You can box the numbers to a certain width.



          documentclass[12pt,a4paper,twoside]{report}
          usepackage[utf8]{inputenc}
          usepackage[german]{babel}
          usepackage[T1]{fontenc}
          usepackage{amsmath}
          usepackage{amsfonts}
          usepackage{amssymb}
          usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry}


          % Style for Chapterheadings
          usepackage{titlesec, blindtext, color}

          definecolor{gray75}{gray}{0.75}

          titleformat{chapter}[hang]
          {Hugebfseriesfilright}
          {makebox[40pt][s]{thechapterhfilltextcolor{gray75}{|}hspace{9pt}}}
          {0pt}
          {Hugebfseries}
          titleformat{section}[hang]
          {Largebfseriesfilright}
          {makebox[40pt][l]{thesection}}
          {0pt}
          {Largebfseries}
          %%%


          begin{document}

          chapter{Beschreibung des Geschäftsprozesses}
          section{Übersicht über das Arbeitsumfeld des Geschäftsprozesses}

          end{document}


          enter image description here



          I added filright to avoid hyphenation in titles.







          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered 9 hours ago









          egregegreg

          775k92 gold badges2020 silver badges3381 bronze badges




          775k92 gold badges2020 silver badges3381 bronze badges
















          • Thats awesome, thank you very much for your incredible fast help.

            – Christian
            9 hours ago











          • @Christian Pronto prontissimo son come il fulmine: sono il factotum della città. (from my profile). ;-)

            – egreg
            8 hours ago



















          • Thats awesome, thank you very much for your incredible fast help.

            – Christian
            9 hours ago











          • @Christian Pronto prontissimo son come il fulmine: sono il factotum della città. (from my profile). ;-)

            – egreg
            8 hours ago

















          Thats awesome, thank you very much for your incredible fast help.

          – Christian
          9 hours ago





          Thats awesome, thank you very much for your incredible fast help.

          – Christian
          9 hours ago













          @Christian Pronto prontissimo son come il fulmine: sono il factotum della città. (from my profile). ;-)

          – egreg
          8 hours ago





          @Christian Pronto prontissimo son come il fulmine: sono il factotum della città. (from my profile). ;-)

          – egreg
          8 hours ago



















          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%2f511981%2ftitlesec-vertical-align-chapter-and-section%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...