ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] using an end of line as parameter
@ 2024-02-19 12:49 Miguel Diaz
  2024-02-19 22:36 ` [NTG-context] " Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Miguel Diaz @ 2024-02-19 12:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1213 bytes --]

Dear list,
I want to format some language tests that different people are preparing.
Each one uses different software and there are always problems in format
that i want to solve.

for a a/b/c questions I receive text that I will format to a list (comments
are mine)

In den Büchereien gibt es auch … %the question
… Kuchen. %option a
… Theater. %option b
… Workshops. %option c

I need to detect \par or whatever sign marks the newline character as an
argument delimiter so that I dont have to paste hundreds of times braces
for each argument.
For the example, I use this macro definition (which does no work!)

\long\def\prueba
#1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]%
{{\bf Beispiel}: #1\\
\qquad  a) #2\\
\qquad  b) {\bf #3}\\
\qquad  c) #4
}

I get: tex error on line 493 in file ./prueba.tex: The file ended when
scanning an argument.

the macro seems to  read to the end of file not detecting \par; I know its
the \par that causes the problem; I used ^^M also which I read is a sinonym
for return but it also does not work.

Help would be appreciated (my computer keyboard would appreciate it too...)

[-- Attachment #1.2: Type: text/html, Size: 1334 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-02-22 10:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-19 12:49 [NTG-context] using an end of line as parameter Miguel Diaz
2024-02-19 22:36 ` [NTG-context] " Hans Hagen
2024-02-20 11:26   ` madiazm.eoicc
2024-02-20 12:13     ` Hans Hagen
2024-02-20 12:59       ` madiazm.eoicc
2024-02-20 19:10         ` Bruce Horrocks
2024-02-21  8:17           ` madiazm.eoicc
2024-02-21 14:27             ` Bruce Horrocks
2024-02-22 10:17               ` madiazm.eoicc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).