* Parse error when using `\define`
@ 2011-12-03 19:06 Paul Menzel
2011-12-03 19:09 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2011-12-03 19:06 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1.1: Type: text/plain, Size: 2442 bytes --]
Dear ConTeXt folks,
could some please try to parse the following minimal example and report
back if a parse problem occurs. Please find the protocols attached.
\define[1]\abs{\lvert #1 \rvert}
\define\Ew{{\mathbf E}}
\define[1]\ew{\Ew \left[ #1 \right]}
\starttext
a
\starttext
I am using ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1 and I have
to insert `/end` manually.
$ context 20111203--parse-error.tex
mtx-context | run 1: luatex --fmt="/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./20111203--parse-error.tex" \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
\write18 enabled.
(20111203--parse-error.tex
ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english
system > cont-new.mkiv loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > 20111203--parse-error.top loaded
(20111203--parse-error.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
(/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv)
files > readfile > asked name: 'loc', not found
{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > virtual math > unable to resolve name mapsfromchar
fonts > fallback modern rm 12pt is loaded
)
*\end
system > don't use \end to finish a document
backend > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
[…]
Afterward changing anything in the file like removing the defines the
error will still appear.
Thanks,
Paul
[-- Attachment #1.1.2: 20111203--parse-error.log --]
[-- Type: text/x-log, Size: 12823 bytes --]
(20111203--parse-error.tex
ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english
system > cont-new.mkiv loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > 20111203--parse-error.top loaded
system > options > start used options
used options > % runtime options files (command line driven)
used options > \unprotect
used options > % feedback and basic job control
used options > % handy for special styles
used options > \startluacode
used options > document = document or { }
used options > document.arguments={
used options > }
used options > document.files={
used options > "20111203--parse-error.tex",
used options > }
used options > \stopluacode
used options > % process info
used options > \setupsystem[inputfile=20111203--parse-error.tex]
used options > \setupsystem[\c!n=2,\c!m=3]
used options > % modes
used options > % options (not that important)
used options > \startsetups *runtime:options
used options > \stopsetups
used options > % styles and modules
used options > \startsetups *runtime:modules
used options > \stopsetups
used options > % done
used options > \protect \endinput
system > options > stop used options
(20111203--parse-error.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
(/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv)
files > readfile > asked name: 'loc', not found
{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > virtual math > unable to resolve name mapsfromchar
fonts > fallback modern rm 12pt is loaded
)
*\end
system > don't use \end to finish a document
backend > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1, subpage 1
</opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
system > files > start used files
used files > 1: filename=mult-mps.lua | filetype=tex | format=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/mult-mps.lua | usedmethod=database
used files > 2: filename=20111203--parse-error.tex | foundname=20111203--parse-error.tex | usedmethod=direct
used files > 3: filename=cont-new.mkiv | filetype=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files > 4: filename=20111203--parse-error.top | foundname=20111203--parse-error.top | usedmethod=direct
used files > 5: filename=lang-us.lua | filetype=lua | foundname=/opt/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files > 6: filename=mkiv-base.map | filetype=map | format=map | foundname=/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files > 7: filename=type-siz.mkiv | filetype=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv | usedmethod=database
used files > 8: filename=type-otf.mkiv | filetype=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv | usedmethod=database
used files > 9: filename=lm-math.lfg | filetype=tex | foundname=/opt/context/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files > 10: filename=lm-math.map | filetype=map | format=map | foundname=/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files > 11: filename=lm-rm.map | filetype=map | format=map | foundname=/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files > 12: filename=lmroman12-regular | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files > 13: filename=lmroman7-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman7-regular.otf | usedmethod=database
used files > 14: filename=rm-lmr7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/rm-lmr7.tfm | usedmethod=database
used files > 15: filename=lmmi7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmmi7.tfm | usedmethod=database
used files > 16: filename=lmsy7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmsy7.tfm | usedmethod=database
used files > 17: filename=lmex10.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmex10.tfm | usedmethod=database
used files > 18: filename=msam7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam7.tfm | usedmethod=database
used files > 19: filename=msbm7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm7.tfm | usedmethod=database
used files > 20: filename=stmary10.afm | filetype=afm | format=afm | foundname=/opt/context/tex/texmf/fonts/afm/public/stmaryrd/stmary10.afm | usedmethod=database
used files > 21: filename=stmary10.pfb | filetype=pfb | format=pfb | foundname=/opt/context/tex/texmf/fonts/type1/public/stmaryrd/stmary10.pfb | usedmethod=database
used files > 22: filename=lmroman7-bold.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman7-bold.otf | usedmethod=database
used files > 23: filename=lmmib7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmmib7.tfm | usedmethod=database
used files > 24: filename=lmsans8-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmsans8-regular.otf | usedmethod=database
used files > 25: filename=lmmono8-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf | usedmethod=database
used files > 26: filename=eufm7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm7.tfm | usedmethod=database
used files > 27: filename=eufb7.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb7.tfm | usedmethod=database
used files > 28: filename=lmroman9-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman9-regular.otf | usedmethod=database
used files > 29: filename=rm-lmr9.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/rm-lmr9.tfm | usedmethod=database
used files > 30: filename=lmmi9.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmmi9.tfm | usedmethod=database
used files > 31: filename=lmsy9.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmsy9.tfm | usedmethod=database
used files > 32: filename=msam10.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam10.tfm | usedmethod=database
used files > 33: filename=msbm10.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm10.tfm | usedmethod=database
used files > 34: filename=lmroman9-bold.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman9-bold.otf | usedmethod=database
used files > 35: filename=lmmib10.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmmib10.tfm | usedmethod=database
used files > 36: filename=lmsans9-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmsans9-regular.otf | usedmethod=database
used files > 37: filename=lmmono9-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmmono9-regular.otf | usedmethod=database
used files > 38: filename=eufm10.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm10.tfm | usedmethod=database
used files > 39: filename=eufb10.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb10.tfm | usedmethod=database
used files > 40: filename=lmroman12-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files > 41: filename=rm-lmr12.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/rm-lmr12.tfm | usedmethod=database
used files > 42: filename=lmmi12.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmmi12.tfm | usedmethod=database
used files > 43: filename=lmsy10.tfm | filetype=tfm | format=tfm | foundname=/opt/context/tex/texmf/fonts/tfm/public/lm/lmsy10.tfm | usedmethod=database
used files > 44: filename=lmroman12-bold.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf | usedmethod=database
used files > 45: filename=lmsans12-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmsans12-regular.otf | usedmethod=database
used files > 46: filename=lmmono12-regular.otf | filetype=otf | format=otf | foundname=/opt/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files > 47: filename=lpdf-pdx.xml | filetype=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml | usedmethod=database
system > files > stop used files
system > structure > start used structure
used structure > text: 20111203--parse-error
system > structure > stop used structure
mkiv lua stats > used config file - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path - /opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats > resource resolver - loadtime 0.011 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 47 found files, scanned paths:
mkiv lua stats > stored bytecode data - 302 modules, 63 tables, 365 chunks
mkiv lua stats > cleaned up reserved nodes - 39 nodes, 9 lists of 426
mkiv lua stats > node memory usage - 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list
mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 2425 calls
mkiv lua stats > used backend - pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns - en::2
mkiv lua stats > jobdata time - 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks - 2572 direct, 3029 indirect, 5601 total
mkiv lua stats > randomizer - resumed with value 0.31042052819879
mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats > result saved in file - 20111203--parse-error.pdf
mkiv lua stats > loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats > fonts load time - 0.400 seconds
mkiv lua stats > luatex banner - this is luatex, version beta-0.70.1-2011051923 (rev 4277)
mkiv lua stats > control sequences - 31571 of 65536 + 100000
mkiv lua stats > current memory usage - 30 MB (ctx: 31 MB)
mkiv lua stats > runtime - 2.560 seconds, 1 processed pages, 1 shipped pages, 0.391 pages/second
[-- Attachment #1.1.3: 20111203--parse-error.pdf --]
[-- Type: application/pdf, Size: 4729 bytes --]
[-- Attachment #1.1.4: 20111203--parse-error.tex --]
[-- Type: text/x-tex, Size: 128 bytes --]
\define[1]\abs{\lvert #1 \rvert}
\define\Ew{{\mathbf E}}
\define[1]\ew{\Ew \left[ #1 \right]}
\starttext
a
\starttext
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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: Parse error when using `\define`
2011-12-03 19:06 Parse error when using `\define` Paul Menzel
@ 2011-12-03 19:09 ` Wolfgang Schuster
2011-12-04 20:08 ` [solved] " Paul Menzel
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-12-03 19:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 03.12.2011 um 20:06 schrieb Paul Menzel:
> Dear ConTeXt folks,
>
>
> could some please try to parse the following minimal example and report
> back if a parse problem occurs. Please find the protocols attached.
>
> \define[1]\abs{\lvert #1 \rvert}
>
> \define\Ew{{\mathbf E}}
> \define[1]\ew{\Ew \left[ #1 \right]}
>
> \starttext
> a
> \starttext
End your document with \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: [solved] Parse error when using `\define`
2011-12-03 19:09 ` Wolfgang Schuster
@ 2011-12-04 20:08 ` Paul Menzel
0 siblings, 0 replies; 3+ messages in thread
From: Paul Menzel @ 2011-12-04 20:08 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 677 bytes --]
Am Samstag, den 03.12.2011, 20:09 +0100 schrieb Wolfgang Schuster:
> Am 03.12.2011 um 20:06 schrieb Paul Menzel:
> > could some please try to parse the following minimal example and report
> > back if a parse problem occurs. Please find the protocols attached.
> >
> > \define[1]\abs{\lvert #1 \rvert}
> >
> > \define\Ew{{\mathbf E}}
> > \define[1]\ew{\Ew \left[ #1 \right]}
> >
> > \starttext
> > a
> > \starttext
>
> End your document with \stoptext.
That is really embarrassing. I now also figured out my other error I
originally looked into.
Thank you and sorry for wasting everyone’s time,
Paul
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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:[~2011-12-04 20:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-03 19:06 Parse error when using `\define` Paul Menzel
2011-12-03 19:09 ` Wolfgang Schuster
2011-12-04 20:08 ` [solved] " Paul Menzel
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).