ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "C." <metan0r@gmx.de>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: \setupalign[hz,hanging] breaks verbatim text
Date: Wed, 16 Feb 2011 21:11:02 +0100	[thread overview]
Message-ID: <001201cbce15$a35346d0$e9f9d470$@gmx.de> (raw)
In-Reply-To: <4D5C1A28.2000604@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 3229 bytes --]

I tried your code. Does not work. Again, when I comment the line with
\setupalign it works.
I was using Minion via simplefonts, but it seems modern fonts are also
affected.
I'working on Windows 7 32bit and updated  Context Minimals before testing.

@Wolfgang: I included the options because ConTeXt was using the
condensed-italic font instead of the italic font. That occurs only if one
has both variants installed.

> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen [mailto:pragma@wxs.nl]
> Gesendet: Mittwoch, 16. Februar 2011 19:41
> An: mailing list for ConTeXt users
> Cc: C.
> Betreff: Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text
> 
> On 16-2-2011 6:48, C. wrote:
> > I have a strange problem in one of my documents.
> > When I uncomment the line with \setupalign[hz,hanging] everything
> > works fine. When I use it, I get this error because of a verbatim typing
> segment:
> >
> > \obeyedline ->\par
> >
> > \doverbatimendofline ->\dostoptagged \obeyedline
> >                                                   \par \ifconditional
> > \verbat...
> > l.10 \dodisplayverbatimstop
> >
> > \ctxcommand ...\directlua \zerocount {commands.#1}
> >
> > \dodotypeblockverbatim ..., nature = "display", }}
> >                                                    \dostoptagged
> > \endofverbat...
> > l.71 \stoptyping
> >
> > !  ==>  Fatal error occurred, no output PDF file produced!
> > mtx-context     | fatal error: return code: 1
> >
> > Here is the troublemaker:
> > \starttyping
> > test;
> > äüöAR \test \Context
> > \stoptyping
> >
> > Interestingly I was not able to produce a real minimal example,
> > because when I remove everything except these lines, it’s working fine
> > again. So there has to be at least some lines of text to break stuff.
> > Oh yeah, and it seems that using simplefonts and Minion also plays a
role.
> > Can somebody have a look at this, please? The attached file like it is
> > does not compile here.
> 
> Can you figure out what font is involved? This works ok here.
> 
> \definefontfeature[default][default][expansion=quality,protrusion=quality]
> 
> \setupbodyfont[modern,12pt]
> 
> \setupalign[hz,hanging]
> 
> \starttext
> 
> Das Akronym ARMA (AutoRegressive-Moving Average) und die daran
> angelehnten Kunstwörter ARMAX und ARIMA bezeichnen lineare Modelle
> für stationäre, zeitdiskrete stochastische Prozesse. Sie werden zur
> Zeitreihenanalyse in der Messtechnik, in der Statistik und dort
insbesondere
> in der Ökonometrie eingesetzt. Kern ist ein lineares Gleichungssystem. Man
> kann solche Modelle auch als Differenzengleichungen bzw.
> Differenzengleichungssysteme ansehen.
> 
> \starttyping
> test;
> äüöAR \test \Context
> \stoptyping
> 
> \stoptext
> 
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                               | www.pragma-pod.nl
> -----------------------------------------------------------------


[-- Attachment #2: minimal.tex --]
[-- Type: application/octet-stream, Size: 677 bytes --]

\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupbodyfont[modern,12pt]

\setupalign[hz,hanging]

\starttext

Das Akronym ARMA (AutoRegressive-Moving Average) und die daran angelehnten Kunstwörter ARMAX und ARIMA bezeichnen lineare Modelle für stationäre, zeitdiskrete stochastische Prozesse. Sie werden zur Zeitreihenanalyse in der Messtechnik, in der Statistik und dort insbesondere in der Ökonometrie eingesetzt. Kern ist ein lineares Gleichungssystem. Man kann solche Modelle auch als Differenzengleichungen bzw. Differenzengleichungssysteme ansehen.

\starttyping
test;
äüöAR \test \Context
\stoptyping

\stoptext

[-- Attachment #3: minimal.log --]
[-- Type: application/octet-stream, Size: 3583 bytes --]

(minimal.tex

ConTeXt  ver: 2011.02.16 19:30 MKIV  fmt: 2011.2.16  int: english/english

system          > cont-new.mkiv loaded
(C:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > minimal.top loaded
system          > options > begin of optionfile
system          > options >
system          > options > % runtime options files (command line driven)
system          > options > \unprotect
system          > options > % feedback and basic job control
system          > options > % handy for special styles
system          > options > \startluacode
system          > options > document = document or { }
system          > options > document.arguments={
system          > options > }
system          > options > document.files={
system          > options >  "minimal.tex",
system          > options > }
system          > options > \stopluacode
system          > options > % process info
system          > options > \setupsystem[inputfile=minimal.tex]
system          > options > \setupsystem[\c!n=1,\c!m=1]
system          > options > % modes
system          > options > % options (not that important)
system          > options > \startsetups *runtime:options
system          > options > \stopsetups
system          > options > % styles and modules
system          > options > \startsetups *runtime:modules
system          > options > \stopsetups
system          > options > % done
system          > options > \protect \endinput
system          > options >
system          > options > end of optionfile
(minimal.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
(C:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){C:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
system          > begin file minimal.tex at line 7
! Emergency stop.

system          > tex > error on line 10 in file minimal.tex: Emergency stop ...

 1     \definefontfeature[default][default][expansion=quality,protrusion=quality]
 2     
 3     \setupbodyfont[modern,12pt]
 4     
 5     \setupalign[hz,hanging]
 6     
 7     \starttext
 8     
 9     Das Akronym ARMA (AutoRegressive-Moving Average) und die daran angelehnten Kunstwörter ARMAX und ARIMA bezeichnen lineare Modelle für stationäre, zeitdiskrete stochastische Prozesse. Sie werden zur Zeitreihenanalyse in der Messtechnik, in der Statistik und dort insbesondere in der Ökonometrie eingesetzt. Kern ist ein lineares Gleichungssystem. Man kann solche Modelle auch als Differenzengleichungen bzw. Differenzengleichungssysteme ansehen.
10 >>  
11     \starttyping
12     test;
13     äüöAR \test \Context
14     \stoptyping
15     
16     \stoptext
17     


\obeyedline ->\par 
                   
\doverbatimendofline ->\dostoptagged \obeyedline 
                                                 \par \ifconditional \verbat...
l.10 \dodisplayverbatimstop
                           
\ctxcommand ...\directlua \zerocount {commands.#1}
                                                  
\dodotypeblockverbatim ..., nature = "display", }}
                                                  \dostoptagged \endofverbat...
l.14 \stoptyping
                
access violation

!  ==> Fatal error occurred, no output PDF file produced!

[-- Attachment #4: 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
___________________________________________________________________________________

  reply	other threads:[~2011-02-16 20:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-16 17:48 C.
2011-02-16 17:56 ` Wolfgang Schuster
2011-02-16 18:40 ` Hans Hagen
2011-02-16 20:11   ` C. [this message]
2011-02-16 23:00     ` Hans Hagen
2011-02-17 13:16       ` C.
2011-02-17 16:25         ` Hans Hagen

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='001201cbce15$a35346d0$e9f9d470$@gmx.de' \
    --to=metan0r@gmx.de \
    --cc=ntg-context@ntg.nl \
    /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).