Tag Info

New answers tagged

4

Here a partial solution \documentclass{article} \usepackage[fontsize=10pt,baseline=12pt]{grid} % this is necessary \makeatletter \renewcommand\normalsize{% \baselineskip=\Grid@baseline% \@setfontsize\normalsize{\Grid@fontsize}{\Grid@baseline}% \lineskip=0pt \lineskiplimit=-\Grid@fontsize% \abovedisplayskip \baselineskip% ...


4

Without TikZ. Still far from perfect though. \documentclass{memoir} \usepackage[paperwidth=10.5cm,paperheight=15.5cm,headheight=0.5in]{geometry} \usepackage{xcolor} \usepackage[explicit]{titlesec} \definecolor{sec}{HTML}{DD5C14} \definecolor{band}{HTML}{EE9C52} \titleformat{\section}[hang]{\sffamily\Huge\bfseries}{}{0.5ex}% ...


2

Since the class already redefines \@makechapterhead, you need to step the chapshift counter there: \documentclass{book} \usepackage{geometry} \usepackage[demo]{graphicx} \usepackage{lipsum} \usepackage{tikz} \usepackage{xcolor} \definecolor{ocre}{RGB}{243,102,25} \usepackage{calc} \makeatletter \newcommand{\thechapterimage}{}% ...


3

The star form of \section generates a section without number. Since the subsection number usually is build with the section number, \thesubsection needs to be redefined: \documentclass{article} \renewcommand*{\thesubsection}{\Alph{subsection}} \begin{document} \section*{Unnumbered section} \subsection{First numbered subsection} \subsection{Second numbered ...


3

You got three options depending on what changes to the layout you maybe want to make later: 1. Change only the title text In this case define \newcommand{\prayername}{Prayer} \newcommand{\practrefname}{Practical refelctions} and use them withe the desired sectioning command, e.g. \chapter{My Chapter (Way 1)} Text \section{Normal Section} Text ...


5

I fiddled.... I have no idea what I am doing. If this breaks your document horribly, you get to keep all the itsy-bitsy pieces for yourself. I accept no responsibility if the code collaborates with your cat to order courier delivery of new tin-openers or dials out for pizza when bored. Caveat emptor... The basic problem, I think, is the definition of the ...


4

The inner code of \section prevents that the protrusion can work (it inserts a box with a skip and a \noindent). The \protrudeleft command from the question you linked to imho can't work here, as it implicitly assumes that it is used in vertical mode. You can get the protrusion with the following code. Attention This is not a "general" code. It assumes ...


0

I solved the issue as follows, The inner theme file contains the following code, \setbeamertemplate{section page}{ \global\boolfalse{SHOW_LINE_IN_FOOTER} \ifbool{DIVIDER_IS_YELLOW}{% \begin{tikzpicture}[remember picture, overlay] \node at (current page.center) { \includegraphics[width=\paperwidth]{yellow_divider.pdf} }; ...


6

As explained in the manual, a negative value for beforeskip disables indentation before the text following the heading; a positive value keeps the indentation. \documentclass[a4paper,11pt]{scrbook} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[]{blindtext} \usepackage{leading} \leading{13pt} \recalctypearea ...


3

The successor of scrpage2 is scrlayer-scrpage. With this package and an uptodate KOMA-Script version you can use something like \documentclass[12pt]{scrbook} \renewcommand\thesection{\arabic{section}} \usepackage[manualmark]{scrlayer-scrpage} \renewcommand\chaptermark[1]{\markboth{}{}} \renewcommand\sectionmark[1]{\markright{\thesection}} ...


0

The main problem with your code is that you are not using the built-in methods for separating the section heading from the stuff that goes into your TOC. But a standard sectioning command in has an optional argument for the TOC text, and memoir in fact has two optional arguments, one for the TOC text and one for the page header text. Since you are ...


2

Without information about the documentclass you are using or the type of document you are writing, I wrote a quite "basic" answer. This can be easily achieved with the fancyhdr package; the default style is: \fancypagestyle{DefaultStyle}{% \fancyhead{} %Clean headers \fancyhead[RO]{\slshape \leftmark} \fancyhead[LE]{\slshape \leftmark} ...


0

You can issue \stepcounter{chapter} before \chapter*{Appendix}: \documentclass{report} \usepackage[a6paper]{geometry} % Just to prduce smaller document for illustration \begin{document} \chapter{First} \begin{figure} \centering \rule{4cm}{2cm} \caption{First figure} \end{figure} \appendix \stepcounter{chapter} \chapter*{Appendix} ...


2

Package indentfirst enables the paragraph indentation after section titles. \documentclass{article} \usepackage{indentfirst} \usepackage{lipsum} \begin{document} \section{Section title} \lipsum[1-2] \end{document}


1

You can use \makeatletter \@addtoreset{section}{part} \makeatother A complete example: \documentclass{amsart} \makeatletter \@addtoreset{section}{part} \makeatother \begin{document} \part{Test part one} \section{Test section} \part{Test part two} \section{Test section} \end{document} The result:


0

Everyone on holidays here ... So I found the following solution: I use \raisebox{-3pt} in order to lower the baseline of the section headline by 3pt ("Grundlinienversatz"). Inside the \raisebox I have to use a \parbox to enable for linebreaks in the headline. This enables for correct vertical positioning of the headline itself. Finally, vertical spacing ...


5

Changing of the sectional fonts: Change size of section, subsection, subsubsection, paragraph and subparagraph title Adjusting the counter representation (somewhat relevant): Continuous v. per-chapter/section numbering of figures, tables, and other document elements \documentclass{article} \usepackage{sectsty} \subsubsectionfont{\normalfont\itshape} ...


4

I wouldn't do things this way. Since your \subsection* levels are enumerated with letters, they are regular numbered sections, so you should use \subsubsection. (If you don't like typing \subsubsection you can change it to something else (e.g. \let\lsection\subsubsection)). Then you can format everything simply with titlesec: \documentclass{article} ...


0

Here as font size of chapter heading is \huge, the size of footnotemark tracking it, you can reduce size of footnotemark inside a group with {\large\protect\footnote{text}} You can test it with this example \documentclass{book} \usepackage{lipsum} \makeatletter % to set the layout of the chapters header \def\@makechapterhead#1{% \vspace*{60\p@}% ...


0

Okay, the following did the trick (source: Move section out of part): \usepackage{bookmark} [...] \bookmarksetup{startatroot} Use \bookmarksetup{startatroot} where you want to start a new root. In my case right after \backmatter: \begin{document} [...] \part{ Conclusion} \chapter{Conclusion and Future Work} \section{Summary} \section{Answers to ...


0

So, for this document I will switch from memoir to article and use \section's. Now I can not see any other option .(


1

You can use the .aux file: \documentclass{article} \usepackage{lipsum} \usepackage{glossaries} \usepackage{hyperref} \makeatletter \newcommand{\glssubsection}[1]{% \@ifundefined{@glssubsection\detokenize{#1}} {\protected@write\@auxout{}{\string\newglossaryentry{#1}{name=#1,description={}}}% \global\@namedef{@glssubsection\detokenize{#1}}{}}{}% ...


1

Here is a suggestion redefining \sectionformat. And you can redefine \addchaptertocentry and \addsectocentry to get the desired entries in the table of contents. As already suggested by Johannes you can use \RedeclareSectionCommand or \RedeclareSectionCommands to change the space for the chapter and the section numbers in the table of contents. ...


2

It is quite easy with a recent version of KOMA-script. You can redefine the appearrance of chapter and section-commands using a key-value-syntax. In your case, you need to add just one line \RedeclareSectionCommand[tocnumwidth=8em]{section}. The value of 8em is chossen by looking at the output. I changed the numbering of sections a bit, just to make it more ...


1

Command that format (sub)section number in the heading is \@seccntformat Here is what we can do \documentclass[twoside=true, openright, pdftex, bibliography=totoc, chapterprefix=true, appendixprefix=true, numbers=noenddot, parskip=half, titlepage, index=totoc, headlines=3, footlines=2, headings=normal]{scrbook} \usepackage{xcolor} \usepackage{tocstyle} ...


3

With the titlesec package: \documentclass{article} \usepackage{titlesec} \titleformat{\paragraph}[runin] {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}[\hspace{0.5em}\nolinebreak---] \titlespacing*{\paragraph} {0pt}{3.25ex plus 1ex minus .2ex}{0.5em} \begin{document} \paragraph{A test paragraph} Some test text \end{document} The result: ...


0

How about \newcommand[1]{\mypar}{\paragraph{#1}\hspace{3em}} or \newcommand[1]{\mypar}{\paragraph{#1}~---}


5

There are many incorrect inputs that do not generate an error message. (\section[z]{\section{aa}} for example). \section inside a float is an error it is just not trapped by the system (it would have taken an unreasonable amount of memory to do so at the point that latex was designed.) The math/non-math distinction is built in to tex it is much easier to ...


4

Patch the redefined \@makechapterhead to have \raggedright in the right place: \documentclass{book} \usepackage{fullpage} \usepackage[english]{babel} \usepackage[avantgarde]{quotchap} \usepackage{etoolbox} \makeatletter \patchcmd{\@makechapterhead} {\raggedleft\advance} {\raggedright\advance} {}{} \makeatother \begin{document} \chapter{Introduction} ...


3

You have defined the format for numbered chapters and using an un-numbered chapter for Abstract. Defining the format for un-numbered chapters too is needed in this case to get a rule. \documentclass[11pt,oneside]{book} \usepackage{titlesec} % Below "\section" can be replaced with "\subsection" and "\subsubsection" % in order to customize the corresponding ...



Top 50 recent answers are included