ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* An Exam Preparation Issue (framedtext and overlap problem)
       [not found] <AANLkTingFWoJRzxs7b19jUuxwHYTGezTg3CkR5URX_O4@mail.gmail.com>
@ 2010-10-26  7:48 ` Murat Demirten
  2010-10-26 17:41   ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Murat Demirten @ 2010-10-26  7:48 UTC (permalink / raw)
  To: ntg-context


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

Hi,

I'm so new in the Context's voodoo world and I'm trying to build an exam
from a questions database.

A regular question has 5 options and only one correct answer.

I want to prepare a good looking pdf file, the most important requirement
for the pdf is that, a question and all of its 5 options must be on the same
page.

So I found the startframedtext command and start to work on it. Now I have
16 questions and their options in the tex file, but on the Page1 only
questions 1-6 shown
and question 6 divided. On the second page it continue from question 16
(7-15 doesn't shown).

I've no idea about this, if anyone can show me a way to found real problem
I'll be very glad.

Here is the questions.tex file:
===========================================
\enableregime[utf]
\definetypeface[myface][ss][Xsans][Arial]

\definehead[question][section]
\setuppapersize[A4]
\setupbodyfont[myface, 8pt]
\setuppagenumbering [location=footer]

\setupframedtexts[width=fit, margin=yes]

\setuphead[question]
  [page=yes,
  continue=no,
  numberstyle=bold,
  textstyle=cap]

\starttext

\startframedtext[left]
\question {25 yaşında erkek hasta, 24 yaşındaki eşi ile korunmamalarına
rağmen  3 yıldır çocuk sahibi olamıyorlar.
Sperm analizinde ejakülat hacmi: 3 cc, pH: 7.4 ve 2 analizde de canlı sperme
rastlanmıyor. Bilateral testis hacmi:

15 cc, FSH: 11 IU ve LH: 7 IU olarak bulunuyor. Bu klinik veriler ışığında
bu infertil çifte aşağıdakilerden
hangisi önerilmelidir?}
\startitemize[A,columns,two][stopper=)]
\item png
\item tif
\item jpg
\item bmp
\item gif
\stopitemize
\stopframedtext

\startframedtext[left]
\question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan
bebekte kromozom analizi 46 XX tir.
Bu olguda en olası  tanı nedir?}
\startitemize[A,columns,three][stopper=)]
\item Androjen duyarsızlık sendromu
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext[left]
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext[left]
\question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan
bebekte kromozom analizi 46 XX tir.
Bu olguda en olası  tanı nedir?}
\startitemize[A,columns,three][stopper=)]
\item Androjen duyarsızlık sendromu
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext[left]
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan
bebekte kromozom analizi 46 XX tir.
Bu olguda en olası  tanı nedir?}
\startitemize[A,columns,two][stopper=)]
\item Androjen duyarsızlık sendromu
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan
bebekte kromozom analizi 46 XX tir.
Bu olguda en olası  tanı nedir?}
\startitemize[A,columns,three][stopper=)]
\item Androjen duyarsızlık sendromu
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext

\startframedtext
\question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.}
\startitemize[A,columns,three][stopper=)]
\item Konjenital adrenal hiperplaziler
\item Beş alfa redüktaz eksikliği
\item 21 hidroksilaz eksikliği
\item Testiküler regresyon sendromu
\item Hipogonadotropik hipogonadizm
\stopitemize
\stopframedtext


\stoptext

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

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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: An Exam Preparation Issue (framedtext and overlap problem)
  2010-10-26  7:48 ` An Exam Preparation Issue (framedtext and overlap problem) Murat Demirten
@ 2010-10-26 17:41   ` Wolfgang Schuster
  2010-10-26 17:54     ` Murat Demirten
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2010-10-26 17:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 26.10.2010 um 09:48 schrieb Murat Demirten:

> Hi,
> 
> I'm so new in the Context's voodoo world and I'm trying to build an exam from a questions database.
> 
> A regular question has 5 options and only one correct answer.
> 
> I want to prepare a good looking pdf file, the most important requirement for the pdf is that, a question and all of its 5 options must be on the same page.
> 
> So I found the startframedtext command and start to work on it. Now I have 16 questions and their options in the tex file, but on the Page1 only questions 1-6 shown and question 6 divided. On the second page it continue from question 16 (7-15 doesn't shown).
> 
> I've no idea about this, if anyone can show me a way to found real problem I'll be very glad.

The odd behavior is caused by the „columns“ option in the itemize (which will never work for you in your file because you use it inside framedtext where columns are not possible). You can also see the effect in this far simpler example:

\starttext

\dorecurse{20}
  {\startframedtext
   \startcolumns
    text
   \stopcolumns
   \stopframedtext}

\stoptext 

Wolfgang


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: An Exam Preparation Issue (framedtext and overlap problem)
  2010-10-26 17:41   ` Wolfgang Schuster
@ 2010-10-26 17:54     ` Murat Demirten
  0 siblings, 0 replies; 3+ messages in thread
From: Murat Demirten @ 2010-10-26 17:54 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen


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

Hi,

I don't have to use framedtext, the reason for that it is the only way I can
found to group a question and its itemized options together, in a page.

Is there any way to ensure that a group (a question and its answer options)
must be located in same page and if it needs extra spacing whole group goes
into the next page?

Regards,

2010/10/26 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

>
> The odd behavior is caused by the „columns“ option in the itemize (which
> will never work for you in your file because you use it inside framedtext
> where columns are not possible). You can also see the effect in this far
> simpler example:
>
> \starttext
>
> \dorecurse{20}
>  {\startframedtext
>   \startcolumns
>    text
>   \stopcolumns
>   \stopframedtext}
>
> \stoptext
>
> Wolfgang
>
>
>

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

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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2010-10-26 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTingFWoJRzxs7b19jUuxwHYTGezTg3CkR5URX_O4@mail.gmail.com>
2010-10-26  7:48 ` An Exam Preparation Issue (framedtext and overlap problem) Murat Demirten
2010-10-26 17:41   ` Wolfgang Schuster
2010-10-26 17:54     ` Murat Demirten

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).