ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@olin.edu>
To: Wolfgang Schuster <schuster.wolfgang@gmail.com>
Cc: ntg-context@ntg.nl
Subject: Re: [dev-context] palatino at 10.5pt bold not found when using project structure w/ MkIV
Date: Mon, 8 Jul 2013 16:29:56 -0400	[thread overview]
Message-ID: <87hag47q2j.fsf@approx.mit.edu> (raw)
In-Reply-To: <C4A06BE9-2D23-49BE-9C78-318FAC7D9240@gmail.com>

> The only things which are posted on the developer list nowadays are
> bug reports with possible fixes or extensions to the context
> programing language.

Thanks.  I am removing dev-context from the CC.

>> Should the "\project project_file"
>> line be placed before the "\startcomponent"?  Like this:
>> 
>>  \project project_file
>>  \startcomponent component_name
>> 
>> If that's the recommended way, I can update
>> <http://wiki.contextgarden.net/Project_structure>
>

> You can do this. It’s always better to make the setup of the document
> before \starttext, startcomponent etc. because some values are
> set/reset with \starttext.
>

Alas, this order seems to trigger bug, which is that if the \project
line comes first, then the component file is not compiled.  Minimal
example (mytest2.tex):

  \project testproject
  \startcomponent mytest2

  \input knuth

  \stopcomponent

testproject.tex is

  \startproject testproject
  \stopproject

Then "context mytest2" doesn't ship any pdf pages.  Below is the log
file. (It works fine with the first two lines in mytest2.tex reversed.)

(/usr/share/texmf/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.05.28 00:36 MKIV current  fmt: 2013.7.4  int: english/english

system          > 'cont-new.mkiv' loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv)
system          > files > jobname 'mytest2', input './mytest2', result 'mytest2'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
(/home/sanjoy/sfse/test/mytest2.tex (testproject.tex{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > 'fallback modern rm 12pt' is loaded
 ) ) )

system          > files > start used files

used files      >    1: filename=cont-yes.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/base/cont-yes.mkiv usedmethod=otherwise
used files      >    2: filename=cont-new.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv usedmethod=otherwise
used files      >    3: filename=lang-us.lua filetype=lua foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua usedmethod=otherwise
used files      >    4: filename=/home/sanjoy/sfse/test/mytest2 foundname=/home/sanjoy/sfse/test/mytest2.tex usedmethod=qualified
used files      >    5: filename=testproject.tex foundname=testproject.tex usedmethod=direct
used files      >    6: filename=mkiv-base.map filetype=map format=map foundname=/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used files      >    7: filename=lm.lfg filetype=tex foundname=/usr/share/texmf/tex/context/fonts/lm.lfg usedmethod=otherwise
used files      >    8: filename=lm-math.lfg filetype=tex foundname=/usr/share/texmf/tex/context/fonts/lm-math.lfg usedmethod=otherwise
used files      >    9: filename=lm-math.map filetype=map format=map foundname=/usr/share/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used files      >   10: filename=lm-rm.map filetype=map format=map foundname=/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used files      >   11: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used files      >   12: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/share/texlive/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used files      >   13: filename=latinmodern-math.otf filetype=otf format=otf foundname=/usr/share/texlive/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database

system          > files > stop used files


system          > structure > start used structure

used structure  > text: mytest2
used structure  >   project: testproject

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/base/cont-yes.mkiv usedmethod=otherwise
used file       >    2: filename=cont-new.mkiv filetype=tex foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv usedmethod=otherwise
used file       >    3: filename=lang-us.lua filetype=lua foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua usedmethod=otherwise
used file       >    4: filename=/home/sanjoy/sfse/test/mytest2 foundname=/home/sanjoy/sfse/test/mytest2.tex usedmethod=qualified
used file       >    5: filename=testproject.tex foundname=testproject.tex usedmethod=direct
used file       >    6: filename=mkiv-base.map filetype=map format=map foundname=/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used file       >    7: filename=lm.lfg filetype=tex foundname=/usr/share/texmf/tex/context/fonts/lm.lfg usedmethod=otherwise
used file       >    8: filename=lm-math.lfg filetype=tex foundname=/usr/share/texmf/tex/context/fonts/lm-math.lfg usedmethod=otherwise
used file       >    9: filename=lm-math.map filetype=map format=map foundname=/usr/share/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used file       >   10: filename=lm-rm.map filetype=map format=map foundname=/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used file       >   11: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file       >   12: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/share/texlive/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file       >   13: filename=latinmodern-math.otf filetype=otf format=otf foundname=/usr/share/texlive/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > currentrun="1"
used option     > fulljobname="./mytest2"
used option     > input="./mytest2"
used option     > kindofrun="1"
used option     > maxnofruns="8"
used option     > no-parse-first-line="true"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./mytest2

system          > options > stop commandline files



mkiv lua stats  > used config file: selfautodir:/share/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: '/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b' | readable+writable: '/home/sanjoy/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b'
mkiv lua stats  > resource resolver: loadtime 0.112 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 329 modules (0.410 sec), 69 tables (0.000 sec), 398 chunks (0.410 sec)
mkiv lua stats  > cleaned up reserved nodes: 38 nodes, 9 lists of 441
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 6 attribute, 19 glue_spec, 2 attribute_list
mkiv lua stats  > node list callback tasks: 6 unique task lists, 2 instances (re)created, 3 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 48 direct, 181 indirect, 229 total
mkiv lua stats  > randomizer: resumed with value 0.99888474028506
mkiv lua stats  > result saved in file: mytest2.pdf, compresslevel 3, objectcompreslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf (experimental), lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.313 seconds 
mkiv lua stats  > luatex banner: this is luatex, version beta-0.76.0-2013070107  (tex live 2013/debian) (rev 4627)
mkiv lua stats  > control sequences: 37353 of 65536 + 100000
mkiv lua stats  > current memory usage: 28 MB (ctx: 28 MB)
mkiv lua stats  > runtime: 0.838 seconds

___________________________________________________________________________________
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:[~2013-07-08 20:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8738rs8wi3.fsf@approx.mit.edu>
2013-07-06  6:11 ` Wolfgang Schuster
2013-07-06 10:33   ` [dev-context] " Sanjoy Mahajan
2013-07-07 20:38     ` Wolfgang Schuster
2013-07-08 20:29       ` Sanjoy Mahajan [this message]

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=87hag47q2j.fsf@approx.mit.edu \
    --to=sanjoy@olin.edu \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@gmail.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).