[NTG-context] Cut-Space
Hi there, I am usually using Din A5 with \definepapersize[MyBook][A5] \setuppapersize[MyBook][A5] How to add 3mm cut space (extra space) on all four edges? Thank you. Huseyin ___ 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] Cut-Space
On 2013–01–25 H. Özoguz wrote: How to add 3mm cut space (extra space) on all four edges? You did not make yourself clear what exactly you want and where to add the space. Here you find an (incomplete) overview of the page layout dimensions: http://tex.stackexchange.com/a/71069/5245 Marco signature.asc Description: Digital signature ___ 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] Coming back to ConTeXt
Hi, I decided to give another try to ConTeXt. I already did two years ago, I think, but I had problems mostly because of the lack of documentation for MkIV. Having a more or less strong knowledge and experience of LaTeX doesn't help!!! This time: I did not succeed to install a stand alone version. I have also TeX Live and I need it for LaTeX. I am using TeXworks (not the one from TeX Live). I use ConTeX from TeX Live 2012: This is LuaTeX, Version beta-0.70.2-2012080612 (TeX Live 2012/W32TeX) ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2013.1.20 int: english/english Following the discussions on ntg-context, there often is solution using one of hte latest version of ConTeXt, so I have a first question: is it possible to update the TeX Live ConTeXt and its associated files? I also have questions about typography (hyphenation, typographic rules,...) to have something according the French rules, and others... Other questions in another message. Thanks for your help, Alain Delmotte ___ 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] Some questions
Hi, Now some questions to solve the problems I have when I try to follow the tutorial ConTeXt an excursion. I think it is for mkII and I use mkIV and that there has been many changes in between. - The example at the bottom of page 11 and page 12 gives me an error: ! Argument of \head has an extra }. system tex error on line 52 in file travail.tex: Argument of ... 42 Hasselt lies in the province of Overijssel and there are a number of customs that are typical of this province. 43 \startitemize 44 \head kraamschudden \hfill (child welcoming) 45 When a child is born the neighbours come to visit the new parents. The women come to admire the baby and the men come to judge the baby (if it is a boy) if he will become a strong man. 46 The neighbours will bring a {\em krentenwegge} along. A krentenwegge is a loaf of currant bread of about 1 \Meter\ long. Of course the birth is celebrated with {\em jenever}. 47 \head nabuurschap (naberschop) \hfill (neighbourship) 48 Smaller communities used to be very dependent on the cooperation among the members for their well being. Members of the {\em nabuurschap} helped each other in difficult times during harvest times, funerals or any hardship that fell upon the community. 49 \head Abraham \ Sarah \hfill (identical) 50 When people turn 50 in Hasselt it is said that they see Abraham or Sarah. The custom is to give these people a {\em speculaas} Abraham or a Sarah. Speculaas is a kind of hard spiced biscuit. 51 \stopitemize 52 - The tables pages 30-31-32-35 are not at the right position on the page, mostly they are to the right and not centered. - The chemical formulae give an error (pages 37-38), but I'll come back to that later on, but what is the manual about it? - The boxes on page 45, second example are not at the right position, particularly the second is on the same line as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have a}} \rightaligned {\inframed[background=screen]{historic background}} What are the up todate manuals for MkIV? OK It's enough bothering you for the moment. Thanks in advance, Alain Delmotte ___ 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] Some questions
On 2013–01–25 Alain Delmotte wrote: I think it is for mkII and I use mkIV and that there has been many changes in between. Indeed. - The example at the bottom of page 11 and page 12 gives me an error: ! Argument of \head has an extra }. \starttext \startitemize \starthead kraamschudden\hfill (child welcoming) \stophead When a child is born the neighbours come to visit the new parents. The women come to admire the baby and the men come to judge the baby (if it is a boy) if he will become a strong man. The neighbours will bring a {\em krentenwegge} along. A krentenwegge is a loaf of currant bread of about \unit{1 meter} long. Of course the birth is celebrated with {\em jenever}. \starthead nabuurschap (naberschop) \hfill (neighbourship) \stophead Smaller communities used to be very dependent on the cooperation among the members for their well being. Members of the {\em nabuurschap} helped each other in difficult times during harvest times, funerals or any hardship that fell upon the community. \starthead Abraham \ Sarah \hfill (identical) \stophead When people turn 50 in Hasselt it is said that they see Abraham or Sarah. The custom is to give these people a {\em speculaas} Abraham or a Sarah. Speculaas is a kind of hard spiced biscuit. \stopitemize \stoptext - The tables pages 30-31-32-35 are not at the right position on the page, mostly they are to the right and not centered. I did not try all example, but this seems to work here. Can you provide a minimal example and say what you expect to be different? - The chemical formulae give an error (pages 37-38), but I'll come back to that later on, but what is the manual about it? Hans and Alan are in the process of completely re-writing the chemical macros. I don't know the current state. - The boxes on page 45, second example are not at the right position, particularly the second is on the same line as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have a}} \rightaligned {\inframed[background=screen]{historic background}} In MkIV there's a new syntax you can use: \startlinealignment [left] \inframed[width=fit]{People in Hasselt} \stoplinealignment \startlinealignment [middle] \inframed[height=1.5cm,frame=on]{have a} \stoplinealignment \startlinealignment [right] \inframed[background=screen]{historic background} \stoplinealignment I did not investigate why the middle alignment is on the same line as the left alignment and if that's intended or not. What are the up todate manuals for MkIV? I'm afraid there are none (and probably never will be). The wiki improved an awful lot during the last months, especially the command reference. There's also the revised manual, tex.stackexchange and of course the mailing list. Marco signature.asc Description: Digital signature ___ 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] Some questions
On Fri, 25 Jan 2013 15:47:56 +0100 Marco Patzer home...@lavabit.com wrote: - The chemical formulae give an error (pages 37-38), but I'll come back to that later on, but what is the manual about it? Hans and Alan are in the process of completely re-writing the chemical macros. I don't know the current state. I have written a new manual that will be made available (soon), once I manage to find some time with Hans to finish a few points... I see that in the example from the ConTeXt Excursion manual, PB:...PE currently gives some errors. I will look into this this weekend (I prefer to use SAVE...RESTORE, but I see that it is indeed important to keep PB:...PE working to insure some backwards compatibility). Alan ___ 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] Coming back to ConTeXt
On 2013–01–25 Alain Delmotte wrote: I decided to give another try to ConTeXt. I already did two years ago, I think, but I had problems mostly because of the lack of documentation for MkIV. Welcome back! I did not succeed to install a stand alone version. It should be as easy as running first-setup followed by setting the PATH. Explain exactly what you have tried and what failed, then we can help. I have also TeX Live and I need it for LaTeX. No problem. ConTeXt does not interfere with other TeX installations. Following the discussions on ntg-context, there often is solution using one of hte latest version of ConTeXt, so I have a first question: Correct. is it possible to update the TeX Live ConTeXt and its associated files? I don't use TeX Live myself, so I cannot help you directly. But there is a repository called “tlcontrib” with more recent packages. My suggestion is to focus on getting the standalone version working. You will receive the most recent bug fixes and it does not interfere with your LaTeX. Marco signature.asc Description: Digital signature ___ 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] setuphead command ! Argument of \xxx has an extra }.
Hi, I am trying to use a homemade command to display chapter heads but I systematically get the following error: ! Argument of \ChapterHead has an extra }. Here is my minimal example \def\ChapterHead#1#2{#1 --- #2} \setuphead[chapter][command=\ChapterHead] \starttext \chapter{Hello} Some text \stoptext This example works fine with MKII and with the texlive 2012 version of MKIV (ConTeXt ver: 2012.05.30 11:26). It fails with the last beta (2013.01.24 16:47 MKIV) and also with 2012.11.22 14:55 MKIV. I tried \setuphead[chapter][alternative=command,command=\ChapterHead] and \startchapter ... \stopchapter but still get the same error. You will find below the content of the log file produced by my minimal example. Thanks for your help. (/Users/jprey/ConTeXt-2013.01.24/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.01.24 16:47 MKIV fmt: 2013.1.25 int: english/english system cont-new.mkiv loaded (/Users/jprey/ConTeXt-2013.01.24/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname: test-setuphead, input: test-setuphead, result: test-setuphead fontslatin modern fonts are not preloaded languageslanguage en is active (test-setuphead.tex{/Users/jprey/ConTeXt-2013.01.24/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown: library 'loc' {/Users/jprey/ConTeXt-2013.01.24/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/jprey/ConTeXt-2013.01.24/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsfallback modern rm 12pt is loaded % begin of command line arguments % % noarrange= true % input= ./test-setuphead.tex % fulljobname = ./test-setuphead.tex % currentrun = 1 % no-parse-first-line = true % arrange = true % script = true % synctex = true % kindofrun= 1 % % end of command line arguments % begin of command line files % % 1 ./test-setuphead.tex % % end of command line files structuresectioning chapter @ level 2: 0.1 - Hello ! Argument of \ChapterHead has an extra }. system tex error on line 4 in file test-setuphead.tex: Argument of ... 1 \def\ChapterHead#1#2{#1 --- #2} 2 \setuphead[chapter][command=\ChapterHead] 3 \starttext 4 \chapter{Hello} 5 Some text 6 \stoptext 7 inserted text \par to be read again } \strc_rendering_inject_number_and_text ...ommand } \ifx \p_command \empty \di... \strc_rendering_place_head_number_and_text ...ext }\fi \strc_rendering_stop_... \strc_sectioning_handle ...e_head_number_and_text \else \strc_rendering_plac... l.4 \chapter{Hello} ? ! Emergency stop. system tex error on line 4 in file test-setuphead.tex: Emergency stop ... 1 \def\ChapterHead#1#2{#1 --- #2} 2 \setuphead[chapter][command=\ChapterHead] 3 \starttext 4 \chapter{Hello} 5 Some text 6 \stoptext 7 inserted text \par to be read again } \strc_rendering_inject_number_and_text ...ommand } \ifx \p_command \empty \di... \strc_rendering_place_head_number_and_text ...ext }\fi \strc_rendering_stop_... \strc_sectioning_handle ...e_head_number_and_text \else \strc_rendering_plac... l.4 \chapter{Hello} End of file on the terminal! ! == Fatal error occurred, no output PDF file produced! -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51 ___ 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] setuphead command ! Argument of \xxx has an extra }.
On 2013–01–25 Jean-Philippe Rey wrote: \def\ChapterHead#1#2{#1 --- #2} \define[2]\ChapterHead{#1 --- #2} or \unexpanded\def\ChapterHead#1#2{#1 --- #2} Marco signature.asc Description: Digital signature ___ 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] Coming back to ConTeXt
On Fri, Jan 25, 2013 at 2:47 PM, Alain Delmotte wrote: Hi, I decided to give another try to ConTeXt. I already did two years ago, I think, but I had problems mostly because of the lack of documentation for MkIV. Having a more or less strong knowledge and experience of LaTeX doesn't help!!! This time: I did not succeed to install a stand alone version. Tell us more about the specific problems. Following the discussions on ntg-context, there often is solution using one of hte latest version of ConTeXt, so I have a first question: is it possible to update the TeX Live ConTeXt and its associated files? I would suggest you to do the following: - Add tlcontrib to the list of repositories and update luatex and ConTeXt from there (http://tlcontrib.metatex.org/usage.html). - You can add the latest version of ConTeXt to texmf-local or $TEXMFHOME (usually $HOME/texmf, but may be set to a different place) or to some other place. You can clone a git repository (https://gitorious.org/context) there for example (just make sure that you don't use one extra directory). - Apart from that you need to make sure that mtxrun will be taken from the latest ConTeXt. There are different options to achieve that. (Add $HOME/bin to PATH and put a symlink or copy of mtxrun there, or any other option that comes to your mind.) 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 ___
Re: [NTG-context] setuphead command ! Argument of \xxx has an extra }.
Le 25 janv. 2013 à 17:00, Marco Patzer a écrit : On 2013–01–25 Jean-Philippe Rey wrote: \def\ChapterHead#1#2{#1 --- #2} \define[2]\ChapterHead{#1 --- #2} or \unexpanded\def\ChapterHead#1#2{#1 --- #2} It works. Thank you very much. -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51 ___ 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] Coming back to ConTeXt
Hi, Le 25/01/2013 17:14, Mojca Miklavec a écrit : On Fri, Jan 25, 2013 at 2:47 PM, Alain Delmotte wrote: Hi, I decided to give another try to ConTeXt. I already did two years ago, I think, but I had problems mostly because of the lack of documentation for MkIV. Having a more or less strong knowledge and experience of LaTeX doesn't help!!! This time: I did not succeed to install a stand alone version. Tell us more about the specific problems. I did retry everything from the beginning and now it works. One problem is that there is two bin folder and I was first pointing to the wrong one; after that I didn't see the context.exe and was trying to use mtxrun. And of course I did add to the path. So now it works from a standalone version. (up to date) Following the discussions on ntg-context, there often is solution using one of hte latest version of ConTeXt, so I have a first question: is it possible to update the TeX Live ConTeXt and its associated files? I would suggest you to do the following: - Add tlcontrib to the list of repositories and update luatex and ConTeXt from there (http://tlcontrib.metatex.org/usage.html). I did try this before reinstalling the standalone; but it was refused because there probably is a pointer to TeX Live 2010 and I have 2012. - You can add the latest version of ConTeXt to texmf-local or $TEXMFHOME (usually $HOME/texmf, but may be set to a different place) or to some other place. You can clone a git repository (https://gitorious.org/context) there for example (just make sure that you don't use one extra directory). - Apart from that you need to make sure that mtxrun will be taken from the latest ConTeXt. There are different options to achieve that. (Add $HOME/bin to PATH and put a symlink or copy of mtxrun there, or any other option that comes to your mind.) 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] Some questions
Hi, Le 25/01/2013 15:47, Marco Patzer a écrit : On 2013–01–25 Alain Delmotte wrote: - The example at the bottom of page 11 and page 12 gives me an error: ! Argument of \head has an extra }. \starttext \startitemize \starthead kraamschudden\hfill (child welcoming) \stophead [...] Abraham or a Sarah. Speculaas is a kind of hard spiced biscuit. \stopitemize \stoptext Thanks, it works. - The tables pages 30-31-32-35 are not at the right position on the page, mostly they are to the right and not centered. I did not try all example, but this seems to work here. Can you provide a minimal example and say what you expect to be different? In another example before, the locations for floats was changed to right and so all tables where to the right, except the last which had a location=left. - The chemical formulae give an error (pages 37-38), but I'll come back to that later on, but what is the manual about it? Hans and Alan are in the process of completely re-writing the chemical macros. I don't know the current state. OK I'll wait - The boxes on page 45, second example are not at the right position, particularly the second is on the same line as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have a}} \rightaligned {\inframed[background=screen]{historic background}} In MkIV there's a new syntax you can use: \startlinealignment [left] \inframed[width=fit]{People in Hasselt} \stoplinealignment \startlinealignment [middle] \inframed[height=1.5cm,frame=on]{have a} \stoplinealignment \startlinealignment [right] \inframed[background=screen]{historic background} \stoplinealignment I did not investigate why the middle alignment is on the same line as the left alignment and if that's intended or not. OK, it works, but I do not get the result of the book, I'll investigate. What are the up todate manuals for MkIV? I'm afraid there are none (and probably never will be). The wiki improved an awful lot during the last months, especially the command reference. There's also the revised manual, tex.stackexchange and of course the mailing list. Waiting the book announced by Alan, I'll try to use the wiki and existing modified books. Thanks a lot for your help, Alain ___ 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] Cut-Space
Hi, Le 25/01/2013 13:30, Marco Patzer a écrit : On 2013–01–25 H. Özoguz wrote: How to add 3mm cut space (extra space) on all four edges? You did not make yourself clear what exactly you want and where to add the space. Here you find an (incomplete) overview of the page layout dimensions: I think what he mean is to have a size a little bit bigger than the required format, so one is sure that the page will be full. Example, if you want an image to occupy the top of your page from one border of the paper to the other and touching the top edge, it is usual for a printer (the man not the machine) to have the image protruding left, top and right, so when one cut the paper one is sure that the image will not leave a tiny white space on one of the side. Regards, Alain ___ 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] Coming back to ConTeXt
On Fri, Jan 25, 2013 at 8:11 PM, Alain Delmotte wrote: I would suggest you to do the following: - Add tlcontrib to the list of repositories and update luatex and ConTeXt from there (http://tlcontrib.metatex.org/usage.html). I did try this before reinstalling the standalone; but it was refused because there probably is a pointer to TeX Live 2010 and I have 2012. Set the repository to http://tlcontrib.metatex.org/2012 and make sure that you don't have ConTeXt distribution in PATH*** when calling tlmgr. Mojca *** From purely theoretical point of view you may have it in path, but after TeX Live binaries. ___ 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] Some questions
On Fri, 25 Jan 2013 20:17:38 +0100 Alain Delmotte espera...@swing.be wrote: Waiting the book announced by Alan A manual *only* describing the chemical macros... perhaps to be considered as a chapter of the official documentation... Alan ___ 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 ___