From f2589546b36be40e0cc102cdc69a39b132b956b7 Mon Sep 17 00:00:00 2001
From: Alexander Levin <al.le@rockbox.org>
Date: Sat, 27 Mar 2010 13:14:14 +0000
Subject: Fix the description of the %V WPS tag (last part of FS#11117)

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

(limited to 'manual/preamble.tex')

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 @@
 \usepackage{url}
 \urlstyle{sf}
 \usepackage{marvosym}
-\usepackage{ifthen}
 \usepackage{rotating}
 
 % pdf output: try pdf first, then png and jpg as file format
@@ -320,14 +319,13 @@
    commandchars=\\\{\}%
    }
 
-% Use the nopt command to exclude a certain defined feature from a sectio
+% Use the nopt command to exclude a certain defined feature from a section
 % 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}%
- }
+\makeatletter
+\newcommand*\nopt[1]{\if\Opl@notlisted{#1}\expandafter\@firstofone
+   \else \expandafter\@gobble \fi}
+\makeatother
 
 % Use the reference to handle get a flexible reference command
 % usage \reference{ref_section}
-- 
cgit v1.2.3

