New answers tagged

1

Here is a suggestion using package tocbasic: \documentclass{report} \usepackage{tocbibind} \usepackage{tocbasic} \DeclareTOCStyleEntry[ entrynumberformat=\entrywithprefix{\chaptername}, dynnumwidth ]{tocline}{chapter} \newcommand*\entrywithprefix[2]{#1~#2} \begin{document} \tableofcontents \chapter{Foo} \section{Bar} First document. This is a simple ...


3

Looking at the aux file I noticed that normal chapters used \numberline and others didn't. So I moved the addition of \chaptername to be inside \numberline. \documentclass{report} \usepackage{tocbibind} \makeatletter \renewcommand*\l@chapter[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{...


4

There is a newer ASME template here: https://ctan.org/pkg/asmejour. Building on egreg's answer, here is a start. Sorry for the mash-up of languages in this example. % !TEX encoding = UTF-8 Unicode \begin{filecontents*}{\jobname.bib} @article{szczesny, author={W. Szcz{\k{e}}sny}, title={How to save}, journal={Int. J. Soccer}, year=2019, } @article{...


6

I sympathize with people forced to use document classes that are outdated and use funny code that's incompatible with babel. The class you need falls in this category: for instance advertises usage of epsfig, which has been obsolete for more than 20 years; similarly obsolete is mathptm. The code contains a modified version of cite.sty, which turns out to ...


0

To add the period after the booktitle content to separate it from the next field content, FUNCTION {format.in.ed.booktitle} { booktitle empty$ { "In: " } { "In: " editor empty$ { " " * booktitle emphasize * ". " * } { " " * format.editors * " " * booktitle emphasize * ". " * } if$ } if$ }


Top 50 recent answers are included