• No results found

1.1 How to Contribute

N/A
N/A
Protected

Academic year: 2021

Share "1.1 How to Contribute"

Copied!
3
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

\crumbs: [Intro] [How It Works]

\subcrumbs: [How to Contribute]

section=1, crumbi=2, subcrumbi=1

crumbs : L A TEX Package for Navigation Crumbs

Yegor Bugayenko 0.3.1 2021/09/13

Before the first \section command:

\crumbs: [Intro] [How It Works]

\subcrumbs:

1 Introduction

This package helps you add navigation crumbs to your document, which is most useful for presentation and slide decks:

1 \documentclass{article}

2 \usepackage{crumbs}

3 \usepackage{fancyhdr}

4 \fancyhf{}

5 \pagestyle{fancy}

6 \fancyhead[L]{\crumbs / \subcrumbs}

7 \begin{document}

8 \section{Introduction}

9 Some text here.

10 \section{Related Works}

11 Some other text here.

12 \end{document}

You may redefine \crumb{} and \subcrumb{} commands, if you want your crumbs to look nicer, for example:

(2)

\crumbs: [Intro] [How It Works]

\subcrumbs: [How to Contribute]

section=1, crumbi=2, subcrumbi=1

13 \renewcommand\crumb[2]{

14 {

15 \ifnum\value{section}=\value{crumbi}

16 \color{orange}

17 \fi

18 #1

19 }

20 }

The same for \subcrumb{} , but the comparison should be done not between section and crumbi , but between subsection and subcrumbi counters.

The first parameter of both \crumb{} and \subcrumb{} is the optional parameter of

\section{} and \subsection{} calls respectively. The second one is the mandatory parameter of them, which is the full text of the section and sub-section.

You can use \section and \subsection with an optional argument, which will be used in the crumbs, e.g.:

21 \section[Details]{More Details About The Method}

22 \subsection[SLR]{Systematic Literature Review}

1.1 How to Contribute

You may turn on the “dry” mode, which will prohibit the package to renew \section{}

and \subsection{} commands. You will still be able to use the crumbs mechanism through \crumbection{} and \subcrumbection{} commands, for example:

23 \documentclass{article}

24 \usepackage[dry]{crumbs}

25 \begin{document}

26 \crumbection[Intro]{Introduction} % Add it to \crumbs

27 \section{Introduction} % Print it to the page

28 Hello, world!

29 \end{document}

You can also instruct it to increment \section{} and \subsection{} on each call to \crumbection{} and \subcrumbection{} respectively. Just use the increment package option.

(3)

\crumbs: [Intro] [How It Works]

\subcrumbs:

section=2, crumbi=2, subcrumbi=1

More details about this package you can find in the yegor256/crumbs GitHub repository.

If you want to add a feature or fix a bug, you are welcome to submit an issue or make a pull request.

2 How It Works

On the first run, a new file \jobname.crumbs is created, where all \section and

\subsection commands are being logged.

On the second run, the file is loaded and two commands are being created: \crumbs and

\subcrumbs. The first one is a collection of \crumb{} calls, while the second one is a collection of \subcrumb{} ones.

Referenties

GERELATEERDE DOCUMENTEN

Since the MB dealership network encompasses 315 dealerships that in some cases have different characteristics, it was determined, in cooperation with the management of

Russia is huge, so there are of course many options for you to visit, but don’t forget to really enjoy Moscow.. But don’t panic if you don’t understand how it works, just ask

These articles are found with the following key-words: cooperative, stakeholder theory, stakeholder identification, stakeholder engagement, stakeholder interests,

In difference to other existing solutions, exceltex does not seek for making the creation of tables in LaTeX easier, but to get data from Spreadsheets into LaTeX as easy as

Typesetting your document produces a file named example doctest.sage containing all the doctest-like examples, and you can have Sage check them for you with:.. $ sage

• You may use results proved in the lecture or in the exercises, unless this makes the question trivial.. When doing so, clearly state the results that

– Today, after the advent of braided categories and quantum groups, cate- gories are beginning to look downright concrete, and the last remaining anticategorical reactionaries

D the uniqueness of the inhabitants of British seaside towns Tekst 6 The allure of the British seaside.. 1p 20 How does the writer introduce the subject of this text in