New answers tagged

1

When I was writing my PhD thesis I came across this question and I was very sad I have not found any suitable cumulative dissertation template in LaTeX. So I made one. I wish it was so simple as Ruixi Zhang mentioned :) The collisions between packages that handle multiple bibliographies etc. were not nice at all. I hope it helps someone. You can find it in ...


1

This might be done easily using chngcntr package and the command \counterwithin{threesubsection}{subsubsection} For renumbering of subsections in the appendix, you might include the following \preto{\appendix}{\renewcommand{\thesubsection}{\Alph{section}. \arabic{subsection}}} \documentclass{article} \usepackage{titlesec} \usepackage{appendix} %% Section-...


0

Try the memoir class (encompasses the book, report and article) classes. Document divisions may take two optional arguments for the ToC text, and separately the heading text. For example: \section{<toc-title>][<head-title>]{<title>} no optional arguments <title> used in ToC, header, and document; <title> is always used for the ...


0

With a few exceptions hyperref should be loaded as the last package at it can then adjust it self according to the packages being loaded. In the MWE given, if hyperref is moved after titlesec things seems to work as expected


1

You need to change the headers anyway, because the style with uppercase slanted titles is really awful. I propose a \doubletitle command, to be used for long section (or chapter) titles; the first argument is the long title, the second one is the short form. \documentclass{book} \usepackage{fancyhdr} \usepackage{lipsum} % for mock text \fancyhf{} % clear ...


1

Please try this code \documentclass[10pt, a4paper,twoside]{article} \usepackage{kantlipsum} \usepackage{fancyhdr} \pagestyle{fancy} \fancypagestyle{plain}{} \fancyhf{} \fancyhead[RE,LO]{\rmfamily \small \nouppercase \rightmark} \begin{document} \pagestyle{fancy} \section{Abstract \protect\markboth{Abstract}{Abstract} } \kant[1] \clearpage \section{...


2

Using \newtheorem{definition}{Definition}[section] should result in the expected output: \documentclass{report} \newtheorem{definition}{Definition}[section] \begin{document} \chapter{chapter} \section{first section} \begin{definition} first definition in first section \end{definition} \begin{definition} second definition in first section \end{definition}...


2

Try this simple solution. But if a chapter follows a part it will be preceded by a blank page. \documentclass[openany]{scrbook} \usepackage{lipsum} \begin{document} \part{part 1} \cleardoublepage %<<<< \chapter{chapter 1} \lipsum[2] \chapter{chapter 2} \lipsum[2] \part{part 2} \cleardoublepage %<<<<< \chapter{chapter 3} \...


0

Unfortunatly the suggestion with the xr package did not work. Instead I brute forced this by using section* command and the likes in order to get the proper article numbering. Also I used the custom command of the original template to simulate a title and author list in the reproduced article.


0

The accepted solution is not (or no longer) working for me. I had to swap def for define. \setuplayout [grid=yes] \definefont [BigFont] [Bold at 20pt] [24pt] \unprotect \newdimen\section_frame_width \define[2]\section_command{% \section_frame_width\hsize % we need to calculate the remaining \setbox\scratchbox\hbox{#1\space} % horizontal ...


1

classicthesis has some design flaws, especially using KOMA-Script and titlesec, which the author acknowledges in the package documentation (he is planning a e-design): However, there are still many remains from older times in the code, many dirty workarounds here and there, and several other things I am absolutely not proud of (for example my unwise ...


0

You need to change the babel settings for your language, in your case is italian so an example is: \addto\captionsitalian{% \renewcommand{\partname}% {Volume}% }


0

Wrong class? That is what a book-like class usually does by default with figures of different chapters (not of sections). If you do not like the usual chapter style in your document, then scrbook or memoir class are good alternatives to have section-like chapters without headaches, and if start the chapters in a new page is also a problem (it should not be a ...


0

After each \section add \addtocontents{lof}{\protect\addvspace{10pt}}. This will insert a vertical space of 10pt between each set of figure titles in the LoF. If you got bored with that you could change the \section command to include doing the \addtocontents. If you need similar spaces in your LoT include \addtocontents{lot}{\protect\addvspace{10pt}} % ...


0

Answer provided by user @campa: Use the command: \printbibliography[heading=bibnumbered]


-1

To control spaces you can simply: use to increase (to add space) \vspace{5mm} or \vspace{1em} or \vspace{1cm}, and; to decrese (take from the standard space) \vspace{-5mm} or \vspace{-1em} or \vspace{-1cm}. It is most appropriate to use for small documents or control few sections of the standard.


0

Try \vspace{-5mm} or \vspace{-1em} or \vspace{-1cm}.


3

The mailing list https://www.mail-archive.com/ntg-context@ntg.nl/msg79582.html says that it is not possible to set the counter to zero, but you can change the appearance so that 1 looks like 0. Imho a rather odd solution but it seems to work: \defineexpandable[1]\PreviousNumber {\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber]...


Top 50 recent answers are included