[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nested @ifset

From: Robert J. Chassell
Subject: Re: nested @ifset
Date: Wed, 29 May 2002 16:50:19 +0000 (UTC)

My apologies, you should not have received my draft message 

    Subject: nested @ifset

For one, I had not completed writing the message, I sent it
accidentlly; and more importantly,

    nested @ifset works!  

My working file had a bug in it.  When I created a test file, I did
not run in the problem I had with my working file.

Here is a test file to illustrate working nested @ifset:

\input texinfo.tex   @c -*-texinfo-*-
@comment %**start of header
@settitle  Nested Ifset Test Document
@comment %**end of header

 ## Summary of shell commands to create various output formats:

    ## Info output
    makeinfo --force --fill-column=70 --no-split --paragraph-indent=0 \
    --verbose nested-ifset-test.texi

    ## DVI output
    texi2dvi nested-ifset-test.texi

    ## Plain text output
    makeinfo --fill-column=70 --no-split --paragraph-indent=0 \
    --verbose --no-headers --output=nested-ifset-test.txt  \

    ## HTML output
    makeinfo --no-split --html nested-ifset-test.texi

    ## DocBook output
    makeinfo --docbook --no-split --paragraph-indent=0 \
    --verbose nested-ifset-test.texi

    ## XML output
    makeinfo --xml --no-split --paragraph-indent=0 \
    --verbose nested-ifset-test.texi


 ## To create a MagicPoint .mgp file, change the set and clear commands below
    makeinfo --fill-column=70 --no-split --paragraph-indent=0 \
    --verbose --no-headers --output=nested-ifset-test.mgp  \

@end ignore

@c ---------------- begin setting segment  ---------------- 

@c set the following for the English segment
@c set en
@c set the following for the Spanish segment
@c set es

@c --- and do the following for regular output with and without <<...>> in it

    @c uncomment this for regular output: Info, HTML, printed
    @c clear mgp
    @c clear file-mgp

    @c uncomment this for regular file with <<...>> in it,
    @c  which mark where MagicPoint slides should be shown
    @c set mgp
    @c clear file-mgp

@c --- or
    @c comment out all the preceding 
    @c and uncomment this to create MagicPoint file
    @clear mgp
    @set file-mgp

@c ---------------- end setting segment  ---------------- 

Copyright @copyright{} 2002 Robert J. Chassell

This is a test document showing nexted @code{@@ifset} commands.

Permission is granted to make and distribute verbatim
copies of this document provided the copyright notice and
this permission notice are preserved on all copies.

@c    The remainder of this paragraph applies to and should appear
@c    in the Texinfo source.
@c Permission is granted to process this file through TeX or
@c a Texinfo to HTML converter and publish the results,
@c provided the published document carries a copying permission
@c notice identical to this one except for the removal of this
@c paragraph (this paragraph not being relevant to the
@c published document).

Permission is granted to copy and distribute
translations of this document into another language,
under the above conditions for modified versions,
except that this permission notice may be stated in a
translation approved by the Free Software Foundation.
@end quotation
@end copying
@c For smallbook format, use smaller than normal amounts of
@c whitespace between chapters, sections, and paragraphs.
\global\chapheadingskip = 15pt plus 4pt minus 2pt
\global\secheadingskip = 12pt plus 3pt minus 2pt
\global\subsecheadingskip = 9pt plus 2pt minus 2pt \global\parskip 2pt plus 1pt
@end tex

@sp 6
@center @titlefont{Nested Ifset Test Document}
@sp 4
@center by Robert J. Chassell

@vskip 0pt plus 1filll
@end titlepage


@ifclear file-mgp

@node Top, Chapter One, (dir), (dir)
@top Test Top
@end ifnottex

* Chapter One::
* Chapter Two::
@end menu

@node Chapter One, Chapter Two, Top, Top
@comment node, next, prev, up
@chapter Chapter One

Contents of chapter 1.

The quick brown fox jumps over the lazy dog.

Following this sentence is a segment in English, marked with an
@code{@@ifset en} command:

@ifset en
This segment is in English
@end ifset

Following this sentence is a segment in Spanish, marked with an
@code{@@ifset es} command:

@ifset es
No hablo espaƱol.
@end ifset

Here is an bulleted list:

@itemize @bullet

First item.

Second item.
@end itemize

@c ------------ begin ifset ------------
@ifset mgp
<<This is a title for an MGP file>>
@end ifset
@end ifclear
@ifset file-mgp
%%%%%%%%%%%%%%%% nested-ifset-test.mgp %%%%%%%%%%%%%%%%
%deffont "standard" xfont "helvetica-medium-r"
%deffont "thick" xfont "helvetica-bold-r"
%deffont "typewriter" xfont "courier-medium-r"
%default 1 leftfill, size 5, vgap 40, fore "white", back "black", font "thick"
%default 2 font "standard", vgap 40, prefix " "
%default 4 size 5, prefix " "
%tab 1 size 5, vgap 40, prefix "  ", icon box "green" 50
%tab 2 size 4, vgap 40, prefix "      ", icon arc "yellow" 50
%tab 3 size 3, vgap 40, prefix "            ", icon delta3 "white" 40
%% mgp -x vflib -g 850x900+350+30 nested-ifset-test.mgp

%center, bar "blue"

This is a title for an MGP file

%center, bar "blue"

%size 3
Robert J. Chassell

@end format
@end ifset
@ifclear file-mgp
@c ------------ end ifclear ------------

Contents of chapter 1.

The quick brown fox jumps over the lazy dog.

@node Chapter Two,  , Chapter One, Top
@chapter Chapter Two

Contents of chapter 2
@cindex bar

The lazy dog opens an eye.

@c ------------ begin ifset ------------
@ifset mgp
<<A second MGP file segment>>
@end ifset
@end ifclear
@ifset file-mgp
%prefix "", leftfill

A second MGP file segment: Header line

%prefix "    ", icon box "blue" 50
comment line 1
%prefix "    ", icon delta3 "green" 40
comment line 2
%prefix "    ", icon arc "yellow" 30
comment line 3

@end format
@end ifset
@ifclear file-mgp
@c ------------ end ifclear ------------

The lazy dog jumps over the quick brown fox.

@end ifclear


reply via email to

[Prev in Thread] Current Thread [Next in Thread]