[NTG-context] Fwd: Problem with ConTeXt minimal
Dear ConTeXt experts, I followed the steps in: http://wiki.contextgarden.net/ConTeXt_Minimals to install to the conTeXt minimals. After completing the installation and when I run texexec.exe I get the following error: mtxrun:9289: attempt to concatenate local 'v' (a table value) What is the problem? and how to solve it? Note: My operating system is Windows 7. Regards, M. Ali ___ 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 ___
Re: [NTG-context] Fwd: Problem with ConTeXt minimal
Am 2010-07-05 um 21:27 schrieb M A: I followed the steps in: http://wiki.contextgarden.net/ConTeXt_Minimals to install to the conTeXt minimals. After completing the installation and when I run texexec.exe I get the following error: mtxrun:9289: attempt to concatenate local 'v' (a table value) What is the problem? and how to solve it? run first-setup again, this problem was solved at the weekend. see thread mtxrun error Or did you start just yesterday? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 ___
Re: [NTG-context] Fwd: Problem with ConTeXt minimal
On Mon, Jul 5, 2010 at 9:27 PM, M A ma6...@gmail.com wrote: Dear ConTeXt experts, I followed the steps in: http://wiki.contextgarden.net/ConTeXt_Minimals to install to the conTeXt minimals. After completing the installation and when I run texexec.exe I get the following error: mtxrun:9289: attempt to concatenate local 'v' (a table value) it's ok on my linux 32 bit box -- luigi ___ 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 ___
Re: [NTG-context] \stretched in chapter titles in MKII
Further experimentation has found a partial solution. However, I am still unable to get the chapter title line to stretch properly: %works fine as is except that chapter title is hardcoded %errors when hardcoded title is replaced with #2 %doesn't error when title is replaced with {#2} but title is not stretched %number of closing }s determined by trial and error \def\MyChapterCommand#1#2% #1 is number, #2 is text { \framed[frame=off,align=middle] {{\hbox to \hsize {\ss\stretched{Chapter {#1 \par {{\hbox to \hsize {\switchtobodyfont[20pt]{\ss\bf\stretched{My Chapter Title}}} \setuphead[chapter] [command=\MyChapterCommand] \starttext \chapter{Test Chapter Title} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Tom Sent: Monday, July 05, 2010 3:16 PM To: ntg-context@ntg.nl Subject: [NTG-context] \stretched in chapter titles in MKII I am trying to stretch two lines of text to the same width for use as a chapter head. I have two major problems: 1. The second line of text is appended to the end of the first line instead of being placed below it. 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}. Because of these errors I have hardcoded the values in the example that follows: \def\MyChapterCommand#1#2% #1 is number, #2 is text {\hbox to \hsize {\ss\stretched{Chapter 1}} \par \hbox to \hsize {\ss\bf\stretched{Test Chapter Title}}} \setuphead[chapter] [command=\MyChapterCommand] \starttext \chapter{Test Chapter Title} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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 ___ ___ 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 ___
Re: [NTG-context] \stretched in chapter titles in MKII
Am 05.07.10 21:15, schrieb Tom: I am trying to stretch two lines of text to the same width for use as a chapter head. I have two major problems: 1. The second line of text is appended to the end of the first line instead of being placed below it. 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}. Because of these errors I have hardcoded the values in the example that follows: You can use \stretched in headers only with \deeptextcommand and \deepnumbercommand. 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 ___
Re: [NTG-context] \stretched in chapter titles in MKII
Am 05.07.10 21:15, schrieb Tom: I am trying to stretch two lines of text to the same width for use as a chapter head. I have two major problems: 1. The second line of text is appended to the end of the first line instead of being placed below it. 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}. Because of these errors I have hardcoded the values in the example that follows: \define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStretch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \chapter{Test Chapter Title} \input knuth \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 ___
Re: [NTG-context] Newbie: floats with Context 2009 (Ubuntu). How do I use this workaround?
Hello, Sorry I did not get back to you earlier, it got hectic starting Monday morning. I am sorry but I do not understand what exactly I am supposed to do. I installed following those instructions from Luigi, on a previous message: Open a shell as a root and then # mkdir -p /opt/context/minimals-2010-07- 03 # cd /opt/context/minimals-2010-07-03 # rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . # bash first-setup.sh ## wait a bit... # cd tex # . setuptex When I run luatools --generate, I get this : LuaTools | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' LuaTools | fileio: variable 'SELFAUTODIR' set to '/usr' LuaTools | fileio: variable 'SELFAUTOPARENT' set to '/' LuaTools | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' LuaTools | fileio: loading configuration file /usr/share/texmf/web2c/texmf.cnf LuaTools | fileio: preparing 'configuration' for '/usr/share/texmf/web2c' LuaTools | fileio: 'configuration' saved in '/home/pascale/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.lua' LuaTools | fileio: 'configuration' compiled to '/home/pascale/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.luc' LuaTools | fileio: locating list of '/home/pascale/.texmf-config' LuaTools | fileio: tex locator '/home/pascale/.texmf-config' found LuaTools | fileio: hash '/home/pascale/.texmf-config' appended LuaTools | fileio: locating list of '/home/pascale/.texmf-var' LuaTools | fileio: tex locator '/home/pascale/.texmf-var' found LuaTools | fileio: hash '/home/pascale/.texmf-var' appended LuaTools | fileio: locating list of '/home/pascale/texmf' LuaTools | fileio: tex locator '/home/pascale/texmf' not found LuaTools | fileio: locating list of '/etc/texmf' (etc...) The context executable is located in: /opt/context/minimals-2010-07-03/tex/texmf-linux/bin What am I supposed to put into my .profile file? export PATH = /opt/context/minimals-2010-07-03/tex/texmf-linux/bin(??) Is it what you meant by I don't know those two programs in detail. But as a general rule, you need to add /path/to/tex/texmf- linuxorwhateverelse/bin to PATH. ? Is it then that I have to run luatools --generate? I am sorry but I am not famiiar with this type of installation, and I am having a hard time figuring out the difference between the use of /path/to/ as in /opt/context/minimals-2010-07-03/tex/texmf-linux/bin and /path/to as in . /path/to/setupetex... I hope you don't mind my questions and that I can finish this installation. Thank you again very much in advance. --Pascale 2010/7/4 Mojca Miklavec mojca.miklavec.li...@gmail.com On Sun, Jul 4, 2010 at 00:10, Pascale Julia wrote: My last question if I may: So I may not reply to the other question then? :) I am using Kile as an editor, and warming up to using Emacs. How is this minimals installation accessed by either of those two programs? I don't know those two programs in detail. But as a general rule, you need to add /path/to/tex/texmf-linuxorwhateverelse/bin to PATH. If you run Kile or Emacs from terminal, all you need to do is to use . /path/to/setupetex or adjust path before you run Kile or Emacs. You can also put that into .bashrc. I have no idea how to handle PATH if you run Kile from Start Menu, but PATH adjustments need to be somewhere under settings. Under Kile you can just as well adjust PATH in command-line. For Emacs: you don't need any adjustment unless you also run ConTeXt documents from within Emacs. I use Vim in one terminal and compile documents in the other. Mojca ___ 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 ___ ___ 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 ___
Re: [NTG-context] Newbie: floats with Context 2009 (Ubuntu). How do I use this workaround?
On Tue, 6 Jul 2010, Pascale Julia wrote: Hello, Sorry I did not get back to you earlier, it got hectic starting Monday morning. I am sorry but I do not understand what exactly I am supposed to do. I installed following those instructions from Luigi, on a previous message: Open a shell as a root and then # mkdir -p /opt/context/minimals-2010-07- 03 # cd /opt/context/minimals-2010-07-03 # rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . # bash first-setup.sh ## wait a bit... # cd tex # . setuptex Which shell are you using? You can know that by looking at the output of echo $SHELL In some shells you need to run source setuptex rather than . setuptex What happens if you run source setuptex? Aditya ___ 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 ___
Re: [NTG-context] Newbie: floats with Context 2009 (Ubuntu). How do I use this workaround?
Hello, Thank you for answering. I run bash. Here are the results of the command (no file or folder of this type) : pasc...@pascale-desktop ~ $ echo $SHELL /bin/bash pasc...@pascale-desktop ~ $ source setuptex bash: setuptex: Aucun fichier ou dossier de ce type pasc...@pascale-desktop ~ $ .setuptex .setuptex: command not found Here it is! --Pascale 2010/7/6 Aditya Mahajan adit...@umich.edu On Tue, 6 Jul 2010, Pascale Julia wrote: Hello, Sorry I did not get back to you earlier, it got hectic starting Monday morning. I am sorry but I do not understand what exactly I am supposed to do. I installed following those instructions from Luigi, on a previous message: Open a shell as a root and then # mkdir -p /opt/context/minimals-2010-07- 03 # cd /opt/context/minimals-2010-07-03 # rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . # bash first-setup.sh ## wait a bit... # cd tex # . setuptex Which shell are you using? You can know that by looking at the output of echo $SHELL In some shells you need to run source setuptex rather than . setuptex What happens if you run source setuptex? Aditya ___ 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 ___ ___ 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 ___
Re: [NTG-context] Newbie: floats with Context 2009 (Ubuntu). How do I use this workaround?
On Tue, 6 Jul 2010, Pascale Julia wrote: Hello, Thank you for answering. I run bash. Here are the results of the command (no file or folder of this type) : pasc...@pascale-desktop ~ $ echo $SHELL /bin/bash pasc...@pascale-desktop ~ $ source setuptex bash: setuptex: Aucun fichier ou dossier de ce type pasc...@pascale-desktop ~ $ .setuptex .setuptex: command not found Try this: source /opt/context/minimals-2010-07-03/tex/setuptex which luatools and (note the space between the . and the command) . /opt/context/minimals-2010-07-03/tex/setuptex which luatools Aditya ___ 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 ___
Re: [NTG-context] Newbie: floats with Context 2009 (Ubuntu). How do I use this workaround?
Sorry, my previous answer to your question marked as stupidous message. Here is the correct answer: pasc...@pascale-desktop /opt/context/minimals-2010-07-03/tex $ source setuptex Setting /opt/context/minimals-2010-07-03/tex as ConTeXt root. Thank you for your patience, --Pascale 2010/7/6 Aditya Mahajan adit...@umich.edu On Tue, 6 Jul 2010, Pascale Julia wrote: Hello, Sorry I did not get back to you earlier, it got hectic starting Monday morning. I am sorry but I do not understand what exactly I am supposed to do. I installed following those instructions from Luigi, on a previous message: Open a shell as a root and then # mkdir -p /opt/context/minimals-2010-07- 03 # cd /opt/context/minimals-2010-07-03 # rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . # bash first-setup.sh ## wait a bit... # cd tex # . setuptex Which shell are you using? You can know that by looking at the output of echo $SHELL In some shells you need to run source setuptex rather than . setuptex What happens if you run source setuptex? Aditya ___ 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 ___ ___ 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 ___
Re: [NTG-context] Newbie: floats with Context 2009 (Ubuntu). How do I use this workaround?
Here it is: pasc...@pascale-desktop /opt/context/minimals-2010-07-03/tex $ which luatools /opt/context/minimals-2010-07-03/tex/texmf-linux/bin/luatools Thanks. --Pascale 2010/7/6 Aditya Mahajan adit...@umich.edu On Tue, 6 Jul 2010, Pascale Julia wrote: Hello, Thank you for answering. I run bash. Here are the results of the command (no file or folder of this type) : pasc...@pascale-desktop ~ $ echo $SHELL /bin/bash pasc...@pascale-desktop ~ $ source setuptex bash: setuptex: Aucun fichier ou dossier de ce type pasc...@pascale-desktop ~ $ .setuptex .setuptex: command not found Try this: source /opt/context/minimals-2010-07-03/tex/setuptex which luatools and (note the space between the . and the command) . /opt/context/minimals-2010-07-03/tex/setuptex which luatools Aditya ___ 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 ___ ___ 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 ___
Re: [NTG-context] \stretched in chapter titles in MKII
\define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \chapter{Test Chapter Title} \input knuth \stoptext Wolfgang Thanks, Wolfgang. You have not only solved my immediate problem but have also provided me with examples of using the \deep commands. I haven't found enough documentation of them yet to get through my thick skull an understanding of what they do and how to use them. Can you explain to me the significance of the [1]s after the defines? I would still like to be able to convert chapter numbers to words without impacting the table of contents. I am confused about how \determineheadnumber and \currentheadnumber work. It appears to me that \determineheadnumber places the chapter number in a register and \currentheadnumber retrieves that value. I tried inserting \numstr before \currentheadnumber. That converts the chapter number to text and doesn't mess up the TOC but the first line is no longer stretched. Clearly, I don't understand this very well at all. Tom ___ 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 ___
[NTG-context] underscore in index entry
Hi, I tried to put _ in index entry and am unable to do it. I tried following 1. \index{_shiv} 2. \index{\type{_shiv}} 3. \index{\textunderscore{} shiv} Please help. -- Best regards, Shiv Shankar Dayal ___ 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 ___
Re: [NTG-context] \stretched in chapter titles in MKII
\define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \chapter{Test Chapter Title} \input knuth \stoptext Wolfgang I've tried to modify this code to change the chapter numbers to words. That part was successful but the above code only stretches the word Chapter but not the numbers' words. I also get errors when I try to get all caps by inserting \WORD in the first command. \input c:/BookLayouts/MyFirstBook/Macros/numstr.tex \define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch {\ChapterTextStretch{Chapter\ChapterNumberWords}} \define[1]\ChapterNumberWords {\determineheadnumber[chapter]\numstr{\currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \completecontent \chapter{Test Chapter Title} \input knuth \chapter{Test Chapter With Very Long Title That Might Overflow Page} \input knuth \chapter{Test Chapter With Long Title Doesn't Overflow} \input knuth \stoptext Tom ___ 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 ___
Re: [NTG-context] underscore in index entry
On Tue, 6 Jul 2010 20:46:09 -0400, Shiv Shankar Dayal shivshankar.da...@gmail.com wrote: Hi, I tried to put _ in index entry and am unable to do it. I tried following 1. \index{_shiv} 2. \index{\type{_shiv}} 3. \index{\textunderscore{} shiv} _ is a special character for TeX. You can change this behaviour globally with \nonknuthmode or you can escape the _ locally by using the backslash. \nonknuthmode \starttext \placeindex Hello\index{huhu} \stoptext or \starttext \placeindex Hello\index{_huhu} \stoptext both work for me. Marco ___ 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 ___