From: Michael Talbot-Wilson <mtw@view.net.au>
To: Context Mailing List <ntg-context@ntg.nl>
Subject: \inpu
Date: Sun, 1 Jan 2012 13:58:23 +1030 (CST) [thread overview]
Message-ID: <Pine.LNX.4.64.1201011354490.752@calypso.view.net.au> (raw)
I thought I'd see if I could use ConTeXt. Here is my first try, hello.tex.
\starttext
\input header
Hello, World!\startlua
a = 1.5
b = 1.8
c = a * b
tex.print(c)
\stoplua plus1.
\stoptext
Didn't work because the file header.tex could not be found, even
though kpsewhich can find it.
(hello.tex
publications : loading formatting style from bxml-apa
(/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
ConTeXt ver: 2010.06.23 12:45 MKIV fmt: 2011.12.24 int: english/english
system : cont-new loaded
(/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system : cont-fil loaded
(/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system : cont-sys.rme loaded
(/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/usr/local/libexec/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv))
system : hello.top loaded
%
% begin of optionfile
%
% % runtime options files (command line driven)
% \unprotect
% % feedback and basic job control
% % handy for special styles
% \startluacode
% document = document or { }
% document.arguments={
% }
% document.files={
% "hello",
% }
% \stopluacode
% % process info
% \setupsystem[inputfile=hello]
% \setupsystem[\c!n=1,\c!m=1]
% % modes
% % options (not that important)
% \startsetups *runtime:options
% \setupoutput[pdftex]
% \stopsetups
% % styles and modules
% \startsetups *runtime:modules
% \stopsetups
% % done
% \protect \endinput
%
% end of optionfile
%
(hello.top)
fonts : preloading latin modern fonts
{/usr/local/libexec/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/libexec/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/local/libexec/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont : 12pt rm is loaded
language : language en is active
systems : begin file hello at line 1
! I can't find file `header'.
l.2 \input header
Please type another input file name:
! Emergency stop.
l.2 \input header
End of file on the terminal!
! ==> Fatal error occurred, no output PDF file produced!
___________________________________________________________________________________
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 reply other threads:[~2012-01-01 3:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-01 3:28 Michael Talbot-Wilson [this message]
2012-01-01 7:00 ` \inpu luigi scarso
2012-01-01 9:17 ` \inpu Wolfgang Schuster
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=Pine.LNX.4.64.1201011354490.752@calypso.view.net.au \
--to=mtw@view.net.au \
--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).