How do I set the Font for chapter and section ?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I want to customize my chapters and section but the number of the chapter disapear when using this code :
ch1 = Chapter;
chapitre1 = Paragraph("Chapter1");
chapitre1.Style = {FontFamily("Franklin Gothic Medium Cond"),FontSize("18pt"),Color("#28367b"),HAlign("Left"),OuterMargin("0in","0in","0in","0in")};
ch1.Numbered = true;
ch1.Title = chapitre1;
And it's not counted as a chapter in the table of contents.
So I used this code
ch1 = Chapter;
chapitre1 = Text("exemple1");
chapitre1.Style = {FontFamily("Franklin Gothic Medium Cond"),FontSize("18pt"),Color("#28367b"),HAlign("Left"),OuterMargin("0in","0in","0in","0in")};
ch1.Numbered = true;
ch1.Title = chapitre1;
It displays the number of the chapter but in a different format so it doesnt look nice.
Thank you for your help,
댓글 수: 0
답변 (1개)
Akash
2023년 9월 6일
Hi,
I understand that you want to achieve font customization in Chapter title, but the chapter number disappears when using the code that you provided.
To address this issue, I recommend referring to the MATLAB documentation, which provides detailed information on customizing the font of chapter headings in the Report Generator. You can find the documentation in the below link.
I encourage you to explore the below links. These discussions might provide valuable insights and solutions to help you customize the font size of your chapter headings.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!