Tag Info

Hot answers tagged

4

\maketitle creates a cover page of its own with the specified parameters (everything that is in \title, \author and a few other commands). Try again without the \maketitle command.


4

For \author, date, and \title there is an optional argument, that is used in the structure of the frame (i.e. the footline) so you could use \title[Group Theory]{A longer title of the talk concerning Group Theory} \author[short name]{My full name} \institute[My Inst.]{Full Institut Name} % logo of my university ...


4

Both \sectionmark and \subsectionmark should take an argument: \renewcommand{\sectionmark}[1]{}%prevent rewriting \markright \renewcommand{\subsectionmark}[1]{}%prevent rewriting \markright The \section command produces \sectionmark{<title>} and if you redefine \sectionmark to have no argument, the tokens {<title>} are not removed.


3

Something with the hard way using \@ifnextchar and the easy way with xparse \documentclass{article} \usepackage{xcolor} \usepackage{xparse} \makeatletter \providecommand{\@module@no}{} \providecommand{\@module@title}{} \newcommand{\module}{% \@ifnextchar[{\module@@opt}{\module@@noopt} } \newcommand{\module@@opt}[2][no module number]{% ...


2

The article class assumes that footnotes in the title are for “thanks” and appear at the end of the title, not counting for its centering. You can avoid this by making it not redefining \@makefnmark; since it says \def\@makefnmark{...}, I change it into \def\aaaBBBcccDDD{...} that is unlikely to be found in your title. \documentclass{article} ...


2

Because you are loading scrlayer-scrpage: Remove the (unnecessary) redefinitions of \sectionmark and \subsectionmark and use the possibilities of scrlayer-scrpage. \usepackage{scrlayer-scrpage} \automark{chapter}% -> section does not rewrite \markright \clearpairofpagestyles \renewcommand{\chaptermarkformat}{} \addtokomafont{pagehead}{\small} ...


2

Remove the \null\hfill that forms part of the printing of \@title. If my "arrange the first name and the family name among each other" you mean swap them around, then you should swap around the placement of \@firstname and \@familyname in the code. \documentclass[11pt,a4paper]{moderncv} \usepackage[utf8]{inputenc} \moderncvstyle{casual} ...


1

Probably, this is one of those rare cases in which it is preferable to add another answer, rather then editing the one I already gave; indeed, I dislike my previous answer so much that I’ll probably remove it. The following, obvious solution is much neater: \documentclass[a4paper,twoside,titlepage]{article} \usepackage[T1]{fontenc} \usepackage[ a4paper, ...


1

You can add the name and the subtitle to the \chapter* command; adjust the dimensions in the definition of \summary until you're satisfied. \documentclass{report} \usepackage{geometry} \geometry{letterpaper,margin=1in} \usepackage{newtxtext} \newcommand{\summary}[2]{% \chapter*{% \parbox{\textwidth}{% \centering #1\\[1.5ex]% the title and ...


1

If we redefine the \maketitlepage macro to always set the title page ragged right (instead of justified), it will improve the line wrapping. Add the following to the preamble of your document (between the \documentclass and \begin{document} lines): \renewcommand{\maketitlepage}{% \cleardoublepage \begin{fullwidth}% \sffamily \RaggedRight\sloppy% ...


1

According to authors instructions for Lecture Notes in Computer Science, you must use \email{<email address>} within \institute{} and therefore you should not obtain the style that you are looking for(*). Compile llncs.doc (in spite of the extension, is really a LaTeX file) with pfdlatex to see the instructions for authors. This is a MWE extracted ...


1

The right solution is 0) \def\module[#1]#2{\gdef\mod@no{#1}\gdef\mod@title{#2}} This defines \module macro for the usage \module[num]{text}. This macro defines \mod@no as num and \mod@title as text. It means that you can use later \mod@no which expands to num and \mod@title which expands to text. This is exactly, what you need. Your bad attepts: 1) ...


1

It's very easy, with xparse, to define a command that prints what you want: \usepackage{xparse} \NewDocumentCommand{\module}{om}{% {\Large\IfValueT{#1}{#1: }#2\par}% } The {#1: } part is printed if you call \module[PH588]{Mathematical Techniques}, but not with the call \module{Mathematical Techniques} If you need the optional module number and the ...


1

The easiest way is to use the notitlepage option \documentclass[a4paper, twoside, 14pt,notitlepage]{extreport} \title{Page resetting title} \author{J Smith} \begin{document} \pagenumbering{arabic} first page \newpage second page \newpage third page \maketitle \newpage fifth page \newpage sixth page \end{document}


1

The only thing I can think of is to patch the definition of the titlepage environment: \documentclass[a4paper, twoside, 14pt]{extreport} \usepackage{etoolbox} \makeatletter \patchcmd{\titlepage} {\setcounter{page}\@ne} {} {}{} % Also: \patchcmd{\endtitlepage} {\if@twoside\else\setcounter{page}\@ne\fi} {} {}{} \makeatother ...



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