• No results found

Examples of multiaudience package use Boris Veytsman Date: 2015/07/11 22:49:40

N/A
N/A
Protected

Academic year: 2021

Share "Examples of multiaudience package use Boris Veytsman Date: 2015/07/11 22:49:40"

Copied!
5
0
0

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

Hele tekst

(1)

Examples of multiaudience package use

Boris Veytsman

(2)

Contents

1 Introduction 3

2 The \CurrentAudience command 3

3 The \showto command 3

4 The shownto environment 3

5 Use of verbatim text 4

6 Syntactic sugar 4

(3)

1

Introduction

We defined three audiences:

\SetNewAudience{admins} \SetNewAudience{devs} \SetNewAudience{execs}

2

The \CurrentAudience command

The current audience is \CurrentAudience.

The current audience is admins.

3

The \showto command

Note the nesting here:

\showto{admins}{This text is visible to admins only\footnote{And admins see a footnote}.}

\showto{admins, devs}{This text is visible to admins and devs. \showto{devs}{This text is visible to devs.}}

\showto{-, admins}{This text is \emph{not} visible to admins.} This text is visible to everybody\footnote{And everybody sees a

footnote}.

This text is visible to admins only1. This text is visible to admins and devs. This text is visible to everybody2.

4

The shownto environment

\begin{shownto}{admins} This is for admins only. \end{shownto}

This is for admins only.

\begin{shownto}{-, admins}

This is for everybody \emph{but} admins. \end{shownto}

(4)

5

Use of verbatim text

\begin{shownto}{-,execs}

We cannot use \texttt{verbatim} inside shownto, but we can use \texttt{input} with \texttt{verbatim} inside.

We also can use \texttt{path} and \texttt{url} from hyperref package: \path{a$2}, \url{http://borisv.lk.net/cv/cv.html\#Publications}. \input{verbatim}

We also can use \texttt{path} and \texttt{url} from hyperref package: \path{a$2}, \url{http://borisv.lk.net/cv/cv.html\#Publications}. \end{shownto}

We cannot use verbatim inside shownto, but we can use input with verbatim inside.

We also can use path and url from hyperref package: a$2,http://borisv. lk.net/cv/cv.html#Publications.

This is a piece of verbatim text. Special symbols: ~!@#$%^&*<>{}"

Another option is the use of \SaveVerb and friends from fancyvrb package: \begin{SaveVerbatim}{SavedVerb}

This is a verbatim line: ~!@#$%^&*{}:"‘’<>? \end{SaveVerbatim}

\begin{shownto}{-,devs} \UseVerbatim{SavedVerb} \end{shownto}

This is a verbatim line: ~!@#$%^&*{}:"‘’<>?

6

Syntactic sugar

We have a special footnote command\Footnote{admins}{This footnote is for admins only.}.

We have a special footnote command3.

(5)

6.1

This subsection is visible only to admins

We have special sectioning commands.

\begin{Subsection}{-,admins}[Not for admins]{This subsection is not visible to admins}

Referenties

GERELATEERDE DOCUMENTEN

The aim is to have a single source for two books: the “base” edition and the commented edition, which reproduces the pages from the base one and adds comments around it (see Figure

This package redefines \today, to typeset \today’s date in, the format Day,

Links from and between citations should work “smartly”: links from authors’ names go into the alphabetic list, links from the publication years go into the chronological list, and

The result of the command \emph in title depends on whether commercial fonts and the package lsabon package is used: with a relatively recent version of the package lsabon

However, remember that texsurgery is a python project whose main focus is on evaluating code inside a jupyter kernel, and this is only achieved by installing the python package

The glossaries-extra package temporarily modifies commands like \gls or \glsxtrshort that occur in fields, when any of those field is accessed through linking commands.. First use:

To contribute to the academic field the researcher has defined the Smart Tourism Experience as: ‘a personal experience with the added value towards the trip by the use of ICT,

In two experiments we adapted the WTI-paradigm by providing a central theme to previously used materials (Stafura &amp; Perfetti, 2014). In Experiment 1 we provided a three-