Hot answers tagged

28

As egreg said, the easiest way is to use book since the main difference between book and report is that it has these commands. however if you just want the page number switching without the switch in functionality of chapter to appendix in the back matter you can simply copy the definitions from book, ignoring the @mainmatter switch: \makeatletter \...


26

The default depth of the ToC in report is 2 (contained within the counter tocdepth). This means that sectional units up to and including this level will be included in the ToC. Here are the levels based on the standard document classes: \part = -1 \chapter = 0 \section = 1 \subsection = 2 \subsubsection = 3 \paragraph = 4 \subparagraph = 5 If you wish for ...


17

The latex syntax is \rule not \hrule but if you want to use \hrule then \hrule height 2cm should work. The latex syntax would be \begin{center} \rule{\textwidth}{2cm} \end{center}


12

If all you want is to add the advisor, just add it to the author, like \author{It's me\\[1cm]{\small Advisor: A.D.Visor}} \documentclass[10pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[francais]{babel} \author{It's me\\[1cm]{\small Advisor: A.D.Visor}} \title{the title} \begin{document} \maketitle \end{document}


9

To set certain information at a given position on a page, I recommend the package textpos. Ten you may set text at an absolute position on the page (typical for a logo or similar graphic), or relative to another text. Below is an MWE placing a text on top right at the first page and a logo (the black box) at the bottom left. To change the positions, ...


9

