TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When iftoggle condition is used, first letter after the condition is removed in the output. Consider below code

First sentence.\iftoggle{test}{ Second sentence.} Last sentence.

If one executes above code, it renders "First sentence. Second sentence.ast sentence." removing "L"!. Can any one tell me how to correct it?

share|improve this question
Please provide a complete mwe. However iftoggle has three arguments! The first one is the toggle name the second one your group { .. } and the third one your L. – Marco Daniel Aug 18 '12 at 11:37
up vote 3 down vote accepted

The test iftoggle is a command with three mandatory arguments with the following syntax:

\iftoggle{ name }{ true }{ false }

Expands to true if the state of the boolean flag name is true, and to false otherwise.

In your example you have the following test:

\iftoggle{test}{ Second sentence.} Last sentence

with this setting:

name  ==> test
true  ==> Second sentence.
false ==> L

This happens because a standard mandatory argument is braced by curly brackets or it can be a single token.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.