[NTG-context] Simple input vs component structure
Hi all, I have a set of reference manuals that consist of a number of chapters. Those documents pull in the individual chapters via \input commands. I have just recently discovered that ConTeXt actually DOES support a project/product/component structure. So, I have been experimenting with making the individual reference manuals ‘products’ and converting all chapters into ‘components’. However, I wonder what that actually gains me? What are the benefits of this product/component structure? It looks like I can reference other sections in these other components, but I can do that now even with the simple \input. What am I missing? Another related question in this context is: What do I actually expect when I run the project file, as in: $ context project.tex ConText runs for a little while, and actually states in the log somewhere result saved in file: project.pdf, compresslevel 3, objectcompresslevel 3 but no such file is generated; it also does not build the individual components? What does it do? Or what should I expect it to do? Thank you, Malte -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe. ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Building a Component
Hi Wolfgang, Thank you, that works indeed. It seems to be incorrect on http://wiki.contextgarden.net/Project_structure <http://wiki.contextgarden.net/Project_structure>; see Example Files/Component. What is the significance of those two lines, though? The documentation states I can use the Component in any Product even if not specified on the \product line. I assume it just makes sure that the environment file for the Product is pulled in, would that be right? Does it do anything else? Analogous, the \project line just pulls in environment file for the project? Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe. ― Douglas Adams <http://www.goodreads.com/author/show/4.Douglas_Adams>, Dirk Gently's Holistic Detective Agency <http://www.goodreads.com/work/quotes/1042123> > On 12 Sep 2016, at 22:29 , Wolfgang Schuster > wrote: > >> Malte Stien <mailto:ma...@stien.de> 12. September 2016 um 13:03 >> Hi all, >> >> I am just familiarising myself with projects/products/components. I have a >> number of documents that all belong to a large set of Reference Manuals and >> so far I have built them all separately and have relied a lot on the simple >> \input... statement. I assume with projects/products/components I might be >> able to do something much smarter. Let’s see. >> >> I get stuck quite early on, though. I have created a minimal component file >> ‘component-1.tex’ and when I build it, context runs into what seems to be an >> infinite recursion. Here is the file: >> >> >> \project test-project >> \product reference-manual-1 > Move the two lines after \startcomponent. >> \startcomponent component-1 >> \starttext > You don’t need \starttext/\stoptext when you use product and component files. > > 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 > ___ ___ 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] Building a Component
Hi all, I am just familiarising myself with projects/products/components. I have a number of documents that all belong to a large set of Reference Manuals and so far I have built them all separately and have relied a lot on the simple \input... statement. I assume with projects/products/components I might be able to do something much smarter. Let’s see. I get stuck quite early on, though. I have created a minimal component file ‘component-1.tex’ and when I build it, context runs into what seems to be an infinite recursion. Here is the file: \project test-project \product reference-manual-1 \startcomponent component-1 \starttext \section[c1-s1]{Component 1 Section 1} This is a paragraph in Component 1 Section 1 \stoptext \stopcomponent ...and here is the console when I run it: > context component-1.tex ... ... ... open source > 196 > 198 > component-1.tex open source > 197 > 199 > reference-manual-1.tex open source > 198 > 200 > component-1.tex open source > 199 > 201 > reference-manual-1.tex open source > 200 > 202 > component-1.tex open source > 201 > 203 > reference-manual-1.tex tex error > tex error on line 2 in file reference-manual-1.tex: ! TeX capacity exceeded, sorry [text input levels=600] \m_syst_action_nop #1 ->\clf_startproduct {#1} l.11 \startproduct reference-manual-1 1 % \project test-project 2 >> \startproduct reference-manual-1 3 4 \component component-1 5 6 \stopproduct 7 Here is reference-manual-1.tex: \project test-project \startproduct reference-manual-1 \component component-1 \stopproduct This is with the latest context downloaded today. All I really know about this is from here http://wiki.contextgarden.net/Project_structure; anything else I should be reading? Any ideas? Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe. ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Access to Intermediate Document after Pre-processing
Hi all, I am working with a reasonably complex document structure, where I make heavy use of the following constructs \input (to import a number of source files) \if and \newif (to switch between different paragraphs depending on some conditions) \setvariable and \getvariable (to reuse some text in different places) So, does ConTeXt run some sort of pre-processing step that processes all of the above and which results in an intermediate document that is then type-set? And is it possible to only run this pre-processing step and get access to that intermediate document? I am asking as I have some Ruby scripts that take ConTeXt documents and convert it to another format. However, those scripts do not deal with any of the above and rather than implementing the necessary logic to deal with importing of files, conditions and variables, I thought ConTeXt does that already if only I could get access to the resulting intermediate file. Does that makes sense? Thank you, Malte. Malte Stien, PhD | Chief Technology Officer | SmartWard Pty Ltd E: malte.st...@smartward.com.au | W: www.smartward.com.au P: +61 (0)2 6251 1798 | M: +61 (0)413 928 895 -- Please consider the environment before printing this email -- ___ 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] Page Breaks after Headings
Hi all, Is there a way I can avoid page breaks after “headings”, i.e. \section, \subsection, \subject, \subsubject, etc? Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Adjusting Kerning/Spacing between Letter
Hi, I am trying to typeset some strings in {\tt ...}, but they turn out to be pretty wide. So, I would like to compress those bits of text a little. Any hints on how I could do that locally, that is without adjusting the entire font. Thank you, Malte. ___ 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] Styling References
Sweet. Thank you. Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 14 Jul 2014, at 23:03 , Wolfgang Schuster wrote: > > Am 14.07.2014 um 13:58 schrieb Malte Stien : > >> Hi, >> >> I need to style my references to SOME section/subsection/subsubsection >> differently. Here is an example: >> >> \starttext >> There are lots of animals such as \about[ducks] and \about[bears]. >> More about this can be found in Chapter~\about[introduction]. >> >> \chapter[introduction]{Introduction} >> \section[ducks]{Ducks} >> Some information about ducks... >> >> \section[bears]{Bears} >> Some information about baers... >> >> \stoptext >> >> I am happy for the reference to the Introduction chapter to be in regular >> type with quotes, but I would like to render the references to Ducks and >> Baers in italics without the quotes. Note, that I do not require for ConTeXt >> to pick one or the other style automatically based on the section (that >> would be pretty complicated, I suppose). I am happy to ‘hint’ it when I make >> the reference. So, for example, I am happy to replace the first like with >> >> There are lots of animals such as \animalabout[ducks] and >> \animalabout[bears]. >> >> ...but so far I have been unsuccessful in creating such a \animalabout >> command. I looked at \definereferenceformat which gets rid of the quotes, >> but I can’t make it go italics. I also looked at \setupreferencing, but that >> seems to affect ALL \abouts. > > \definereferenceformat[animalabout][style=italic,color=blue,type=title,left=«,right=»] > > \starttext > > There are lots of animals such as \about[ducks] and \about[bears]. > > There are lots of animals such as \animalabout[ducks] and \animalabout[bears]. > > \chapter[introduction]{Introduction} > > \section[ducks]{Ducks} > > Some information about ducks... > > \section[bears]{Bears} > > Some information about baers... > > \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 > ___ ___ 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] Styling References
Hi, I need to style my references to SOME section/subsection/subsubsection differently. Here is an example: \starttext There are lots of animals such as \about[ducks] and \about[bears]. More about this can be found in Chapter~\about[introduction]. \chapter[introduction]{Introduction} \section[ducks]{Ducks} Some information about ducks... \section[bears]{Bears} Some information about baers... \stoptext I am happy for the reference to the Introduction chapter to be in regular type with quotes, but I would like to render the references to Ducks and Baers in italics without the quotes. Note, that I do not require for ConTeXt to pick one or the other style automatically based on the section (that would be pretty complicated, I suppose). I am happy to ‘hint’ it when I make the reference. So, for example, I am happy to replace the first like with There are lots of animals such as \animalabout[ducks] and \animalabout[bears]. ...but so far I have been unsuccessful in creating such a \animalabout command. I looked at \definereferenceformat which gets rid of the quotes, but I can’t make it go italics. I also looked at \setupreferencing, but that seems to affect ALL \abouts. Any clues? Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Continuous Item Numbering throughout an Entire Document
Hi all, I have a rather long document listing a number of items, which I need to be numbered continuously throughout the entire document. The following approach appears to work well, except that the numbering restarts at the beginning of every chapter. Is there a way that can be avoided? \startitemize[n] \item bar \item faz \stopitemize[n] \startitemize[n, continue] \item foo \item bla \stopitemize[n] Thank you, Malte. Dr Malte Stien | Chief Technology Officer | SmartWard Pty Ltd E: malte.st...@smartward.com.au | W: www.smartward.com.au P: +61 (0)2 6230 9477 | M: +61 (0)413 928 895 -- Please consider the environment before printing this email -- ___ 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] Continuous Item Numbering throughout an Entire Document
Hi all, I have a rather long document listing a number of items, which I need to be numbered continuously throughout the entire document. The following approach appears to work well, except that the numbering restarts at the beginning of every chapter. Is there a way that can be avoided? \startitemize[n] \item bar \item faz \stopitemize[n] \startitemize[n, continue] \item foo \item bla \stopitemize[n] Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Headers on Empty Page at End of Chapter
Wolfgang, Thank you for this. I do actually like the empty page, I just don't like the header and footer on there. So, after you your hint I managed to turn that off with \setupsectionblock[page={yes, header, footer, right}] Regards, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 02/07/2013, at 5:24 PM, Wolfgang Schuster wrote: > > Am 02.07.2013 um 06:05 schrieb Malte Stien : > >> Wolfgang, >> >> Actually, I just realised this only works if the next page (the right page >> following the empty left page) is the first page of a chapter in the >> bodymatter. That is, it does not work in the following two cases: >> >> - If the next page is the first page of the first appendix > > This happens because sectionblocks force a right page at the start of each > block, you can disable this with > > \setupsectionblock[page=yes] % default: page=right > >> - If there is no next page, ie. for the last page of the document > > This should also be solved with the solution above. When the number still > appears you can try to add \page[last] at the end of your document. > > 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 > ___ ___ 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] Headers on Empty Page at End of Chapter
Wolfgang, Actually, I just realised this only works if the next page (the right page following the empty left page) is the first page of a chapter in the bodymatter. That is, it does not work in the following two cases: - If the next page is the first page of the first appendix - If there is no next page, ie. for the last page of the document In both those cases, I would like for no footers and headers to appear, but currently they do. Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 25/06/2013, at 10:38 PM, Wolfgang Schuster wrote: > > Am 25.06.2013 um 07:24 schrieb Malte Stien : > >> Hello, >> >> When you setup your chapters such that a chapter always starts on a right >> page, you naturally get the occasional empty left page just before that. I >> have my headers setup like this >> >> \setupheadertexts[chapter][section] >> >> I get the chapter and section name of the previous section printed in the >> header of that empty page, but I want that page just empty. Is there a way? > > You have to use > > \setuphead > [chapter] > [page={yes,header,right}] > > to disable the header on empty left pages before a new chapter. > > 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 > ___ ___ 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] Bold Small Caps
Wolfgang, Thank you. However, I am getting an undefined control sequence here: l.4 {\bf This is bold {\feature [+][f:smallcaps] and bold small caps} and jus... However, the wiki page http://wiki.contextgarden.net/Featuresets confirms your syntax. What am I missing? Regards, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 25/06/2013, at 11:08 PM, Wolfgang Schuster wrote: > > Am 25.06.2013 um 14:59 schrieb Malte Stien : > >> Hello, >> >> I am trying for bold small caps, such like >> >> {\bf This is bold {\sc and bold small caps} and just bold again} >> >> However, out of the box, the inner {\sc ...} part is not typeset in bold. So >> after a bit of looking I found this: >> >> http://wiki.contextgarden.net/Bold_small_caps >> >> But it does not work for me. I noticed the module >> (http://pmrb.free.fr/work/OS/ConTeXt/) is from 2006, so the bit rot might >> have set in. Should it still work? Or is there a better way these days? > > > When you have a opentype font with bold smallcaps you can enable them with > the \feature command: > > \setupbodyfont[pagella] > > \starttext > {\bf This is bold {\feature[+][f:smallcaps] and bold small caps} and just > bold again} > \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 > ___ ___ 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] Bold Small Caps
Hello, I am trying for bold small caps, such like {\bf This is bold {\sc and bold small caps} and just bold again} However, out of the box, the inner {\sc ...} part is not typeset in bold. So after a bit of looking I found this: http://wiki.contextgarden.net/Bold_small_caps But it does not work for me. I noticed the module (http://pmrb.free.fr/work/OS/ConTeXt/) is from 2006, so the bit rot might have set in. Should it still work? Or is there a better way these days? Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] [***SPAM***] Headers on Empty Page at End of Chapter
That works, thank you. Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 25/06/2013, at 10:38 PM, Wolfgang Schuster wrote: > > Am 25.06.2013 um 07:24 schrieb Malte Stien : > >> Hello, >> >> When you setup your chapters such that a chapter always starts on a right >> page, you naturally get the occasional empty left page just before that. I >> have my headers setup like this >> >> \setupheadertexts[chapter][section] >> >> I get the chapter and section name of the previous section printed in the >> header of that empty page, but I want that page just empty. Is there a way? > > You have to use > > \setuphead > [chapter] > [page={yes,header,right}] > > to disable the header on empty left pages before a new chapter. > > 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 > ___ ___ 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] [***SPAM***] Headers on Empty Page at End of Chapter
Hello, When you setup your chapters such that a chapter always starts on a right page, you naturally get the occasional empty left page just before that. I have my headers setup like this \setupheadertexts[chapter][section] I get the chapter and section name of the previous section printed in the header of that empty page, but I want that page just empty. Is there a way? Regards, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Orphans and Windows
G'day everyone, I use introductory sentences to numbered lists all the time, like this (where \startnlist...\stopnlist is a custom itemised list): To remove a foo from a pool of foos: \startnlist \item Do this... \item Do that... \item ...and so on... \stopnlist On occasions, I am getting that introductory sentence as an orphaned line at the end of a page and my numbered list as the first thing on the next page. How can I avoid that? There is not much about orphans and widows on the Wiki or in the reference manual. Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Vertically Aligning inmargin Text to Figure
Wolfgang, I have to come back to this solution you provided me with some time ago. I have more reading in the meantime and have gained a deeper understanding of how this actually works. However... 1. I noticed that the text in the margin is not actually quite aligned with the top of the figure; I think the text starts at the baseline of the line that would be there if the figure was not, if you know what I am getting at. That is at 12pt font size the text is about 12pt below the top of the figure. I tried to fix that with some negative \vskip, but that does not seem to work. Could you suggest an alternative please and maybe even explain why the code below does not compile > You can set the text in the margin with the second argument of > \startplacefigure. > > \define\FigureText > {\dowithnextbox > {\startlinealignment[middle] > > \copy\nextbox\rlap{\hskip\rightmargindistance\vskip-12pt\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}} > \stoplinealignment} > \hbox} 2. Currently the code always uses the right margin; I need it to use the outer margin. I experimented swapping the \rlap for \llap, but then I still have to negatively \hskip the entire text width to the left. Even if I got that to work, I will have to wrap everything in an if-statement and have one branch for left and one for right pages. Right? How do I find out whether I am on a left or a right page? In other words, how would the if-statement look like. Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 29/04/2013, at 9:04 PM, Wolfgang Schuster wrote: > > Am 29.04.2013 um 09:33 schrieb Malte Stien : > >> Hi, >> >> I need to associate a bit of text with a figure in a book. The text is >> not---and cannot be---the figure caption (it's providing some explanation >> with respect to some labels in the figure). I have tried the following based >> on some other post on the mailing list: >> >> \definepapersize[eightsquare][width=8in, height=8in] >> \setuppapersize[eightsquare] >> >> \setuplayout[ >> location=doublesided, marking=on, backspace=43mm, leftmargin=18mm, >> leftmargindistance=4mm, rightmargin=35mm, rightmargindistance=4mm, >> rightedgewidth=6mm, >> topspace=12mm, header=15mm, footer=15mm, height=179mm, width=115mm >> ] >> >> \starttext >> >> \startplacefigure[location=force, title={First dummy caption}] >> \inmargin{First margin dummy} >> \externalfigure[dummy][width=115mm] >> \stopplacefigure >> >> \stoptext >> >> However, that results in the text being down the bottom of the figure. I >> need the text to be vertically aligned with the top of the figure. I have >> attached the resulting PDF for illustration purposes (is that okay on this >> mailing list? It's very small). >> >> Any hints would be much appreciated. > > > You can set the text in the margin with the second argument of > \startplacefigure. > > \define\FigureText > {\dowithnextbox > {\startlinealignment[middle] > > \copy\nextbox\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}} > \stoplinealignment} > \hbox} > > \setupfloat[figure][command=\FigureText] > > \starttext > > \startplacefigure[title=Dummy figure][text=Margin dummy] > \externalfigure[dummy][width=.8\textwidth] > \stopplacefigure > > \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 > ___ ___ 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] Halt ConTeXt on Certain Warnings/Errors
Hi all, Is there are way I can have ConTeXt halt on particular warnings or errors? In particular, I like it to spit the dummy when it finds an unknown reference. Otherwise, I end up with the unknown references in the document that I sometimes don't find until much later. At the moment I grep for "reference" when I run context, as in context *.tex | grep reference ...but I thought there might be some more elegant way to do this. Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Learning ConTeXt from the Ground Up
Hello Everyone, I have been using ConTeXt for over a year now and worked out how to do most things I need to do. Every now and then, though, I need to do something that I cannot find any information about and in most cases I post a question here on the forum. I have received great help here over the months and like to thank everyone who took the time to answer my questions. The other day, however, I had a problem, posted a message here, got an answer and the answer did not quite work; I went back to the forum, got more help... In the process I realised that I should have been able to work this out myself; I was not even able to tweak the first answer and make it work. I am an IT engineer myself, but with little time (I guess I am not unique here) and even less experience in TeX. I guess what I am saying is, that I would like to gain a much deeper understanding of ConTeXt which will allow me to "program" in ConTeXt rather than just using the documented command. To gather information about ConTeXt I have - read the ConTeXt Reference Manual (http://pmrb.free.fr/contextref.pdf) - bought a couple of the published books by Hans Hagen - started reading the "TeX book" by Donald Knuth I have even briefly flirted with the idea of switching to LaTeX mainly because it would mean having a lot more literature and a broader community at my disposal. However, I just prefer the command structure and output of ConTeXt. Can anyone relate to my problem? Am I on the right track? What else should I be doing or reading to really break into ConTeXt? Regards, Malte. PS: Just to be clear; I don't mean for the above to be conceived as shortcomings of ConTeXt, rather I think of them as shortcomings of myself. The developers of ConTeXt have done a fantastic job and I really enjoy writing in ConTeXt and looking at the output. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Vertically Aligning inmargin Text to Figure
Wolfgang, Thank you for this. I can see what you are trying to do here, but this does not actually compile for me. Unfortunately, I don't know enough about the implementation of ConTeXt to track the problem down. I am getting: ! Undefined control sequence. system > tex > error on line 14 in file test.tex: Undefined control sequence ... 4 \copy\nextbox\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}} 5 \stoplinealignment} 6 \hbox} 7 8 \setupfloat[figure][command=\FigureText] 9 10 \starttext 11 12 \startplacefigure[title=Dummy figure][text=Margin dummy] 13 \externalfigure[dummy][width=.8\textwidth] 14 >> \stopplacefigure 15 16 \stoptext 17 \syst_boxes_with_next_box ->\startlinealignment [middle] \copy \nextbox \rla... \strc_floats_place_packaged_boxes_indeed ...tbox } }\strc_floats_set_natural_... \strc_floats_finish_placement ...e_packaged_boxes \dostoptagged \global \d_p... l.14 \stopplacefigure Admittedly, I am on version 2012.10.20, which is about six months old now, but I am hesitant to update as I have a lot of co-workers using the same version and our configuration management processes dictate that we always update together. Could you please help me out. Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 29/04/2013, at 9:04 PM, Wolfgang Schuster wrote: > > Am 29.04.2013 um 09:33 schrieb Malte Stien : > >> Hi, >> >> I need to associate a bit of text with a figure in a book. The text is >> not---and cannot be---the figure caption (it's providing some explanation >> with respect to some labels in the figure). I have tried the following based >> on some other post on the mailing list: >> >> \definepapersize[eightsquare][width=8in, height=8in] >> \setuppapersize[eightsquare] >> >> \setuplayout[ >> location=doublesided, marking=on, backspace=43mm, leftmargin=18mm, >> leftmargindistance=4mm, rightmargin=35mm, rightmargindistance=4mm, >> rightedgewidth=6mm, >> topspace=12mm, header=15mm, footer=15mm, height=179mm, width=115mm >> ] >> >> \starttext >> >> \startplacefigure[location=force, title={First dummy caption}] >> \inmargin{First margin dummy} >> \externalfigure[dummy][width=115mm] >> \stopplacefigure >> >> \stoptext >> >> However, that results in the text being down the bottom of the figure. I >> need the text to be vertically aligned with the top of the figure. I have >> attached the resulting PDF for illustration purposes (is that okay on this >> mailing list? It's very small). >> >> Any hints would be much appreciated. > > > You can set the text in the margin with the second argument of > \startplacefigure. > > \define\FigureText > {\dowithnextbox > {\startlinealignment[middle] > > \copy\nextbox\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}} > \stoplinealignment} > \hbox} > > \setupfloat[figure][command=\FigureText] > > \starttext > > \startplacefigure[title=Dummy figure][text=Margin dummy] > \externalfigure[dummy][width=.8\textwidth] > \stopplacefigure > > \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 > ___ ___ 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] Vertically Aligning inmargin Text to Figure
Hi, I need to associate a bit of text with a figure in a book. The text is not---and cannot be---the figure caption (it's providing some explanation with respect to some labels in the figure). I have tried the following based on some other post on the mailing list: \definepapersize[eightsquare][width=8in, height=8in] \setuppapersize[eightsquare] \setuplayout[ location=doublesided, marking=on, backspace=43mm, leftmargin=18mm, leftmargindistance=4mm, rightmargin=35mm, rightmargindistance=4mm, rightedgewidth=6mm, topspace=12mm, header=15mm, footer=15mm, height=179mm, width=115mm ] \starttext \startplacefigure[location=force, title={First dummy caption}] \inmargin{First margin dummy} \externalfigure[dummy][width=115mm] \stopplacefigure \stoptext However, that results in the text being down the bottom of the figure. I need the text to be vertically aligned with the top of the figure. I have attached the resulting PDF for illustration purposes (is that okay on this mailing list? It's very small). Any hints would be much appreciated. Thank you, Malte. test.pdf Description: Adobe PDF document -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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 and Table of Content
Hello everyone, I have defined my own set of heads with \setuphead like so, such that I can supply my own numbers: \definehead[foosection][section] \setuphead[foosection][number=yes, ownnumber=yes, sectionsegments=section] However, I need them to show up in the table of content. What's the trick? Regards, Malte. ___ 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] Different Horizontal Lines with Tabulate
Hello, I have a table in which I have to group a number of rows together. Let's say I have a table with two columns, the first is an item ID and the second a multi-line description for that item. Say I have ten items in the table and I need to group Item 1 and 2, 3 and 4, 5 and 6 and so on. Due to the description being quite lengthy in some cases, I would like to use some sort of horizontal rule between items. It seems I have to following options: 1. Using horizontal rules of two different thicknesses (eg. thicker between groups and thinner between items within the same group) 2. Using horizontal rules of two different colour (eg. black between groups and a light grey between items within the same group) 3. Using horizontal rules of different lengths (that is, full length between groups and only in the second column between items within the same group) Are any of the above possible with tabulate? I could not find anything to achieve any of those. I am quite used to tabulate as my table framework, so I would prefer to use that. If that's not possible however, I'd be happy to use something else. Any pointers would be much appreciated. Thank you, Malte. ___ 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] Repeating Headers for Tabulate not Working
Oops. Copy/pasted the wrong snippet. The minimal example looks like this: \starttext \setuptabulate[split=yes,header=repeat] \starttabulatehead \HL \NC {\bf format char} \NC {\bf meaning} \NC \AR \HL \stoptabulatehead \starttabulate[|r|l|] \dorecurse{50} {\NC c \NC centered \NC \AR \NC l \NC left aligned \NC \AR \NC r \NC right aligned \NC \AR} \stoptabulate \stoptext My apologies. Malte. On 11/02/2013, at 4:09 PM, Malte Stien wrote: > Hello, > > I just looked up how to enable repeated headers in \starttabulate… > \stoptabulate tables. It's explained here: > > http://wiki.contextgarden.net/Tabulate#Headers > > …but I am unable to make the minimal example work: > > \starttext > \placetable[split,here][tab:ref]{Sometable} > {\starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] > \HL > \NC {\bf Animal} \NC {\bf Comment} \NC\FR > \HL > \dorecurse{50} > {\NC Cat \NC Pretty cool \NC\MR} > \NC Bear\NC Kind of lazy\NC\MR > \NC Sheep \NC Always hungry \NC\MR > \HL > \stoptabulate} > \stoptext > > Does that work for anyone else? What am I missing. > > Thank you, > Malte. > > ___ > 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 ___
[NTG-context] Repeating Headers for Tabulate not Working
Hello, I just looked up how to enable repeated headers in \starttabulate… \stoptabulate tables. It's explained here: http://wiki.contextgarden.net/Tabulate#Headers …but I am unable to make the minimal example work: \starttext \placetable[split,here][tab:ref]{Sometable} {\starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] \HL \NC {\bf Animal} \NC {\bf Comment} \NC\FR \HL \dorecurse{50} {\NC Cat \NC Pretty cool \NC\MR} \NC Bear\NC Kind of lazy\NC\MR \NC Sheep \NC Always hungry \NC\MR \HL \stoptabulate} \stoptext Does that work for anyone else? What am I missing. Thank you, Malte. ___ 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] Split \starttabulates
Aditya, Thank you; you are right, too. I can't believe I did not try that. Regards, Malte. On 11/02/2013, at 12:28 PM, Aditya Mahajan wrote: > On Mon, 11 Feb 2013, Malte Stien wrote: > >> Hello, >> >> This is a bit old now, but I would like to come back to it. First of all, >> Marco, thank you for your response. I did try it and it does work. However, >> I seem to be loosing other things like adjusting the table width; things >> that \placetable provides. >> >> \placetable also has the advantage that I don't have to wrap it around my >> tables, it just appears at the beginning, not the end. A couple of points: > > \placetable and \startplacetable are equivalent. To be able to split floats, > you need to specify the **split** option: > > \starttext > \placetable[split,here][tab:ref]{Sometable} > {\starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] >\HL >\NC {\bf Animal} \NC {\bf Comment} \NC\FR >\HL >\dorecurse{50} >{\NC Cat \NC Pretty cool \NC\MR} >\NC Bear\NC Kind of lazy\NC\MR >\NC Sheep \NC Always hungry \NC\MR >\HL > \stoptabulate} > \stoptext > > 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] Split \starttabulates
Hello, This is a bit old now, but I would like to come back to it. First of all, Marco, thank you for your response. I did try it and it does work. However, I seem to be loosing other things like adjusting the table width; things that \placetable provides. \placetable also has the advantage that I don't have to wrap it around my tables, it just appears at the beginning, not the end. A couple of points: - I tried to find some documentation about \startplacetable… \stopplacetable to see how I could enforce the width and generally to see what options there were. I could not find any, not even in the source code. How is this pair defined? - I also tried to find out the overall problem with \placetable. According to this page here: http://wiki.contextgarden.net/Floating_Objects the split option should work, but for TABLEs only. So, I think this does not work for me because I am using TABULATE, right? The split function in \setuptabulate works as well, but only if the table is not inserted using \placetable, that is as a float. So, \placetable knows how to split a TABLE but not a TABULATE although \starttabulate… \stoptabulate knows how to split itself. Is that right? But if it is not inserted as a float, I do not get a caption and I cannot refer to my table later on, right? There seem to be different ways of doing this, all of which miss out on some fine detail I need them to do. So, after all that rumbling, I guess, I am asking... …is there another way of: - placing a TABULATE table such that it has a caption that I can refer to; - split the TABULATE table across multiple pages; - and control the width of the TABULATE table. Thank you, Malte. On 03/10/2012, at 6:45 PM, ntg-context-requ...@ntg.nl wrote: > Hi Malte > >> \placetable[here][tab:some-table]{Some Table} >> \starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] >> \HL >> \NC {\bf Animal} \NC {\bf Comment} \NC\FR >> \HL >> \NC Cat \NC Pretty cool \NC\MR >> \NC Bear \NC Kind of lazy\NC\MR >> \NC Sheep\NC Always hungry \NC\MR >> \HL >> \stoptabulate >> >> However, I need one of these tables to split over adjacent pages, which >> according to the documentation should be achievable with >> >> \setuptabulate[split=yes] >> >> However, that does not seem to work in connection with the \placetable line. > > \startplacetable [title=Some Table, reference=tab:some-table, > location={split,here}] > \starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] >\HL >\NC {\bf Animal} \NC {\bf Comment} \NC\FR >\HL >\NC Cat\NC Pretty cool \NC\MR >\NC Bear \NC Kind of lazy\NC\MR >\NC Sheep \NC Always hungry \NC\MR >\HL > \stoptabulate > \stopplacetable > > 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 ___
[NTG-context] Lettrine not Working as Expected
Hello everyone, I have been trying the lettrine module and have come across some unexpected behaviour. I have been following the documentation found here http://modules.contextgarden.net/dl/t-lettrine/doc/context/third/lettrine/lettrine-doc.pdf and have proceeded to make a minimal example: \usemodule[lettrine] \starttext \lettrine[Lines=3]{T}{his is a test} \input knuth \stoptext Unfortunately the output is not quite what (I think) it should be. It appears that the first line is rendered as expected, but that it is followed by a vertical gap---an extraordinary line spacing if you will---that places the second line all the way beneath the 'T', where the forth line would be expected. However, the second and third line are indented the way you would expect, they are just two lines further down as they should. As this may be hard to express, I have attached a small PDF with the result of the above code. Thank you, Malte. 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] ntg-context Digest, Vol 103, Issue 37
Thank you, Sietse, That works a treat. And thank you for your idea of looking at the source code. I should do that more often to ease myself into understanding TeX a bit better. At the moment I still look at myself as a "user". Regards, Malte. On 14/01/2013, at 7:00 PM, ntg-context-requ...@ntg.nl wrote: > Date: Sun, 13 Jan 2013 22:44:59 +0100 > From: Sietse Brouwer > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Controlling Appearance of \inoutermargin > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > Hi Malte, > > This mail contains (1) an answer to your question; (2) a minimal > working example; (3) an explanation of how I found this out (I had > never heard of inoutermargin before). > > (1) An answer to your question. > > I grepped the ConTeXt source code for `inoutermargin`, and found out > it is an instance of the `margindata` class. This is its setup > command: > >\setupmargindata[inoutermargin][style=bold,color=red] > > (2) A minimal working example. It is nice to include an MWE when you > ask a question -- it makes things easier for people who want to try to > answer the question, because they don't have to think up their own > example. Anyway, I'm including this one for the benefit of people who > stumble across this e-mail from the future, and want to play with > \inoutermargin. :-) > > \setuppapersize[A8,landscape] % w x h is about 7.5x5 > \setuplayout[ >backspace=1cm, >width=3cm, >% >leftmargin=0.5cm, >leftmargindistance=2mm, >% >rightmargin=2cm, >rightmargindistance=2mm] > > > \setuppagenumbering[alternative=doublesided] > \showframe > > \startbuffer >asdf asdf asdf >\inoutermargin{bsdf} >\page[yes] > \stopbuffer > > \setupmargindata >[inoutermargin] >[style=bold,color=red] > > \starttext >\getbuffer >\getbuffer >\getbuffer > \stoptext > > (3) How I found the answer > > Whenever I want to learn about a command I don't know yet, I grep for > it in the source code. (I ignore bits like 'setup' or 'start'.) I've > even got a shell command for it, to make searching the source as easy > as possible: > > function grepcon { >cd /opt/context/tex/texmf-context/tex/context/base/ >grep -R $* * > } > > `grepcon inoutermargin` gave me two hits in mkii files, and one in > typo-mar.mkiv: > \definemargindata[inoutermargin][\v!outer][...various style > setups...]. That set me on the right track. If you frequently need to > work out how commands work, I cannot recommend enough that you make > your own source-searching function and use it enough. For me, at > least, it's enormously helpful. > > Cheers, > Sietse ___ 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] Controlling Appearance of \inoutermargin
Hi, I have just changed one of my documents from single-page to double-page to be printed as a book. I have some margin remarks, that used to be on the left which I am now trying to move to the outer margin on odd and even pages (that is, left on even, right on odd pages). In doing so, I had to modify all of my \inmargin's to \inoutermargins (Please pull me up on this if this is not a good way of doing this; I found this in some forum, there does not seem to be a Wiki page about this command). As it turns out, I am no longer able to control the appearance of these \inoutermargins using my \setupinmargin command. I have been playing with different options, like \setupinmargin[outer][style=\slx, color=darkgray, stack=yes] or \setupinoutermargin[style=\slx, color=darkgray, stack=yes] but cannot get it to work. Is there any documentation about the \inoutermargins command? Any hints? Thank you, Malte. ___ 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] Page Numbers on Outer Edge of Outer Margin
Marco, Thank you, I have opted for your solution as it was the one I most easily understood and it seems to do the job. One thing, though, it turns out the #pageno variable does not seem to work. I had to rename it to #1 to do the trick. Even #p did not work. Do those variables have to be numbers? Here is what worked in the end: \setuppagenumbering[ alternative=doublesided, location={header, margin}, style=bold, command=\PageNumberCommand ] \starttexdefinition PageNumberCommand #1 \doifoddpageelse {\rightaligned{#1}} {\leftaligned{#1}} \stoptexdefinition Thank you again. Malte. On 13/01/2013, at 2:20 AM, ntg-context-requ...@ntg.nl wrote: > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-requ...@ntg.nl > > You can reach the person managing the list at > ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Re: Layer vs. overlay (Hans Hagen) > 2. Page Numbers on Outer Edge of Outer Margin (Malte Stien) > 3. Re: Page Numbers on Outer Edge of Outer Margin (Wolfgang Schuster) > 4. Re: Page Numbers on Outer Edge of Outer Margin (Marco Patzer) > 5. Re: Page Numbers on Outer Edge of Outer Margin (Wolfgang Schuster) > 6. Re: Node for startbuffer. (Andre Caldas) > 7. Re: Page Numbers on Outer Edge of Outer Margin (Marco Patzer) > > > -- > > Message: 1 > Date: Sat, 12 Jan 2013 14:25:15 +0100 > From: Hans Hagen > To: mailing list for ConTeXt users > Cc: Wolfgang Schuster > Subject: Re: [NTG-context] Layer vs. overlay > Message-ID: <50f1643b.9030...@wxs.nl> > Content-Type: text/plain; charset=windows-1250; format=flowed > > On 1/12/2013 8:44 AM, Wolfgang Schuster wrote: > >> Overlays and Layers are to different mechanism which are powerful when you >> combine both but first you have to know what each of them does. > >> ... > > perfect explanation > > 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 > - > > > -- > > Message: 2 > Date: Sun, 13 Jan 2013 00:49:34 +1100 > From: Malte Stien > To: "ntg-context@ntg.nl" > Subject: [NTG-context] Page Numbers on Outer Edge of Outer Margin > Message-ID: <6c558222-1692-4ef6-802d-d9a114ecc...@stien.de> > Content-Type: text/plain; charset=us-ascii > > Hi, > > I have a rather wide, 41mm, outer margin in a manual and I am trying to put > the page number into the margin like so: > > \setuppagenumbering[ > alternative=doublesided, > location={header, margin}, > style=bold, > ] > > The trouble is that the page number is only a few millimetres wide and gets > positioned on the inside edge of my outside margin. Hence, it does not end up > close enough to the edge of the page. I guess, I would like to right-align it > 4mm from the edge of a right-hand page and left-align it by the same amount > from the edge of a left-hand page. Is that doable? > > Thank you, > Malte. > > > > -- > > Message: 3 > Date: Sat, 12 Jan 2013 15:13:09 +0100 > From: Wolfgang Schuster > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin > Message-ID: <49577a0c-5abf-4c04-8d83-736879870...@gmail.com> > Content-Type: text/plain; charset=us-ascii > > > Am 12.01.2013 um 14:49 schrieb Malte Stien : > >> Hi, >> >> I have a rather wide, 41mm, outer margin in a manual and I am trying to put >> the page number into the margin like so: >> >> \setuppagenumbering[ >> alternative=doublesided, >> location={header, margin}, >> style=bold, >> ] >> >> The trouble is that the page number is only a few millimetres wide and gets >> positioned on the inside edge of my outside margin. Hence, it does not end >> up close enough to the edge of the page. I guess, I would like t
[NTG-context] Page Numbers on Outer Edge of Outer Margin
Hi, I have a rather wide, 41mm, outer margin in a manual and I am trying to put the page number into the margin like so: \setuppagenumbering[ alternative=doublesided, location={header, margin}, style=bold, ] The trouble is that the page number is only a few millimetres wide and gets positioned on the inside edge of my outside margin. Hence, it does not end up close enough to the edge of the page. I guess, I would like to right-align it 4mm from the edge of a right-hand page and left-align it by the same amount from the edge of a left-hand page. Is that doable? Thank you, Malte. ___ 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] Cumulating Numbered Lists
Hi all, I can easily \setupitemgroup to achieve the following: 1. ... a. ... 1. ... b. ... 1. ... 2. ... 2. ... a. ... 1. ... …but I need the numbers/letters to cumulate as follows: 1. ... 1a. ... 1a1. ... 1b. ... 1b1. ... 1b2. ... 2. ... 2a. ... 2a1. ... Can that be done? Thank you, Malte. ___ 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] Suppressing Page Numbers
Hi, Thank you again for all the great help, I have received here in recent weeks; it is much appreciated. I have page numbering setup in my layout.tex environment file, which I use for all of our documents. % Show the page number in the middle of the footer \setuppagenumbering[ alternative=singlesided, location={header, margin}, style=bold, ] For a particular document, though, I don't want page numbers. Is there a way of locally suppressing the page numbers while still importing (via environment) the layout.tex file? I guess, what I am asking is, is there a way to "override" the setuppagenumbering setup locally? A workaround would be to have a second layout.tex file, just for this document, but I much prefer not to. Regards, Malte. ___ 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] Help with Long Titles
Wolfgang, Thank you. That is very close. > Replace the line above with this block: > > > \startframed[frame=off,align=normal,offset=none,foregroundstyle=\tfc,foregroundcolor=darkgray] >\getvariable{titlepage}{title} >\stopframed That left-aligns it; I need to right align it. Already tried align=right and align=flushright, none of which worked. I am just guessing here as there does not seem to be any documentation available on \startframed. How can I right-align this? Thank you. Malte. Am 19.10.2012 um 02:29 schrieb Malte Stien : > Hello, > > I am using a the startsetups mechanism that defines a title page in my > environment file. That way anyone creating a document in my organisation can > create a new document and get a consistent look of the title page. There is > one problem with this: On occasions I get very long document titles and then > the title extends over the left-hand edge of the page. I would like to > incorporate a new line into the document title; I'd even be happy to do that > manually, ie. it does not have to be automatic. > > There are two problems here: > 1. I had not had any success with putting a newline into the title; it will > need to be not where the titlepage is defined but where it is used (see > below). I have tried \par and \\ and none of them work. > 2. Assuming I found a way to do this, I would need to also find a way of > reducing the \blank[170mm] by the amount that the second line of the title > takes up to render the information down the bottom in roughly the same place. > If push comes to shove, I could create a second titlepage setup for two-line > titles, but I much rather not. Is there a solution to that? Is there maybe a > way to position the information down the bottom absolute? > > Here is minimal example (or something very close to that): > > % The title page > \startsetups titlepage > \startstandardmakeup[style=sans] > \blank[50mm] > \rightaligned{\bfd\getvariable{titlepage}{project}} > \textrule > \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} Replace the line above with this block: \startframed[frame=off,align=normal,offset=none,foregroundstyle=\tfc,foregroundcolor=darkgray] \getvariable{titlepage}{title} \stopframed 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] Help with Long Titles
Hello, I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic. There are two problems here: 1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work. 2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute? Here is minimal example (or something very close to that): % The title page \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} \blank[170mm] \starttabulate[|plf{\tfa}|prf{\tfa}|] \NC\tfa\copyright\thinspace Pearson Pty Ltd \NC \getvariable{titlepage}{author} \NC\NR \TB[small] \NC \color[darkgray]{Commercial in Confidence} \NC \color[darkgray]{\getvariable{titlepage}{version}} \NC\NR \stoptabulate \tfx Uncontrolled copy if printed. \stopstandardmakeup \stopsetups % ...and this is how it is being used \starttext \setvariables [titlepage] [set=\texsetup{titlepage}, project={Pearson}, title={This document title is very long, so I'd like to \par break it into two lines}, author={Tony Mueller}, version={Version 1.0.0}] \stoptext Thank you very much for all the help I have received so far. Regards, Malte. ___ 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] Table Numbering
Thank you, Wolfgang. That works. Regards, Malte. On 19/10/2012, at 4:14, ntg-context-requ...@ntg.nl wrote: >> Hello, >> >> I have just up just upgraded from version 2012.03.30 to the latest beta. >> Suddenly none of my tables are named chapter.number anymore, eg. Table 1.3 >> for the third table in Chapter 1, but just 3. That is, the chapter number is >> no longer prepended. Has something changed there? How can I enable the old >> behaviour again? > > Add > > \setupcaption[prefix=yes] > > to your document do enable the chapter prefix for a floats or add > > \setupcaption[table][prefix=yes] > > to enable it only for table floats. > > I?ll take a look why the prefix isn?t enabled by default which should be the > case (the value is set on the core but ignored). > > 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] Table Numbering
Hello, I have just up just upgraded from version 2012.03.30 to the latest beta. Suddenly none of my tables are named chapter.number anymore, eg. Table 1.3 for the third table in Chapter 1, but just 3. That is, the chapter number is no longer prepended. Has something changed there? How can I enable the old behaviour again? Thank you, Malte. PS: The latest stable seems to still be 2011.05.18; any reason why that does not get updated? ___ 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] Need help with \definetabulate
Thank you. Yes, that helps. Regards, Malte. On 16/10/2012, at 20:21, Malte Stien wrote: > Any pointers anyone? I need to get this working and am running out of ideas. > > Thank you, > Malte. > > > Begin forwarded message: > >> From: Malte Stien >> Date: 15 October 2012 17:03:42 >> To: ntg-context@ntg.nl >> Subject: Re: [NTG-context] Need help with \definetabulate >> >> Marco, >> >>> \definetabulate [alpha] [|l|l|l|] >>> \setuptabulate [alpha] [bodyfont=small] >> >> This does not work for me quite the way I need it to. I am really just after >> defining the font-size, but I would like to leave the column setup to the >> user (I am building an environment and that I would like everyone in my team >> to use to ensure a consistent look-and-feel or all documents). So, ideally, >> I would like to do this: >> >>> \definetabulate [alpha] >>> \setuptabulate [alpha] [bodyfont=small] >>> \starttext[|l|l|l|] >>> \startalpha >>> \NC first \NC second \NC third \NC\NR >>> \stopalpha >> >>> \stoptext >> >> ...but that does not seem to work. Any way I can achieve this? >> >>> Feel free to add an example. It's a wiki! >> >> Sure. Will do, once I have this working. >> >> Thank you, >> Malte. >> >> >>> Hi Malte >>> >>>> I am trying to define two tabulate styles as follows: >>>> >>>> - \setuptabulate[split=yes, bodyfont=small] >>>> - \setuptabulate[split=yes] >>> >>> \definetabulate [alpha] [|l|l|l|] >>> \setuptabulate [alpha] [bodyfont=small] >>> >>> \definetabulate [beta] [|l|l|] >>> \setuptabulate [beta] [bodyfont=small, split=yes] >>> >>> \starttext >>> \startalpha >>> \NC first \NC second \NC third \NC\NR >>> \stopalpha >>> >>> \startbeta >>> \NC lorem \NC ipsum \NC\NR >>> \stopbeta >>> \stoptext >>> >>>> ...such that I can just refer to them when I >>>> \starttabulate...\stoptabulate somewhere. >>> >>> To refer to a table, you place it as a float and use the >>> `reference=tab:alphatable` key. Then in the text you refer to the >>> table, see \in{table}[tab:alphatable]. >>> >>>> I thought, the command \definetabulate would come in handy here, >>>> but I can't work it out and it appears the documentation on that >>>> command is pretty scarce. >>>> >>>> http://wiki.contextgarden.net/Command/definetabulate >>> >>> Feel free to add an example. It's a wiki! >>> >>> >>> 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 ___
[NTG-context] Fwd: Need help with \definetabulate
Any pointers anyone? I need to get this working and am running out of ideas. Thank you, Malte. Begin forwarded message: > From: Malte Stien > Date: 15 October 2012 17:03:42 > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Need help with \definetabulate > > Marco, > >> \definetabulate [alpha] [|l|l|l|] >> \setuptabulate [alpha] [bodyfont=small] > > This does not work for me quite the way I need it to. I am really just after > defining the font-size, but I would like to leave the column setup to the > user (I am building an environment and that I would like everyone in my team > to use to ensure a consistent look-and-feel or all documents). So, ideally, I > would like to do this: > >> \definetabulate [alpha] >> \setuptabulate [alpha] [bodyfont=small] >> \starttext[|l|l|l|] >> \startalpha >> \NC first \NC second \NC third \NC\NR >> \stopalpha > >> \stoptext > > ...but that does not seem to work. Any way I can achieve this? > >> Feel free to add an example. It's a wiki! > > Sure. Will do, once I have this working. > > Thank you, > Malte. > > >> Hi Malte >> >>> I am trying to define two tabulate styles as follows: >>> >>> - \setuptabulate[split=yes, bodyfont=small] >>> - \setuptabulate[split=yes] >> >> \definetabulate [alpha] [|l|l|l|] >> \setuptabulate [alpha] [bodyfont=small] >> >> \definetabulate [beta] [|l|l|] >> \setuptabulate [beta] [bodyfont=small, split=yes] >> >> \starttext >> \startalpha >> \NC first \NC second \NC third \NC\NR >> \stopalpha >> >> \startbeta >> \NC lorem \NC ipsum \NC\NR >> \stopbeta >> \stoptext >> >>> ...such that I can just refer to them when I >>> \starttabulate...\stoptabulate somewhere. >> >> To refer to a table, you place it as a float and use the >> `reference=tab:alphatable` key. Then in the text you refer to the >> table, see \in{table}[tab:alphatable]. >> >>> I thought, the command \definetabulate would come in handy here, >>> but I can't work it out and it appears the documentation on that >>> command is pretty scarce. >>> >>> http://wiki.contextgarden.net/Command/definetabulate >> >> Feel free to add an example. It's a wiki! >> >> >> 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 ___
Re: [NTG-context] Need help with \definetabulate
Marco, > \definetabulate [alpha] [|l|l|l|] > \setuptabulate [alpha] [bodyfont=small] This does not work for me quite the way I need it to. I am really just after defining the font-size, but I would like to leave the column setup to the user (I am building an environment and that I would like everyone in my team to use to ensure a consistent look-and-feel or all documents). So, ideally, I would like to do this: > \definetabulate [alpha] > \setuptabulate [alpha] [bodyfont=small] > \starttext[|l|l|l|] > \startalpha >\NC first \NC second \NC third \NC\NR > \stopalpha > \stoptext ...but that does not seem to work. Any way I can achieve this? > Feel free to add an example. It's a wiki! Sure. Will do, once I have this working. Thank you, Malte. > Hi Malte > >> I am trying to define two tabulate styles as follows: >> >> - \setuptabulate[split=yes, bodyfont=small] >> - \setuptabulate[split=yes] > > \definetabulate [alpha] [|l|l|l|] > \setuptabulate [alpha] [bodyfont=small] > > \definetabulate [beta] [|l|l|] > \setuptabulate [beta] [bodyfont=small, split=yes] > > \starttext > \startalpha >\NC first \NC second \NC third \NC\NR > \stopalpha > > \startbeta >\NC lorem \NC ipsum \NC\NR > \stopbeta > \stoptext > >> ...such that I can just refer to them when I >> \starttabulate...\stoptabulate somewhere. > > To refer to a table, you place it as a float and use the > `reference=tab:alphatable` key. Then in the text you refer to the > table, see \in{table}[tab:alphatable]. > >> I thought, the command \definetabulate would come in handy here, >> but I can't work it out and it appears the documentation on that >> command is pretty scarce. >> >> http://wiki.contextgarden.net/Command/definetabulate > > Feel free to add an example. It's a wiki! > > > 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 ___
[NTG-context] Need help with \definetabulate
Hi, I am trying to define two tabulate styles as follows: - \setuptabulate[split=yes, bodyfont=small] - \setuptabulate[split=yes] ...such that I can just refer to them when I \starttabulate...\stoptabulate somewhere. I thought, the command \definetabulate would come in handy here, but I can't work it out and it appears the documentation on that command is pretty scarce. http://wiki.contextgarden.net/Command/definetabulate Any help? Thank you, Malte. ___ 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] Split \starttabulates
Dear all, I have a number of tables defined like this: \placetable[here][tab:some-table]{Some Table} \starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] \HL \NC {\bf Animal} \NC {\bf Comment} \NC\FR \HL \NC Cat\NC Pretty cool \NC\MR \NC Bear \NC Kind of lazy\NC\MR \NC Sheep \NC Always hungry \NC\MR \HL \stoptabulate However, I need one of these tables to split over adjacent pages, which according to the documentation should be achievable with \setuptabulate[split=yes] However, that does not seem to work in connection with the \placetable line. That is, if I put that last line in front of the block mentioned above, the table does still not split across adjacent pages. I have to remove the \placetable line for the \setuptabulate line to have any effect, except then I loose my caption and can no longer cross-reference to table either. Any clues? Thank you, Malte. ___ 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] Line break in tables
Hi, How do I force a line break in a tabulate table cell? I have tried \par, \\ and \crlf none of which seem to do the trick. Thank you, Malte. ___ 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] Enabling PDF bookmarks creates links in red
Hello, I have been playing with the creation of PDF bookmarks and found this page here: http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers So I have tried this (and a few variations of it): % Enable PDF bookmarks \setupinteraction[state=start] % Make chapter, section bookmarks visible when opening document \placebookmarks[chapter, section, subsection][chapter, section] \setupinteractionscreen[option=bookmark] The problem is that all of my cross-references (\in and \about) produce links (which is great) in bold and red, which is not great. I don't want my cross-references marked up in any way at all as I find that quite unappealing when printed. Can I turn that special mark-up off somehow and have normally formatted links instead? Thank you, Malte. ___ 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] Divided cells and bullet points in tables
Hi, I'm trying to create a table with the following formatting: 1. The top left cell is divided in two by a diagonal line with separate text into each triangle 2. Another cell in the table body has a bulleted list I've had no success with the first. With the second I've tried using the \startitemize command. It generates the bullet points but places all the items on a single line and hence pushing the table wider than the page. I've also tried using \par or \newline but to no avail. I have been using tabulate for the table; is there another table library that might make this work? Any help would be much appreciated. Thank you, Malte. <>___ 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] Non-Printing PDFs with ConTeXt
Hi all, Is there a way I can get ConTeXt to produce PDFs that are not-printable? Just as a background to my question: This is not about copyright. Rather, I am using ConTeXt to produce quality process documents. The quality management system requires that all quality process documents be "controlled", that is one must prevent folks from printing copies of their own that then keep floating around the place and cannot be retracted when a new version of the quality process document is issued. Hence, I am aiming for a paper-less scenario where everyone reads the documents on screen. Therefore, I would like to make printing impossible, or at least hard. The only one who should be able to print the document is the Document Manager; maybe the documents could be encrypted (PDF supports that, I believe), such that the Document Manager can print them knowing the password. So far, I have only seen Word and Acrobat Distiller being able to do this. Is there a way I can setup ConTeXt to do this? Or are there some command line tools, that can do that after the PDF has been produced? Any hints would be great. Thank you, Malte. ___ 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] Problem with \inmargin on \item lines
Hi everyone, I am experiencing a problem with \inmargin{some text} in \itemized lists. I am using them a lot in my documents, and it is kind of annoying. It appears that if one uses the \inmargin macro just prior to the \item macro, the in-margin text is typeset against the previous line, not the line with the \item. Minimal example. \starttext \startitemize \item This is just a normal completely innocent paragraph against which one will be able to judge the amount of indentation of the next paragraph. \inmargin{Duck}\item This paragraph has a duck inmargin comment \stopitemize \stoptext That seems fair enough and even makes sense on some level. If however, one reverses the two macros, like so: \item\inmargin{Duck} This paragraph has a duck inmargin comment the leading space just after the closing brace is actually printed. I take this to be a bug, or is this by design? The only way I can around this is to not use a space, like so: \item\inmargin{Duck}This paragraph has a duck inmargin comment But I don't find that to be a satisfying solution. After all I am using ConTeXt because I am a bit pedantic about text, even the source code in this case. Regards, Malte. ___ 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] Sorting descriptions alphabetically
Hi all, I have a chapter with a bunch of definitions. I defined myself a description for that purpose, as in: \definedescription[definition][alternative=hanging, headstyle=bold, align=flushleft, style=normal, width=fit, margin=1cm] My definitions obviously come out in the order I defined them in the .tex file. I was just wondering whether there is some clever way to have generated in alphabetic order. I could obviously sort them myself in the .tex file, but if there was some way ConTeXt could handle that, that would be very convenient given the number I am dealing with. Thank you, Malte. ___ 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] Strange errors on using setupheader
Hi Wolfgang, Thank you so much for that. It did work. And yes, I was wondering whether there was a more elegant way of doing this. This way of setting and using variables does not seem to be all that well documented; it's not in the ConTeXt Manual, presumably because it is new, right? I think I mostly worked it out, though, except for: What does this line mean: set=\texsetup{titlepage} Thank you again, Malte. ___ 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] Strange errors on using setupheader
Hi all, Hi Hans, Thank you for the fix. Okay, so now I am on ConTeXt ver: 2012.03.30 16:16 MKIV fmt: 2012.3.31 int: english/english which does indeed fix the little problem I posted yesterday. However, I still have one more issue. Again, I condensed it down to something very close to a minimal example: % Select A4 as the paper size \setuppapersize[A4] % A macro for the title page \def\titlepage[#1][#2][#3][#4]{ \startstandardmakeup \blank[50mm] \rightaligned{\ss\tfd\bf\nohyphens{#1}} \blank[2mm]\textrule[bottom] \rightaligned{\ss{\tfc{\color[darkgray] {#2 \blank[170mm] \ss\tfa\copyright\thinspace Some Company Pty Ltd \hfill #3 \par \color[darkgray]\blank[small] Commercial in Confidence \hfill Version #4 \stopstandardmakeup } \starttext \startfrontmatter \titlepage[Company Name][The Plan][Dr Who, et al.][0.1] \completecontent \page \chapter{Purpose and Scope} \section[]{Purpose} This document should be read in conjunction with bla bla bla... \stopfrontmatter \stoptext This results in 29 >> \stopfrontmatter 30 \stoptext 31 } \endgroup l.29 \stopfrontmatter If I remove the line \color[darkgray]\blank[small] from the \titlepage macro all works, which I find somewhat unexpected. Could you please have a look at this? Thank you. Malte. On 31/03/2012, at 1:17, Hans Hagen wrote: > On 30-3-2012 11:47, Malte Stien wrote: >> Hans, >> >> No, everything works in the "(by now ancient) current" but is broken in the >> beta. I am trying to switch to the beta as you suggested, but am being held >> up by some errors, the first one of which is this > > Ah, I forgot to rename a macro ... new beta in an hour ... > > (btw, no need for utf directive in mkiv and english is default anyway) > > > - > 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 ___
Re: [NTG-context] Strange errors on using setupheader
Hans, No, everything works in the "(by now ancient) current" but is broken in the beta. I am trying to switch to the beta as you suggested, but am being held up by some errors, the first one of which is this Regards, Malte. On 30/03/2012, at 20:44, Hans Hagen wrote: > On 30-3-2012 11:35, Malte Stien wrote: > >> doifelsemarking("\ascii > > So that's in the (by now ancient) current and not th ebets I assume? > > 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] Strange errors on using setupheader
Hi again, After I had some issues with \externalfigure, Hans suggested to me that I use a newer version of ConTeXt. So, rather than using the latest current (which seems to be from May 2011) ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.12.6 int: english/english I am not using the latest beta ConTeXt ver: 2012.03.29 11:28 MKIV fmt: 2012.3.29 int: english/english However, as it turns out, the document I am working on is no longer processed without errors. I butchered my document to isolate the error and come up with a (close to) minimal example: % Use UTF encoding \enableregime[utf] % Set English as the language \language[en] % Select A4 as the paper size \setuppapersize[A4] % Setup the header... \setupheadertexts[chapter][section] \setupheader[leftwidth=.5\hsize, rightwidth=.4\hsize] \starttext \startfrontmatter \completecontent \chapter{Purpose and Scope} \section[]{Purpose} This document should be read in conjunction with bla bla bla... \stopfrontmatter \stoptext I get the following error when processing with the aforementioned version: doifelsemarking("\ascii ") \ctxcommand #1->\directlua \zerocount {commands.#1 } \page_layouts_process_element_single_limited ...i {\limitatetext {\getmarkin... \page_layouts_process_element_single_indeed ...#4} \fi \endgroup \page_layouts_process_element_single ...#1#2#3{#4} \fi ...\layoutelementparameter \c!lefttext \hss }\hskip -\makeupwidth... ... l.18 \chapter{Purpose and Scope} Strangely enough, all works well when I remove (or comment) the \setupheader line. Is there anything strange I am doing here? Should work, right? Any pointers would be appreciated. Thank you, Malte. ___ 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] Rotating externalfigure
Wolfgang, Interesting. I was able to reproduce the problem with your verbatim minimal example: \starttext \input knuth \placefigure[left]{Cow}{\externalfigure[cow][frame=on, scale=500, orientation=90]} \input knuth \input knuth \stoptext I have uploaded the result here: http://www.sendspace.com/file/rmbsrj The cow gets rotated but protrudes the frame at the top overlaying the text. Just in case it is relevant, here is my context version: ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.12.6 int: english/english Thank you for looking into this. Regards, Malte. On 29/03/2012, at 19:51, ntg-context-requ...@ntg.nl wrote: > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-requ...@ntg.nl > > You can reach the person managing the list at > ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Re: Rotating externalfigure (Wolfgang Schuster) > 2. Removing the quotes from the results of the referencelinks > (Jaroslav Hajtmar) > 3. Re: Removing the quotes from the results of the reference > links (Wolfgang Schuster) > 4. Re: Removing the quotes from the results of the reference > links (Alan BRASLAU) > 5. Re: Removing the quotes from the results of the reference > links (Steffen Wolfrum) > 6. Re: Removing the quotes from the results of the reference > links (Hans Hagen) > 7. Re: Removing the quotes from the results of the reference > links (Mojca Miklavec) > 8. Re: Removing the quotes from the results of the reference > links (Hans Hagen) > > > -- > > Message: 1 > Date: Thu, 29 Mar 2012 08:37:03 +0200 > From: Wolfgang Schuster > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Rotating externalfigure > Message-ID: <5b98fda3-dd52-47ab-8e5c-ce2b8dca2...@googlemail.com> > Content-Type: text/plain; charset=windows-1252 > > > Am 29.03.2012 um 01:07 schrieb Malte Stien: > >> Hi all, >> >> I am trying to rotate a figure on a page. I believe it should work as >> follows: >> >> \placefigure[left]{Some figure >> caption}{\externalfigure[some-figure-caption][orientation=90]} >> >> ...and the figure does indeed get rotated, but the bounding box appears to >> be incorrect. The figure ends up being far too small and actually overlays >> the text above it. I found a couple of posts on the mailing list from years >> ago regarding this, where people seemed to have related issues. >> >> Is there a solution to this? Should this work or am I doing something wrong? >> I could rotate the figure in the source application, but that is not ideal. > > Do you have a example because I can?t reproduce it with this example. > > \starttext > > \input knuth > > \placefigure[left]{Cow}{\externalfigure[cow][frame=on,scale=500,orientation=90]} > \input knuth > > \input knuth > > \stoptext > > Wolfgang > > -- > > Message: 2 > Date: Thu, 29 Mar 2012 08:50:06 +0200 > From: Jaroslav Hajtmar > To: mailing list for ConTeXt users > Subject: [NTG-context] Removing the quotes from the results of the > reference links > Message-ID: <4f74061e.7000...@gyza.cz> > Content-Type: text/plain; charset=ISO-8859-2; format=flowed > > Hello all, > I can not find a way to remove the quotes from the results of the > reference link > Can someone help? > > Thanx > Jaroslav Hajtmar > > Here is minimal example: > > > \starttext > > \section[first]{First} > > \subsection[second]{Second} > > \input tufte > > \in{(see section}{ \about[second] at page \at[second])}[second]. > > > \stoptext > > > > > > -- > > Message: 3 > Date: Thu, 29 Mar 2012 08:55:17 +0200 > From: Wolfgang Schuster > To: hajt...@gyza.cz, mailing list for ConTeXt users > > Subject: Re: [NTG-context] Removing the quotes from the results of the > reference links > Message-ID: <6fe579fe-6e5b-457e-b311-495fd89f5...@googlemail.com> > Content-Type: text/plain; charset=us-ascii > > > Am 29.03.2012 um 08:50 schrieb Jaroslav Hajtmar: > >> Hello all, >> I can not find a way to remove the quotes
[NTG-context] Rotating externalfigure
Hi all, I am trying to rotate a figure on a page. I believe it should work as follows: \placefigure[left]{Some figure caption}{\externalfigure[some-figure-caption][orientation=90]} ...and the figure does indeed get rotated, but the bounding box appears to be incorrect. The figure ends up being far too small and actually overlays the text above it. I found a couple of posts on the mailing list from years ago regarding this, where people seemed to have related issues. Is there a solution to this? Should this work or am I doing something wrong? I could rotate the figure in the source application, but that is not ideal. Thank you for all your help. Regards, Malte. ___ 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] Problem Nesting defineitemgroups
Wolfgang, Thank you for that info. That is unfortunate. Is there any way I can achieve what I need? That is > 1. Foo >+ Some bullet item 1, >+ Some bullet item 2, >+ Some bullet item 3. > 2. Baz Thank you. Malte. On 25/03/2012, at 3:54, ntg-context-requ...@ntg.nl wrote: > ConTeXt uses the type of the item group in the first level also for the inner > levels > and handles the inner \startblist as if it was \startnlist. ___ 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] Problem Nesting defineitemgroups
Hi again, I just noticed that the last line of my code was \startnlist when it should have been \stopnlist It was correct in my code, but too much fiddling and trying things made it wrong when I copied it across to the email. Even with the correct line in there, my problem still exists. Regards, Malte. On 24/03/2012, at 15:25, Malte Stien wrote: > I have the following two definitions for bullet point lists... > > % Setup bullet point lists > \defineitemgroup[blist][before={\blank[1ex]}] > \setupitemgroup[blist][1][packed][symbol=1] > \setupitemgroup[blist][2][packed][symbol=2] > > ... and numbered lists > > % Setup numbered lists > \defineitemgroup[nlist][before={\blank[1ex]}] > \setupitemgroup[nlist][1][packed][symbol=n, headstyle=bold] > \setupitemgroup[nlist][2][packed][symbol=a, headstyle=bold] > > They generally seem to work well, but when I try to nest one within the > other, like so > > \startnlist > \item Foo > \startblist > \item Some bullet item 1, > \item Some bullet item 2, > \item Some bullet item 3. > \item Assign an appropriate criticality. > \stopblist > \item Baz > \startnlist > > ...I get unexpected behaviour as follows: > > 1. Foo > a. Some bullet item 1, > b. Some bullet item 2, > c. Some bullet item 3. > 2. Baz > > I was expecting this instead > > 1. Foo > + Some bullet item 1, > + Some bullet item 2, > + Some bullet item 3. > 2. Baz > > ...(where "+" denotes the round bullet point). Is this a defect or am I doing > something wrong? > > Regards, > Malte. > ___ 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] Problem Nesting defineitemgroups
I have the following two definitions for bullet point lists... % Setup bullet point lists \defineitemgroup[blist][before={\blank[1ex]}] \setupitemgroup[blist][1][packed][symbol=1] \setupitemgroup[blist][2][packed][symbol=2] ... and numbered lists % Setup numbered lists \defineitemgroup[nlist][before={\blank[1ex]}] \setupitemgroup[nlist][1][packed][symbol=n, headstyle=bold] \setupitemgroup[nlist][2][packed][symbol=a, headstyle=bold] They generally seem to work well, but when I try to nest one within the other, like so \startnlist \item Foo \startblist \item Some bullet item 1, \item Some bullet item 2, \item Some bullet item 3. \item Assign an appropriate criticality. \stopblist \item Baz \startnlist ...I get unexpected behaviour as follows: 1. Foo a. Some bullet item 1, b. Some bullet item 2, c. Some bullet item 3. 2. Baz I was expecting this instead 1. Foo + Some bullet item 1, + Some bullet item 2, + Some bullet item 3. 2. Baz ...(where "+" denotes the round bullet point). Is this a defect or am I doing something wrong? Regards, Malte. ___ 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] Formatting Indexed Words Within the Text
Hi, I got a few responses for this. Thank you to all of you. I ended up using the code below. Works a treat. And yes, apologies. The square brackets were a typo; of course they should have been curly. Thank you again. Malte. On 24/03/2012, at 0:01, ntg-context-requ...@ntg.nl wrote: > One way is to use your own macro: > > \def\MyIndex#1{\index{#1}{\sc #1}} > \starttext > There are some \MyIndex{ducks} in the zoo. > \stoptext > > By the way, your \index[ducks] didn't work for me the way I thought you > wanted; I changed the [] to {} and added the word to the text body. As far > as I can tell, \index only adds entries to the index register and not to the > text. ___ 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] Formatting Indexed Words Within the Text
Hi all, Is it possible to format indexed words in a particular style within the text more or less automatically. For example, if I write There are some \index[ducks] in the zoo. ...I would like the term "ducks" to appear in small-capitals to indicate the that term can be found in the index. Ideally, I'd like to do that without explicit manual formatting. Is that possible? Thank you, Malte. ___ 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] Itemized List Definitions
Hi, Thank you for all your help so far. I do have another question, though. I would like to define different styles for different types of itemized lists. I have defined: % Setup itemised lists \setupitemize[1][packed][symbol=1] \setupitemize[2][packed][symbol=2] for one type and I would like to setup another type where the symbols and the indentation are different. Is there a mechanism for that? Something along the line of \setupitemizedlist[typeA][...] \setupitemizedlist[typeB][...] similar to \definedelimitedtext for example? Regards, Malte. ___ 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] Custom itemize Symbols
Hi all, Is there a way to define your own itemize symbols? I would like a solid square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled whereas 8 is hollow. I tried to declare my own bullet point, as in: \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet and then tried to use it in the \startitemize command, but it appears that command does not take commands as its first argument: \startitemize[\squarebullet, packed] \item foo \item baz ... \stopitemize So here goes that idea. Other idea was to use \sym{\squarebullet}. That actually works, however, the problem is that it needs to be specified for the individual bullet point. I need something that can be specified in \setupitemize, such that my writers get that symbol automatically without having any control over it. Any ideas? Regards, Malte ___ 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] Referencing a Document within the same Project
Hi all, I am designing a document suite consisting of two dozen or so documents that are all interrelated. I was wondering whether there is a way that I can define a reference point for an entire document within a project and then refer to that from another document, like \document{global-definitions-document} % This is fictitious syntax ...in one document and then refer to that in another document: For global definitions, please see \about{global-definitions-document}. ...or something along those lines. Regards, Malte. ___ 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] Color Lost when Using 'texexec' vs 'context'
Mojca, Wolfgang, Thank you for explaining that. I had read about the two different versions MkII and MkIV, but did not realise that 'texexec' is the former while 'context' is the latter. > How old was the manual that you were reading? I got that from the "Context Manual" ("Context Manual (cont-eni).pdf"), Section 1.4, which I downloaded quite recently from the website (I have been using Context for less than 2 months). It is dated November 2001, so quite old, you're right. What should I be reading instead? Is there something newer? The reason I switched to "texexec" was this (from the "Context Manual": "During the processing of itemizations the number of items is counted. This is the case with all versions. The next pass this information is used to determine the optimal location to start a new page. So do not despair when at the first parse your itemizations do not look the way you expected. When using TEXexec this is all taken care of." Is this still a problem with "context" or is this problem somehow solved with MkIV anyway? Thank you for all your help; this mailing-list proves very helpful to a novice like me. Regards, Malte. On 17/03/2012, at 20:03, ntg-context-requ...@ntg.nl wrote: >> Hi all, >> >> I am using some darkgray in my documents, as in >> >> ?\color[darkgray] foo... >> >> which was working out well as long as I was processing my documents with the >> 'context' command. I recently started using 'texexec' instead, as in >> >> ?texexec --pdf definitions-acronyms-and-abbreviations.tex >> >> (which, I understand is preferable) and strangely, all of my darkgray text >> is now rendered black. Any ideas why the command makes a difference and what >> to do about it? > > You can either use ConTeXt MKII (with pdftex, invoked with "texexec") > or ConTeXt MKIV (with luatex, invoked with "context"). How old was the > manual that you were reading? > > In MKII you need \setupcolors[state=start] to get the colors working. > > MKII is not really preferable, except when you are looking for > slightly more stability or when you don't need some advanced features. > It is more stable, older and uses pdftex instead of luatex. But it > also lacks many nice features and bugs from ConTeXt MKIV :). ___ 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] Line Wrapping/Hyphenation in Chapter/Section Headings
Hi Wolfgang, > Use also the "broad" keyword for align which makes ConTeXt more tolerant to > break the line with ragged text. That did the trick. Thank you so much. Regards, Malte. ___ 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] Color Lost when Using 'texexec' vs 'context'
Hi all, I am using some darkgray in my documents, as in \color[darkgray] foo... which was working out well as long as I was processing my documents with the 'context' command. I recently started using 'texexec' instead, as in texexec --pdf definitions-acronyms-and-abbreviations.tex (which, I understand is preferable) and strangely, all of my darkgray text is now rendered black. Any ideas why the command makes a difference and what to do about it? Regards, Malte. PS: Sorry, for one of my previous emails in which I replied to the full daily digest, which resulted in a very long email to everyone. Won't happen again. ___ 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] Line Wrapping/Hyphenation in Chapter/Section Headings
Wolfgang, > Use ?align={flushleft,nothyphenated}?. You mean as in \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, align={flushleft, nothyphenated}] I tried that and it has no effect. I also found this article here: http://tex.stackexchange.com/questions/35686/avoid-hyphenation-in-chapter-title ...which suggests using \setuphead[chapter][align={flushleft, nothyphenated, verytolerant}] ...but that makes no difference either. My chapter titles continue to run off the page to the right. I am happy to post an example somewhere if that helps. Thank you, Malte. On 17/03/2012, at 3:01, ntg-context-requ...@ntg.nl wrote: > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-requ...@ntg.nl > > You can reach the person managing the list at > ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Line Wrapping/Hyphenation in Chapter/Section Headings > (Malte Stien) > 2. Re: Line Wrapping/Hyphenation in Chapter/Section Headings > (Wolfgang Schuster) > 3. Integration of all the information around ConTeXt (Jan Heinen) > 4. more indenting (Alan Braslau) > 5. Footnotes in combinations don't work? > (Proch?zka Luk?? Ing. - Pontex s. r. o.) > 6. Re: more indenting (luigi scarso) > > > ------ > > Message: 1 > Date: Fri, 16 Mar 2012 22:09:54 +1100 > From: Malte Stien > To: mailing list for ConTeXt users > Subject: [NTG-context] Line Wrapping/Hyphenation in Chapter/Section > Headings > Message-ID: <7ba77c0a-9c03-4fa2-8680-c996621cc...@stien.de> > Content-Type: text/plain; charset=us-ascii > > Hi all, > > I seem to have a problem with line wrapping/hyphenation in chapter/section > headings. I have a chapter heading "Technical Definitions, Acronyms and > Abbreviations". When I setup my chapter headings as follows > > \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin] > > the heading is hyphenated like so: > > Technical Definitions, Acronyms and Abbrevi- > ations > > However, I don't want my headings hyphenated. How can I change that? I found > this: > > \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, > align=nothyphenated] > > That prevents the hyphenation, but it also seems to prevent the wrapping of > the line altogether with the result that now my headings run right across the > right margin and over the right edge of the paper. How can I turn off > hyphenation but retain wrapping of the line, like so > > Technical Definitions, Acronyms and > Abbreviations > > Thank you, > Malte. > > -- > > Message: 2 > Date: Fri, 16 Mar 2012 12:31:52 +0100 > From: Wolfgang Schuster > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Line Wrapping/Hyphenation in > Chapter/Section Headings > Message-ID: <0efcb96a-2ed4-4cd8-9960-3754f2d10...@googlemail.com> > Content-Type: text/plain; charset=windows-1252 > > > Am 16.03.2012 um 12:09 schrieb Malte Stien: > >> Hi all, >> >> I seem to have a problem with line wrapping/hyphenation in chapter/section >> headings. I have a chapter heading "Technical Definitions, Acronyms and >> Abbreviations". When I setup my chapter headings as follows >> >> \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin] >> >> the heading is hyphenated like so: >> >> Technical Definitions, Acronyms and Abbrevi- >> ations >> >> However, I don't want my headings hyphenated. How can I change that? I found >> this: >> >> \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, >> align=nothyphenated] >> >> That prevents the hyphenation, but it also seems to prevent the wrapping of >> the line altogether with the result that now my headings run right across >> the right margin and over the right edge of the paper. How can I turn off >> hyphenation but retain wrapping of the line, like so > > Use ?align={flushleft,nothyphenated}?. > > Wolfgang > > -- > > Message: 3 > Date: Fri, 16 Mar 2012 13:24:23 +0100 > From: Jan Heinen > To: ntg-context@ntg.nl > Subject: [NTG-context] Integration of all the information around >
Re: [NTG-context] ntg-context Digest, Vol 93, Issue 55
Wolfgang, > Use ?align={flushleft,nothyphenated}?. You mean as in \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, align={flushleft, nothyphenated}] I tried that and it has no effect. I also found this article here: http://tex.stackexchange.com/questions/35686/avoid-hyphenation-in-chapter-title ...which suggests using \setuphead[chapter][align={flushleft, nothyphenated, verytolerant}] ...but that makes no difference either. My chapter titles continue to run off the page to the right. I am happy to post an example somewhere if that helps. Thank you, Malte. On 17/03/2012, at 3:01, ntg-context-requ...@ntg.nl wrote: > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-requ...@ntg.nl > > You can reach the person managing the list at > ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Line Wrapping/Hyphenation in Chapter/Section Headings > (Malte Stien) > 2. Re: Line Wrapping/Hyphenation in Chapter/Section Headings > (Wolfgang Schuster) > 3. Integration of all the information around ConTeXt (Jan Heinen) > 4. more indenting (Alan Braslau) > 5. Footnotes in combinations don't work? > (Proch?zka Luk?? Ing. - Pontex s. r. o.) > 6. Re: more indenting (luigi scarso) > > > ------ > > Message: 1 > Date: Fri, 16 Mar 2012 22:09:54 +1100 > From: Malte Stien > To: mailing list for ConTeXt users > Subject: [NTG-context] Line Wrapping/Hyphenation in Chapter/Section > Headings > Message-ID: <7ba77c0a-9c03-4fa2-8680-c996621cc...@stien.de> > Content-Type: text/plain; charset=us-ascii > > Hi all, > > I seem to have a problem with line wrapping/hyphenation in chapter/section > headings. I have a chapter heading "Technical Definitions, Acronyms and > Abbreviations". When I setup my chapter headings as follows > > \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin] > > the heading is hyphenated like so: > > Technical Definitions, Acronyms and Abbrevi- > ations > > However, I don't want my headings hyphenated. How can I change that? I found > this: > > \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, > align=nothyphenated] > > That prevents the hyphenation, but it also seems to prevent the wrapping of > the line altogether with the result that now my headings run right across the > right margin and over the right edge of the paper. How can I turn off > hyphenation but retain wrapping of the line, like so > > Technical Definitions, Acronyms and > Abbreviations > > Thank you, > Malte. > > -- > > Message: 2 > Date: Fri, 16 Mar 2012 12:31:52 +0100 > From: Wolfgang Schuster > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Line Wrapping/Hyphenation in > Chapter/Section Headings > Message-ID: <0efcb96a-2ed4-4cd8-9960-3754f2d10...@googlemail.com> > Content-Type: text/plain; charset=windows-1252 > > > Am 16.03.2012 um 12:09 schrieb Malte Stien: > >> Hi all, >> >> I seem to have a problem with line wrapping/hyphenation in chapter/section >> headings. I have a chapter heading "Technical Definitions, Acronyms and >> Abbreviations". When I setup my chapter headings as follows >> >> \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin] >> >> the heading is hyphenated like so: >> >> Technical Definitions, Acronyms and Abbrevi- >> ations >> >> However, I don't want my headings hyphenated. How can I change that? I found >> this: >> >> \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, >> align=nothyphenated] >> >> That prevents the hyphenation, but it also seems to prevent the wrapping of >> the line altogether with the result that now my headings run right across >> the right margin and over the right edge of the paper. How can I turn off >> hyphenation but retain wrapping of the line, like so > > Use ?align={flushleft,nothyphenated}?. > > Wolfgang > > -- > > Message: 3 > Date: Fri, 16 Mar 2012 13:24:23 +0100 > From: Jan Heinen > To: ntg-context@ntg.nl > Subject: [NTG-context] Integration of all the information around
[NTG-context] Line Wrapping/Hyphenation in Chapter/Section Headings
Hi all, I seem to have a problem with line wrapping/hyphenation in chapter/section headings. I have a chapter heading "Technical Definitions, Acronyms and Abbreviations". When I setup my chapter headings as follows \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin] the heading is hyphenated like so: Technical Definitions, Acronyms and Abbrevi- ations However, I don't want my headings hyphenated. How can I change that? I found this: \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, align=nothyphenated] That prevents the hyphenation, but it also seems to prevent the wrapping of the line altogether with the result that now my headings run right across the right margin and over the right edge of the paper. How can I turn off hyphenation but retain wrapping of the line, like so Technical Definitions, Acronyms and Abbreviations Thank you, Malte. ___ 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] Copyright Symbol
Hi everyone, How do I get a copyright symbol in ConTeXt, you know the circle with the 'C' in the centre? I expected it to be \textcopyright as in LaTeX, but that does not seem to work. Rather than just telling me the answer, where would I look that up? Sooner or later I will need other symbols. The special characters listed in the manual are quite limited. Is there a list somewhere? Thank you, Malte. ___ 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] How to do coloured heads
Thank you. Either of those solutions work fine. Malte. On 07/12/2011, at 21:31, Thomas A. Schmitz wrote: > On 12/07/2011 11:16 AM, Philipp Gesang wrote: >> Better group the arguments of the “style” key as a whole: >> >> · >> >> \definehead[colorsection][section] >> \setuphead [colorsection][ >> style={\tfb\ss\color[darkgray]}, >> ] > > or, more ConTeXt-like: > > \definehead[colorsection][section] > \setuphead [colorsection][ > style=\ssbf, > color=red, > ] > > 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 > ___ ___ 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] How to do coloured heads
Hello, I am new to all of this. First of all, thank you to everyone involved for such an awesome software package. I have been looking for something like this for a while for technical documentation for software projects and had no idea this even existed until... well, yesterday. So, I spent most of the day playing with it. However, I have not managed to work out how to get coloured heads. I am trying to have my section heads in darkgray. So I tried \setuphead[section][style=\tfb\ss\color[darkgray]] which results in a processing error and \setuphead[section][style=\tfb\ss{\color[darkgray]}] which seems to process, but does just not do anything (I did not actually expect that last one to work, but I got a bit desperate). While the manual is well written and certain well laid out, it does not quite work for me as a reference guide in that it does not seem to be complete. So a little help would be much appreciated. Thank you, Malte. ___ 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 ___