Here's one possibility using the titlesec package: according to comments, the chapter number had to be removed. Also, there's no need to use the redefinition for \@makechapterhead; all formatting aspects can be modified/controlled in an easier way using \titleformat: \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{tikz} \titleformat{\...


9

If I understand the question correct, then a solution could be using the package subfiles. Say that main.tex is your main file, and file1.tex, file2.tex, and file3.tex are the ones you want to include. Then your main document would look something like: main.txt: \documentclass[a4paper]{article} <your preamble> \usepackage{subfiles} \begin{document} ...


8

You can use scrlfile from KOMA-script. \listfiles \RequirePackage{scrlfile} \ReplaceClass{article}{report} \documentclass{ltxdoc} \begin{document} \section{test} \end{document} That gives me the following *File List* scrlfile.sty 2012/06/15 v3.12 KOMA-Script package (loading files) ltxdoc.cls 2007/11/11 v2.0u Standard LaTeX documentation class ...


8

In report the page style for \chapter is plain by default. To change this you either need to change the plain page style, which may well have undesired side effects for other formatting in your document, or to patch the \chapter command to use your own style: \usepackage{etoolbox} \patchcmd{\chapter}{plain}{ChapterStyle}{}{} If you had been using scrreprt ...


7

Here is a unix script that gives you the option to shift things outward (i.e. for article to report) or inward (report to article, or beamer). #!/bin/bash if [ $# -lt 2 ] then echo "need input file name, 0 (out) or 1 (in) " >&2 exit 1 fi # strips .tex from filename to append _out.tex or _in.tex input="$1" filename=${input%.*x} # 0 ...


7

LaTeX inserts a vertical skip of \belowcaptionskip which defaults to 0pt so you can set \setlength\belowcaptionskip{10pt} the caption and float packages gives more extensive customisation possibilities including different spacing for tables and figures etc.


7

This was accomplished using a combination of the everypage package and TikZ. To build, run pdflatex -recorder <file> pdflatex <file> The first run with -recorder is to generate the files needed for the currfile package (to automate the bottom left). The second run is to sort out TikZ issues and to resolve labels used for the bottom ...


7

As @TomBrien mentioned, memoir. Other notes: You want a class, not a package. A thesis must (normally) be formatted a particular way, and that's what a class controls. Packages are for code or commands that could be used in lots of different types of documents. See LaTeX 2e for class and package writers for more information. Base your class off memoir (or ...


7

You don't need the titlesec package for that. It suffices to add the option chapterprefix=true when loading scrreprt. Taking the code from egreg's answer at your previous question and adding the above option: \documentclass[a4paper,10pt,chapterprefix=true]{scrreprt} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[italian]{babel} \...


7

If you want to re-define the whole layout of chapter headings, you can use titlesec and its \titlespacing command. If you just want to change the vertical spacing, it's easy with xpatch: \documentclass{report} \usepackage[showframe]{geometry} \usepackage{xpatch}% \begin{document} { % \makeatletter \xpatchcmd{\@makechapterhead}{% \vspace*{50\p@}}{% \...


7

The problem is that LaTeX provides 9 symbols when using symbol option, therefore it produces an error if you count higher. The simplest solution would be to reset the counter when you reach 9: \setcounter{footnote}{0} You could use the the footmisc package. It allows for 15 symbols, and you can use perpage option to automatically reset the counter every ...


7

You need to define the components associated with a title in order to properly use \maketitle. Once that's done, the abstract will set with the rest of the title components: \documentclass{amsart} \title[Short title]{A long title} \author{An author} \begin{document} \begin{abstract} Here is an abstract \end{abstract} \maketitle \end{document}


6

You have to use the same margins and the same font family (Times) as in LibreOffice. For example, LibreOffice 3.5.4 has 2 cm left and right margins as default in my installation (be aware that standard MS Word has US 1 inch margins, i.e. 2,54 cm). Also, LaTeX use Computer Modern as standard font, not Times New Roman. Try to add \usepackage{txfonts} \...


6

The problem is caused by the French option loaded for the report class or with the package babel. You may switch this behaviour off by adding \frenchbsetup{FrenchFootnotes=false} after the loading of babel. This will result in the more common superscript style. Other style corrections such as hang or flushed marginals can be done by the package footmisc ...


6

Here's one possibility using the titlesec package and the settings used by memoir for the style: \documentclass{report} \usepackage{graphicx} \usepackage{titlesec} \usepackage{lipsum} %just to generate text for the example \newcommand*\HUGE{\Huge} \newcommand*\chapnamefont{\normalfont\LARGE\MakeUppercase} \newcommand*\chapnumfont{\normalfont\HUGE} \...


6

Basic bibliography: At the end of your text, select Bibliography in the left drop down menu. Optional: Click the key-1[] gray box to add a label if you want a author-year citation style, as it should be showed (e.g, Smith, 1981). Write the full reference after key-1[] box. Press Enter to add the next references (key-2[]). In the main text, Insert > ...


6

Just redefining \partname to do nothing is not sufficient, because of the space inserted between the part name and the number, which is not suppressed. A kludge is to redefine \partname to gobble the next token: \makeatletter \renewcommand{\partname}{\@gobble} \makeatother because it is used in \@part as \partname\nobreakspace\thepart However, a better ...


6

Usual problem with skipping over conditionals. If the outer condition is false then Tex will be skipping over this \patchcmd{\slideentry}{\ifnum#2>0}{\ifnum2>0}{ so it will not expand \patchcmd in any way but it will see two \ifnum and add them to its internal \if matching and so will expect to see two \fi closing the inner ifs. You could give it ...


6

This will happen if you kill the compilation by clicking on some x icon, e.g. the red one here or the one in the top right: Instead of doing this type x on your keyboard and hit enter. This gives the engine a chance to clean up and finish open tasks.


5

You can use titlesec's commands anywhere and their effect will be limited to the group, or environment, containing them. The following document works with changing of sections and chapters. For illustration, I have only demonstrated sections; uncomment the lines in the body with \chapter commands to see these working too. \documentclass{report} \...


5

You can use the ucmark package option: \documentclass{report} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyhead[LE,RO]{\slshape \nouppercase{\rightmark}} \fancyhead[LO,RE]{\slshape \leftmark} \fancypagestyle{plain}{ \fancyhead{} \fancyhead[LE,RO]{\slshape \rightmark} \fancyhead[LO,RE]{\slshape \leftmark} } \usepackage[ucmark]{...


5

The option clash error requires that the same package is loaded twice. The second time with at least one new option that was not given at the time, when the package was loaded first (LaTeX loads a package the first time, at subsequent loading requests it only checks the options). Only one package is specified by the example file, thus the second load ...


Only top voted, non community-wiki answers of a minimum length are eligible