Followed this wiki, http://wiki.contextgarden.net/ConTeXt_Minimals installed in my personal directory. Now for the most elementary quetsion: Given the file foo.tex how do I actually run mkiv context on it? I tried mtxrun template.tex and I get the error: ./template.tex:1: unexpected symbol near '\' template.tex is an outline of a Context file: --------------------------- -- John Culleton "Death Wore Black" Police procedural: http://www.deathworeblack.com/ "Create Book Covers with Scribus" http://booklocker.com/books/4055.html
Am 02.07.2011 16:45, schrieb John Culleton:
Followed this wiki, http://wiki.contextgarden.net/ConTeXt_Minimals installed in my personal directory.
Now for the most elementary quetsion: Given the file foo.tex how do I actually run mkiv context on it?
context foo
On Saturday, July 02, 2011 10:47:20 am yoraxe wrote:
Am 02.07.2011 16:45, schrieb John Culleton:
Followed this wiki, http://wiki.contextgarden.net/ConTeXt_Minimals
installed in my personal directory.
Now for the most elementary quetsion: Given the file foo.tex how do I actually run mkiv context on it?
context foo
Not quite. First I have to issue a special command to put the context installation in play. So I created a script "Context" like this: -------------------------------------- source /home/safe/context/tex/setuptex context $1 -------------------------------- -- John Culleton "Death Wore Black" Police procedural: http://www.deathworeblack.com/ "Create Book Covers with Scribus" http://booklocker.com/books/4055.html
On Tue, Jul 12, 2011 at 9:03 AM, luigi scarso
On Tue, Jul 12, 2011 at 6:00 PM, John Culleton
wrote: --------------------------------------
source /home/safe/context/tex/setuptex
context $1
-------------------------------- better
source /home/safe/context/tex/setuptex /home/safe/context/tex context $1 --
I haven't seen this before. What is the advantage of the second argument to source ?
On Saturday, July 02, 2011 10:45:24 am John Culleton wrote:
Followed this wiki, http://wiki.contextgarden.net/ConTeXt_Minimals installed in my personal directory.
Now for the most elementary quetsion: Given the file foo.tex how do I actually run mkiv context on it? I tried mtxrun template.tex and I get the error: ./template.tex:1: unexpected symbol near '\'
template.tex is an outline of a Context file: ---------------------------
And here is template.tex: \starttext \startfrontmatter \startstandardmakeup %\input title.tex \stopstandardmakeup \completecontent %\input preface.tex \stopfrontmatter \startbodymatter Hello world. %\input body.tex \stopbodymatter \startbackmatter \completeindex \stopbackmatter \stoptext Tried running it as a plain texexec (MKII) file and got this message: bash-4.1$ texexec template.tex MTXrun | kpse fallback with progname 'context' initialized in 0.09 seconds /usr/local/texlive/2010/../texmf- local/scripts/context/ruby/texexec.rb:8:in `require': no such file to load -- ftools (LoadError) from /usr/local/texlive/2010/../texmf- local/scripts/context/ruby/texexec.rb:8:in `<main>' I have a standard texlive 2010 installation. I have been able to run ordinary tex, pdftex etc. files before today. I also was able to run Context files without a problem. I will switch to an old partition that has no minimals installation and see if that will fly on the same file. -- John Culleton "Death Wore Black" Police procedural: http://www.deathworeblack.com/ "Create Book Covers with Scribus" http://booklocker.com/books/4055.html
On Saturday, July 02, 2011 11:03:36 am John Culleton wrote:
On Saturday, July 02, 2011 10:45:24 am John Culleton wrote:
Followed this wiki, http://wiki.contextgarden.net/ConTeXt_Minimals
installed in my personal directory.
Now for the most elementary quetsion: Given the file foo.tex how do I actually run mkiv context on it? I tried mtxrun template.tex and I get the error: ./template.tex:1: unexpected symbol near '\'
template.tex is an outline of a Context file: ---------------------------
And here is template.tex: \starttext \startfrontmatter \startstandardmakeup %\input title.tex \stopstandardmakeup \completecontent %\input preface.tex \stopfrontmatter \startbodymatter Hello world. %\input body.tex \stopbodymatter \startbackmatter \completeindex \stopbackmatter \stoptext
Tried running it as a plain texexec (MKII) file and got this message:
bash-4.1$ texexec template.tex MTXrun | kpse fallback with progname 'context' initialized in 0.09 seconds /usr/local/texlive/2010/../texmf- local/scripts/context/ruby/texexec.rb:8:in `require': no such file to load -- ftools (LoadError) from /usr/local/texlive/2010/../texmf- local/scripts/context/ruby/texexec.rb:8:in `<main>'
I have a standard texlive 2010 installation. I have been able to run ordinary tex, pdftex etc. files before today. I also was able to run Context files without a problem.
I will switch to an old partition that has no minimals installation and see if that will fly on the same file.
OK instead I ran /home/safe/context/tex/setuptex again, then context template.tex and it worked as a user. The setuptex must be run in each console I use. I'll create a script to simplify things in case I forget again. -- John Culleton "Death Wore Black" Police procedural: http://www.deathworeblack.com/ "Create Book Covers with Scribus" http://booklocker.com/books/4055.html
On Sat, Jul 02, 2011 at 11:21:19AM -0400, John Culleton wrote:
and it worked as a user. The setuptex must be run in each console I use. I'll create a script to simplify things in case I forget again.
If you only have minimals (no texlive for example), then you can simply prepend <minimals>/tex/texmf-linux/bin to your PATH. Regards, Khaled -- Khaled Hosny Egyptian Arab
participants (5)
-
John Culleton
-
John Haltiwanger
-
Khaled Hosny
-
luigi scarso
-
yoraxe