Tag Info

New answers tagged

3

This should need some adjustments, but it basically implements your request. Since I just redefine the sectioning commands, commenting out the \redefinelevel lines will revert to the standard behavior with no other change (apart running LaTeX a couple of times). \documentclass{report} \usepackage{fancyhdr} \usepackage{lipsum} \pagestyle{fancy} \fancyhf{} ...


3

\documentclass{report} \newcommand\fakechapter[1]{% \clearpage \refstepcounter{chapter}% \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}% \chaptermark{#1}} \begin{document} \tableofcontents \fakechapter{Obstacle Avoidance} blbla \fakechapter{Face Recognition} blblb \end{document}


5

\section is not defined in the latex kernel it is defined (or not) in each class file. The implementation in article for example is just one definition \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% ...


1

Here's a very simple solution: create your own command that puts the page number into the section heading. \newcommand{\mysection}[2]{% \section*{#1 (p.~#2)}% } Use it like this: \mysection{35}{Macros}


3

Do you just want something like this? I'm still not entirely clear what the command should do about the page but maybe you don't want it to do anything? \documentclass{article} \usepackage{titlesec} \titleformat{\section}[runin]{\Large\bfseries}{\thesection}{0pt}{}[] \setcounter{secnumdepth}{0} \begin{document} \section{Name of the section} (page) ...


4

You need to redefine \@makechapterhead (for numbered chapters) and \@makeschapterhead (for unnumbered chapters) and \section (the original definitions can be found in report.cls): \documentclass{report} \usepackage{lipsum}% just for the example \makeatletter \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum ...


5

A margin symbol could be clearer and less intrusive: \documentclass{article} \usepackage{lipsum,xcolor} \def\Smith{\rlap{\protect\makebox[-3cm]{\color{red}\S}}} \def\Philips{\rlap{\protect\makebox[-3cm]{\color{red}$\Phi$}}} \def\Omar{\rlap{\protect\makebox[-3cm]{\color{red}$\Omega$}}} \begin{document} \section{\Smith Lore ipsum}\lipsum[2] \section{\Philips ...


5

Give them some magic so that they can give you good marks! \documentclass{article} \def\TA{{\color{red}\staveVI}} \def\TB{{\color{blue}\staveXXXVI}} \usepackage{staves,xcolor,lipsum} \begin{document} \section{test} \TA\lipsum[1] \section {test} \TB\lipsum[2] \end{document} If you change the definitions to robust commands you can also put them in the ...



Top 50 recent answers are included