ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jeong Dal via ntg-context <ntg-context@ntg.nl>
To: "list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl" <ntg-context@ntg.nl>
Cc: Jeong Dal <haksan@me.com>
Subject: using the newcolumnsets module
Date: Thu, 9 Dec 2021 21:27:57 +0900	[thread overview]
Message-ID: <59F448EF-B6E8-46D4-B462-EEA96DA55A30@me.com> (raw)
In-Reply-To: <mailman.1.1639047601.1568.ntg-context@ntg.nl>


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


Dear all,

I made an exam form by the help of the experts in this list.
However, it was not working after recent update.
Here is a code which I made for the test.
If I use “\startcolumns \stopcolumns”, then it has no problem.
But using “\startcolumnset[exam] … \stopcolumnset” produces error message “return code 11”.
It loads “m-newcolumnset.tex” without problem.

What is the cause of this error?

Thank you for reading.

Best regards,

Dalyoung
%%%%%%%%
\startuseMPgraphic{verticalrule0}
  if CurrentColumn < NOfColumns :
    draw rightboundary OverlayBox shifted (4mm,0);
    setbounds currentpicture to OverlayBox enlarged 2.5mm;
  fi;
\stopuseMPgraphic

\startuseMPgraphic{squareBox}
   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic
\defineoverlay
  [headerBox]
  [\useMPgraphic{squareBox}]

\startuseMPgraphic{verticalrule3}
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule3}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]


\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=off, background=screen]

\define[3]\headTitle{\setupheadertexts[][\bf #1  \hfill #2  \hfill #3  \hfill ID:  \hskip 2cm Name: \hskip 2cm]}

\setupmathematics[autopunctuation=no, integral=nolimits]

\setupbodyfont[rm,10pt]
\setuppagenumbering[location=footer]
\setupcolors[state=start]
%\setupexternalfigure[directory={/Users/graph/Documents/figures,}]

\headTitle{2021. 12. 9.}{Set Theory}{Final Exam}

\usemodule[newcolumnsets]

\starttext

\startcolumns[rule=on,n=2,leftframe=on]
%\startcolumnset[exam]

\startitemize[n]
  \item The first problem.
  \vfill
  \column

  \item The second problem.
  \vfill
  \column

  \item The third problem.
  \vfill
  \column

\stopitemize

%\stopcolumnset
\stopcolumns
\stoptext


error messages:
system          > ConTeXt  ver: 2021.11.30 19:49 LMTX  fmt: 2021.12.1  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname '/Users/graph/Library/Mobile Documents/com~apple~CloudDocs/texMain/ColumnsetTest', input '/Users/graph/Library/Mobile Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex', result '/Users/graph/Library/Mobile Documents/com~apple~CloudDocs/texMain/ColumnsetTest'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name '/Users/graph/Library/Mobile Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex'
fonts           > preloading latin modern fonts (third stage)
fonts           > 'fallback modern-designsize rm 10pt' is loaded
colors          > 'rgb' color space is supported
colors          > 'cmyk' color space is supported
modules         > 'newcolumnsets' is loaded
open source     > level 2, order 3, name '/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
close source    > level 2, order 3, name '/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
mtx-context     | fatal error: return code: 11
The terminal process "zsh '-c', 'export PATH=~/ConTeXtL/tex/texmf-osx-64/bin:$PATH;mtxrun --autogenerate --script context --autopdf --purge '/Users/graph/Library/Mobile Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex''" terminated with exit code: 1.


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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

       reply	other threads:[~2021-12-09 12:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1639047601.1568.ntg-context@ntg.nl>
2021-12-09 12:27 ` Jeong Dal via ntg-context [this message]
2021-12-09 16:32   ` [DKIM] " Hans Hagen via ntg-context
2021-12-09 17:19     ` Bruce Horrocks via ntg-context
     [not found] <mailman.52.1639067592.431.ntg-context@ntg.nl>
2021-12-09 18:13 ` Jeong Dal via ntg-context
     [not found] <mailman.59.1639073629.431.ntg-context@ntg.nl>
2021-12-09 19:17 ` Jeong Dal via ntg-context
2021-12-09 19:52 ` Jeong Dal via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59F448EF-B6E8-46D4-B462-EEA96DA55A30@me.com \
    --to=ntg-context@ntg.nl \
    --cc=haksan@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).