Re: [NTG-context] columnsets error in 2.08 beta
On 15-2-2012 06:56, Peter Park Nelson wrote: Updated to Feb. 8 beta, now none of my documents with columnsets will compile. Without the columnset, the example below works fine: \definecolumnset[body][n=2] \starttext \startcolumnset[body] \input tufte\par \stopcolumnset \stoptext you can try the following patch in page-set.mkiv \page_otr_set_routine - \page_otr_set_command_routine \s!page_otr_command_set_hsize=\page_one_command_set_hsize, - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Passing variable values on invoking context
A bit of help, please. I currently have a chunk at the start of a text file, like this \setvariables [Path] [Thread={Ee_01_PN}, . Mode=full] \stopbuffer I invoke the file with context filename.tex Is there a way to pass the value of the variable to context on invocation? So the top of the header might read: \setvariables [Path] [Thread={Ee_01_PN}, . ] \stopbuffer And the invocation: context filename.tex (bit of magic) Mode=full If so, I could use this a few times...it's not a big deal but would mean I could prepare some fixed command files, rather than a search and replace for Mode=full to Mode=light through al the text files called by this kind of invocation. Thanks in anticipation. Ian ___ 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] A bit more help with referencing local filenames
At the moment I have two bits of code that conspire to build a link to a file that is on a website. So, variables set on a per-document basis, giving the folder: swfURLPath={http://some location or other/PN01_media/}, supportURLPath={http://some location or other/PN01_support/}, These combine with a macro, ending with: [url(\swflocation#1/#1.swf)]} and a piece in the actual file that gives the filename to be retrieved \PlaceSWF{ModelACircuit} What I'd like to do is be able to alter swfURLPath to designate a local folder for retrieving the swf and launching it in a browser Same thing for the supportURLPath, which always opens PDFs in a browser. I tried stuff like: swfURLPath={\\PN01_media/}, supportURLPath={\\PN01_support/}, And have trawled the context wiki and documentation, but cannot find anything authoritative on linking to local files using relative references, as you might in html. I'm keen not to try and use the same hooks so that I can switch back and forth between remote and local access to the supporting files. There is a good reason for this - honest. Thanks in anticipation. Ian ___ 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] Passing variable values on invoking context
Am 15.02.2012 um 11:17 schrieb Ian Lawrence: A bit of help, please. I currently have a chunk at the start of a text file, like this \setvariables [Path] [Thread={Ee_01_PN}, . Mode=full] \stopbuffer I invoke the file with context filename.tex Is there a way to pass the value of the variable to context on invocation? So the top of the header might read: \setvariables [Path] [Thread={Ee_01_PN}, . ] \stopbuffer And the invocation: context filename.tex (bit of magic) Mode=full If so, I could use this a few times...it's not a big deal but would mean I could prepare some fixed command files, rather than a search and replace for Mode=full to Mode=light through al the text files called by this kind of invocation. • http://archive.contextgarden.net/message/20060810.215454.54ccd77e.en.html • http://archive.contextgarden.net/message/20110105.204113.93286322.en.html 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 ___
[NTG-context] random bookmarks not linked (with example)
Hi Hans, finally I managed to figure out a minimal 3 page example that can reproduce this strange bug! It seems to be an interaction of \cite and \index with sectioning/bookmark generation: Please run chap_1.tex and click on the bookmark 1.1.2 SIX ... no destination is set. (As I explained before, this does not mean that anything strange is going on at \subsection{SIX}. If the minimal file was longer, the missing link would have been somewhere else.) If I delete the used \index entries the bug is gone. And if I delete the used \mycite commands the bug is gone, too. I hope this test file might help ... Steffen --- ___ 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] random bookmarks not linked (with example)
Hi Hans, finally I managed to figure out a minimal 3 page example that can reproduce this strange bug! It seems to be an interaction of \cite and \index with sectioning/bookmark generation: Please run chap_1.tex and click on the bookmark 1.1.2 SIX ... no destination is set. (As I explained before, this does not mean that anything strange is going on at \subsection{SIX}. If the minimal file was longer, the missing link would have been somewhere else.) If I delete the used \index entries the bug is gone. And if I delete the used \mycite commands the bug is gone, too. I hope this test file might help ... Steffen --- chap_01.tex Description: Binary data ___ 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] texgyre termes: no ligatures
Hi all, I think this has been around for a while, but I have never gotten round to writing about it: ligatures do not work in tex gyre termes. AFAICS, they do work in the other tex gyre fonts. However, they are most needed in termes (fi without ligature is really ugly in this one), and they do not appear in the current beta. Don't know if this is a luatex or ConTeXt issue. Example: \setupbodyfont[termes,12pt] \starttext office fine flat {\ss office fine flat} {\switchtobodyfont[pagella] office fine flat} \stoptext All best Thomas ___ 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] texgyre termes: no ligatures
Am 15.02.2012 um 12:32 schrieb Thomas A. Schmitz: Hi all, I think this has been around for a while, but I have never gotten round to writing about it: ligatures do not work in tex gyre termes. AFAICS, they do work in the other tex gyre fonts. However, they are most needed in termes (fi without ligature is really ugly in this one), and they do not appear in the current beta. Don't know if this is a luatex or ConTeXt issue. Example: \setupbodyfont[termes,12pt] \starttext office fine flat {\ss office fine flat} {\switchtobodyfont[pagella] office fine flat} \stoptext At least in vers. 2012.01.16 there are ligatures ... PastedGraphic-2.pdf Description: Adobe PDF document Steffen___ 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] texgyre termes: no ligatures
On 15-2-2012 12:32, Thomas A. Schmitz wrote: Hi all, I think this has been around for a while, but I have never gotten round to writing about it: ligatures do not work in tex gyre termes. AFAICS, they do work in the other tex gyre fonts. However, they are most needed in termes (fi without ligature is really ugly in this one), and they do not appear in the current beta. Don't know if this is a luatex or ConTeXt issue. Example: \setupbodyfont[termes,12pt] \starttext office fine flat {\ss office fine flat} {\switchtobodyfont[pagella] office fine flat} \stoptext weird ... if you move the \starttypescript [times,termes] in the type-imp-texgyre to the end of the typescriptcollection it works ok ... maybe because of all that indirectness there (could be a godo reason to split up the gyre typescripts) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] error with m-database example
Sorry to pick up an old topic (http://archive.contextgarden.net/message/20101221.082006.4dc83f26.en.html), but I seem to have the same problem with m-database at mentioned in this old thread. I am trying to freely use the data fields in a layout other than (natural) Tables. An update of context (15.2.2012) doesn't help. The example from the CSV MyWay fails as well as the simplified example below with following error: \doprocessdatabase ...ameter \c!command \!!es , }} l.14 \stopAddressen Modifying m-database.lua as suggested in the old thread seems to have no effect on the error... Though I suspect the file has been changed since anyhow. Thanks for any input, Martin Code used: \usemodule[database] \def\SendMe#1#2{#1\crlf#2} \defineseparatedlist [Addressen] [separator={;},command=\SendMe] \starttext \startAddressen xyz;Maasstraat abc;sometown \stopAddressen \stoptext using the variant doesn't help: \startseparatedlist[Addressen] xyz;Maasstraat abc;sometown \stopseparatedlist ___ 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] columnsets error in 2.08 beta
Hans, it still does not work. BTW, is it possible to revert the Context standalone installation to an earlier beta (without going all the way back to the last stable)? Error below: (K2.tex ConTeXt ver: 2012.02.08 21:58 MKIV fmt: 2012.2.15 int: english/english system cont-new.mkiv loaded (/home/peter/contextbeta/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system K2.top loaded system options start used options used options % runtime options files (command line driven) used options \unprotect used options % feedback and basic job control used options % handy for special styles used options \startluacode used options document = document or { } used options document.arguments={ used options } used options document.files={ used options K2.tex, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=K2.tex] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used options % done used options \protect \endinput system options stop used options (K2.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/home/peter/contextbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown: library 'loc' {/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded ! Undefined control sequence. system tex error on line 6 in file K2.tex: Undefined control sequence ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input tufte\par 7 \stopcolumnset 8 9 \stoptext \154columnset:page_otr_command_routine ...outine \page_otr_commands_process ...outineparameter {#1} }\ifx \page_otr_specifics_... inserted text ...cess {page_otr_command_routine} \page_otr_commands_process... inserted text ...eset \the \t_page_otr_commands \let \page_otr_commands_pr... \setup_outputroutine ...\everyswitchoutputroutine \fi \else \let \previousou... to be read again \doifelsenothing ... l.6 \input tufte\par ? ! Interruption. system tex error on line 6 in file K2.tex: Interruption ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input tufte\par 7 \stopcolumnset 8 9 \stoptext \page_otr_commands_process ...outineparameter {#1} }\ifx \page_otr_specifics_... inserted text ...cess {page_otr_command_routine} \page_otr_commands_process... inserted text ...eset \the \t_page_otr_commands \let \page_otr_commands_pr... \setup_outputroutine ...\everyswitchoutputroutine \fi \else \let \previousou... to be read again \doifelsenothing \dostartcolumnset ...!columnset ]\doifelsenothing {#1} {\globallet \OTRSETli... ... l.6 \input tufte\par ? ! Emergency stop. system tex error on line 6 in file K2.tex: Emergency stop ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input tufte\par 7 \stopcolumnset 8 9 \stoptext \page_otr_commands_process ...outineparameter {#1} }\ifx \page_otr_specifics_... inserted text ...cess {page_otr_command_routine} \page_otr_commands_process... inserted text ...eset \the \t_page_otr_commands \let \page_otr_commands_pr... \setup_outputroutine ...\everyswitchoutputroutine \fi \else \let \previousou... to be read again \doifelsenothing \dostartcolumnset ...!columnset ]\doifelsenothing {#1} {\globallet \OTRSETli... ... l.6 \input tufte\par End of file on the terminal! ! == Fatal error occurred, no output PDF file produced! On Wed, Feb 15, 2012 at 3:40 AM, Hans Hagen
Re: [NTG-context] Passing variable values on invoking context
On Wed, 15 Feb 2012, Wolfgang Schuster wrote: Am 15.02.2012 um 11:17 schrieb Ian Lawrence: A bit of help, please. I currently have a chunk at the start of a text file, like this \setvariables [Path] [Thread={Ee_01_PN}, . Mode=full] \stopbuffer I invoke the file with context filename.tex Is there a way to pass the value of the variable to context on invocation? So the top of the header might read: \setvariables [Path] [Thread={Ee_01_PN}, . ] \stopbuffer And the invocation: context filename.tex (bit of magic) Mode=full If so, I could use this a few times...it's not a big deal but would mean I could prepare some fixed command files, rather than a search and replace for Mode=full to Mode=light through al the text files called by this kind of invocation. • http://archive.contextgarden.net/message/20060810.215454.54ccd77e.en.html • http://archive.contextgarden.net/message/20110105.204113.93286322.en.html Also see http://wiki.contextgarden.net/Modes 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] A bit more help with referencing local filenames
OK, a bit early! This one swfURLPath={\\PN01_media/}, supportURLPath={\\PN01_support/}, works with Acrobat, but not with the Preview PDF viewer on the Mac Anyone know why, or can suggest a more robust mechanism? On 15 February 2012 10:18, Ian Lawrence physics.roo...@gmail.com wrote: At the moment I have two bits of code that conspire to build a link to a file that is on a website. So, variables set on a per-document basis, giving the folder: swfURLPath={http://some location or other/PN01_media/}, supportURLPath={http://some location or other/PN01_support/}, These combine with a macro, ending with: [url(\swflocation#1/#1.swf)]} and a piece in the actual file that gives the filename to be retrieved \PlaceSWF{ModelACircuit} What I'd like to do is be able to alter swfURLPath to designate a local folder for retrieving the swf and launching it in a browser Same thing for the supportURLPath, which always opens PDFs in a browser. I tried stuff like: swfURLPath={\\PN01_media/}, supportURLPath={\\PN01_support/}, And have trawled the context wiki and documentation, but cannot find anything authoritative on linking to local files using relative references, as you might in html. I'm keen not to try and use the same hooks so that I can switch back and forth between remote and local access to the supporting files. There is a good reason for this - honest. Thanks in anticipation. Ian ___ 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] random bookmarks not linked (with example)
Dear developers, friends please have a look at the bug described below! It is not an academic detail ... It's a real book that's already have finished, containing hundreds of sections. And unfortunately dozens of these cripples bookmarks. I don't know what else I can do for debugging. Is there some advanced logging magic? Please help! Steffen Am 15.02.2012 um 12:28 schrieb Steffen Wolfrum: Hi Hans, finally I managed to figure out a minimal 3 page example that can reproduce this strange bug! It seems to be an interaction of \cite and \index with sectioning/bookmark generation: Please run chap_1.tex and click on the bookmark 1.1.2 SIX ... no destination is set. (As I explained before, this does not mean that anything strange is going on at \subsection{SIX}. If the minimal file was longer, the missing link would have been somewhere else.) If I delete the used \index entries the bug is gone. And if I delete the used \mycite commands the bug is gone, too. I hope this test file might help ... Steffen --- chap_01.tex___ 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] error with m-database example
Am 15.02.2012 um 16:06 schrieb Martin: Sorry to pick up an old topic (http://archive.contextgarden.net/message/20101221.082006.4dc83f26.en.html), but I seem to have the same problem with m-database at mentioned in this old thread. I am trying to freely use the data fields in a layout other than (natural) Tables. An update of context (15.2.2012) doesn't help. The example from the CSV MyWay fails as well as the simplified example below with following error: \doprocessdatabase ...ameter \c!command \!!es , }} l.14 \stopAddressen Modifying m-database.lua as suggested in the old thread seems to have no effect on the error... Though I suspect the file has been changed since anyhow. Thanks for any input, Martin Code used: \usemodule[database] \def\SendMe#1#2{#1\crlf#2} \unexpanded\def\SendMe#1#2{#1\crlf#2} 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] error with m-database example
\unexpanded\def\SendMe#1#2{#1\crlf#2} Wolfgang Wolfgang, thanks, that worked for the sample code. However, when extended to three fields (I need 8) the field splitting gets rather messy. Thanks, Martin Modified code: \usemodule[database] \unexpanded\def\SendMe#1#2#3{#1\crlf#2\crlf#3} \defineseparatedlist [Addressen] [separator={;},command=\SendMe] \starttext \startAddressen house1;street1;name1 house2;street2;name2 \stopAddressen \stoptext Result is in attached PDF (hope that's ok) csv-test.pdf Description: Adobe PDF document ___ 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] error with m-database example
Am 15.02.2012 um 21:54 schrieb Martin: \unexpanded\def\SendMe#1#2{#1\crlf#2} Wolfgang Wolfgang, thanks, that worked for the sample code. However, when extended to three fields (I need 8) the field splitting gets rather messy. I had to look at the example in the module for this and what I saw is that you can only use commands with *one* but this isn’t a real problem, when you describe what do you want to do with the entries I can provide you with a solution for this. 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] random bookmarks not linked (with example)
On 15-2-2012 20:59, Steffen Wolfrum wrote: Dear developers, friends please have a look at the bug described below! It is not an academic detail ... It's a real book that's already have finished, containing hundreds of sections. And unfortunately dozens of these cripples bookmarks. I don't know what else I can do for debugging. Is there some advanced logging magic? i'll have a look at it but not today btw, never use betas for critical (deadline) projects), esp not now I'm redoing some otr and structure code Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Unnumbered chapter in table of contents?
Hello, For my student notes, there are ten numbered chapters, and one unnumbered (Answers to Exercises). I want all of these to appear in the table of contents. So: 1. First Chapter 2. Second chapter 10. Tenth Chapter Answers to Exercises I've set up the chapters with \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][ command=\chap, style=bfd, after={\blank[1cm]}, ] However, I don't want this heading on the exercises; just the title. How can I easily achieve all of this? I've tried with \title[Answers to Exercises] and \writetolist[content]{}{Answers to Exercises} but these don't seem to work. Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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] Getting changing/random graphics?
Hello all, I'm trying to do something that should be possible and I think variables is the answer, I just can't figure out how. I have a pile of photos (jpg) in a directory and the assumption is that they are all the same size and there's a spot for the photo on a layer at the top of the page. I already found out how I can get ConTeXt to draw the layer separately for each page (at http://wiki.contextgarden.net/layers#Use_dynamic_content), but I think I need a variables for dummies page... This time I'm not too picky, the images can be used randomly or in the order they are in the directory and then cycled, I'd just like to use more than one (and I'm so not doing every page by hand). So, if I have photo1.jpg photo2.jpg photo3.jpg photo4.jpg and \dorecurse{10}{insert random photo here}, how do I do it? Thank you, Mari ___ 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] Unnumbered chapter in table of contents?
Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First section} \section{Second section} \chapter{Chapter two} \section{First section} \section{Second section} \chapter[title={Answer to all the questions},number=no] \stoptext % end Best regards: OK On 16 févr. 2012, at 01:26, Alasdair McAndrew wrote: Hello, For my student notes, there are ten numbered chapters, and one unnumbered (Answers to Exercises). I want all of these to appear in the table of contents. So: 1. First Chapter 2. Second chapter 10. Tenth Chapter Answers to Exercises I've set up the chapters with \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][ command=\chap, style=bfd, after={\blank[1cm]}, ] However, I don't want this heading on the exercises; just the title. How can I easily achieve all of this? I've tried with \title[Answers to Exercises] and \writetolist[content]{}{Answers to Exercises} but these don't seem to work. Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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 ___