[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error with macro use case where arguments span in several lines
From: |
Hilaire Fernandes |
Subject: |
Error with macro use case where arguments span in several lines |
Date: |
Wed, 18 Nov 2020 09:46:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Hi,
With a figure macro defined as:
@c Figure with caption @macro figure{caption,file,width} @ifnotplaintext
@float Figure,\file\ @center @image{\file\,\width\cm}
@caption{\caption\} @end float @end ifnotplaintext @ifplaintext
@float Figure @caption{\caption\} @end float @end ifplaintext @iftex
@sp 1 @end iftex @end macro
It is fined when used as:
@figure{The File List tool@comma{} to install a change set and
more,ch10-FileListChangeSet,11}
But got error when used and formated in two lines:
@figure{The File List tool@comma{} to install a change set and more,
ch10-FileListChangeSet,11}
It is strange because with some other macro I don't have issue to put
the arguments in several lines to improve readability of the source text
document.
Thanks
Hilaire
Error attached bellow:
l.155 ch10-FileListChangeSet,11}
Runaway argument?
{
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Paragraph ended before @trim@ was complete.
<to be read again>
@par
<argument> ^^M
ch10-FileListChangeSet
@eatspaces ...@expandafter @trim@ @expandafter {#1
}
@setref ...xrdef ##1##2{@write @auxfile {@xrdef{#1
-##1}{##2}}}@toks 0 =
@exp...
@dofloat ...attype }@setref {@floatlabel }{Yfloat}
}@fi @vskip @parskip
@rest...
l.3 ch10-FileListChangeSet}
...
l.155 ch10-FileListChangeSet,11}
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Undefined control sequence.
@setref ...currentsection }@immediate @writexrdef
{title}{@the @toks 0
}@imm...
@dofloat ...attype }@setref {@floatlabel }{Yfloat}
}@fi @vskip @parskip
@rest...
l.3 ch10-FileListChangeSet}
@scanmacro ...@eatspaces }@scantokens {#1@comment}
l.155 ch10-FileListChangeSet,11}
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Undefined control sequence.
@setref ...}{@the @toks 0 }@immediate @writexrdef
{snt}{@csname
#2@endcsname...
@dofloat ...attype }@setref {@floatlabel }{Yfloat}
}@fi @vskip @parskip
@rest...
l.3 ch10-FileListChangeSet}
@scanmacro ...@eatspaces }@scantokens {#1@comment}
l.155 ch10-FileListChangeSet,11}
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Undefined control sequence.
<argument> @writexrdef
{pg}{@folio }
@safewhatsit #1->@ifhmode #1
@else @whatsitskip = @lastskip @edef
@lastskipma...
@setref ...safewhatsit {@writexrdef {pg}{@folio }}
}@fi
@dofloat ...attype }@setref {@floatlabel }{Yfloat}
}@fi @vskip @parskip
@rest...
l.3 ch10-FileListChangeSet}
@scanmacro ...@eatspaces }@scantokens {#1@comment}
l.155 ch10-FileListChangeSet,11}
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Extra }, or forgotten @endgroup.
@dofloat ...ttype }@setref {@floatlabel }{Yfloat}}
@fi @vskip @parskip
@resto...
l.3 ch10-FileListChangeSet}
@scanmacro ...@eatspaces }@scantokens {#1@comment}
l.155 ch10-FileListChangeSet,11}
Runaway argument?
{
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Paragraph ended before @trim@ was complete.
<to be read again>
@par
<argument> ^^M
ch10-FileListChangeSet
@eatspaces ...@expandafter @trim@ @expandafter {#1
}
@dopdfimage ...xt =@empty @begingroup @openin 1 #1
.pdf @ifeof 1 @openin
1 #1...
@imagexxx ...t @fi @ifpdf @dopdfimage {#1}{#2}{#3}
@else @ifx
@XeTeXrevision ...
@image ...true @fi @else @imagexxx #1,,,,,@finish
@fi
...
l.155 ch10-FileListChangeSet,11}
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Extra }, or forgotten @endgroup.
@eatspaces ...xpandafter @trim@ @expandafter {#1 }
@dopdfimage ...xt =@empty @begingroup @openin 1 #1
.pdf @ifeof 1 @openin
1 #1...
@imagexxx ...t @fi @ifpdf @dopdfimage {#1}{#2}{#3}
@else @ifx
@XeTeXrevision ...
@image ...true @fi @else @imagexxx #1,,,,,@finish
@fi
<argument> ...leListChangeSet},@xeatspaces {11}cm}
@unskip @hfil
@centersub ...enalty @fi @line {@kern @leftskip #1
@kern @rightskip }
...
l.155 ch10-FileListChangeSet,11}
Runaway argument?
{
/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex
info:155: Paragraph ended before @trim@ was complete.
<to be read again>
@par
<argument> ^^M
ch10-FileListChangeSet
@eatspaces ...@expandafter @trim@ @expandafter {#1
}
@dopdfimage ...version <13 #1.@pdfimgext @else {#1
.@pdfimgext }@fi
@ifnum @p...
@imagexxx ...t @fi @ifpdf @dopdfimage {#1}{#2}{#3}
@else @ifx
@XeTeXrevision ...
@image ...true @fi @else @imagexxx #1,,,,,@finish
@fi
...
l.155 ch10-FileListChangeSet,11}
!pdfTeX error: pdfetex (file @par ch10-FileListChangeSet ): cannot find
image f
ile
==> Fatal error occurred, no output PDF file produced!
--
GNU Dr. Geo
http://drgeo.eu
https://pouet.chapril.org/@hilaire
- Error with macro use case where arguments span in several lines,
Hilaire Fernandes <=