From: Sanjoy Mahajan <sanjoy@olin.edu>
To: Wolfgang Schuster <schuster.wolfgang@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: bug/issue with components and preamble (Re: Euler with fallback)
Date: Tue, 18 Feb 2014 06:29:03 -0500 [thread overview]
Message-ID: <87lhx8ek1s.fsf@approx.mit.edu> (raw)
In-Reply-To: <878ut9fcx6.fsf@approx.mit.edu>
Sanjoy Mahajan <sanjoy@olin.edu> writes:
> The wiki page for "Project Structure" has always shown setups (via
> \project ... ) going after the \startcomponent or \startproduct. I've
> edited the examples to have setups before the
> \start(product|component). If I did it wrong, let me know.
My change doesn't work, because of how components handle project files
(which also turns out to explain why I was seeing the Euler font when
you didn't). The problem is that context doesn't generate a pdf file if
the \project line comes before the \startcomponent. Thus, I was seeing
a pdf file from a previous version of the test file (where the font
setup came after the \startcomponent).
Here are the two test files (testproject2.tex and test6.tex):
==== testproject2.tex ============
\startproject testproject
\stopproject
==================================
(If testproject2.tex is empty, then the problem does not occur.)
========== test6.tex =============
\project testproject2
\startcomponent test
\input knuth
\placeformula\startformula
a^2 + b^2 = c^2
\stopformula
\stopcomponent
==================================
Here is the log file. It says 'result saved in test6.pdf' but no pdf
file is actually saved.
(/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.02.14 17:07 MKIV beta fmt: 2014.2.15 int: english/english
system > 'cont-new.mkiv' loaded
(/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system > files > jobname 'test6', input './test6', result 'test6'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
(/home/sanjoy/sfse/test6.tex (testproject2.tex{/home/sanjoy/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
{/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > 'fallback modern rm 12pt' is loaded
) ) )
system > structure > start used structure
used structure > text: test6
used structure > project: testproject
system > structure > stop used structure
system > files > start used files
used file > 1: filename=cont-yes.mkiv filetype=tex foundname=/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=otherwise
used file > 2: filename=cont-new.mkiv filetype=tex foundname=/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=otherwise
used file > 3: filename=lang-us.lua filetype=scripts foundname=/home/sanjoy/context/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=otherwise
used file > 4: filename=/home/sanjoy/sfse/test6.tex foundname=/home/sanjoy/sfse/test6.tex usedmethod=direct
used file > 5: filename=testproject2.tex foundname=testproject2.tex usedmethod=direct
used file > 6: filename=mkiv-base.map filetype=map format=map foundname=/home/sanjoy/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used file > 7: filename=lm.lfg filetype=tex foundname=/home/sanjoy/context/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=otherwise
used file > 8: filename=lm-math.lfg filetype=tex foundname=/home/sanjoy/context/tex/texmf-context/tex/context/fonts/lm-math.lfg usedmethod=otherwise
used file > 9: filename=lm-math.map filetype=map format=map foundname=/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used file > 10: filename=lm-rm.map filetype=map format=map foundname=/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used file > 11: filename=lmroman12-regular filetype=otf format=otf foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file > 12: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 13: filename=latinmodern-math.otf filetype=otf format=otf foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system > files > stop used files
system > options > start commandline options
used option > currentrun="2"
used option > fulljobname="./test6.tex"
used option > input="./test6.tex"
used option > kindofrun="2"
used option > maxnofruns="8"
used option > no-parse-first-line="true"
used option > nonstopmode="true"
used option > passon="-file-line-error -recorder -interaction nonstopmode"
system > options > stop commandline options
system > options > start commandline files
used file > 1: ./test6.tex
system > options > stop commandline files
publications > start used btx commands
publications > stop used btxcommands
mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path: /home/sanjoy/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats > resource resolver: loadtime 0.012 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths: <none>
mkiv lua stats > stored bytecode data: 347 modules (0.240 sec), 69 tables (0.000 sec), 416 chunks (0.240 sec)
mkiv lua stats > running in nuts mode: yes
mkiv lua stats > cleaned up reserved nodes: 39 nodes, 443 lists of 442
mkiv lua stats > node memory usage: 2 glue, 2 penalty, 6 attribute, 19 glue_spec, 2 attribute_list, 2 temp
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.001 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks: 49 direct, 181 indirect, 230 total
mkiv lua stats > randomizer: resumed with value 0.21033152621721
mkiv lua stats > result saved in file: test6.pdf, compresslevel 3, objectcompreslevel 3
mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats > fonts load time: 0.531 seconds for 4 fonts, 2 shared in backend, 2 common vectors, 0 common hashes
mkiv lua stats > used platform: linux, type: unix, binary subtree: texmf-linux, symbol mask: utf (τεχ)
mkiv lua stats > luatex banner: this is luatex, version beta-0.78.2 (tex live 2014/dev) (rev 4746)
mkiv lua stats > control sequences: 38223 of 65536 + 100000
mkiv lua stats > current memory usage: 31 MB (ctx: 31 MB)
mkiv lua stats > runtime: 0.853 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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-02-18 11:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-10 16:36 Euler with fallback Aditya Mahajan
2014-02-16 16:51 ` Sanjoy Mahajan
2014-02-16 18:29 ` Wolfgang Schuster
2014-02-17 14:12 ` Sanjoy Mahajan
2014-02-17 14:24 ` Wolfgang Schuster
2014-02-17 14:29 ` Sanjoy Mahajan
2014-02-17 14:45 ` Wolfgang Schuster
2014-02-17 20:07 ` Sanjoy Mahajan
2014-02-17 21:04 ` Aditya Mahajan
2014-02-17 21:08 ` Wolfgang Schuster
2014-02-18 1:05 ` Sanjoy Mahajan
2014-02-18 11:29 ` Sanjoy Mahajan [this message]
2014-03-03 11:50 ` Sanjoy Mahajan
2014-03-03 15:07 ` Aditya Mahajan
2014-03-03 15:24 ` Sanjoy Mahajan
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=87lhx8ek1s.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).