From 1dbb2d27293679876a8446a646980804d7a727ee Mon Sep 17 00:00:00 2001
From: Martin Arver <martin.arver@gmail.com>
Date: Wed, 7 Jun 2006 20:01:27 +0000
Subject: New super-useful command from Dominik - \nopt. Use this to exclude
 sections of text for a specific target/feature. Example of use in system
 options.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10089 a1c6a512-1295-4272-9138-f99709370657
---
 manual/preamble.tex | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'manual/preamble.tex')

diff --git a/manual/preamble.tex b/manual/preamble.tex
index 69cf5aa244..7b1927cee5 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -49,6 +49,7 @@
 \usepackage{url}
 \urlstyle{sf}
 \usepackage{marvosym}
+\usepackage{ifthen}
 
 % new \ifpdf to check if running in pdf mode. Helps for html generation.
 \newif\ifpdf\ifx\pdfoutput\undefined\pdffalse\else\pdfoutput=1\pdftrue\fi
@@ -239,3 +240,12 @@
    commandchars=\\\{\}%
    }
 
+
+% Use the nopt command to exclude a certain defined feature from a sectio
+% Example:
+% \nopt{ondio}{This text will be excluded for ondios}
+\newcommand{\optnvalue}{0}
+ \newcommand{\nopt}[2]{%
+   \renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}%
+   \ifthenelse{\optnvalue > 0}{}{#2}
+ }
-- 
cgit v1.2.3

