File tree Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 587
587
588
588
\lstnewenvironment {codeblock}{\CodeBlockSetup }{}
589
589
590
- % Left-align listings titles
591
- \makeatletter
592
- \def\lst@maketitle {\@makeleftcaption\lst@title@dropdelim }
593
- \long\def\@makeleftcaption #1#2{%
594
- \vskip\abovecaptionskip
595
- \sbox\@tempboxa {#1: #2}%
596
- \ifdim \wd\@tempboxa >\hsize
597
- #1: #2\par
598
- \else
599
- \global \@minipagefalse
600
- \hb@xt@\hsize {% \hfil -- REMOVED
601
- \box\@tempboxa\hfil }%
602
- \fi
603
- \vskip\belowcaptionskip }%
604
- \makeatother
605
-
606
590
\lstnewenvironment {codeblocktu}[1]{%
607
591
\lstset {title={% \parabullnum{Bullets1}{0pt}
608
592
#1:}}\CodeBlockSetup }{}
Original file line number Diff line number Diff line change 121
121
leftmargin=\bnfindentrest , listparindent=-\bnfindentinc , itemindent=\listparindent }
122
122
123
123
% %--------------------------------------------------
124
- % % set caption style
125
- \captionstyle {\centering }
124
+ % % set caption styles
126
125
\DeclareCaptionLabelSeparator {emdash}{ --- }
127
- \captionsetup {labelsep=emdash,font+=bf}
126
+ \captionsetup {justification=centering,labelsep=emdash,font+=bf}
127
+ \captionsetup [lstlisting]{justification=raggedright,singlelinecheck=false,font=normal}
128
128
129
129
% %--------------------------------------------------
130
130
% % set global styles that get reset by \mainmatter
You can’t perform that action at this time.
0 commit comments