How to include a file with table data within a table?
![](https://secure.gravatar.com/avatar/8b5a3ee6fe397b9fd2f13c1ae4079f99.jpg?s=120&d=mm&r=g)
After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table: \starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|] \HL \NC {\bf Term} \NC {\bf Definition} \NC\NR \HL \input test2.tex %<----here you see I have input a file inside the table \HL \stoptabulate \stoptext File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR". I also tried defining a macro earlier in the document... \define[2]\tablewordis{% \NC \NC \NC\NR \NC #1 \NC #2 \NC\NR } ...then placing that in test2.tex, e.g.: \tablewordis{my word}{my definition} I get the error: " The file ended when scanning an argument." Before the update, this code worked fine. How can I \input a file while inside a table environment, as above? I have a document that has 100s of these inputs in my code, and now nothing will compile. Thanks, --Joel -
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Did you try \input{file.tex} ? (Just an idea, didn’t try.) Hraban Am 29.05.22 um 18:34 schrieb Joel via ntg-context:
After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table:
\starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|] \HL \NC {\bf Term} \NC {\bf Definition} \NC\NR \HL \input test2.tex %<----here you see I have input a file inside the table \HL \stoptabulate \stoptext
File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR".
I also tried defining a macro earlier in the document...
\define[2]\tablewordis{% \NC \NC \NC\NR \NC #1 \NC #2 \NC\NR }
...then placing that in test2.tex, e.g.:
\tablewordis{my word}{my definition}
I get the error: " The file ended when scanning an argument."
Before the update, this code worked fine.
How can I \input a file while inside a table environment, as above?
I have a document that has 100s of these inputs in my code, and now nothing will compile.
Thanks,
--Joel
![](https://secure.gravatar.com/avatar/8b5a3ee6fe397b9fd2f13c1ae4079f99.jpg?s=120&d=mm&r=g)
Adding the brackets + file name also didn't work.
--Joel
On Sunday, May 29, 2022, 11:33:48 AM MDT, Henning Hraban Ramm via ntg-context
After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table:
\starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|] \HL \NC {\bf Term} \NC {\bf Definition} \NC\NR \HL \input test2.tex %<----here you see I have input a file inside the table \HL \stoptabulate \stoptext
File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR".
I also tried defining a macro earlier in the document...
\define[2]\tablewordis{% \NC \NC \NC\NR \NC #1 \NC #2 \NC\NR }
...then placing that in test2.tex, e.g.:
\tablewordis{my word}{my definition}
I get the error: " The file ended when scanning an argument."
Before the update, this code worked fine.
How can I \input a file while inside a table environment, as above?
I have a document that has 100s of these inputs in my code, and now nothing will compile.
Thanks,
--Joel
If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
I sent a fix to the dev list. Wolfgang Joel via ntg-context schrieb am 29.05.2022 um 18:34:
After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table:
\starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|] \HL \NC {\bf Term} \NC {\bf Definition} \NC\NR \HL \input test2.tex %<----here you see I have input a file inside the table \HL \stoptabulate \stoptext
File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR".
I also tried defining a macro earlier in the document...
\define[2]\tablewordis{% \NC \NC \NC\NR \NC #1 \NC #2 \NC\NR }
...then placing that in test2.tex, e.g.:
\tablewordis{my word}{my definition}
I get the error: " The file ended when scanning an argument."
Before the update, this code worked fine.
How can I \input a file while inside a table environment, as above?
I have a document that has 100s of these inputs in my code, and now nothing will compile.
Thanks,
--Joel
*
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Henning Hraban Ramm
-
Joel
-
Wolfgang Schuster