Re: [NTG-context] Questions about \starttext
From: "Wolfgang Schuster"Sent: Monday, April 2, 2018 2:41 PM To: "mailing list for ConTeXt users" Subject: Re: [NTG-context] Questions about \starttext Tomas Hala 20. März 2018 um 12:43 Hi all, doing some tests I discovered two interesting facts. The first is that commands \starttext and \stoptext do not behave as a group. Minimal example (tested on TL2015, TL2016, TL2017, current CTX from the Garden): \starttext text \starttext \bf text \stoptext text % this text is in bold, too. \stoptext Is this the expected behaviour, or not? Opening a group with \starttext makes no sense because there is nothing after \stoptext. The possibility to nest \starttext is necessary when you \startproduct etc. where components can be be documents on its own and this means \startcomponent includes \starttext in its definition. The second interesting thing is that the unbalanced document is compiled without protests: Minimal example #1 (tested on TL2015, TL2016, TL2017, current CTX from the Garden): \starttext text % in this case, the "text" is shipped out Take a look at the command line when you process a file and you should see something like this: mtx-context | run 1: luatex --fmt="[...]/cont-en" --jobname="test" [...] --c:input="./test.tex" [...] "cont-yes.mkiv" As you can see the luatex engine processes the file cont-yes.mkiv and not your document which put as argument to context. Your document is just read by cont-yes.mkiv and at the end of the document ConTeXt inserts an extra \stoptext which is ignored when your document is valid (equal number of \starttext and \stoptext). Minimal example #2 (tested on TL2015, TL2016, TL2017, current CTX from the Garden): text % in this case, the "text" is not shipped out \stoptext The reason why no text appears is that ConTeXt doesn't load the default fonts untill \starttext. The reason for this is to is a gain in speed and you save resources. You can test this by adding \setupbodyfont[modern] at the begin of your example. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Questions about \starttext
A reasonable approach to a Context file includes preliminary information before the first printed page. My basic master file looks like this : \input variables.tex\relax \input layout.tex\relax \input macros.tex\relax \input fonts.tex\relax \starttext\relax %\showlayout \startfrontmatter \input half.tex\relax \startstandardmakeup \null \stopstandardmakeup \input title.tex\relax \input copy.tex\relax \input ded.tex\relax \input contents.tex\relax \input preface.tex\relax %\startstandardmakeup \relax %\null \relax %\stopstandardmakeup \relax \stopfrontmatter \startbodymatter \input body3.tex\relax \stopbodymatter\relax \startbackmatter\relax \input bib.tex\relax \input notes.tex \input index.tex \stopbackmatter \stoptext\relax By loading my usual macros in the macros file, standard items like author's name in a variables file and so on I save much time, typing and errors. From: "Wolfgang Schuster"Sent: Monday, April 2, 2018 2:41 PM To: "mailing list for ConTeXt users" Subject: Re: [NTG-context] Questions about \starttext Tomas Hala 20. März 2018 um 12:43 Hi all, doing some tests I discovered two interesting facts. The first is that commands \starttext and \stoptext do not behave as a group. Minimal example (tested on TL2015, TL2016, TL2017, current CTX from the Garden): \starttext text \starttext \bf text \stoptext text % this text is in bold, too. \stoptext Is this the expected behaviour, or not? Opening a group with \starttext makes no sense because there is nothing after \stoptext. The possibility to nest \starttext is necessary when you \startproduct etc. where components can be be documents on its own and this means \startcomponent includes \starttext in its definition. The second interesting thing is that the unbalanced document is compiled without protests: Minimal example #1 (tested on TL2015, TL2016, TL2017, current CTX from the Garden): \starttext text % in this case, the "text" is shipped out Take a look at the command line when you process a file and you should see something like this: mtx-context | run 1: luatex --fmt="[...]/cont-en" --jobname="test" [...] --c:input="./test.tex" [...] "cont-yes.mkiv" As you can see the luatex engine processes the file cont-yes.mkiv and not your document which put as argument to context. Your document is just read by cont-yes.mkiv and at the end of the document ConTeXt inserts an extra \stoptext which is ignored when your document is valid (equal number of \starttext and \stoptext). Minimal example #2 (tested on TL2015, TL2016, TL2017, current CTX from the Garden): text % in this case, the "text" is not shipped out \stoptext The reason why no text appears is that ConTeXt doesn't load the default fonts untill \starttext. The reason for this is to is a gain in speed and you save resources. You can test this by adding \setupbodyfont[modern] at the begin of your example. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] flowwcharts etc.
A decade or so ago I read about a program callable from within Context that would create flowcharts etc. Was this Metapost? Or was it a different program? John Culleton ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] PDF/X-1a(2001) ourput.
I need to have context generate the above format. Any hints? John Culleton ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] changing pdf type
I need to have pdf files for U.S. printers in " PDF/X-1a2001" format. Hans gave me the magic formula a few years back but I lost that reply. Can someone help me out? John Culleton ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Module for Markdown: any volunteer to make a ConTeXt interface?
From: "Hans Hagen" <pra...@wxs.nl> Sent: Saturday, May 6, 2017 4:30 AM To: ntg-context@ntg.nl Subject: Re: [NTG-context] Module for Markdown: any volunteer to make a ConTeXt interface? On 5/5/2017 9:54 PM, Aditya Mahajan wrote: > On Thu, 4 May 2017, Mojca Miklavec wrote: > >> Hi, >> >> There's a really nice module for processing markdown: >> https://github.com/Witiko/markdown >> that has been presented during the TUG meeting and is included in Pardon my ignorance but what is markdown? ____ John Culleton ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comical error..
On Sun, 12 Feb 2017 18:44:30 +0100 Pablo Rodriguez <oi...@gmx.es> wrote: > On 02/12/2017 03:40 AM, John Culleton wrote: > > [...] > > Some questions: > > 1. Where is the basic size of the font family defined in points? > > Hi John, > > the default font size is 12pt. > > > 2. In the second example which of the many Dejavu fonts is assumed > > to be the starting point? Is it a ttf or a otf version? > > As Joseph Canedo explained, the DejaVu font seem to be a TrueType > font. > > This may be (and I think it is) a font in OpenType format with > TrueType outlines (instead of PostScript outlines). > > > 3. Can any font family on the system be used or is there a specific > > context list? > > Any system font (TTF, OTF and PS at least) can be used with ConTeXt. > > All that ConTeXt (or LuaTeX) requires is the way to find it. The > safest way is the file name. > > Let us know whether you have further questions. > > I hope it helps, > > > Pablo Thanks to you and Joseph! I am getting back into Context after a long absence and things are gradually coming back to me. My first new document is proceeding :<) -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comical error..solved
On Sat, 11 Feb 2017 14:51:33 -0500 John Culleton <j...@wexfordpress.com> wrote: > I am just starting on a new project and haven't fussed with body > fonts yet. I specified specific fonts for the half and title pages. > For the copyright page thus far I just used the default whatever that > is. On that page the > lower case "e" came out as a lower case "c" in every instance. > > The substitution occurred when I viewed the pdf in xpdf but not in okular. I will report this to the proper(?) authorities. -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comical error..
On Sat, 11 Feb 2017 21:08:46 +0100 Here is another example from the Wiki - \definefontfamily [mainface] [rm] [TeX Gyre Pagella] [it={TeX Gyre Cursor-Italic}, bf={TeX Gyre Adventor-Bold}, bi={TeX Gyre Termes-BoldItalic}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] Roman font {\em italic} \bf Bold font \em bold italic \stopTEXpage \stoptext --- and another -- setupbodyfont[dejavu] \setupbodyfontenvironment [default] [smallsized=1.25, mediumsized=1.5, largesized=2.0] \definefontsize[smallsized] \definefontsize[mediumsized] \definefontsize[largesized] \starttext \setuphead[chapter] [style=\bflargesized] \setuphead[section] [style=\bfmediumsized] \setuphead[subsection][style=\bfsmallsized] \chapter {Whatever $x-1$} \section {Whatever $x-1$} \subsection{Whatever $x-1$} \input ward \blank Whatever $x-1$ \blank {\itmediumsized This is italic medium sized. $\cos(x) = {\rm Re}(\exp({\rm i}x))$} \blank {\rmmediumsized This is roman medium sized. \crlf $\cos(x) = {\rm Re}(\exp({\rm i}x))$} \stoptext -- Some questions: 1. Where is the basic size of the font family defined in points? 2. In the second example which of the many Dejavu fonts is assumed to be the starting point? Is it a ttf or a otf version? 3. Can any font family on the system be used or is there a specific context list? All answers appreciated of course :<) John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] specifying body fonts
Reently I saw an example of setting up the various formats of a single body font such as \rm, \it \bf, \sc etc. with examples of using these in Gyre font. It may have been in the wiki or here on the list There were examples of slanted type vs.true italic as I recall. I should have copied it but I didn't (at age 84 I forget to do things). No biggie but does this ring any bells? -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Comical error..
I am just starting on a new project and haven't fussed with body fonts yet. I specified specific fonts for the half and title pages. For the copyright page thus far I just used the default whatever that is. On that page the lower case "e" came out as a lower case "c" in every instance. I do have the following in my macros.tex subfile which I pass on from job to job: - \setupbodyfontenvironment[default][em=italic] \usemodule[simplefonts][size=10pt] \definefontfeature [default] [default] [protrusion=quality,expansion=quality] \setupalign[hz,hanging] - maybe there is somethng funky there. John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] module simplefonts
In a 2013 book this module is called somewhere but unsuccessfully. Does any one remember it? Is it still relevant? -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Basic question
I have a bunch of old files that were probably created for Mark II. What is the current command for running Mark II instead of Mark IV? -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] font descriptions no longer work
In all my recent books I have this subfile called fonts.tex. - \def\Fontsize{11} \font \rm = "file:MinionPro-Regular.otf:+liga;expansion=default;protrusion=quality" at \Fontsize bp \font \it = "file:MinionPro-It.otf" at \Fontsize bp \font \bf = "file:MinionPro-Bold.otf" at \Fontsize bp \font \firstlet = "file:MinionPro-Regular.otf" at 3\Fontsize bp \font \sc = "file:MinionPro-Regular.otf:+smcp" at 1.5\Fontsize bp \font \titlesans = "file:MyriadPro-BlackCond.otf" at 30bp \font \smalltitle = "file:MyriadPro-Regular.otf" at 20bp %\font \chapfont = "file:Raleway-ExtraLight.otf" at 80bp - When I use the \titlesans call in a document it errs off with this message > tex error on line 2 in file half.tex: ! Undefined control sequence It can be made to finish the run but the text on page half.tex is the ordinary body font. The fonts in question are in the directory where I am running context on a document in every case. I just installed the latest context in my home directory. I also have texlive installed. I copied the fonts to /usr/share/OTF, ran ft-cache as root. ran context as root. Nothing helped. Slackware 14.2 I have two book projects stalled. -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Text wrap around a figure.
I need to have text wrap around figures. Is this automatic? The discussion of placing figures In chapter 16 does not cover this point. -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Additional documentation/
I have been away from context for a few years and my memory is fading in any case. I do remember a short tutorial that described how one could insert a text block in between two text columns or at the side of a column etc. I have downloaded the big manual today but that little tutorial would help. My questions: 1.Do you recall what I am referring to? 2. If so, what is its name? 3. Is it current enough to be useful today? Blessings on all who respond. -- John Culleton Wexfordpress Book design and indexing. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] put titles in toc
On Tue, 8 Sep 2015 20:55:04 +0200 Pablo Rodriguez <oi...@gmx.es> wrote: > On 09/08/2015 08:25 PM, John Culleton wrote: > > In thew frontmatter there are several titles > > headings that i want to see in the TOC > > Here is a > > stripped down version of my file: > > Hi John, > > I think this might do what you want: > > \definehead[titleintoc][chapter][number=no] > \starttext > \noheaderandfooterlines > \title{Contents} > \placelist[chapter,titleintoc] > \chapter{foo} > \input knuth.tex > \titleintoc{bar} > \input knuth.tex > \stoptext > > I hope it helps, > > > Pablo Simple elegant, works. Thanks for your help! -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] put titles in toc
In thew frontmatter there are several titles headings that i want to see in the TOC Here is a stripped down version of my file: -- \setuphead[chapter] [header=high,footer=chapter,page=yes, alternative=middle, align=normal, number=yes, ] %% \definelist[title] \definelist[chapter] \setuplist[chapter][style=bold] \setuplist[title][style=bold] \setupcombinedlist[content][chapter,title][level=title,alternative d,aligntitle=yes] \starttext \noheaderandfooterlines \title{Contents} \placecontent \page[yes] \chapter{foo} \input knuth.tex \page[yes] \title{bar} \input knuth.tex \stoptext Any sugestions? -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] 16th
How do I express this with the "th" in a smaller font and elevated? It is a character in the font. -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] 16th
On Tue, 1 Sep 2015 15:24:20 -0400 John Culleton <j...@wexfordpress.com> wrote: > > How do I express this with the "th" in a smaller > font and elevated? It is a character in the > font. Already answered My apologies. I couldn't find the answer to my request of August 25(th!) But I sumbled across it today. -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] superscripts th nd rd st on dates etc..
Forgot how to do these. -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] Difference between \startmakeup and \startstandardmakeup
I have been using \startstandardmakeup etc. for some years now. I note on the wiki that there is a command \startmakeup also. It is not covered in my copy of the Manual. What are the principal diferences between the two? -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] \math or $ doesn't work.
On Tue, 02 Jun 2015 18:30:04 +0200 Pablo Rodriguez oi...@gmx.es wrote: On 06/02/2015 05:54 PM, John Culleton wrote: On Tue, 2 Jun 2015 11:45:35 -0400 John Culleton wrote: I want to insert the string 8 1/2 x 11 in my text. Here is my test file: \starttext \math{8^1_2} × 11 inch, \stoptext I am using texlive 2014 mkiv. Hi John, me too (current version: 2014.05.21 22:04 ;-)) and both samples (above and below) compile fine. I also tried this: --- \starttext 8 1/2 × 11 inch, \stoptext - The error message is the same: --- system tex error on line 2 in file /usr/local/active/hall/ftp/test.tex: String contains an invalid utf-8 sequence ... Are you sure that character encoding in your file is utf8? I can cause this error message, but only after replacing character encoding in file with ISO 8859-15. BTW, your file is in /usr/local. I thought that in Unix there was no place like /home :-). I hope it helps, Pablo We are on the home stretch now. I added \enableregime [utf-8] as the first line of my master file. Theoretically I don't need this for a MKIV run but so much for theory. Everything works. But there is something wrong with my math code. There is no horizontal bar between the 1 and the 2. I guess I will study The TEXbook some more. Just FYI, I keep personal stuff and also my political articles in /home/safe but my typesetting and index work goes in subdirectories of: /usr/local/active/ one for each project. Thanks for your prompt and useful reply! -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] \math or $ doesn't work.
On Tue, 2 Jun 2015 11:45:35 -0400 John Culleton j...@wexfordpress.com wrote: I want to insert the string 8 1/2 x 11 in my text. Here is my test file: \starttext \math{8^1_2} × 11 inch, \stoptext I am using texlive 2014 mkiv. I also tried this: --- \starttext 8 1/2 × 11 inch, \stoptext - The error message is the same: --- system tex error on line 2 in file /usr/local/active/hall/ftp/test.tex: String contains an invalid utf-8 sequence ... 1 \starttext 2 8 1/2 × 11 inch, 3 \stoptext 4 5 -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] \math or $ doesn't work.
I want to insert the string 8 1/2 x 11 in my text. Here is my test file: \starttext \math{8^1_2} × 11 inch, \stoptext I am using texlive 2014 mkiv. -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] creating multiline paragraph in \tabulate
Supposedly \tablulate can handle a multiline paragraph in a single cell. It didn't work for me. The text just ran off the right edge of the page. So here is my two column table with a workaround. - \starttext {\bf Figure 2.3: Specialty Food Store Classifications} \setupframed[framecorner=rectanglular,background=none] \tfx \placetable[force,none]{} \starttabulate[|lw(.25\textwidth)|lpw(.75\textwidth)|] \HL ... \NC Housewares \NC Gourmet pots and pans and other cookware, with some impulse\NC\NR \NC \null \NC and companion food items \NC\NR ... \HL \stoptabulate \tf \stoptext - In my version the \null command was necessary to skip the left column. Also, I want the title of the table at the top and not the bottom. So I have to add a separate title line at the top and blank out the generated title with a graphic of blank space placed below the table thus: \vskip -0.35in \externalfigure[blanker.pdf] There ought to be an easier way to get rid of the title at the bottom of the table but this is the best I could come up with. The file blanker.pdf was generated in Scribus 1.5.0 -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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] Verbatim text.
The inline string quoted below produces a correct result but also generates an error message: \type{8 1/2 x 11} Is there a better way to handle this situation? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Font problems.
On the same source file Texlive 2004 context (mkiv) can find files that a more recent stand alone version of context can't. I need to set something somewhere so that the stand alone version can find files in /usr/share/fonts/OTF. I call the stand alone version from a script called Context in /usr/local/bin: . /home/safe/context/tex/setuptex context $1 - /home/safe is my home directory. Stand alone context is in /home/safe/context. It is dated Jan 27 2015. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Roman numerals in running heads in frontmatter.
On Mon, 20 Apr 2015 21:27:35 +0200 Pablo Rodriguez oi...@gmx.es wrote: On 04/20/2015 09:03 PM, John Culleton wrote: When I set up running heads in frontmattter like this: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \setupheadertexts [{\getmarking[title]}] [{\pagenumber}] [{\pagenumber}] [{\Titlea}] (where \Titlea is a string containing the book title) everything is fine except the page numbers in the running heads are in arabic and not roman format. On the footers on \title pages the numbers are roman as expected.. How do I fix this? Sorry, John, but this is only a guess. This might do what you intend: \setuppagenumbering[alternative=doublesided, location=] \def\Titlea{The Book Title} \definestructureconversionset[frontpart:pagenumber][][romannumerals] \setupheadertexts [{\getmarking[title]}] [pagenumber] [pagenumber] [{\Titlea}] \starttext \startfrontmatter \dorecurse{10}{\title{My Chapter Title}\dorecurse{20}{\input knuth\par}} \stopfrontmatter \stoptext In short, [{\pagenumber}] should read [pagenumber]. Please, provide a minimal sample that shows the issues you’re confronting with your requiests. Just in case it might help, Pablo That was the change I needed. Thanks! -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Roman numerals in running heads in frontmatter.
When I set up running heads in frontmattter like this: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \setupheadertexts [{\getmarking[title]}] [{\pagenumber}] [{\pagenumber}] [{\Titlea}] (where \Titlea is a string containing the book title) everything is fine except the page numbers in the running heads are in arabic and not roman format. On the footers on \title pages the numbers are roman as expected.. How do I fix this? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Handling line numbers in frontmatter.
In the sample shown below I get correct (roman) line numbers but the very first page, imported from plug.tex has an unwanted page number. If I surround that page with: \startstandardmakeup[doublesided=no,page=yes] and \stopstandardmakeup the page number disappears but the page count is wrong by one. Page numbers are roman. I have tried changing the page number sequence using e.g,: \setcounter[userpage][-4] but that has no effect. I tried iv instead of 4 but that didn't work either. MKIV and Texlive 2014. --- \starttext \startfrontmatter \setuppagenumbering[state=start] %\startstandardmakeup[doublesided=no,page=yes] \input plug.tex %\stopstandardmakeup \page[yes] \startstandardmakeup[doublesided=no,page=yes] \stopstandardmakeup \startstandardmakeup[doublesided=no,page=yes] \externalfigure[graph1.pdf][width=\paperwidth, height=\paperheight] \stopstandardmakeup %\setcounter[userpage][number=4] \startstandardmakeup[doublesided=no,page=yes] {\obeylines {\bf From Kitchen to Market-Sell Your Specialty Food} 6th Edition Stephen F. Hall (etc.) } \stopstandardmakeup \stoptext --- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] \noheadersandfooterlines
The Manual lists this command in the index of commands but it seems not to exist on the page referenced (88). And it I just want to suppress the page number on the first page but still have this page count as page number 'i' (I am using roman numbers for the frontmatter.) -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Placing a page without a blank page after.
On Thu, 09 Apr 2015 20:34:03 +0200 Pablo Rodriguez oi...@gmx.es wrote: On 04/08/2015 11:50 PM, John Culleton wrote: I have tried various things like \start/stop/standardmakeup, \start/stop/TEXpage and so on. I am trying to place a full sized page including bleeds without a blank page following. Sometimes It works but mostly it gives me a blank page following. What is the recommended solution? Hi John, I don’t know what you intend to do, but this might work (if I have done my guesswork right ;-)): \setuppagenumbering[alternative=doublesided] \starttext \startstandardmakeup[pagestate=start, doublesided=no] This is the page. \stopstandardmakeup This is another page. \stoptext If it doesn’t work, please send a minimal sample that describes what you have in mind. I hope it helps, Pablo That worked! I didn't know about the pagestate parameter. Thanks! -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Placing a page without a blank page after.
I have tried various things like \start/stop/standardmakeup, \start/stop/TEXpage and so on. I am trying to place a full sized page including bleeds without a blank page following. Sometimes It works but mostly it gives me a blank page following. What is the recommended solution? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] adjust text width mkiv
I am still matching my file with a previous InDesign layout. On one particular page I want to narrow the text width a bit to cause the bottom line to fill the full text width. I have tried adjusting \hsize within braces, and changing setlayout. I am considering putting all the text in a framedtext but with the frame suppressed. Any suggestions? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] text alignment in table
Given this table: \starttabulate[|l|l] \NC 8:00\emdash noon \NC Ordering/opening/training\NR \NC \NC Food~preparation\NC\NR \NC Noon\emdash 2:00 PM \NC Luncheon~sales\NR \NC 2:00 PM\emdash 7:00 PM \NC General administration/baking \NR \NC \NC Supplier meeting (this is you) \NC\NR \stoptabulate the Word Food is left justified in the column (good) and the word preparation is right justified (bad). The same problem occurs in the string Luncheon sales. The glyph ~ doesn't help. I also tried the table variation in chapter twenty-two of The TeXbook. That doesn't work in MKIV. My last resort is to introduce a one page pdf from the InDesign-created pdf. But the must be a Context solution. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] overlay or layer for chapter head.
On Thu, 02 Apr 2015 15:10:19 +0200 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Hello, On Thu, 02 Apr 2015 14:46:11 +0200, Otared Kavian ota...@gmail.com wrote: Hi, Maybe you need to say state=repeat in the definition of your layer: \definelayer[chapterbackground][state=repeat] '[state=repeat]' causes all pages have the 'mill' background. Best regards, Lukas I am not seeking a background but rather a foreground. And I only need this for 7 chapter heads. Here is how I put the page image into my context file now: - \startstandardmakeup[doublesided=no] \vskip -0.15in \hskip -0.7in \hbox{\externalfigure[chaphead2.pdf][width=\paperwidth, height=\paperheight]} \stopstandardmakeup \writetolist[chapter]{2}{Chapter 2: Understanding the Food Industry}% This works but I want a less fiddly-more reliable method. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] overlay or layer for chapter head.
I am redoing a book for a client. Each chapter head has a fancy design. I want to reproduce that fancy page but still have the \chapter statement for running heads, TOC etc. Is there a way that I can overlay the entire chapter first page with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want to overlay a the entire page with a graphic yet have the real content of the page still available for TOC, running head, indexing terms etc. Any suggestions? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] string capacity exceeded
I get this message in a file where I am using many external figures: error on line 1 in file chapter2.tex: ! TeX capacity exceeded, sorry [input stack size=1] The wiki says: In texmf.cnf fix the value that has been reported as too small... In texmf.cnf I raised this parameter from 5000 to 15000: stack_size = 5000 % simultaneous input sources But got the same message. Any hints? Do I need to reboot something to make this new size be in effect? Do I need to reduce the size of some of my external figures? do I need to split the output pdf file into multiples? Texlive 2014 Slackware Linux 14.1 three 64k processors 4 gigs memory. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] slanting an intermezzo.
I am redoing a book originally done in InDesign and the prior typesetter took delight in using every trick in the book. I can match all of them in context except one. He creates little sidebars and sometimes he leans them to the left by a few degrees. Here is an example of one such sidebar. How do I cause it to lean to the left about 3 degrees? -- \starttext \setupframed[background=screen,framecorner=rectangular,backgroundscreen=0.70] \placeintermezzo[right,none]{} \startframedtext[width=3in] \centerline {\bf RECIPE FOR SUCCESS} \noindent \input knuth.tex \stopframedtext \input knuth.tex \input knuth.tex \input knuth.tex \stoptext -- I know I am supposed to use \rotate but I can't figure out how to rotate an intermezzo. Please help! John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] setting columns in a text frame.
I am attempting to emulate a layout of a customer's book that was set in InDesign. I have columns inside a \textframe inside an \intermezzo. I can't get the columns to break. I get one long column and the seocnd column is blank. here is my code: --- \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \starttext \placeintermezzo[center,none]{} \starttext \startframedtext[] [width=\hsize] \centerline{\ss\tfb Interest in Green, Organic, and Local Foods Is Exploding} \definecolumns[example][n=2] \startcolumns[example] Organic foods, locally sourced foods, and sustainable living or green enterprises have become part of our mainstream lifestyles. Organic foods are produced without the use of conventional pesticides, artificial fertilizers, human waste, or sewage sludge and are processed without ionizing radiation or food additives. There is a growing belief that eating \column organic is better for our bodies and better for the planet. Green food producers and processors are becoming increasingly environmentally friendly. More importantly, data suggest that these markets have exceeded 60 percent in compound annual growth. This suggests a significant demand that specialty food entrepreneurs can meet. \stopcolumns \stopframedtext \stoptext Is this combination of features a bridge too far? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Word wrap around framed text.
This passage works OK except for the lack of word wrap around for the framed text. -- \starttext \chapter{Introduction} The specialty food market has exploded. A combination of factors has led to exciting opportunities for food entrepreneurs. Retail sales of all specialty foods are generating revenues of more than 88 billion a year and averaging annual growth of more than 8 percent. To some, this means great opportunity. To others, it represents a formidable challenge. Your ability to grab a slice of this pie and make your mark, establish your independence, achieve success, and acquire wealth will depend on how effectively you prepare-and prepare you must! How to prepare for the opportunities and challenges of taking your food products to the appropriate store shelves is the subject of this guide. You need not know the basics of small business operations just yet. For now, success will depend on your personal and business vision, drive, talent, and the amount of capital you can raise. Let's put that last item into perspective: the average cost of getting national grocery store shelf exposure for a new product by a branded manufacturer has been estimated at more than \$6 million. Still reading? Take heart. There is a proven alternative: the specialty food industry. It has become the proven vehicle for entry-level food distribution in the United States. Different market segments and new products can be tested in the specialty food industry without the initial investment required of the major food producers. The secret has to do with superior execution of often ordinary ideas \section{How Long Does It Take to Be Successful?} \section{How Much Will It Cost You?} Depending on your approach, you can expect to incur minimum start-up costs of approximately \$35,000 to \$100,000 and more each year for the first three to five years. This includes production, packaging, labeling, advertising, and promotion of one product. It does {\it not} \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \startframedtext[right][width=3.2in] \centerline{\ss\tfb Life Before Specialty} \centerline{\ss\tfb Food Marketing} What food entrepeneurs did before starting a specialty food firm (in order of prevalence): \startitemize[1] \item Other business non-food-related (52\%) \item food-related business (14\%) \item Medical profession (11\%) \item Education (8\%) \item Nonprofit Charity (8\%) \item Entertainment (3.6\%) \stopitemize ---{Food Entrepeneur Magazine 2014 pool responses} \stopframedtext include the cost of success. Many firms that won Outstanding Product Awards were ill prepared for the next move. Not all of them succeeded in profiting from their good fortune. This estimated cost also assumes that you will be doing a lot of the leg work (administrative, invoicing, database management, and so on). Our purpose is to explore the inner workings of {\bf niche marketing.} Niche marketing entails finding the best combination of product packaging, pricing, positioning, and promotion that will encourage the consumer to purchase a product not otherwise offered by the major suppliers. Imagination is a key ingredient, but adequate funding is essential. \stoptext - -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] PLacing framed text.
I know how to place an intermezzo, e.g. \starttext \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \placeintermezzo[right]{} \startframedtext[width=3.2in] \centerline{\ss\tfb Life Before Specialty} \centerline{\ss\tfb Food Marketing} \tfx What food entrepeneurs did before starting a specialty food firm (in order of prevalence): ---{\bf\it Food Entrepeneur Magazine} \stopframedtext \stoptext But I don't want the word intermezzo at the bottom of the frame. In other words I want to place the framed text but not call it an intermezzo. Any suggestions? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Get rid of caption on an intermezzo.
On Wed, 25 Feb 2015 15:42:56 -0500 John Culleton j...@wexfordpress.com wrote: I managed after many trips to the Wiki to get a text frame pretty much as I want it, with text wrapping around and so on. But the technique requires using an intermezzo as a wrapper. This feature always puts a title like intermezzo 1 at the bottom. How do I get rid of this title? For the curious here is my code segment to date: \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \kern 5em\placeintermezzo[right]{} \startframedtext[width=3.2in] \centerline{\ss\tfb Life Before Specialty} \centerline{\ss\tfb Food Marketing} \tfx What food entrepeneurs did before starting a specialty food firm (in order of prevalence): \startitemize[1] \item Other business non-food-related (52\%) \item food-related business (14\%) \item Medical profession (11\%) \item Education (8\%) \item Nonprofit Charity (8\%) \item Entertainment (3.6\%) \stopitemize ---{\bf\it Food Entrepeneur Magazine 2014 pool responses} \stopframedtext Anyone have a solution yet? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] mkiv document saved as xml.
The WIKI is in transition and the other posts here deawl with advanced details. So I have a simple question: Given a mkiv document how do I export it to a generic xml docuument? I have another question later. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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 with framed text.--addendum
On Sun, 22 Feb 2015 12:56:05 -0500 John Culleton j...@wexfordpress.com wrote: On Sun, 22 Feb 2015 15:57:48 +0100 Pablo Rodriguez oi...@gmx.es wrote: On 02/22/2015 01:55 PM, John Culleton wrote: On Sat, 21 Feb 2015 14:16:31 -0500 Aditya Mahajan wrote: [...] There should be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=0.1em, corner=round, radius=0.1em] Radius, framedradius and backgroundradius expect dimensions as values, not mere numbers. BTW, having a sample that shows the problem increases the reply speed :-). I hope it helps, Pablo You had the cure. I put commands like the one under discussion in a separate file called macros.tex which is hte first file called in my standard book.tex top level file. For some reason it didn't work. So I copied it to just before my first text frame in the 'chapter01.tex' file. Then it worked for that frame and subsequent instances. Here is my book.tex file as used in my current project: \input variables.tex \input macros.tex \input fonts.tex \starttext %\showlayout \startfrontmatter \input half.tex \input title.tex \input contents.tex \stopfrontmatter \startbodymatter %\input sample3.tex \input body.tex \stopbodymatter \stoptext I will add more calls later for acknowledgements, appendices etc. all in separate subfiles. \body.tex is a subfile that calls the individual chapter subsubfiles. Variables.tex contains the definitions of title, subtitle, author, publisher, ISBN etc. John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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 numbering, new style and running heads.
The new method of handling page numbering (roman and arabic) using e.g., \setupuserpagenumber[numberconversion=Romannumerals] \setcounter[userpage][5] works just fine if you remember one thing: in running heads the word pagenumber has to be replaced with userpagenumber. But in the \chapter setup it is still pagenumber I spent the morning and a few extra minutes figuring those two things out. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Get rid of caption on an intermezzo.
I managed after many trips to the Wiki to get a text frame pretty much as I want it, with text wrapping around and so on. But the technique requires using an intermezzo as a wrapper. This feature always puts a title like intermezzo 1 at the bottom. How do I get rid of this title? For the curious here is my code segment to date: \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \kern 5em\placeintermezzo[right]{} \startframedtext[width=3.2in] \centerline{\ss\tfb Life Before Specialty} \centerline{\ss\tfb Food Marketing} \tfx What food entrepeneurs did before starting a specialty food firm (in order of prevalence): \startitemize[1] \item Other business non-food-related (52\%) \item food-related business (14\%) \item Medical profession (11\%) \item Education (8\%) \item Nonprofit Charity (8\%) \item Entertainment (3.6\%) \stopitemize ---{\bf\it Food Entrepeneur Magazine 2014 pool responses} \stopframedtext -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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 with framed text.
On Sat, 21 Feb 2015 14:16:31 -0500 Aditya Mahajan adit...@umich.edu wrote: On Feb 21, 2015, at 12:35 PM, John Culleton j...@wexfordpress.com wrote: In several palces I want to set up framed text with a gray background and rounded corners. Here is my \setupframed description: \setupframed[ framecorner=round, frameradius=0.1, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=0.1, corner=round, radius=0.1 ] There should be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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 with framed text.
On Sun, 22 Feb 2015 15:57:48 +0100 Pablo Rodriguez oi...@gmx.es wrote: On 02/22/2015 01:55 PM, John Culleton wrote: On Sat, 21 Feb 2015 14:16:31 -0500 Aditya Mahajan wrote: [...] There should be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=0.1em, corner=round, radius=0.1em] Radius, framedradius and backgroundradius expect dimensions as values, not mere numbers. BTW, having a sample that shows the problem increases the reply speed :-). I hope it helps, Pablo You had the cure. I built a sample and then played with the em value. Lacking precise guidance I thought that the value was one of those 0 to 1 ranges. Not so. setting at 1.0 em gives me what I was looking for. The setting 0.1 em gave me rounding that was imperceptible without magnification. Here is my successful sample: - \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius1em] \starttext Some text. \startframedtext[middle] \centerline{A Vision Example} In the year 20xx, our company is internationally recognized as the premier supplier of your food products. We regularly exceed customer expectations by providing innovative and valuable your food products. \stopframedtext Some more text \stoptext - John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Context, index, Syriac.
Does Context (any flavor) create indexes for Syriac, a right to left language? Inquiry is from the indexing list. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] intermezzo/sidebarswith rounded corners.
Client has an existing book that I am redoing with many inserted square boxes of text slightly protruding in the margin. Main text wraps around each box. The line around each such box has rounded corners. Is there an example somewhere in the manuals or elsewhere? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] intermezzo/sidebarswith rounded corners.
On Thu, 05 Feb 2015 22:54:11 +0100 Hans Hagen pra...@wxs.nl wrote: On 2/5/2015 9:38 PM, John Culleton wrote: Client has an existing book that I am redoing with many inserted square boxes of text slightly protruding in the margin. Main text wraps around each box. The line around each such box has rounded corners. Is there an example somewhere in the manuals or elsewhere? \starttext \defineframed [whatever] [width=1cm, height=1cm, background=color, backgroundcolor=darkblue, foregroundcolor=white, forgroundstyle=bold] \dorecurse {100} { \starthanging{\whatever{#1}} \input tufte \stophanging } \stoptext And rounded corners? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Simple tocs
In this country, and perhaps elsewhere, the front matter in a technical book will have two tables of contents, one listing just major titles (e.g., just chapters and titles or just parts, chapters and titles) followed by another one that lists sections also. Using mkiv I came up with this: \startmakeup \setupcombinedlist[content][list={chapter}] \placelist[content] \stopmakeup \startmakeup \setupcombinedlist[content][list={chapter,section}] \completecontent[content] \stopmakeup \startmakeup \null \stopmakeup I get no results at all, just blank pages. Any suggestions? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] special features in simplefonts.
In regular Context font usage I have this statement that works: \def\Fontsize{13} \font \rm = file:MinionPro-Regular.otf:+liga;expansion=default;protrusion=quality at \Fontsize bp How would I use this font in simplefonts? it is the trailing parameters that I don't know how to use in simplefonts, like: :+liga;expansion=default;protrusion=quality -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] linking to html etc. documents from pdf.
DTP programs like Inkscape and Scribus have facilities for linking to urls. Pdftex does also. If this facility exists in Context can some kind soul point me to the documentation? Thanks in advance. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] Two errors in test file.
Here is the test file: -- \definefontfamily [myfamily][serif][MinionPro Serif] \definefontfamily [myfamily][sans][MyriadPro Sans] \definefontfamily [myfamily][italic][MinionPro Italic] \setupbodyfont[myfamily] \starttext \rm foo \startitemize[a] \item {\bf Inkscape} \item Scribus \item Gimp \stopitemize \stoptext --- First, nothing prints. Second, if I say \startitemize[1] I get an error on the first \item line. I suspect that the default font doesn't have the big dot character. The system variable OSFONTDIR points to /usr/share/fonts Obviously there is something that I am missing in the font definitions. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Separate italic font.
Here is the example from the wiki -- \setupbodyfontenvironment[default][em=italic] \usemodule[simplefonts][size=10pt] \setmainfont[TeX Gyre Termes] \setsansfont[TeX Gyre Heros] \setmonofont[TeX Gyre Cursor] - If the font (e.g., MinionPro) has a separate italic font should I add it? If so is the correct command: \setitalicfont[\setupbodyfont[MinionPro-It] ?? John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Separate italic font.
On Thu, 04 Sep 2014 18:54:30 +0200 Pablo Rodriguez oi...@gmx.es wrote: On 09/04/2014 05:55 PM, john Culleton wrote: Here is the example from the wiki -- \setupbodyfontenvironment[default][em=italic] \usemodule[simplefonts][size=10pt] \setmainfont[TeX Gyre Termes] \setsansfont[TeX Gyre Heros] \setmonofont[TeX Gyre Cursor] - If the font (e.g., MinionPro) has a separate italic font should I add it? If so is the correct command: \setitalicfont[\setupbodyfont[MinionPro-It] ?? John, \setupbodyfontenvironment[default][em=italic] \usemodule[simplefonts][size=10pt] \setmainfont[TeX Gyre Termes][italicfont=TeX Gyre Pagella Italic] \starttext regular \em italics \stoptext I hope it helps, Pablo That looks like a solution, thanks. Now I have a related question. When I run: mtxrun --script fonts * foo The file foo has three columns. We only use the word in the right hand column with the suffix stripped off. So what is the purpose of the the other two columns? for example: minionproitalic minionproit MinionPro-It.otf but we only use MinionPro-It. Just curious. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] E-books and XML.
On Tue, 26 Aug 2014 20:12:25 +0200 Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On 26 Aug 2014, at 20:04, Hans Hagen pra...@wxs.nl wrote: Context users have invested time, often years, in learning how to write Context code. Writing XML is a whole other skillset, comparable to writing xhtml. It's not so different if you're accustomed to structure. To chime in: xml input facilitates the separation of content and display. There are many tools which will validate xml as you type. Your context skills will not be lost - if you have invested years in learning to code, you will still be able to do this in your environment files. John's argument does not make sense to me. If someone new to context asked me, I think I would advise her or him to use xml input which is more versatile and easier to proofread for a beginner. And if one day in 20 years she decides she wants to use another tool for her files, it’s much easier to convert xml. 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 ___ ___ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com Some questions: What tool do you recommend for entering text etc. in XML format? I have the Bluefish Editor but usually code html in a plain editor (Gvim). I downloaded the manual Dealing with XML in MKIV but it presupposes that the user builds his own conversion system. And it is still somewhat exerimental. Is there a conversion system already in place somewhere? For the beginner (me) is the MKII method easier to implement? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] E-books and XML.
Context is moving toward accepting XML input, although the filtering process is necessarily complex. But what is also needed is a version of Context that produces well formed XML as an output. That would be a step toward producing a dual purpose document with Context, for print and for e-book use. Context users have invested time, often years, in learning how to write Context code. Writing XML is a whole other skillset, comparable to writing xhtml. So is writing a Context to XML converter a possibility? A probability? The commercial program InDesign already has such a capability. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Using simplefonts and font protrusion in MKIV
How do I combine simplefonts and font protrusion using a font family like Minion for the main font and Myriad for the sans? I have both texlive 2014 and stand alone context dated about June 8. I can use either. -- John Culleton ___ 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] Prevent hyphenation of the last word on a page
On Sat, 05 Jul 2014 12:02:11 +0200 H. Özoguz h.oezo...@mmnetz.de wrote: If its not possible at all, a small hint to this fact would help, too. So I could stop to search :) Huseyin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com The brute force method is to study the output and wherever a word is hyphenated at the end of a page enclose it in {}. This is not global of course. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] chapter title does not show on header.
I copied \setupheadertexts etc. straight from the wiki with one change. For the fourth parameter instead of chapter I substituted \Titlea, which contains the title of the book. That part works, But the word chapter as a parameter doesn't. Here is my pertinent code: \def\Titlea{Scribus Index Feature } ... \setuppagenumbering[alternative=doublesided,location=] \setupheader[leftstyle=bold,rightstyle=bold] \setupheadertexts [{\getmarking[chapter]}] [{page \pagenumber}] [{page \pagenumber}] [{\Titlea}] \setuppagenumbering[location=] ... \setuppagenumbering[command=\bf] \definetext[chapter][footer][pagenumber] \setupmakeup[standard][page=yes, doublesided=no] \definepagebreak [mychapterpagebreak] [yes,header,right] ... \chapter{Summary} etc. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] blank overlay
I need a graphic (a thumbnail) on the right hand pages but not on the left hand pages. Following the instructions in the Metafun Manual page 168 I have assigned different pairs to the two overlays: \startuseMPgraphic{right page} ... \stopuseMPgraphic and \startuseMPgraphic{left page} \stopuseMPgraphic In the left hand area I want to just create a minimal structure that replaces the right hand graphic overlay. What is the minimal code I can use between the start and stop statements? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] blank overlay
On Tue, 03 Jun 2014 19:47:14 +0200 Peter Rolf indi...@gmx.net wrote: Am 03.06.2014 16:27, schrieb john Culleton: I need a graphic (a thumbnail) on the right hand pages but not on the left hand pages. Following the instructions in the Metafun Manual page 168 I have assigned different pairs to the two overlays: \startuseMPgraphic{right page} ... \stopuseMPgraphic and \startuseMPgraphic{left page} \stopuseMPgraphic In the left hand area I want to just create a minimal structure that replaces the right hand graphic overlay. What is the minimal code I can use between the start and stop statements? Not sure if I understand you right, but let's give it a try :-) You can use 'Start|Stoppage' in combination with your icon, but you end up with a graphic as big as the page (not visible and a small data footprint, but still some kind of 'layer mess'). Probably not the best way to do this in ConTeXt. Anyway... StartPage; draw something xyshifted(x,y); % shift to the desired position StopPage; Better alternative: http://wiki.contextgarden.net/Layers Example: placing a logo to the top right corner of the page And for the different setup on left|right pages see http://wiki.contextgarden.net/Alternating_backgrounds_and_repeating_layers The latter link is also at the bottom of the layer related page. HTH, Peter ___ 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 ___ ___ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com One of your examples, the watermark one, reminded me of what I had left off. It was the lines: \setuppagenumbering [alternative=doublesided] Dum de dum dum! Now I have the thumbnail mark on odd but not on even pages. I still have a few more bits to fiddle but that got me around my problem. I took Hans' MKIV thumb index example and hacked away from that point onward. Thanks so much for your multiple examples! I was about to retreat to Scribus. The problem with that program is that the pdf files are about five times bigger than a corresponding pdf from Context. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Thumbnail sample.
The wiki shows two thumbnail samples. I like the first one. But I want to use MKIV. When I do the first sample blows up on the second chapter entry. Obviously there is some code in sample 1 that doesn't work under MKIV. By a process of elimination it centers on the thumbnail description proper. The file looks like this: --- \unprotected \def\rawsectionnumber#1{\countervalue{\??se#1}}%will be in kernel \setuppagenumbering [alternative=doublesided] \setupcolors [state=start] \setupbackgrounds [page] [background=thumbs] \defineoverlay [thumbs] [\setups{thumbs}] \def\NOfChapters{4} % i need to make this one available \startsetups thumbs \definemeasure[thumbheight][\dimexpr\paperheight/\NOfChapters\relax] \vbox to \paperheight \bgroup \vskip \rawsectionnumber{section-2} \measure{thumbheight} \vskip -1 \measure{thumbheight} \doifoddpageelse\hfill\donothing \framed [background=color, backgroundcolor=darkgray, frame=off, foregroundcolor=white, height=\measure{thumbheight},width=1cm] {\bfa \rawsectionnumber{section-2}} \doifoddpageelse\donothing\hfill \vss \egroup \stopsetups \starttext \chapter{first} \dorecurse{10}{\input tufte } \chapter{second} \dorecurse{10}{\input davis } \chapter{third} \dorecurse{10}{\input zapf } \chapter{fourth} \dorecurse{10}{\input bryson } \stoptext --- It works under MKII but not under MKIV. The error message occurs after the first chapter. But the chapters by themselves work OK. I will continue to experiment -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Unable To Render Table With Over 3000 Rows
On Fri, 30 May 2014 18:11:46 +0200 Hans Hagen pra...@wxs.nl wrote: On 5/28/2014 6:34 PM, Neal Lester wrote: When I attempt to render a table with more than about 3000 rows I get the following error. Searching the archives I found one message suggesting that [save size] is hard coded and cannot be increased. The application is rendering business reports; they are relatively simple documents but we definitely need more than 3000 rows. Is there a way to configure context to render tables of this size? at some point you will hit other limitations you can jump the number by changing a line in the source code but as that is cumbersome I changed the beta a bit so that you can add this line in the texmfcnf.lua file in the directives section: [luatex.savesize] = 10, (i now report the relevant values at the end of a context --make run as some need to be saved with the format due to startup relationships) I also set the value to 100K by default. Hans Thanks, Neal Lester (C:/projects/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.01.03 00:40 MKIV current fmt: 2014.5.28 int: english/english system 'cont-new.mkiv' loaded (C:/projects/context/tex/texmf-context/tex/context/base/cont-new.mkiv) system files jobname 'temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47', input './temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47', result 'temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (C:/projects/jinny/report_builder/temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47.tex{C:/projects/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fonts typescripts unknown library 'loc' {C:/projects/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/projects/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts'fallback modern rm 12pt' is loaded structuresectioning part @ level 1 : 1 - ! TeX capacity exceeded, sorry [save size=5] system tex error on line 5025 in file C:/projects/jinny/report_builder/temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47.tex: TeX capacity exceeded, sorry [ ... 5015 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,992\eTD \eTR 5016 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,993\eTD \eTR 5017 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,994\eTD \eTR 5018 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,995\eTD \eTR 5019 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,996\eTD \eTR 5020 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,997\eTD \eTR 5021 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,998\eTD \eTR 5022 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,999\eTD \eTR 5023 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 5,000\eTD \eTR 5024 \eTABLEbody 5025 \eTABLE 5026 \stoptext 5027 If you really absolutely need more capacity, you can ask a wizard to enlarge me. ! == Fatal error occurred, no output PDF file produced! ___ 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 ___ This sounds like a job for a programming language with printing features, and not a DTP program. In my days as a COBOL programmer printing a report from a data file with a million entries was not unusual. As my father used to say there are horses for courses. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] placement of graphics across coluums.
On Wed, 28 May 2014 22:22:44 -0700 Mica Semrick m...@silentumbrella.com wrote: John, Perhaps you may find the columnsets command to your liking. See more here: http://pragrama-ade.com/general/manuals/columns.pdf Best, Mica Thnkas doe yor reply. Here is where I found that manual: http://www.pragma-ade.com/general/manuals/columns.pdf Unfortunately it does not cover the situation I mentioned, where a graphic is place in the center of a two column page but does not span either column edge to edge but rather protrudes part of the distance across each each column with text flowing around it on both sides. In Context as far as I can tell protrusion is all or nothing in double columns. But a partial protrusion into a single column has been available for a long time, see The Context Manual section 15.2. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] placement of graphics across coluums.
In Scribus, (which has many shortcomings compared to Context for book length documents,) there is one trick that is pretty easy. In a double column document one can place a graphic in another layer that is part in one column and part in another, but not spanning either column completely. Then the texts in each column can be made to flow around the graphic. I have looked in It's in the details and the Columns document but I cannot find this specific example. I thought I saw one years ago. Is such a trick possible in Context without heroic special coding? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Command for printing back of book index.
In the current General Manual section 12.7 Registers the command for actually printing the back of book index is omitted. What is it? Is it the same for both MKII and MKIV? Does one run the command texutil separate from the context command (analogous to running the makeindex command in other versions of TeX)? I can create an index separate from context using a front end to makeindex that I wrote years ago but I prefer an embedded index. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Command for printing back of book index.
On Mon, 26 May 2014 19:15:48 +0200 Hans Hagen pra...@wxs.nl wrote: On 5/26/2014 6:07 PM, john Culleton wrote: In the current General Manual section 12.7 Registers the command for actually printing the back of book index is omitted. What is it? Is it the same for both MKII and MKIV? Does one run the command texutil separate from the context command (analogous to running the makeindex command in other versions of TeX)? I can create an index separate from context using a front end to makeindex that I wrote years ago but I prefer an embedded index. producing an (sorted) index has always been integrated - in mkii texexec handles it (using texutil for all multi-pass pre- processing); the use never had to run texutil him/herself; in fact, i once made a replacement in Lua so that we could avoid ruby but never finished it read: had time to finish it - in mkiv sorting the index is done internally there has never been a reason for using something makeindex Hans ps. texutil itself went from modula-2 to perl to ruby ... so it's a real ancient part of context Thanks. Now, what is the command to be placed at the back of the file to print the index? Section 12.7 just has a blank line after A register is generated and placed in your document with -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Command for printing back of book index.
On Mon, 26 May 2014 22:41:41 +0200 Hans Hagen pra...@wxs.nl wrote: On 5/26/2014 10:31 PM, john Culleton wrote: On Mon, 26 May 2014 19:15:48 +0200 Hans Hagen pra...@wxs.nl wrote: On 5/26/2014 6:07 PM, john Culleton wrote: In the current General Manual section 12.7 Registers the command for actually printing the back of book index is omitted. What is it? Is it the same for both MKII and MKIV? Does one run the command texutil separate from the context command (analogous to running the makeindex command in other versions of TeX)? I can create an index separate from context using a front end to makeindex that I wrote years ago but I prefer an embedded index. producing an (sorted) index has always been integrated - in mkii texexec handles it (using texutil for all multi-pass pre- processing); the use never had to run texutil him/herself; in fact, i once made a replacement in Lua so that we could avoid ruby but never finished it read: had time to finish it - in mkiv sorting the index is done internally there has never been a reason for using something makeindex Hans ps. texutil itself went from modula-2 to perl to ruby ... so it's a real ancient part of context Thanks. Now, what is the command to be placed at the back of the file to print the index? Section 12.7 just has a blank line after A register is generated and placed in your document with did you consult the wiki? http://wiki.contextgarden.net/Registers I finally traced it down in the wiki. I was first looking under index and not finding the answer. My American mind didn't think to look under Register. That's not what we call a back of book index. So thanks for the pointer. But it would be useful also to correct the manual. Neither section 12.7 nor the list of commands in the back mention \completeregister nor \placeregister as the means to create a back of the book index. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] pdf X/1-a:2001 format for print output.
The above format is required for pdf files containing color for many American printers. I am looking for the minimal case. In the wiki there is an example: \setupbackend [format=PDF/X-1a:2001, intent=SWOP2006_Coated3v2.icc] Is this sufficient? Or must I also use this code: \setupinteraction [title=TITLE, subtitle=SUBTITLE, author=AUTHOR, keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] I don't see the relationship of this last example to non-interactive pdf X/1-a:2001 output for print. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] pdf X/1-a:2001 format for print output.
On Thu, 22 May 2014 17:59:31 +0200 Peter Rolf indi...@gmx.net wrote: Am 22.05.2014 16:07, schrieb john Culleton: The above format is required for pdf files containing color for many American printers. I am looking for the minimal case. In the wiki there is an example: \setupbackend [format=PDF/X-1a:2001, intent=SWOP2006_Coated3v2.icc] Is this sufficient? Or must I also use this code: They are not needed in PDF/X. But its good to be able to search PDF documents for a specific author or a title. No metadata, no search result pointing to your document. \setupinteraction [title=TITLE, subtitle=SUBTITLE, author=AUTHOR, keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] I don't see the relationship of this last example to non-interactive pdf X/1-a:2001 output for print. Well, there is none. You set the metadata via '\setupinteraction'. That's all. Interactive features (like links) are even forbidden in PDF/X-1a. Also no transparency and no RGB colors. HTH, Peter Thanks for your help! ___ 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 ___ ___ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Preparing a weird index.
I have a customer that uses a publisher that has truly weird requirements. The weirdness is that the locaters are not page numbers but paragraph numbers. And some paragraph numbers start with the prefix 'BO' and others with the chapter number. so a correct sequence would be BO.15 3.2 A finished sequence would be goddess @@ BO.15 3.2 3.5 The sort order has to be letter by letter, as defined in the Chicago Manual of Style. Can Context sort and summarize these locaters? I can even change the BO sequence to 0 (zero) and then change it back later on. The key is can Context sort by paragraph number rather than page number for an index. I have looked into Xindy for this job but the learning curve is pretty steep and the documentation pretty opaque. makeindex won't handle decimals for locators. I don't mind doing a little reformatting along the way (I already have for this project) but I don't want to rewrite makeindex or xindy just for this job. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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 layouts in chapter 3 of manual.
I am having a bit of trouble matching up the diagrams in chapter three with the corresponding \setuparranging statements. For example which \setuparranging statement matches up with figure 3.21 (8 pages single sided 1 sheet.)? I think it is [ZFLYER-8] but I am not certain. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Placing marks at edge.
You have seen them in books from O'Reilly and even in books like TeX for the Impatient: markings on the outer edge of each odd page that bleed past the page edge indicating a particular chapter. In the last named they are a simple box with very fine horizontal black lines. In some O'Reilly books like Web Design in a Nutshell they are a black box with the chapter name (possibly abbreviated) rotated 90 degrees in small white text. No doubt I can do this in Context. The question is what is the simplest and most foolproof way home. Of course the page size will be made larger by 0.125 inch on all sides except the spine edge to provide a trim. The marker box I describe protrudes into the trim area. And its location and the text change for each chapter of course. It is very hard in this country to get a book review by the important pre-publication reviewers like Booklist and Library Journal. But that review is the key to among other things library sales and academic sales. Edge markings like I discuss above will immediately separate my books from those slapped together in MSWord etc. I am just trying to get my books past the clerk in the mail room who has orders to discard anything that looks self-published. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Placing marks at edge.
On Wed, 5 Mar 2014 20:49:03 +0100 Willi Egger cont...@boede.nl wrote: Hello John, I was busy to make this some time ago. May that the attached file is a base for what you want to achieve. Kind regards Willi Compiles correctly. A brilliant solution. That gets me 3/4 of the way to my objective. The remainder requires that the margin marks be shown only on odd pages, or else switched to the left hand margin for even pages. Thinks for sharing your solution to this pesky problem. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Simpleton bibliography
A very recent (Jan 21) wiki article lists this example for a simple bibliography: - \usebtxdataset [mybibfile.bib] \setupbtxrendering [numbering=yes] - Now that is simple enough for starters. Question 1: What are the other options for \setupbtxrendering and what do they do? (In my world Bibliographies are seldom numbered.) Question 2: Suppose I want to follow a different standard, other than APA, such as harvard or Chicago or whatever: where do I code that choice and how? Are bst files still in play? Question 3: url is mentioned. Does that mean that url can actually used as a data field name? I am of the KISS persuasion (Keep It Simple Silly). All of furbelows and feathers that fascinate real experts are not my cup of code. Bless the real experts, without them there would be no TeX or Context, but I am not of their clan. All I want to do is: A: Create a list of books properly encoded in bibtex or similar style. Probably all the entries will be @book types. B: print items out of that list as I choose them with \cite or \nocite in a backmatter chapter called references or bibliography. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] mkiv bibtex
Is the ISBN field supported yet? How about the url field? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Setting `before` option of chapter breaks header text
On Tue, 14 Jan 2014 16:59:32 -0500 john Culleton j...@wexfordpress.com wrote: If the before option is just for space then how do I place a fleuron centered above the chapter title? That is what the customer wants. Answered my own question. It seems that before can be used for more than just spacing. Here is the pertinent code from my files: \useexternalfigure[heart][heart.svg][width=1.5in] \def\fleuron{\centerline{\hbox{\externalfigure[heart]}}} \setuphead[chapter] [header=high,footer=chapter,page=right, alternative=middle, align=normal, number=no, page=mychapterpagebreak, style=ssbfc, before={\fleuron}, after={\blank[2*big]}] -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Setting `before` option of chapter breaks header text
On Tue, 3 Sep 2013 20:32:30 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 03.09.2013 um 20:22 schrieb Michael Scholtz scmi...@gmail.com: I tried `\blank` commands in `before`, but it seems to have to effect. A space before `\blank` (like `before={\ \blank[5em]}`) makes it work, but is not so nice. TeX ignores a \blank at the begin of a page, to force the space you can “before=\blank[force,value]”. But using `toffset` and `boffset` does the job, even without `\blank`s: This is wrong because the toffset and buffet control the margins *in* the boy and not around the box. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! If the before option is just for space then how do I place a fleuron centered above the chapter title? That is what the customer wants. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Invoice Example
On Mon, 13 Jan 2014 13:49:39 +0600 Henning Hraban Ramm te...@fiee.net wrote: Am 2014-01-02 um 21:07 schrieb hwit...@gmail.com: __ There are horses for courses. I write invoices using plain pdftex. Not much code required, I just change the data fields for each new iteration. I also use the antique TeXsis tables for structure. Here is an example: -- \input TXSruled.tex \def\today{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September \or October\or November\or December\fi \space\number\day, \number\year} \nopagenumbers \parindent=0pt \parskip=0pt \font\bigss=cmss17 at 25pt \centerline{\bigss INVOICE} \noncenteredtables \vskip .25in \hrule height 1.5pt \bigskip \line{\hfill Date: \today} \vskip .25in \line{\ruledtable VENDOR \cr John Culleton \hfill\crnorule 2401 Haight Avenue\hfill\crnorule Eldersburg, MD 21784 \hfill\endruledtable \hfill \ruledtable CUSTOMER\cr Independent Contract Services\hfill\crnorule Landmark Community Newspapers\hfill\crnorule Carroll County Times\hfill\crnorule P.O. Box 346\hfill\crnorule Westminster, MD 21158\hfill\endruledtable } \centeredtables \bigskip \ruledtable Item\dbl Desc|Date |Amount \cr 1 \dbl \para{Column}| Dec 10 2013|\$40.00* \cr 2 \dbl \para{Column}| Dec 24 2013|\$40.00 \cr \dbl \multispan2 \hfil TOTAL: | \$80.00\endruledtable \def\uline#1{\vrule height 0pt depth .75pt width #1 in} \centerline{\bf DIRECT DEPOSIT HAS BEEN REQUESTED} {\baselineskip=25pt \vskip 30pt Signed:\uline{2} \vskip 30pt Approved:\uline{2} \hfill Approved Date:\uline{1.5}\break} %%Begin addressing code for reverse side. \vfil\eject\null \vskip -.5in \moveleft .75truein \vbox{{\bf John Culleton}\par 2401 Haight Ave\par Eldersburg MD 21784\par } \vskip 30pt \moveright 3truein \vbox{\obeylines Independent Contract Services Landmark Community Newspapers Carroll County Times P.O. Box 346 Westminster, MD 21158 }\vfill \bye -- I print the first page, flip the paper, print the address info, and fold the paper into threes. Glue the edge, affix a stamp and mail. Run the above code and look at the results. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Drop folio on first page of chapter.
My chapter heads have no headline. For chapter heads only I want to put the page number on the bottom of the page centered. How do I do this? definepagebreak [mychapterpagebreak] [yes,header,right] \setuphead[chapter] [alternative=middle, header=empty, align=normal, number=no, page=mychapterpagebreak, style=ssbfc, before={\blank[2*big]}, after={\blank[2*big]}] -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] context mkiv output options
On Sun, 13 Oct 2013 00:40:28 +0200 Hans Hagen pra...@wxs.nl wrote: On 10/12/2013 5:12 PM, hwit...@gmail.com wrote: Can MKIV ConTeXt output image files. I need to create an image file from a document and would prefer use Context to output it directly if possible and not have to convert a pdf file to an image file such as png or tiff. no Is there a command line option for this. I looked at the outpuf from $ context --help , but cold find no answer there. It did not even mention the --pdf option, which does exist. there's only pdf (currently) - 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 ___ Scribus may be helpful here. It can read in a pdf file (not too long) and output it in a variety of formats, including of course pdf again. So you could input your context-produced pdf file and delete all but the image. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] workarounds required for book layouts.
For print books the half-title page is backed by a blank page but the full title page is backed by the copyright page. The first page of the bodymatter (chapter 1 in most cases) is recto faced by a blank verso. There are workarounds that obtain this layout. First \standardmakeup command must be modified thus: \setupmakeup[standard][page=yes, doublesided=no] Then to get a blank page after the half title We must insert a dummy page thus: \startstandardmakeup \null \stopstandardmakeup These two moves put a blank page after the half title but forbid it thereafter. The blank page after \startbodymatter, after \startbackmatter and after \startappendix is provided by: \setupsectionblock[frontpart][page=] \setupsectionblock[bodypart] [page=] \setupsectionblock[backpart] [page=] \setupsectionblock[appendix] [page=] This combination of workarounds gets the job done. There may be other combinations that do it as well. My suggestion is that all the above setup commands should be built into context. It takes some exploration of the mailing list to ferret out these layout techniques. I have already added them to my boilerplate macros.tex file that I insert in every book layout file. But others have to discover these techniques afresh when they start using Context for books. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Extra blank page after title page.
On Thu, 21 Nov 2013 15:56:51 -0500 (EST) Aditya Mahajan adit...@umich.edu wrote: On Thu, 21 Nov 2013, john Culleton wrote: Here is the code. first the file title.tex: - \startstandardmakeup[doublesided=no] (title stuff) \stopstandardmakeup --- and next the file copy.tex: -- \startstandardmakeup[page=no] (contents) \stopstandardmakeup MY master file contains: \input title.tex \input copy.tex -- An extra blank page is inserted between the title page and the title verso. If I combine the two files into a new file combine.tex, eliminate the two input lines above and say \input combine.tex instead I still get the unwanted blank page in between. (untested). Add doublesided=no. See http://tex.stackexchange.com/a/122349/323 for details. Aditya It works! Thanks for your help. I added these lines to my macros.tex file which gets read first: \setuppagenumbering[alternative=doublesided] \setupmakeup[standard][page=yes, doublesided=no] Then to preserve the blank page after my half title (where I really want it) I changed my master file to read as follows: \input macros.tex \starttext \startfrontmatter \input variables.tex \input half.tex \startstandardmakeup %new \null%new \stopstandardmakeup %new \input title.tex \input copy.tex %\input ded.tex \stopfrontmatter \startbodymatter %\input body.tex \stopbodymatter \stoptext Lines 6-8 in the above file give me a blank page. This will now be my standard master file. I hope that the next revision of the manual will include this fix. ___ 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 ___ -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Extra blank page after title page.
Here is the code. first the file title.tex: - \startstandardmakeup[doublesided=no] (title stuff) \stopstandardmakeup --- and next the file copy.tex: -- \startstandardmakeup[page=no] (contents) \stopstandardmakeup MY master file contains: \input title.tex \input copy.tex -- An extra blank page is inserted between the title page and the title verso. If I combine the two files into a new file combine.tex, eliminate the two input lines above and say \input combine.tex instead I still get the unwanted blank page in between. Using MKIV and TexLive 2013 on Linux. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] rpcode values in pure?
In pdftex we have \rpcode and \lpcode. In context these values are already defined somewhere. What module/file contains the Context values for character protrusion? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] ConTeXt standalone - in what situations is it better?
On Thu, 24 Oct 2013 14:57:35 +0200 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Thu, Oct 24, 2013 at 2:13 PM, Lars Huttar wrote: The other issue for me with Standalone is that the only version listed for Windows is W32TeX. When I go to the web page for that platform, I don't see any information about what W32TeX is; just how to install it. It sounds like it's specific to 32-bit systems, and mine is 64-bit. But I suppose in that regard it's no different from TeXLive -- the executables are 32-bit but they run fine on 64-bit systems. http://w32tex.org/ It's another distribution created by a Japanese guru for compiling binaries with Visual Studio. You don't need to install W32TeX yourself, but those binaries are used in both TeX Live and ConTeXt distribution, so you basically get the same binaries (only maybe slightly newer version with ConTeXt distribution). And yes, the binaries work fine on a 64-bit system. Since recently there are 64-bit binaries available, but I didn't manage to fix the scripts yet to fetch those binaries when applicable. Does anybody have advice for me on other reasons for switching from TeXLive to ConTeXt Standalone, or reasons not to? If TeX Live works for you, there is no real need to switch, but if you ever need a patch or some new functionality, it would be easier to use the latest version. Mojca There is a problem with using Texlive and a problem with using Standalone. In the simplefonts area in particular documentation and examples may rely on changes that weren't in place when Texlive 2103 was put together. This is a rapidly developing area. The problem with Standalone is that the full range of fonts found with Texlive is not available. Standalone has 258 otf fonts and TexLive has 508 otf fonts. So I am opting for TeXLive, although I have both. Another dfficulty is that many of the examples for simplefonts are apparently developed on a Windows system and I use Linux. Font names are different. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] interesting link
On Wed, 23 Oct 2013 20:32:57 +0900 Hans Hagen pra...@wxs.nl wrote: Hi, I just attended a talk about pdf2htmlEX at the tug 2013 conference ... this looks quite interesting ... http://coolwanglu.github.io/pdf2htmlEX/ http://soft.rubypdf.com/software/pdf2htmlex-windows-version It works (mostly) ok on even complex context manuals like metafun-s.pdf and fonts-mkiv.pdf. 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 ___ 1. Is ther a generic Linuz version? 2. Is this a stepping stone towards a path from a pdf to a kindle and/or an ePub document? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Using typescripts in Texlive 2013
I have written a program that generates for each typescript in texlive 2013 a test file like this: -- \usetypescriptfile[type-imp-charter][all] \setupbodyfont[imp-charter,18pt] \starttext \rm Sphinx of black quartz, judge my vow, 1234567890 \rm Roman \bf Bold \bi Bold Italic \it Italic \sc Small Caps \crlf \crlf \stoptext - Most of these test files can't find the fonts and use the fallback fonts instead. Only the following actually use the expected font: junicode gentium latinmodern droid termesmath-regular Here is an extract from imp-charter.log: fontsbodyfont '18pt' is defined (can better be done global) fontsbodyfont '21.6pt' is defined (can better be done global) fontstypescripts unknown library 'loc' (/usr/local/texlive/2013/texmf-dist/tex/context/base/type-imp-charter.mkiv) (/usr/local/texlive/2013/texmf-dist/tex/context/base/type-imp-charter.mkiv) fontspreloading latin modern fonts (third stage) {/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texlive/2013/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} fonts'fallback modern rm 18pt' is loaded Also, what causes the reference to an unknown library called loc? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] open quotation not working
On Sun, 13 Oct 2013 11:30:54 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 13.10.2013 um 06:09 schrieb Ciro A. Soto c...@kavyata.com: sorry, I just saw an old chain of messages about this question... I fixed it with the translation module. \usemodule[translate] \translateinput[``][“] \enableinputtranslation Better use real quotation marks “ and ” or \quotation{…}. Wolfgang Why is it better? And why is it so difficult to just reinstall the traditional TeX method of handling quotes? Even the MSWin version of smart quotes using the glyph would be a worthwhile simplification. Not every change is an improvement, IMO. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] list of useful typescripts.
I am seeking to create (or download) a list of useful typescripts. I define useful as those which call upon fonts/typefaces that are actually distributed with texlive. Perhaps this list exists somewhere. If so I would appreciate a pointer. A list of typescripts that is limited to those calling on fonts in the context distribution would be useful if the list described above is not available. Ultimately I wish to winnow down the list to those fonts containing serif typefaces suitable for use in the text of a novel. The font should have at a minimum roman, italic, bold, bold-italic and small caps typefaces. I can if necessary develop this list myself. But I have learned that is better to ask than to reinvent the wheel. All replies appreciated. I will be using MKIV. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Spelling out chapter numbers for novels.
It is now fashionable in the U.S. (and maybe elsewhere) to use a spelled-out chapter number in novels. Not finding a function to convert from a number register to a text string I created a brute force file that looks like this: -- \def\chapstring{\ifcase\currentheadnumber\or One\or Two\or Three\or Four\or Five\or Six\or Seven\or Eight\or Nine\or Ten\or ... Ninety-eight\or Ninety-nine\else One hundred\fi} This file enables authors to rearrange chapters without worrying about renumbering the chapters since it depends on \currentheadnumber. I wonder if there is a function in Context or elsewhere that does this for me? If not, anyone who wants the complete file can write me for a copy. It might save you ten minutes or so :) -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Spelling out chapter numbers for novels.
On Wed, 9 Oct 2013 21:43:49 +0200 Marco Patzer li...@homerow.info wrote: On 2013–10–09 john Culleton wrote: It is now fashionable in the U.S. (and maybe elsewhere) to use a spelled-out chapter number in novels. […] I wonder if there is a function in Context or elsewhere that does this for me? \setuplabeltext [chapter=Chapter\nobreakspace] \setuphead [chapter] [conversion=words] \starttext \startchapter [title=Alpha] \stopchapter \startchapter [title=Beta] \stopchapter \startchapter [title=Gamma] \stopchapter \stoptext Marco Very interesting. I have one further problem. The accepted style is to use an initial cap as in Twenty-three and not twenty-three Is there a cure for that also? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Feedback wanted on a ConTeXt tutorial
On Sun, 29 Sep 2013 18:22:02 +0300 Mari Voipio mari.voi...@iki.fi wrote: Hello! Inspired by some informal discussions at the recent ConTeXt meeting I started to write a *really* basic ConTeXt tutorial. However, before I get further than the first six chapters, I'd like to get feedback on it, especially on the content, but also on the layout. The file is (at least temporarily) available at http://www.lucet.fi/pdfs/ctxbasics.pdf. I know already that there are a few things missing in the existing chapters, but I'd like to know if the document is any good and if the style is suitable for such a document. I've planned and written it out of my own experiences with ConTeXt, so maybe this document could become a My Way doc when it is finished (something public domain anyway). Thank you, Mari Thus far you have a good effort. I would add at an early point the command: \setuppagenumbering[alternative=doublesided,location=] or similar. Most documents like books etc. are printed double sided. And page numbering is generally handled in the header. It is not obvious to newbies that double sided format is set up by a page numbering command. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Find all words set into the margin
On Mon, 26 Nov 2012 13:52:52 +0100 H. Özoguz h.oezo...@mmnetz.de wrote: I use \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupalign[hz,hanging] \usetypescript[times] \setupbodyfont[times,11pt] \setuptolerance[verystrict] Is there a command or a macro to find all occurences in a file (or projekt), where some word is printed into the margin? (Maybe because of bad hyphenation or something else.) - Would be perfect for manual check-up and corrections! Thanks. Huseyin You could try setting \overfullrule=5pt This is an original TeX primitive. Plain TeX sets it at 5pt. You can then scan pages looking for a black rectangle in the right margin. I cannot determine which code to search for in e.g., grep but perhaps you can. I just tested it and \overfillrule works with MKIV context if it is set for some value other than zero. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Difference between base and third
I note that in texlive 2013 the typescripts are found in two subdirectories, base and third. Is there a reason for this subdivision or is it just an accident of history? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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 ___