diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/preamble.tex | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex index 7969ca98c2..9398486168 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex | |||
@@ -79,7 +79,6 @@ | |||
79 | \usepackage{url} | 79 | \usepackage{url} |
80 | \urlstyle{sf} | 80 | \urlstyle{sf} |
81 | \usepackage{marvosym} | 81 | \usepackage{marvosym} |
82 | \usepackage{ifthen} | ||
83 | \usepackage{rotating} | 82 | \usepackage{rotating} |
84 | 83 | ||
85 | % pdf output: try pdf first, then png and jpg as file format | 84 | % pdf output: try pdf first, then png and jpg as file format |
@@ -320,14 +319,13 @@ | |||
320 | commandchars=\\\{\}% | 319 | commandchars=\\\{\}% |
321 | } | 320 | } |
322 | 321 | ||
323 | % Use the nopt command to exclude a certain defined feature from a sectio | 322 | % Use the nopt command to exclude a certain defined feature from a section |
324 | % Example: | 323 | % Example: |
325 | % \nopt{ondio}{This text will be excluded for ondios} | 324 | % \nopt{ondio}{This text will be excluded for ondios} |
326 | \newcommand{\optnvalue}{0} | 325 | \makeatletter |
327 | \newcommand{\nopt}[2]{% | 326 | \newcommand*\nopt[1]{\if\Opl@notlisted{#1}\expandafter\@firstofone |
328 | \renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}% | 327 | \else \expandafter\@gobble \fi} |
329 | \ifthenelse{\optnvalue > 0}{}{#2}% | 328 | \makeatother |
330 | } | ||
331 | 329 | ||
332 | % Use the reference to handle get a flexible reference command | 330 | % Use the reference to handle get a flexible reference command |
333 | % usage \reference{ref_section} | 331 | % usage \reference{ref_section} |