Re: [NTG-context] Feature request: linespacing in (foot)notes
On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I try to change the linedistance in my footnotes but this is a pain with the current interface, I slightly modified the \setnotebodyfont macro and hope this could also be done in core-not. You can also exploit the before key for this. http://archive.contextgarden.net/message/20070314.020258.3501cc05.en.html \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[\noteparameter\c!bodyfont]% \setuptolerance[\noteparameter\c!tolerance]% \setupalign[\noteparameter\c!align]% \noteparameter\c!commands} % - new I would suggest using setups key rather than commands. In fact, I wish all commands had a setup=... key. Tweaking the before key is not always convinient. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: linespacing in (foot)notes
Am 14.11.2008 um 17:07 schrieb Aditya Mahajan: On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I try to change the linedistance in my footnotes but this is a pain with the current interface, I slightly modified the \setnotebodyfont macro and hope this could also be done in core-not. You can also exploit the before key for this. http://archive.contextgarden.net/message/20070314.020258.3501cc05.en.html I already tried the before key but it comes to early and \restoreglobalbodyfont cancels the setting. I tried also \setupbodyfontenvironment but I don't want this because I could have also normal running text in the same size as the footnote but the linedistance need to be bigger. \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[\noteparameter\c!bodyfont]% \setuptolerance[\noteparameter\c!tolerance]% \setupalign[\noteparameter\c!align]% \noteparameter\c!commands} % - new I would suggest using setups key rather than commands. In fact, I wish all commands had a setup=... key. Tweaking the before key is not always convinient. I don't care if the key is commands, setups, inbetween ... as long as it possible to change the linedistance I'm happy but something need to be done and I mean now and not in a few months/years, we live long enough with this restriction. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need more interword spacing
Hi all, I found nice solution by myself: \interwordspace 2\interwordspace that sets double space. Wolfgang's \setuptolerance[horizontal,space] also works fine. But 2*space doesn't work, what can I do if I want even more space? Best, Vyatcheslav ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need more interword spacing
On Thu, Nov 13, 2008 at 2:21 PM, Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote: Hi all, I found nice solution by myself: \interwordspace 2\interwordspace that sets double space. Wolfgang's \setuptolerance[horizontal,space] also works fine. But 2*space doesn't work, what can I do if I want even more space? Only space alone is a valid value. If found no better solution in the core and you have to use either \interwordspace or \spaceskip. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need more interword spacing
Am 13.11.2008 um 01:08 schrieb Yanrui Li: 2008/11/13 Vyatcheslav Yatskovsky [EMAIL PROTECTED]: Hi, Can someone suggest me global setting for interword spacing? I write chords above lyrics (with a pen), and often there is no enougn space between words. Hi, Wolfgang have told me about using code such as ``spaceskip .25em plus .25em\relax'' to adjust spaces in Chinese chacracters. You can try it for your problem. Before you do this try \setuptolerance[horizontal,space]. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] questions about Aditya's thesis
On Thu, 6 Nov 2008, Mohamed Bana wrote: Hello everyone, Here's the link to his thesis; http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.tar.gz 1. Is this the new official syntax? \chapter[chap:01] Introduction \section Motivation Well, this has been possible for a long time. I prefer this over \section{Motivation} since there is less things to type :-) I don't think that this is documented anywhere. 2. How do I enabled colour links for the bibliography citations? I've tried - You'll have to move/delete t-bib.tex if you're running a recent ver. of the minimals to get the the doc to compile. % env-thesis.tex lines 289-291 \setupinteraction[state=start,style=,color=] Change color= to color=darkgreen (or any other color that you like). \setupinteraction[focus=standard] \placebookmarks [chapter,section][chapter] and % line 3, macros.tex \setupcolors[state=start] This will also make all the section heads colored. If you do not like it, remove color=something from the \setuphead commands. % line 8, macros.tex \setupcite [interaction=start, compress=no,color=] %darkgreen] cite currently does not support changing colors of links. You get the same color as interationcolor. I had made some changes in my local copy of t-bib, but that won't work because old t-bib uses deprecated method of setting variables and constants. Yet the links are still in black. Here's the pdf; http://filebin.ca/mzxxpc/thesis.pdf or http://filebin.ca/mzxxpc 3. The entries in bibliography outflow into the margins; pages 23 onwards. I don't mind if the line contains huge gaps as long as the entries don't flow into the margins. Add something like \setuptolerance[verytolerant, stretch] before \placepublications. Occasionally, I had to edit the bbl file by hand to get the spacing that I wanted. 4. How do I decrease the linespacing? Don't you agree with Minion Pro it doesn't look as good as with Palatino. Change \setupinterlinespace[medium,auto] to [small,auto] or simply remove this line. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bibtex doubt
Hi, I'm a beginner with ConText. Before I used LaTeX and I want to switch to try Now I'm preparing a simple document: resum-recerca.contex (I attach it) and I have a bibtex bibliography, but when I run texexec resum-recerca.tex, I get the References empty. What fails? Thanks a lot, Xan. PS: I attach too running.txt that outputs the texexec. % interface=en output=pdftex % Regime \enableregime[utf] % Choose a font %\usetypescript [palatino][\defaultencoding] \setupbodyfont [palatino,12pt] % Be tolerant with paragraph building \setuptolerance [horizontal,verytolerant,stretch] % Choose a language, and associated hyphenation rules. \language [ca] % Page number \setuppagenumbering [location={footer}] % White space between paragraphs \setupwhitespace [big] % Paper size \setuppapersize [a4] % On the grid please \setuplayout [grid=yes, footer=0.5\footerheight, header=0.5\headerheight] % Enable colors and activate hyperlinks \setupcolors [state=start] \definecolor[lightBlue][r=0.5, g=0.5, b=1.0] \setupinteraction [state=start, color=lightBlue] \setupurl[style=small, space=yes] % Enumerate the URLs \useURL [pragma] [{www.pragma-ade.com}] \useURL [contextgarden] [{contextgarden.net}] \useURL [ntg-context] [{www.ntg.nl/mailman/listinfo/ntg-context}] \useURL [literatesolutions] [{literatesolutions.com/Members/guravage/tpj/askNelly/context.tex}] \useURL [mge] [{mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] % Modules \usemodule[bib] \usemodule[bibltx] % Bibliography options %\setupbibtex[database=llibres] \setuppublications [numbering=yes, sort=author] % Start the text \starttext \midaligned{\tfb De què faré l'article?} \midaligned{\tfx Xavier Bordoy} %\midaligned{\tfx \currentday} Posar el problema de Dehn. {\bf Automatic group}: Bibliografia Posar el llibre de Word processing in groups El llibre d'en Meier El curs de Bellaterra sobre el problema de la paraula. \jobname \placepublications \completepublications \stoptext % Finish de text @Book{abramowitz+stegun, author = Milton Abramowitz and Irene A. Stegun, title = Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, publisher = Dover, year = 1964, address = New York, edition = ninth Dover printing, tenth GPO printing } @Book{HPL2000, editor = {John D. Barnsford and Ann L. Brown and Rodney R. Cocking}, title = {{How people learn: Brain, mind, experience, and school}}, publisher = {National Academy Press}, year = 2000, address = {Washington, DC}, edition = {expanded}, url = {http://www.nap.edu/} } TeXExec | processing document 'resum-recerca.contex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file resum-recerca.top TeXExec | using randomseed 956 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %-line parsing enabled. (/usr/share/texmf/web2c/natural.tcx) entering extended mode (./resum-recerca.contex ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.5.11 int: english/english language: language en is active system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/share/texmf/tex/context/base/cont-new.mkii) (/usr/share/texmf/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/share/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/etc/texmf/tex/context/user/cont-sys.rme (/usr/share/texmf/tex/context/base/type-tmf.tex) (/usr/share/texmf/tex/context/base/type-siz.tex) (/usr/share/texmf/tex/context/base/type-one.tex) (/usr/share/texmf/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3 de-texnansi:tex nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3 fr-ec:ec-6-2:3 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3 it-texnansi :texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3 nl-ec:ec- 13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3 sk-ec:ec -17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded specials: tex,postscript,rokicki loaded system : resum-recerca.top loaded (./resum-recerca.top specials: loading definition file tpd (/usr/share/texmf/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/usr/share/texmf/tex/context/base/spec-fdf.tex (/usr/share/texmf/tex/context/base/spec-fdf.mkii)) specials: fdf loaded ) specials: fdf,tpd loaded ) systems : system commands are disabled (/usr/share/texmf/tex/context/base/type-pre.tex) color : mpcmyk color space is supported color : mpspot color
[NTG-context] \setupspacing[...] and the last line of a paragraph
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear all! %%% % Source: %%% \enableregime[utf] \installlanguage[german][de] \mainlanguage[de] \setuppapersize[C5][A4] \setuplayout[width=124mm] \setupbodyfont[10pt] \setupindenting[none] \setupwhitespace[small] \setuptolerance[horizontal,strict] \setupspacing[packed] \definestartstop[Ausgabe][% before={% \setuptextrules[location=left]% \textrule[top]{Ausgabe}% },% after={\textrule},% commands={\indenting[no]}% ] \starttext \startAusgabe Kurze Sätze. Das A und O der Tagespresse!\space{} Dem Leser nur nichts zumuten. Es muss zwischen Tür und Angel passen. Alles muss schnell verdaut werden können. { \setupspacing[broad] Kurze Sätze. Das A und O der Tagespresse!\nospace{} Dem Leser nur nichts zumuten. Es muss zwischen Tür und Angel passen. Alles muss schnell verdaut werden können. } \stopAusgabe \stoptext %%% % Problem: %%% In the output the last line of the first paragraph is longer than the last line of the second paragraph. Logically, the last line of the second paragraph supposed to be longer, because there is more space between the sentences. Is there a blank (space), with a wrong interpretation at the last punctuation mark or is it a bug or what is the reason? - -- Gruß Bernd Kosubek Unsigned eMails are not from me. eMail: [EMAIL PROTECTED] Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4 D63B Keyserver: blackhole.pca.dfn.de (oder andere) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQFI7zJ1Eokq7LfE1jsRAlbrAJ9xUxuJFuLtAWunzWn+uqnhY0XbnwCbBMjT OISFd44KkchZi3R7IH0LZFo= =OWXc -END PGP SIGNATURE- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupspacing[...] and the last line of a paragraph
On Fri, Oct 10, 2008 at 12:46 PM, Bernd Kosubek [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear all! %%% % Source: %%% \enableregime[utf] \installlanguage[german][de] \mainlanguage[de] \setuppapersize[C5][A4] \setuplayout[width=124mm] \setupbodyfont[10pt] \setupindenting[none] \setupwhitespace[small] \setuptolerance[horizontal,strict] \setupspacing[packed] \definestartstop[Ausgabe][% before={% \setuptextrules[location=left]% \textrule[top]{Ausgabe}% },% after={\textrule},% commands={\indenting[no]}% ] \starttext \startAusgabe Kurze Sätze. Das A und O der Tagespresse!\space{} Dem Leser nur nichts zumuten. Es muss zwischen Tür und Angel passen. Alles muss schnell verdaut werden können. { \setupspacing[broad] Kurze Sätze. Das A und O der Tagespresse!\nospace{} Dem Leser nur nichts zumuten. Es muss zwischen Tür und Angel passen. Alles muss schnell verdaut werden können. } Alles muss schnell verdaut werden können.% } or Alles muss schnell verdaut werden können.} \stopAusgabe \stoptext %%% % Problem: %%% In the output the last line of the first paragraph is longer than the last line of the second paragraph. Logically, the last line of the second paragraph supposed to be longer, because there is more space between the sentences. Is there a blank (space), with a wrong interpretation at the last punctuation mark or is it a bug or what is the reason? You inserted a space after the last word in the second paragraph. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hyphenating hyperlinks
Mohamed Bana wrote: Why aren't the the urls broken across the lines on page2-3. I'm pretty sure the hyperref package in latex supported this, Am I missing an option somewhere? Screenshot; http://imagebin.ca/view/VHwQ0w.html. The code used is; \dorecurse{6}{Download Apache at \from[apache]} Full source; http://pastebin.com/m1cf28c3c Pdf; http://filebin.ca/dnoqva/test.pdf or http://filebin.ca/dnoqva. Here, TeX can't break the paragraph according to the strict paragraph layout settings, urls are broken, but they still form Overfull hbox. (And there is no space after urls.) \setuptolerance[tolerant] will help. Jano ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hyphenating hyperlinks
Am 16.09.2008 um 08:52 schrieb Jano Kula: Mohamed Bana wrote: Why aren't the the urls broken across the lines on page2-3. I'm pretty sure the hyperref package in latex supported this, Am I missing an option somewhere? Screenshot; http://imagebin.ca/view/VHwQ0w.html. The code used is; \dorecurse{6}{Download Apache at \from[apache]} Full source; http://pastebin.com/m1cf28c3c Pdf; http://filebin.ca/dnoqva/test.pdf or http://filebin.ca/dnoqva. Here, TeX can't break the paragraph according to the strict paragraph layout settings, urls are broken, but they still form Overfull hbox. (And there is no space after urls.) \setuptolerance[tolerant] will help. Jano And there is also \hyphenatedurl{...} Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptolerance and vertical spacing
Thank's \setuplayout[grid=yes] and \setuptolerance[horizontal, stretch] do the trick, but once again, I don't understand the logic beside a part of context :( Cheers, O. I've found an other « trick ». After the « \starttext » \brokenpenalty \zerocount allow last sentence of the page to be hyphenate. Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setuptolerance and vertical spacing
Hello, I'm still trying to play with pdf for my Sony e-reader. So, I need to setup \setuptolerance It work's great for the horizontal tolerance but I can't understand anything about the vertical one :-p It seems that I can't do anything to force page cutting after hyphenate at the end of the last line. I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty 'et al' from the « style » documentation at pragma but no effects. In the documentation I read that I can't use \setuptolerance for both vertical and horizontal. Is it still true ? (I tried, of course ! No effects). Best, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptolerance and vertical spacing
On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote: Hello, I'm still trying to play with pdf for my Sony e-reader. So, I need to setup \setuptolerance It work's great for the horizontal tolerance but I can't understand anything about the vertical one :-p It seems that I can't do anything to force page cutting after hyphenate at the end of the last line. I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty 'et al' from the « style » documentation at pragma but no effects. In the documentation I read that I can't use \setuptolerance for both vertical and horizontal. Is it still true ? (I tried, of course ! No effects). \setuptolerance[vertical,...] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptolerance and vertical spacing
2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]: On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote: Hello, I'm still trying to play with pdf for my Sony e-reader. So, I need to setup \setuptolerance It work's great for the horizontal tolerance but I can't understand anything about the vertical one :-p It seems that I can't do anything to force page cutting after hyphenate at the end of the last line. I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty 'et al' from the « style » documentation at pragma but no effects. In the documentation I read that I can't use \setuptolerance for both vertical and horizontal. Is it still true ? (I tried, of course ! No effects). \setuptolerance[vertical,...] I see this on texshow-web. But I read : « Don't try to combine these two. » and « in vertical orientation the keywords define a factor bottomtolerance which is only used (?) in columns. » And it's true… if I setup both, only the horizontal one — or the last one if i setup two lines — seems to be setup (or y don't know the syntax). Maybe there's a link with the future vertical-spacing algorithm I read about here ? Cheers, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptolerance and vertical spacing
On Tue, Aug 19, 2008 at 12:52 PM, Olivier Guéry [EMAIL PROTECTED] wrote: 2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]: On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote: Hello, I'm still trying to play with pdf for my Sony e-reader. So, I need to setup \setuptolerance It work's great for the horizontal tolerance but I can't understand anything about the vertical one :-p It seems that I can't do anything to force page cutting after hyphenate at the end of the last line. I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty 'et al' from the « style » documentation at pragma but no effects. In the documentation I read that I can't use \setuptolerance for both vertical and horizontal. Is it still true ? (I tried, of course ! No effects). \setuptolerance[vertical,...] I see this on texshow-web. But I read : « Don't try to combine these two. » and « in vertical orientation the keywords define a factor bottomtolerance which is only used (?) in columns. » And it's true… if I setup both, only the horizontal one — or the last one if i setup two lines — seems to be setup (or y don't know the syntax). When you use vertical and horizontal in one setting onely the vertical setting is used. Maybe there's a link with the future vertical-spacing algorithm I read about here ? There is something in core-spa.mkiv. I think the following thread helps you: http://archive.contextgarden.net/message/20080208.155131.ab97f37d.en.html Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptolerance and vertical spacing
2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]: On Tue, Aug 19, 2008 at 12:52 PM, Olivier Guéry [EMAIL PROTECTED] wrote: 2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]: On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote: Hello, I'm still trying to play with pdf for my Sony e-reader. So, I need to setup \setuptolerance It work's great for the horizontal tolerance but I can't understand anything about the vertical one :-p It seems that I can't do anything to force page cutting after hyphenate at the end of the last line. I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty 'et al' from the « style » documentation at pragma but no effects. In the documentation I read that I can't use \setuptolerance for both vertical and horizontal. Is it still true ? (I tried, of course ! No effects). \setuptolerance[vertical,...] I see this on texshow-web. But I read : « Don't try to combine these two. » and « in vertical orientation the keywords define a factor bottomtolerance which is only used (?) in columns. » And it's true… if I setup both, only the horizontal one — or the last one if i setup two lines — seems to be setup (or y don't know the syntax). When you use vertical and horizontal in one setting onely the vertical setting is used. Maybe there's a link with the future vertical-spacing algorithm I read about here ? There is something in core-spa.mkiv. I think the following thread helps you: http://archive.contextgarden.net/message/20080208.155131.ab97f37d.en.html Thank's \setuplayout[grid=yes] and \setuptolerance[horizontal, stretch] do the trick, but once again, I don't understand the logic beside a part of context :( Cheers, O. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting / small paper size / strange paragraph cutting
Aditya Mahajan wrote: — look at the end of the first page : there's a big gap. Don't know why. It's in the middle of a sentence, and the paragraph is big after. Sorry, I don't have Gentium and I do not get the same problem with latin modern. That's because of the penalty for pages ending with a hyphen. At the page size of an ebook, you are better off with \brokenpenalty \zerocount — at the end of the second page, third line before the end, the « dans » is in the margin. I can't hyphenate this word. I woud prefer having bigger white spaces rather than this. Try \setuptolerance[verytolerant, stretch] — on page 3, before « Une horloge » I can't have indentation after \crlf. I used a « \packed » command after empty line but it's not what I want. I want a new line, with indentation but not a « \par » vertical spacing. In other words, you are lying. :-) \def\fakepar{\begingroup\parskip0pt\par\dogotopar{\indent\endgroup}} and then Dans l’arrière pays.\fakepar Une horloge ... does what you want, but it doesn't deserve a price for elegance either. Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting / small paper size / strange paragraph cutting
2008/7/26 Aditya Mahajan [EMAIL PROTECTED]: On Sat, 26 Jul 2008, Olivier Guéry wrote: Hello, I got my Sony prs 505 ebook reader last week… Nice machine. I tried to set-up one of my favorite book to be read on this. Here are the specials part : — Page size : 120mm x 90 mm — margins : 3mm up/down and 2mm left/right (could be 1mm, in fact) Here are the links to the .tex and .pdf files. Here are my problems : — I can't set the space before my section number : in line 38 : \setuphead[section][style=tfc, numberstyle=bold, before={\blank[3*big]}, alternative=middle] everithing work but the « before » section Try using before={\blank[force,3*big]}. It works great ! Thank's. Sad that we have to use a « force » command. — still can't have automatic indent after section. I need to force it using « \indentation » (line 47) Use \setupindentation[big,yes] and \setuphead[section][indentnext=yes] It works too \o/. Sad again. Why, when I say « always » I can't have this feature ? — at the end of the second page, third line before the end, the « dans » is in the margin. I can't hyphenate this word. I woud prefer having bigger white spaces rather than this. Try \setuptolerance[verytolerant, stretch] Again, it was the trick (and I should have found this one by myself…). It works too with « tolerant ». Thank's a lot, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting / small paper size / strange paragraph cutting
On Sat, 26 Jul 2008, Olivier Guéry wrote: Hello, I got my Sony prs 505 ebook reader last week… Nice machine. I tried to set-up one of my favorite book to be read on this. Here are the specials part : — Page size : 120mm x 90 mm — margins : 3mm up/down and 2mm left/right (could be 1mm, in fact) Here are the links to the .tex and .pdf files. Here are my problems : — I can't set the space before my section number : in line 38 : \setuphead[section][style=tfc, numberstyle=bold, before={\blank[3*big]}, alternative=middle] everithing work but the « before » section Try using before={\blank[force,3*big]}. — still can't have automatic indent after section. I need to force it using « \indentation » (line 47) Use \setupindentation[big,yes] and \setuphead[section][indentnext=yes] — look at the end of the first page : there's a big gap. Don't know why. It's in the middle of a sentence, and the paragraph is big after. Sorry, I don't have Gentium and I do not get the same problem with latin modern. — at the end of the second page, third line before the end, the « dans » is in the margin. I can't hyphenate this word. I woud prefer having bigger white spaces rather than this. Try \setuptolerance[verytolerant, stretch] — on page 3, before « Une horloge » I can't have indentation after \crlf. I used a « \packed » command after empty line but it's not what I want. I want a new line, with indentation but not a « \par » vertical spacing. I don't know how to get this. You can use \vskip -2em (play around with the length) but there should be a proper way. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hz and protrusion
Hans, This is great news, thanks a million. Where should I keep an eye out for the interface extensions? Dave On Feb 15, 2008, at 10:08 AM, Hans Hagen wrote: Hi, The latest luatex beta + mkiv support hz and protruding. The user interface will be extended a bit, but for the moment it goes as follows: % engine=luatex % \setupfontexpansion [quality][stretch=2.5,shrink=2.5,step=. 5,factor=1] \setupfontexpansion[oeps][a=1,b=2] \setuptolerance[verytolerant,stretch] \showframe \starttext \definefontfeature[demo][default] [mode=node,expansion=quality,protrusion=pure] \start \definedfont[Serif*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par %\definedfont[name:optimanova*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par \stop \stoptext (or the usual \setupalign options) As you may deduce from this example, handling is gone in mkiv. This not only safes some 40K format file, but the new mechanism also runs faster (some 10% overhead on 300 pages of pure text, which is rare). At some point we need to extend the hz/protruding vectors in mkiv to cover non latin scripts as well (currently they default to factors of 1). As with mkiv, latin glyphs fall back to their shape parent. Under some circumstances hz may not work as expected. Fixing this is on the agenda for the next luatex beta release. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] hz and protrusion
Hi, The latest luatex beta + mkiv support hz and protruding. The user interface will be extended a bit, but for the moment it goes as follows: % engine=luatex % \setupfontexpansion [quality][stretch=2.5,shrink=2.5,step=.5,factor=1] \setupfontexpansion[oeps][a=1,b=2] \setuptolerance[verytolerant,stretch] \showframe \starttext \definefontfeature[demo][default][mode=node,expansion=quality,protrusion=pure] \start \definedfont[Serif*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par %\definedfont[name:optimanova*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par \stop \stoptext (or the usual \setupalign options) As you may deduce from this example, handling is gone in mkiv. This not only safes some 40K format file, but the new mechanism also runs faster (some 10% overhead on 300 pages of pure text, which is rare). At some point we need to extend the hz/protruding vectors in mkiv to cover non latin scripts as well (currently they default to factors of 1). As with mkiv, latin glyphs fall back to their shape parent. Under some circumstances hz may not work as expected. Fixing this is on the agenda for the next luatex beta release. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] JavaScript conflicts
Hi, I was trying to make a report for my job last year. I did some javascript things to put a clock at each page of my presentation to make sure I'll finish it in time. But I found some tricky conflicting between my script and the one in java-stp.tex OK, here is my test file (it's a little too long): \usemodule [pre-60] \setuppapersize[S6][S6] \setuppagenumbering[state=start,location=] \setuptolerance[verytolerant,stretch] \setupinteractionscreen [option=max] \setupinteraction[state=start,click=no,menu=on] \startJSpreamble functions used now font.Digital = Courier-Bold ; function start_clock() { this.getField(time.clock).value = util.printd(HH:MM:ss, new Date()); this.getField(time.clock).readonly = true ; this.getField(time.clock).textColor = color.red ; this.getField(time.clock).textSize = 13 ; this.getField(time.clock).textFont = font.Digital ; this.dirty = false } var timeout = app.setInterval(start_clock(),1000); \stopJSpreamble % Field of clock \useJSscripts[fld] \definefield [time.clock] [line] [TimeLogo] \setupfield [TimeLogo] [horizontal,frame] [width=fit,height=25pt,background=, backgroundcolor=,frame=off] [width=5.2cm,frame=off] [width=5.2cm,frame=off,style=type] \dorecurse{\totalnumberofpages}{\copyfield[time.clock ][clock::\recurselevel]} \def\clock{\field[clock::\pagenumber]} \setupfootertexts[{\color[white]\tfxx \midaligned{\rlap{\currentdate} \hfill TITLE\hfill \llap{AUTHOR}}}] \setuplayout[bottomspace=.8cm, bottom=12pt] \startinteractionmenu[bottom] {\interactionbar[alternative=f,width=\makeupwidth,height=1ex]} \stopinteractionmenu \setupfooter[state=start] \starttext \field[time.clock] \field[clock::\pagenumber] page number is \pagenumber. % \StartSteps % \starttabulate % \NC test \FlushStep \NC test \FlushStep \NC \NR % \NC test \FlushStep \NC test \FlushStep \NC \NR % \NC test \FlushStep \NC test \FlushStep \NC \NR % \stoptabulate % \StopSteps \page \field[clock::\pagenumber] page number is \pagenumber. \page \field[clock::\pagenumber] page number is \pagenumber. \page \field[clock::\pagenumber] page number is \pagenumber. \stoptext This is just a test file, I will put those fields into \setupfootertexts or somewhere else to make every page a clock. If I uncomment the \StartSteps . . . \StopSteps part, some PDF layer kind of error will show and nothing is generated. Do I have to remove the clock to make the fancy stepwise thing or keep the clock but lost the stepwise function of ConTeXt? -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-ifying Kile
] # \setuptextbackground \setuptextposition[name][settings] \setuptextrules[options] \setuptexttexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber] \setuptextvariable[name][options] \setupthinrules[options] \setuptolerance[options] \setuptop[text|margin|edge][options] \setuptoptexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber] \setuptype[options] \setuptyping[file|typing|name][options] \setupunderbar[options] \setupurl[options] \setupversions[options] \setupwhitespace[none|small|medium|big|line|fixed|fix|dimension] # \setvalue # \setvariables # \setxvalue # \setxvariables # \showaccents \showbodyfont[settings] \showbodyfontenvironment[settings] # \showcharacters \showcolor[name] \showcolorgroup[name][horizontal|vertical|name|value|number] \showexternalfigures[alternative=a|b|c] \showfields[names] # \showfont \showframe[text|margin|edge] \showgrid # \showgridboxes # \showgridsnapping \showlayout # \showlayoutcomponents \showmakeup \showpalet[name][horizontal|vertical|name|value] \showprint[typesetting papersize][printing papersize][settings] \showsetups \showstruts # \showstruts \showsymbolset[name] # \snaptogrid \someline[reference] \somewhere{text}{text}[reference] \sort[text]{text} \space \splitfloat[settings]{text}{text} # \splitstring # \SR # \start \stop # \start \stop \startalignment[width|left|right|middle|inner|outer|wide|broad|height|bottom|line|reset|hanging|nothanging|hyphenated|nothyphenated] \stopalignment # \startarabicpar \stoparabicpar # \startarabictext \stoparabictext # \startappendices \stopappendices \startbackground \stopbackground # \startbackmatter \stopbackmatter # \startbaselinecorrection \stopbaselinecorrection # \startblockquote \stopblockquote # \startbodymatter \stopbodymatter \startbuffer[name] \stopbuffer \startcolor[name] \stopcolor \startcolumns[settings] \stopcolumns \startcombination[matrix] \stopcombination \startcomment[name][settings] \stopcomment \startcomponent file \stopcomponent \startdescription{text} \stopdescription \startdocument[name] \stopdocument \startenumeration \stopenumeration \startenvironment file \stopenvironment \startfact\fact text \\ text \\ text \\\fact text \stopfact \startfigure[name][file][factor=number][frame=on|off] \stopfigure \startfloattext[left|right|high|middle|low|offset|tall][reference]{text}{text} \stopfloattext # \startFLOWcell \stopFLOWcell # \startFLOWchart \stopFLOWchart \startformula \stopformula # \startframedcontent \stopframedcontent \startframedtext[left|right|middle|none][settings] \stopframedtext # \startfrontmatter \stopfrontmatter # \starthanging \stophanging \starthiding \stophiding \startinteractionmenu[name] \stopinteractionmenu \startitemgroup[name][options][settings] \stopitemigroup # \startitemize \stopitemize # \startitemize \stopitemize # \startJScode \stopJScode # \startJSpreamble \stopJSpreamble # \startJSscripts \stopJSscripts \startlegend[two]\leg text \\ text \\ text \\\leg \stoplegend \startline[reference] \stopline \startlinecorrection \stoplinecorrection \startlinenumbering[continue] \stoplinenumbering \startlines \stoplines \startlocal \stoplocal \startlocalenvironment \stoplocalenvironment \startlocalfootnotes \stoplocalfootnotes # \startlocalsetups \stoplocalsetups \startmakeup[name][settings] \stopmakeup \startmarginblock \stopmarginblock \startmarginrule[number] \stopmarginrule # \startmode \stopmode # \startMPpage \stopMPpage \startnamemakeup \stopnamemakeup \startnarrower[left|middle|right] \stopnarrower # \startnointerference \stopnointerference # \startnotmode \stopnotmode \startopposite \stopopposite \startoverlay{text}{text} \stopoverlay \startoverview[names] \stopoverview \startpacked[blank] \stoppacked \startparagraph \stopparagraph \startpositioning \stoppositioning \startpostponing \stoppostponing \startproduct file \stopproduct \startprofile[names] \stopprofile \startproject file \stopproject \startquotation[left|middle|right] \stopquotation \startregister[text]{text+text+text} \stopregister # \startsetups \stopsetups # \startstandardmakeup \stopstandardmakeup \startsymbolset[name] \stopsymbolset \startsynchronization \stopsynchronization \starttable[text|name] \stoptable \starttables[text|name] \stoptables \starttabulate[text][settings] \stoptabulate # \startTEXpage \stopTEXpage # \starttext \stoptext # \starttextbackground \stoptextbackground # \starttextdata \stoptextdata \starttextrule[top|bottom]{text} \stoptextrule \starttyping \stoptyping \startunpacked \stopunpacked \startversion[numbers] \stopversion # \startXMLdata \stopXMLdata # \startXMLignore \stopXMLignore # \startXMLmapping \stopXMLmapping \stretched{text} # \strut # \strutdepth # \strutheight # \struttedbox \sub[references] \subject[references]{text} \subsection[references]{text} \subsubject[references]{text} \subsubsection[references]{text} \subsubsubject[references]{text} \switchtobodyfont[font settings] \switchtorawfont[name] \sym{text} \symbol[name][name
[NTG-context] Presentation interaction list
Hi, Forgive me if this is a double post, it didn't seem to get through the first time. I'm writing a presentation where each slide has an interaction list of chapters on the side. There are two things I can't figure out: 1. How to stop the list appearing outside of a part. (Is there a non-documented argument to `criterium'?) 2. How to have the current chapter highlighted on all slides within that chapter. (It's highlighted fine on the first slide of a chapter, but not on subsequent slides). Are these possible? Thanks for your help, Jeremy -- slide.tex \setuppapersize[S6][S6] \setuppagenumbering[state=stop] \setuptolerance[verytolerant,stretch] \setupencoding[default=texnansi] \setupbodyfont[modern] \setuphead[section][ page=yes] \setuphead[subsection][ page=yes] \setupcolors[state=start] \definecolor [FadedColor] [r=.9,g=.1,b=.1] \definecolor [CurrentColor] [r=.1,g=.9,b=.1] \setupinteraction[ page=yes, color=FadedColor, contrastcolor=CurrentColor, menu=on, state=start] \setuplayout[rightedge=2cm,width=9cm] \startinteractionmenu[right] %% \placecontent[ %% level=chapter,criterium=all, %% coupling=on, %% alternative=f, align=left, %% interaction=all, %% before=, after=] \placelist[chapter][ criterium=all, alternative=f, align=left, interaction=all, before=, after=, chapternumber=no] \stopinteractionmenu \setuphead[part][ placehead=yes, page=yes] \starttext {\bfd Title page} \part {About \TEX} \chapter {Examples} \section {Knuth} \input knuth \section {More Knuth} \input knuth \chapter {More examples} \section {Donald} \input knuth \stoptext ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page breaks and itemization
Am 2007-08-30 um 11:30 schrieb Jörg Hagmann: Itemizations occur very often in my manuscript (typically [packed,joinedup]). I would like page breaking to occur when the page is full, regardless of the number of lines left over on the next page (or the number of lines at the bottom of a page). At present, the gaps left at the bottom of a page look ugly, especially when there is a footnote with its line above. \adaptlayout doesn't do anything Is there a way to setup this behaviour (without affecting pagebreaking outsitde itemizations)? Normally yoou influence pagebreaking with \setuptolerance, or plain TeX style with setting the appropriate penalties. I don't know if it would work to set club and widow penalty to a very low value inside of the itemization (setup before or the like). (Is this setting always global or does it work locally?) \setuptolerance [{horizontal, verytolerant},{vertical, verystrict}] %\clubpenalty=8000 % no clubs / keine Schusterjungen %\widowpenalty=8000 % no widows / keine Hurenkinder %\tolerance=1750% line breaking tolerance (ca. 500--3000) %\emergencystretch=10 pt% additional stretching space per line Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typescript / variants question
Hi, I use oldstyle digits with a typescript using variants such as \Var[osf] to get oldstyle digits. How do I get _all_ digits, including the page number in oldstyle? \setuppagenumbering[style={\Var[osf]}] would be a solution, but it looks more like a hack - I'd like to have a complete setup. This is my typescript: -- \starttypescript [map] [termes] [texnansi] \loadmapfile [termes.map] \stoptypescript \starttypescript [serif] [termes] [name] \definefontsynonym [Serif] [TeXGyreTermes-Regular] \definefontsynonym [SerifCaps] [TeXGyreTermes-RegularCaps] \definefontsynonym [SerifBold] [TeXGyreTermes-Bold] \definefontsynonym [SerifBoldCaps] [TeXGyreTermes-BoldCaps] \definefontsynonym [SerifItalic] [TeXGyreTermes-Italic] \definefontsynonym [SerifItalicCaps] [TeXGyreTermes-ItalicCaps] \definefontsynonym [SerifBoldItalic] [TeXGyreTermes-BoldItalic] \definefontsynonym [SerifBoldItalicCaps] [TeXGyreTermes-BoldItalicCaps] \definefontsynonym [SerifRegularOsF] [TeXGyreTermes-RegularOsF] \definefontsynonym [SerifBoldOsF] [TeXGyreTermes-BoldOsF] \definefontsynonym [SerifItalicOsF] [TeXGyreTermes-ItalicOsF] \definefontsynonym [SerifBoldItalicOsF] [TeXGyreTermes-BoldItalicOsF] \definefontvariant [Serif][osf][OsF] \definefontsynonym [SerifRegular] [Serif] \stoptypescript \starttypescript [serif] [termes] [texnansi] \definefontsynonym [TeXGyreTermes-Regular] [TeXGyreTermes-Regular--texnansi--Fkern--Fliga] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-RegularCaps] [TeXGyreTermes-Regular--texnansi--Fkern--Fliga--Fsmcp] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-Bold] [TeXGyreTermes-Bold--texnansi--Fkern--Fliga] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-BoldCaps] [TeXGyreTermes-Bold--texnansi--Fkern--Fliga--Fsmcp] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-Italic] [TeXGyreTermes-Italic--texnansi--Fkern--Fliga] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-ItalicCaps] [TeXGyreTermes-Italic--texnansi--Fkern--Fliga--Fsmcp] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-BoldItalic] [TeXGyreTermes-BoldItalic--texnansi--Fkern--Fliga] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-BoldItalicCaps] [TeXGyreTermes-BoldItalic--texnansi--Fkern--Fliga--Fsmcp] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-RegularOsF] [TeXGyreTermes-Regular--texnansi--Fkern--Fliga--Fonum] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-BoldOsF] [TeXGyreTermes-Bold--texnansi--Fkern--Fliga--Fonum] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-ItalicOsF] [TeXGyreTermes-Italic--texnansi--Fkern--Fliga--Fonum] [encoding=texnansi] \definefontsynonym [TeXGyreTermes-BoldItalicOsF] [TeXGyreTermes-BoldItalic--texnansi--Fkern--Fliga--Fonum] [encoding=texnansi] \stoptypescript \starttypescript [termes] \definetypeface [termes][rm][serif] [termes][default][encoding=texnansi] \stoptypescript -- and this is my example file: -- \preloadtypescripts \setupencoding[default=texnansi] \usetypescriptfile[type-termes] \usetypescript[termes] \definetypeface [sample][rm][serif][termes][default][encoding=texnansi] \definebodyfontenvironment [termes][14pt][interlinespace=20pt] \setupbodyfont[sample,serif,14pt] \enableregime[utf-8] \setuptolerance [tolerant] \starttext \input tufte 0123456789 \Var[osf] \input tufte 0123456789 \stoptext -- Patrick ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] preset for max spacewidth ?
On Mon, 4 Jun 2007 16:33:34 +0200 Steffen Wolfrum [EMAIL PROTECTED] wrote: Hi, in some projects the regular (empty space) becomes quite wide, in some justified paragraphs. I guess there is a preset somewhere describing the range how far the space can be shrinked/stretched. So, in these projects I'd like to have the maximum spacewidth set a bit narrower. Just, where is this definition? Steffen Hi Steffen, the ConTeXt command to control the interword space is \setuptolerance, the problem is there is by default (correct if I am wrong) no way to choose a smaller interwordspace. The low level TeX command to overwrite the default value provided by the font ist \spacefactor normalwidth plus stretchfactor minus shrinkfactor. It is better include such commands only if you know what you are doing. I modified ConTeXts \setupinterlinespace to allow you to choose the option halfspace with a narrower interlinespace than the default value (I tested it oly with Latin Modern). It could be a bad idea to change also the shrink and stretch values. \unprotect \startvariables all halfspace: halfspace \stopvariables \def\dosetuptolerance[#1]% {\doifinsetelse\v!vertical{#1}% {\ExpandFirstAfter\processallactionsinset [#1] [ \v!verystrict=\def\bottomtolerance{}, \v!strict=\def\bottomtolerance{.050}, \v!tolerant=\def\bottomtolerance{.075}, \v!verytolerant=\def\bottomtolerance{.100}]}% {\ExpandFirstAfter\processallactionsinset [#1] [ \v!stretch=\emergencystretch\bodyfontsize, \v!halfspace=\spaceskip.25em\!!plus.125em\!!minus.125em\relax, \v!space=\spaceskip.5em\!!plus.25em\!!minus.25em\relax, \v!verystrict=\tolerance 200, \v!strict=\tolerance1500, \v!tolerant=\tolerance3000, \v!verytolerant=\tolerance4500]}} \protect \starttext Text text text text text \setuptolerance[halfspace] Text text text text text \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Publication list ragged right
Oliver Buerschaper wrote: is there a way of typesetting the publication list ragged right? Unfortunately the following doesn't work: \startalignment[right] \placepublications \stopalignment \placepublications[align=right] may work (untested) Good guess ;-) Thanks! Can I perhaps also turn off hyphenation for the whole list or individual items? I don't know, I would need the input file to try this out. Perhaps setting \lefthyphenmin to a large value would work, \setuptolerance is probably overruled by the implied \framed command. Best wishes, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spread box contents [trying again]
Hi Idris, I played with an example derived from the columns manual: \definecolumnset[example][n=2] \definecolumnsetspan[wide][n=2,background=screen] \setuptolerance[verytolerant,stretch] \setupcolors[state=start] \starttext \startcolumnset[example] \startcolumnsetspan[wide] \stretched{Here is the first line 1a} \stopcolumnsetspan \input tufte Here is the second line 2a \column \input tufte Here is the second line 2a \stopcolumnset \stoptext I do hope, that this is giving you a clue. On Mar 7, 2007, at 5:47 PM, Idris Samawi Hamid wrote: Hi gang, Did not get any feedback, I'll try again: == Date: 2007-03-02 07:34 -700 Hmm, no reply yet, maybe the following is more interesting: On Thu, 01 Mar 2007 12:30:42 -0700, Idris Samawi Hamid ishamid.at.remove.this.colostate.edu wrote: How can I evenly spread the contents of a box or column-row? In PlainTeX there is \hbox{Here\hfill is\hfill an\hfill evenly\hfill spread\hfill line.} but there must be a better (read ConTeXt-) way. I looked into thisyears ago and may have found the answer; but I've forgotten it... === \starttext \defineparagraphs[TwoColumns][n=2,distance=2cm] \setupparagraphs[TwoColumns][each][width=5cm,tolerance=stretch] \setupframedtexts[frame=off] \startframedtext[middle] \startalignment[middle] \startTwoColumns \hbox spread \textwidth{Here is the first line 1a} \TwoColumns Here \hfill is \hfill the \hfill first \hfill line \hfill 1b \stopTwoColumns \startTwoColumns Here \hfill is \hfill the \hfill second \hfill line \hfill 2a \TwoColumns Here \hfill is \hfill the \hfill second \hfill line \hfill 2b \stopTwoColumns \stopalignment \stopframedtext \stoptext == How can I get the first column right? Note that, according to the manual, \textwidth gives the width of a column but in this case it apparently gives a full \hsize. RELATED QUESTION: How can I control the distance between rows? I do not want any extra whitespace between rows (i.e., except the normal interparagraph space). Please advise! Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Willi Egger [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set page background?
Yes, but only the A7 small page changes the background. Actually, I've tried many combinations of those options before I post my problem. So I think there is something that hasn't been mentioned in the manual. \setupcolors[state=start] \setuppapersize [A7][A3] %%% %\setuparranging [2*8,rotated,doublesided] %%% \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbackgrounds [paper][background=color,backgroundcolor=red] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext hmm, may be \setuparranging [2*8,rotated,doublesided] reset backgrounds ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set page background?
On 2/28/07, Zhichu Chen [EMAIL PROTECTED] wrote: Thanks Hans, But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: + \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] Does it help if you say \setuparranging [2*8,background,rotated,doublesided] instead? The keyword was added in September. It would be much better if that would be the default, but Hans seems to prefer it that way. \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbackgrounds [paper][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set page background?
Thanks, Mojca. It's cool. On 3/2/07, Mojca Miklavec [EMAIL PROTECTED] wrote: On 2/28/07, Zhichu Chen [EMAIL PROTECTED] wrote: Thanks Hans, But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: + \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] Does it help if you say \setuparranging [2*8,background,rotated,doublesided] instead? The keyword was added in September. It would be much better if that would be the default, but Hans seems to prefer it that way. \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbackgrounds [paper][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set page background?
On 2/28/07, Zhichu Chen [EMAIL PROTECTED] wrote: Thanks Hans, But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: + \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] %%% hmm, try \setupbackgrounds[paper][state=start,background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set page background?
Thanks luigi Yes, but only the A7 small page changes the background. Actually, I've tried many combinations of those options before I post my problem. So I think there is something that hasn't been mentioned in the manual. On 2/28/07, luigi scarso [EMAIL PROTECTED] wrote: On 2/28/07, Zhichu Chen [EMAIL PROTECTED] wrote: Thanks Hans, But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: + \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] what about \setupbackgrounds [page][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext and it appears nothing changed. So I wonder if you could look it up again for me. Thank you On 2/28/07, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi there, I know there is a command \setupbackgrounds[page][background=???], and I can use \defineoverlay[page][\useMPgraphic{page}], then use MetaPost to draw the page background. But I also use something like \setuppapersize[A7][A3] to compose the output, and it seems that the \setupbackgrounds command only affect on A7 sub-paper. I also noticed a command \setuplayout[marking=color]that really acts on the A3 paper rather than the subpaper. So I think there should be such a macro that handles the whole page's background. Can anyone tell me about it? you can set up backgrounds for page, leftpage, rightpage, paper etc so in your case ... use \setupbackgrounds[paper][...] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \head and pagebreak
Idris Samawi Hamid wrote: A folllow-up: On Sun, 10 Dec 2006 21:41:54 -0700, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear gang, Is there a way to absolutely forbid a pagebreak between \head and its following paragraph? [intro] tries hard but sometimes fails. I tried \setupitemize[each] [inmargin,autointro] \setuptolerance[vertical,stretch] but I still get pagebreaks. One problem that occurs is the following: = \head text \index{more text}{more text} = If there is a page break after \head then in the index 'more text' will be listed as ocurring on page n when in fact it occurs on page n+1. This makes the problem that much more urgent:-) head text\index{...} -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \head and pagebreak
On Mon, 11 Dec 2006 05:02:03 -0700, Hans Hagen [EMAIL PROTECTED] wrote: Is there a way to absolutely forbid a pagebreak between \head and its following paragraph? [intro] tries hard but sometimes fails. I tried \setupitemize[each] [inmargin,autointro] \setuptolerance[vertical,stretch] but I still get pagebreaks. One problem that occurs is the following: = \head text \index{more text}{more text} = If there is a page break after \head then in the index 'more text' will be listed as ocurring on page n when in fact it occurs on page n+1. This makes the problem that much more urgent:-) head text\index{...} But I want the indexed entry to be registered in the second paragraph eg = \head Asani, Ali S. \index{The Bujh Niranjan: An Ismaili Mystical Poem}{\bf The Bujh Niranjan: An Ismaili Mystical Poem}, Cambridge, Mass: Harvard University Press, 1991. = if I do = \head Asani, Ali S.\index{The Bujh Niranjan: An Ismaili Mystical Poem} {\bf The Bujh Niranjan: An Ismaili Mystical Poem}, Cambridge, Mass: Harvard University Press, 1991. = That just compounds the problem. EUREKA! I just found something that seems to work: \leavemode\index When I do this there no pagebreaks after \head at all. I wonder why this affects the pagebreaks... What is the proper way to define my own \INDEX in terms of index? \def\INDEX#1#2#3{\leavevmode\index[#1]{#2}{#3}} does not work properly (maybe because the [] option is not always used). Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \head and pagebreak
Dear gang, Is there a way to absolutely forbid a pagebreak between \head and its following paragraph? [intro] tries hard but sometimes fails. I tried \setupitemize[each] [inmargin,autointro] \setuptolerance[vertical,stretch] but I still get pagebreaks. Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] margintext style and more
Dear Sirs I have two questions for you: 1. How i can changing the margintext style? 2. In some cases I found a overlapping between to consecutive margintext notes and between a sequence of a inmargin and margintext notes. How I can fix this? Thanks in advance Em 10/09/2006, às 9:16, batela escreveu: For changing inmargin style I make \setupinmargin [right] [style=\MarginStyle] Are there a similar solution for \margintext? thanks Em 10/09/2006, às 3:48, batela escreveu: Dear Sirs Is there any way to format margintext notes. I want to justify and apply this format to my margin notes: \def\MarginStyle{% \switchtobodyfont[7pt]\setupinterlinespace[line=9pt]% \setuphz\setupprot\emergencystretch=.5em \setuptolerance[{horizontal,verytolerant}]% } Thanks in advance Jorge ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Um Abraço, Jorge Magalhães ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Abraços, Jorge Manuel de Almeida Magalhães ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] margintext style and more
batela wrote: Dear Sirs I have two questions for you: 1. How i can changing the margintext style? As I understand it, you also use \setupinmargin for this (see context manual, top of page 63). 2. In some cases I found a overlapping between to consecutive margintext notes and between a sequence of a inmargin and margintext notes. How I can fix this? I don't think that there is any bookkeeping of the inmargin stuff. But maybe I'm wrong. Greetings, Peter Thanks in advance Em 10/09/2006, às 9:16, batela escreveu: For changing inmargin style I make \setupinmargin [right] [style=\MarginStyle] Are there a similar solution for \margintext? thanks Em 10/09/2006, às 3:48, batela escreveu: Dear Sirs Is there any way to format margintext notes. I want to justify and apply this format to my margin notes: \def\MarginStyle{% \switchtobodyfont[7pt]\setupinterlinespace[line=9pt]% \setuphz\setupprot\emergencystretch=.5em \setuptolerance[{horizontal,verytolerant}]% } Thanks in advance Jorge ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Um Abraço, Jorge Magalhães ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Abraços, Jorge Manuel de Almeida Magalhães ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] margintext style
Dear Sirs Is there any way to format margintext notes. I want to justify and apply this format to my margin notes: \def\MarginStyle{% \switchtobodyfont[7pt]\setupinterlinespace[line=9pt]% \setuphz\setupprot\emergencystretch=.5em \setuptolerance[{horizontal,verytolerant}]% } Thanks in advance Jorge ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] margintext style
For changing inmargin style I make \setupinmargin [right] [style=\MarginStyle] Are there a similar solution for \margintext? thanks Em 10/09/2006, às 3:48, batela escreveu: Dear Sirs Is there any way to format margintext notes. I want to justify and apply this format to my margin notes: \def\MarginStyle{% \switchtobodyfont[7pt]\setupinterlinespace[line=9pt]% \setuphz\setupprot\emergencystretch=.5em \setuptolerance[{horizontal,verytolerant}]% } Thanks in advance Jorge ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Um Abraço, Jorge Magalhães ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Footnotes on wrong page
I wrote about this a few days ago, but did not get a response, perhaps because I included sample code. So...this time I am including the main part of my code so you can perhaps see what I am doing wrong. My problem is that many of my footnotes show up on the wrong page. Sometimes the text that references the footnote is at the bottom of a page, and the footnote number shows up with a small graphic arrow next to it. In these cases, the actual footnote text will show up on the next page. Also in this case, the footnote number with the footnote text will usually be labeled 1, even though the next footnote after it (the one that really belongs on that page) is numbered 1 also. Sometimes footnote numbers appear in the text even though there is no footnote on any page that has that number. Any help is appreciated. Jeff Dodson _ Call Anyone, Anytime, Anywhere in the World - FREE! Free Internet calling from NetZero Voice Visit http://www.netzerovoice.com today! % Use t-ancientgreek module for typesetting ancient Koine Greek \usemodule[ancientgreek][font=Aristarcoj,scale=1.1] %\usemodule[ancientgreek][font=KadmosNew,scale=1] %\usemodule[ancientgreek][font=GreekGentiumAlt,scale=1] % Set up custom paper size \definepapersize[TradePaper][width=6in,height=9in] \setuppapersize[TradePaper][TradePaper] % Set up page layout \setuplayout [ topspace=.3in, %bottomspace=.25in, bottomspace=0in, bottom=.25in, bottomdistance=.1in, cutspace=0in, backspace=.5in, header=.2in, headerdistance=.1in, footer=0in, rightmargin=0in, leftmargin=0in, height=8.15in, width=4.75in ] % Use 12pt font by default \setupbodyfont[Serif,11pt] % Set up line-break tolerance \setuptolerance[horizontal,space,verytolerant] \raggedbottom % Set up indentation parameters \setupindenting[big,yes] %\setupindenting[medium,yes] \indenting[always] % Set up inter-paragraph spacing \setupwhitespace[medium] % Set up a counter that will act as our footnote label \newcounter\fnumlabel % Set up special command to turn off default footnote numbers next to footnote text \def\deffnumsoff#1{\tfxx} % Set up footnotes in paragraph form (n=0) with proper font size, etc., and no default footnote numbers. % Footnote numbers will be part of actual footnote text. \setupfootnotes[n=0,bodyfont=9pt,way=bypage,before=\crlf\hairline,textcommand=\vii\high,style=\it\vii,rule=off,numbercommand=\deffnumsoff,split=tolerant] % Left-justify footnotes \setupfootnotedefinition[distance=0pt] % Set up custom macro to replace default \footnote macro. This macro will include the footnote number % as part of the footnote text and then increment the footnote label counter for the next footnote. \def\fnote#1#2{\footnote[\fnumlabel]{\note[\fnumlabel]\localgreek{#1}, \ix{\it{#2}}}\increment\fnumlabel} % Set up footnotes so that there is hyphenation %\setupnote[footnote][align={normal,hyphenated}] \setupnote[footnote][align={nothyphenated,stretch,verytolerant}] % Set up macros to handle drop-cap chapter numbers %\def\DropChapOne{\DroppedCaps{}{Serif}{4\baselineskip}{0pt}{2\baselineskip}{3}} \def\DropChapOne{\DroppedCaps{}{Serif}{2.4\baselineskip}{5pt}{1\baselineskip}{2}} \def\DropChap{\DroppedCaps{}{Serif}{2.4\baselineskip}{5pt}{1\baselineskip}{2}} % Set up marker for verses \definemarking[verse][verses] % % Text formatting macros: % % Very large dropped number for first chapter number of book \def\bookbeg#1#2{\DropChapOne{#1}\marking[verse]{#1:#2}} % Large dropped number for subsequent chapter numbers \def\chapnum#1#2{\par\DropChap{#1}\marking[verse]{#1:#2}} % Smaller, bold number followed by a non-breaking space for verse numbers \def\versenum#1#2{{\tfx\bf #2}~\marking[verse]{#1:#2}} % Macro for all Greek text. Note that we turn off hyphenation in this text. \def\lg#1{\localgreek{#1}} \def\lag#1{\localaltgreek{#1}} % Book-style alternating pages \setuppagenumbering[alternative=doublesided,location=,way=bytext,partnumber=no] \setupbottomtexts[pagenumber] \setupbottom[style=\tf,state=high] % Clear out header texts, then set them up again \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] % Set up header text for odd pages \startsetups[text a] \hfill \getmarking[chapter] \hfill \llap{\getmarking[verse][first]--\getmarking[verse][last]} \stopsetups % Set up header text for even pages \startsetups[text b] \rlap{\getmarking[verse][first]--\getmarking[verse][last]} \hfill \getmarking[chapter] \hfill \stopsetups % Hairline under every header %\setupheader[text][after=\hairline] \setupbackgrounds[header][text][frame=off,bottomframe=on] % Special command to turn off chapter title numbers \def\nochapnum#1{\crlf\crlf\crlf} % Set up beginning-of-chapter pages so that they don't have headers \setuphead[chapter][numbercommand=\nochapnum,distance=0pt,header=high,footer=empty,textstyle=\tfd,alternative=middle
[NTG-context] Paragraph line breaking
Hello, I'm trying to tweak some parameters to avoid lines going into the margin when it contains long words. Using \setuptolerance[tolerant (or verytolerant)] helps much but sometimes it isn't enough. My questions are: - Using \filename doesn't hyphenate on backslash characters (which is interesting for Windows paths). Is is intended? - Is there a macro or something like this that I could put before the maybe too long word so that it breaks the line if the word doesn't fit in the line? - Is there a mechanism to define an arbitrary hyphenation pattern? - What are the other parameters I could try to avoid an overlong line? Looking at the style.pdf file, i don't realy know what is pertinent for my purpose. Thanks for any hint. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Question about t-ancientgreek module
On Thu, 2006-05-25 at 13:37 +, [EMAIL PROTECTED] wrote: Hello, I have a question about the t-ancientgreek module for typesetting ancient Greek. I am using DroppedCaps (although I am dropping a numeral instead of a letter in a paragraph...I modified the DroppedString to contain the numerals 0-9) in a paragraph of ancient Greek typeset in the GreekGentiumAlt font. Most paragraphs look fine, but occasionally a word will extend out into the margin instead of being hyphenated or wrapped over into the next line. Here is a bit of sample code that shows this: % Use t-ancientgreek module for typesetting ancient Koine Greek \usemodule[ancientgreek][font=GreekGentiumAlt,scale=1] % Set up indentation parameters \setupindenting[medium] \indenting[always] % Set up inter-paragraph spacing \setupwhitespace[medium] % Set up macros to handle drop-cap chapter numbers \def\DropChapOne{\DroppedCaps{}{Serif}{3.8\baselineskip}{2pt}{2 \baselineskip}{3}} \def\DropChap{\DroppedCaps{}{Serif}{2.3\baselineskip}{3pt}{1 \baselineskip}{2}} % Set up book start macro...Syntax: book[Chapter][Verse]{Text} \def\book[#1][#2]#3{\par\DropChapOne{#1}\localgreek{#3}} % Set up chapter start macro...Syntax: chapt[Chapter][Verse]{Text} \def\chap[#1][#2]#3{\par\DropChap{#1}\localgreek{#3}} % Set up verse macro...Syntax: verse[Chapter][Verse]{Text} \def\verse[#1][#2]#3{\high{\tfxx \bf #2}\localgreek{#3}} \starttext \book[1][1]{Ὃ ἦ ἀ'' ἀῆ, ὃ ἀ, ὃ ἑ ῖ ὀῖ ἡῶ, ὃ ἐ, ὶ ἱ ῖ ἡῶ ἐ ὶ ῦ ῆ ῆ.} \verse[1][2]{ὶ ἡ ὴ ἐ, ὶ ἑ, ὶ ῦ, ὶ ἀ ὑῖ ὴ ὴ ὴ ἰ, ἥ ἦ ὸ ὸ , ὶ ἐ ἡῖ.} \verse[1][3]{Ὃ ἑ ὶ ἀ, ἀ ὑῖ, ἵ ὶ ὑῖ ἔ '' ἡῶ· ὶ ἡ ὲ ἡ ἡ ὰ ῦ ὸ ὶ ὰ ῦ ἱῦ ὐῦ Ἰῦ ῦ·}\stoptext Note also that some fonts show this problem while others do not. For instance, the Aristarcoj font does not show this problem. Also, if I remove the dropped cap numeral from any given paragraph, the problem does away. Does anyone know what I might be doing wrong, or how I can correct this problem? Any help anyone is able to give will be greatly appreciated! Jeff Dodson Jeff, what exactly is wrong with the output you get? Your file compiles perfectly here, I have no words sticking out in the margins. Also note that in your example file ConTeXt will not be able to find any hyphenation points because these are not Greek words. I have never used Dropped Caps, so I don't know whether there's any interference with the ancientgreek module. The way you describe the problem, it simply looks like (Con)TeX(t) just cannot find the right place to break lines; this may happen if, e.g., your paragraphs are very narrow. So here's a couple of questions and suggestions to help you troubleshoot: 1. Do you get any hyphenation in the Greek text at all (assuming you are using real Greek text, not dummy text like in your sample)? Test with something like \startgreek \hyphenatedword{filosfo'umena} \stopgreek 2. Check if patterns for ancient Greek are included in the format you use. Go to the directory where your formats are located (kpsewhich cont-en.fmt) and run grep agr cont-en.log Here's what I get on my box: grep agr cont-en.log encoding: coding agr is loaded (/usr/local/share/texmf/tex/context/base/enco-agr.tex) language: patterns for agr not loaded language: patterns for agr not loaded language: patterns agr for agr loaded (n=24,e=agr,m=agr) (/usr/local/share/texmf/tex/context/patterns/lang-agr.pat) language: hyphenations agr for agr loaded (n=24,e=agr,m=agr) (/usr/local/share/texmf/tex/context/patterns/lang-agr.hyp) 3. Check that the patterns for ancient Greek are actually used when you compile your file (I just see that there's a problem in my installation on Suse 10.1 while everyhting works fine in Fedora Core 5: grep agr testfile.log 22-2:3 us-ec:ec-23-2:3 agr-agr:agr-24-2:3 da-ec:ec-25-2:3 sv-ec:ec- [snip] This is the line that shows that agr patterns are used. 4. If you do get hyphenation, try setting the tolerance a bit higher in your preamble: \setuptolerance[strict] HTH Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Question about t-ancientgreek module
Thomas— I followed your instructions in step 2 and see that the Greek hyphenation patterns are not loaded in the format I currently use. How can I rectify this? Best, Alan PS lang-agr.hyp and lang-agr.pat currently reside in /usr/local/teTeX/share/texmf.local/tex/context/patterns On May 25, 2006, at 12:10 PM, Thomas A. Schmitz wrote: On Thu, 2006-05-25 at 13:37 +, [EMAIL PROTECTED] wrote: Hello, I have a question about the t-ancientgreek module for typesetting ancient Greek. I am using DroppedCaps (although I am dropping a numeral instead of a letter in a paragraph...I modified the DroppedString to contain the numerals 0-9) in a paragraph of ancient Greek typeset in the GreekGentiumAlt font. Most paragraphs look fine, but occasionally a word will extend out into the margin instead of being hyphenated or wrapped over into the next line. Here is a bit of sample code that shows this: % Use t-ancientgreek module for typesetting ancient Koine Greek \usemodule[ancientgreek][font=GreekGentiumAlt,scale=1] % Set up indentation parameters \setupindenting[medium] \indenting[always] % Set up inter-paragraph spacing \setupwhitespace[medium] % Set up macros to handle drop-cap chapter numbers \def\DropChapOne{\DroppedCaps{}{Serif}{3.8\baselineskip}{2pt}{2 \baselineskip}{3}} \def\DropChap{\DroppedCaps{}{Serif}{2.3\baselineskip}{3pt}{1 \baselineskip}{2}} % Set up book start macro...Syntax: book[Chapter][Verse]{Text} \def\book[#1][#2]#3{\par\DropChapOne{#1}\localgreek{#3}} % Set up chapter start macro...Syntax: chapt[Chapter][Verse]{Text} \def\chap[#1][#2]#3{\par\DropChap{#1}\localgreek{#3}} % Set up verse macro...Syntax: verse[Chapter][Verse]{Text} \def\verse[#1][#2]#3{\high{\tfxx \bf #2}\localgreek{#3}} \starttext \book[1][1]{Ὃ ἦ ἀ'' ἀῆ, ὃ ἀ, ὃ ἑ ῖ ὀῖ ἡῶ, ὃ ἐ, ὶ ἱ ῖ ἡῶ ἐ ὶ ῦ ῆ ῆ.} \verse[1][2]{ὶ ἡ ὴ ἐ, ὶ ἑ, ὶ ῦ, ὶ ἀ ὑῖ ὴ ὴ ὴ ἰ, ἥ ἦ ὸ ὸ , ὶ ἐ ἡῖ.} \verse[1][3]{Ὃ ἑ ὶ ἀ, ἀ ὑῖ, ἵ ὶ ὑῖ ἔ '' ἡῶ· ὶ ἡ ὲ ἡ ἡ ὰ ῦ ὸ ὶ ὰ ῦ ἱῦ ὐῦ Ἰῦ ῦ·}\stoptext Note also that some fonts show this problem while others do not. For instance, the Aristarcoj font does not show this problem. Also, if I remove the dropped cap numeral from any given paragraph, the problem does away. Does anyone know what I might be doing wrong, or how I can correct this problem? Any help anyone is able to give will be greatly appreciated! Jeff Dodson Jeff, what exactly is wrong with the output you get? Your file compiles perfectly here, I have no words sticking out in the margins. Also note that in your example file ConTeXt will not be able to find any hyphenation points because these are not Greek words. I have never used Dropped Caps, so I don't know whether there's any interference with the ancientgreek module. The way you describe the problem, it simply looks like (Con)TeX(t) just cannot find the right place to break lines; this may happen if, e.g., your paragraphs are very narrow. So here's a couple of questions and suggestions to help you troubleshoot: 1. Do you get any hyphenation in the Greek text at all (assuming you are using real Greek text, not dummy text like in your sample)? Test with something like \startgreek \hyphenatedword{filosfo'umena} \stopgreek 2. Check if patterns for ancient Greek are included in the format you use. Go to the directory where your formats are located (kpsewhich cont-en.fmt) and run grep agr cont-en.log Here's what I get on my box: grep agr cont-en.log encoding: coding agr is loaded (/usr/local/share/texmf/tex/context/base/enco-agr.tex) language: patterns for agr not loaded language: patterns for agr not loaded language: patterns agr for agr loaded (n=24,e=agr,m=agr) (/usr/local/share/texmf/tex/context/patterns/lang-agr.pat) language: hyphenations agr for agr loaded (n=24,e=agr,m=agr) (/usr/local/share/texmf/tex/context/patterns/lang-agr.hyp) 3. Check that the patterns for ancient Greek are actually used when you compile your file (I just see that there's a problem in my installation on Suse 10.1 while everyhting works fine in Fedora Core 5: grep agr testfile.log 22-2:3 us-ec:ec-23-2:3 agr-agr:agr-24-2:3 da-ec:ec-25-2:3 sv-ec:ec- [snip] This is the line that shows that agr patterns are used. 4. If you do get hyphenation, try setting the tolerance a bit higher in your preamble: \setuptolerance[strict] HTH Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problems when using columnset and certain fonts
Hi all, I'm currently playing with context columns / columnsets and several fonts. I've come across a strange problem with columnsets when using certain fonts. I first noticed it when I tried to use one of the Windows TTF fonts, Times New Roman. That's the one I've mainly used in the past with Latex. I've been through all the steps described in the wiki, the practex 2005/2 issue or Bill McClain's context/pdftex beginner's page to embed TTF into context. The problem I encountered was that typesetting with some fonts goes terribly berserk when switching between \tf and \it and back. I thought this was just 'me' because I don't know much about context yet, and integrating ttf is complicated. So I looked at http://www.fiee.net/texnique/?menu=0-1-4 (it was mentioned in January in the 'Problems installing Gentium TTF' thread) which has some font definitions for context. I tested all of them and guess what, one of them shows the same problem. It's the phosphorus font, which I used to cook up a minimal example, just that anybody can test it without my own local font definitions, which may be wrong anyway. So here's my questions regarding this phenomenon. 1) Is it a problem with the font being used? (In this case there's probably no workaround and certain fonts simply can't be used). 2) Is it a problem with the font/typescript definition files? If so, how can it be fixed? (This would be my favourite, it would mean it can be fixed locally, althogh this also means I made a mistake somewhere :-)) 3) Is it a problem within the context columnset? (This I wouldn't like much since I couldn't fix it myself...) It would be nice if one of the wizards could look into this, because it puzzles me no end... I'm using miktex on windows xp sp2. For version information, the log file says: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 ConTeXt ver: 2006.04.24 23:37 fmt: 2006.5.16 TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 Find the minimal example below. Thanks... Michael % start of example % interface=en output=pdftex \mainlanguage[en] % to test, downloadinstall the phosphorus font from % http://www.fiee.net/texnique/?menu=0-1-4 % without these five lines all three chapters % work with the default font setup \setupencoding[default=qx] \usetypescriptfile[type-apostrophe-phosphorus] \usetypescript[fiee][apostrophe-phosphorus] \setupbodyfont[apostrophe-phosphorus, rm, 12pt] \setupbodyfontenvironment[default][em=italic] \setuptolerance[verytolerant] \pretolerance \tolerance \setuplayout[width=17cm] \setuplayout[margin=0cm] \setuplayout[backspace=2.4cm] \setuplayout[headerdistance=5pt] \setuplayout[header=17pt] \setuplayout[footerdistance=5pt] \setuplayout[footer=17pt] \setuplayout[location=doublesided] \definecolumnset[test][n=3,distance=15pt,balance=yes] \starttext \showgrid %typesetting ok when using columns, \it and \tf \moveongrid[both] \startlinecorrection \chapter{test} \stoplinecorrection \startcolumns[n=3,distance=15pt,balance=no] \dorecurse{10}{\tf \input knuth \par \it \input tufte \par} \stopcolumns \page %typesetting ok when using columnset and not \it + \tf \moveongrid[both] \startlinecorrection \chapter{test} \stoplinecorrection \startcolumnset[test] \dorecurse{10}{\tf \input knuth \par \input tufte \par} \stopcolumnset\page %typesetting terribly wrong when using columnset, \it and \tf \moveongrid[both] \startlinecorrection \chapter{test} \stoplinecorrection \startcolumnset[test] \dorecurse{10}{\tf \input knuth \par \it \input tufte \par} \stopcolumnset \stoptext % stop of example ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \startlines and whitespace
hmm, on Tue, May 16, 2006 at 06:27:12PM -0400, Aditya Mahajan said that Use the before and after mechanism. \setuplines[before={\startnarrower[3cm]},after=\stopnarrower] \midaligned{test} \startlines There snores -- I mean sleeps -- my wife so frail. There snores -- I mean sleeps -- my wife so frail. \stoplines thanks for the tip. sometimes there still is extra whitespace. but \nowhitespace seems to supress them without problems. i think i should also add, that the document has \setuptolerance [strict] so it's not verystrict... -f -- we're born free and taxed to death. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Columns (text alignment)
Fabio Mancinelli wrote: Peter Rolf wrote: using \blank[line] (and also the derived halfline) inserts *no* glue (see definition in context manual). use small,medium,big or any fraction/combination of these instead. I did several (simpler) tests: \starttext \startcolumns \showmakeup \dorecurse{5}{ \section{Section} \input text } \stopcolumns \stoptext Line alignment is totally wrong. Putting sections while having columns leads to wrong alinged lines. I tried several combinations of the following: \setuplayou[grid=yes], \setupcolumns[blank={line,fixed}], various align assignments... The result is always the same. I have read the manual where it is stated that When a switch in fontsize is desirable you should do so before starting the column mechanism. (page 65). I don't see how this statement is applicable to \section(s) Thanks, Fabio Hi Fabio, sorry, my first advice was bad. In the meantime I have played around with columns and everything is working as expected. There are several problems in your source. The first is, that you have to use \setuplayout[grid=yes] Read about grid snapping of headers in the details.pdf manual and look into the columns environment (defined at the beginning of the columns manual). You can then adjust the headers (2 lines high) vertically by using the 'grid' parameter. The problem with the graphic placing results from using \startcolumns instead of \startcolumnset (see example in columns.pdf). I attach my working example. Greetings, Peter P.S.: text.tex is a simple text paragraph without any control sequence ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context \setupoutput[pdftex] %\usetypescript[adobekb][\defaultencoding] %\usetypescript[sans] %\setupbodyfont[sans,10pt] \loadmapfile [texnansi-bitstrea-zapfhumanist.map] \usetypescriptfile [type-bitstrea-zapfhumanist] \usetypescript [ZapfHumanist] \setupbodyfont [ZapfHumanist,11pt]% \definefont [SectionHeaderFont] [ZapfHumanist-Bold at 14pt] \definefont [SubSectionHeaderFont] [ZapfHumanist-Bold at 12pt] \definefont [SubSubSectionHeaderFont] [ZapfHumanist-Bold at 10pt] \setuplayout[ width=middle, height=middle, grid=yes, lines=50, topspace=1cm, bottomspace=1cm, header=1cm, footer=1cm, backspace=1cm, ] \setuptolerance[verytolerant,stretch] \setuphead[section][ style=\SectionHeaderFont, grid={line,4pt}, % before=, % after=, ] \setuphead[subsection][ style=\SubSectionHeaderFont, grid={line,-4pt}, before=\blank, after=, ] \def\runin#1#2{#2.} \setuphead[subsubsection][ style=\SubSubSectionHeaderFont, % before=\blank, command=\runin, alternative=text, ] \setupheadertexts[{\sl XNemesis.org Research and Development}][{\sl The vault}] \setuppagenumbering[location=bottom] \useexternalfigure[test][ringbearer][frame=true] % resolution 96ppi, 256colors \definecolumnset[threecolumns][n=3] \definecolumnsetspan[spantwo][n=2] \definecolumnsetspan[spanthree][n=3] \definecolumnsethsize{threecolumns}{1}{1}\One \definecolumnsethsize{threecolumns}{1}{2}\Two \definecolumnsethsize{threecolumns}{1}{3}\Three %% \starttext \showstruts \showgrid \showgridboxes %\startcolumns \startcolumnset[threecolumns] % \startcolumnsetspan[spantwo] \bgroup \switchtobodyfont[32pt] {\bf Title} \switchtobodyfont[20pt] {\par\noindent\sl Subtitle} \blank[20pt, flexible] \egroup \stopcolumnsetspan % \bgroup \blank \setupindenting[none] \switchtobodyfont[9pt] {\bf Abstract}\par AbstractHere \ignorespaces \egroup \bgroup \blank \setupindenting[none] \switchtobodyfont[9pt] {\bf Keywords:} Keywords here \ignorespaces \egroup \dorecurse{4}{ \section{Section} \dorecurse{1}{ \input tufte \startitemize[packed] \item A \item B \item C \stopitemize } \subsection{Subsection} \dorecurse{1}{\input tufte\relax} \placefigure[btlr]{Simple figure}{\externalfigure[test][width=\Two]} \subsubsection{Subsubsection} \dorecurse{1}{\input tufte} } \blank[3*line, flexible] \bgroup \switchtobodyfont[9pt] {\bf Author}\par Author \ignorespaces \egroup \stopcolumnset \stoptext %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] line break
Some time ago, I inquired about the problem of an unwanted linebreak. The linebreak is inserted after an \inothermargin command, if at the same time there is a figure occupying the margin and some part of the textarea on the opposite side (a type of figure here called vignette). When I run the .tex file (see below) on the wiki, I get the same result as on my computer. Could somebody tell me whether there is an abvious mistake in what I did or that's the way it is, and nothing can be done (I include the complete setuparea, just to be sure). Thanks a lot, Jörg. can you make a minimal complete example \enableregime [il1] \mainlanguage [de] \usemodule[greek] \usemodule[units] \setuplayout[height=26.5cm,backspace=2cm,topspace=1.7cm,footer=1.2cm] \setupbodyfont[11pt] \setuppagenumbering[alternative=doublesided,location=footer] \setupheader[state=none] \setuptolerance[tolerant, stretch] \setupwhitespace[medium] \setupitemize[headstyle=italic] \definehead[Bookchapter][chapter] \setuphead[Bookchapter][page=yes,conversion=Character] \setuptables[bodyfont=small] %Figures partially in margin \definefloat[vignette][figure] \setupfloat[vignette][leftmargindistance=- \outermargintotal,rightmargindistance=- \outermargintotal,default={outer,none,low}] \setupcaption[vignette][number=no] %Figures digestion_chapter \setupexternalfigures[directory=./FIGURES/] \useexternalfigure[fig:acidsecr][di_acidsecr] \useexternalfigure[fig:di_cascade][di_cascade][width=0.5\textwidth] \useexternalfigure[fig:di_proteins][di_proteins] \useexternalfigure[fig:di_carbo][di_carbo][width=\textwidth] \useexternalfigure[fig:di_lipids][di_lipids] \setuptextrules[style=\ss] \showframe \starttext \placevignette{}{\externalfigure[di_B12_marg][width=4cm]} Die Resorption des {\em wasserloeslichen} Vitamins B\low{12} (= Cobalamin, s. Formel) faellt aus dem Rahmen: B\low{12} wird nur als Komplex mit dem \quotation{Intrinsic Factor}, einem Glycoprotein aus den Belegzellen des Magens, {\em im Ileum} aufgenommen (Intrinsic, weil der Faktor aus dem Koerper stammt -- dazu passend bezeichnet man B\low{12} auch als \quotation{Extrinsic Factor}).\inothermargin{\ssd Pa} Vitamin B\low{12} wird von Bakterien synthetisiert und stammt ausschliesslich aus tierischer Nahrung; Veganer/innen, die nicht nur auf Fleisch, sondern auch auf Eier und Milchprodukte verzichten, besitzen einen entsprechend niedrigen Vorrat des Vitamins. Haeufigste Ursache fuer die {\em pernizioese Anaemie}, die klassische B\low{12}-Mangelkrankheit, ist allerdings nicht eine Fehlernaehrung, sondern eine verminderte Resorption im Ileum, entweder weil dessen Schleimhaut entzuendet ist (Sprue), oder weil eine erkrankte Magenschleimhaut zuwenig Intrinsic Factor produziert. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] line break
Dear Hans, works ok here can you make a minimal complete example Assuming that means including the code before \starttext: \enableregime [il1] \mainlanguage [de] \usemodule[greek] \usemodule[units] \setuplayout[height=26.5cm,backspace=2cm,topspace=1.7cm,footer=1.2cm] \setupbodyfont[11pt] \setuppagenumbering[alternative=doublesided,location=footer] \setupheader[state=none] \setuptolerance[tolerant, stretch] \setupwhitespace[medium] \setupitemize[headstyle=italic] \definehead[Bookchapter][chapter] \setuphead[Bookchapter][page=yes,conversion=Character] \setuptables[bodyfont=small] %Figures partially in margin \definefloat[vignette][figure] \setupfloat[vignette][leftmargindistance=- \outermargintotal,rightmargindistance=- \outermargintotal,default={outer,none,low}] \setupcaption[vignette][number=no] %Figures digestion_chapter \setupexternalfigures[directory=./FIGURES/] \useexternalfigure[fig:acidsecr][di_acidsecr] \useexternalfigure[fig:di_cascade][di_cascade][width=0.5\textwidth] \useexternalfigure[fig:di_proteins][di_proteins] \useexternalfigure[fig:di_carbo][di_carbo][width=\textwidth] \useexternalfigure[fig:di_lipids][di_lipids] \setuptextrules[style=\ss] %\showframe \starttext \placevignette{}{\externalfigure[di_B12_marg][width=4cm]} Die Resorption des {\em wasserloeslichen} Vitamins B\low{12} (= Cobalamin, s. Formel) faellt aus dem Rahmen: B\low{12} wird nur als Komplex mit dem \quotation{Intrinsic Factor}, einem Glycoprotein aus den Belegzellen des Magens, {\em im Ileum} aufgenommen (Intrinsic, weil der Faktor aus dem Koerper stammt -- dazu passend bezeichnet man B\low{12} auch als \quotation{Extrinsic Factor}).\inothermargin{\ssd Pa} Vitamin B\low{12} wird von Bakterien synthetisiert und stammt ausschliesslich aus tierischer Nahrung; Veganer/innen, die nicht nur auf Fleisch, sondern auch auf Eier und Milchprodukte verzichten, besitzen einen entsprechend niedrigen Vorrat des Vitamins. Haeufigste Ursache fuer die {\em pernizioese Anaemie}, die klassische B\low{12}-Mangelkrankheit, ist allerdings nicht eine Fehlernaehrung, sondern eine verminderte Resorption im Ileum, entweder weil dessen Schleimhaut entzuendet ist (Sprue), oder weil eine erkrankte Magenschleimhaut zuwenig Intrinsic Factor produziert. \stoptext Thanks, Jörg. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] columnset balancing
Vit Zyka wrote: Hans Hagen wrote: Vit Zyka wrote - each chapter head spans two columns (it assumes stop columns, balancing, continuing on the same page without pagebreak, put chapter head, start columnset on the rest of the page) you can do that with 'manual balancing' Thank you, Hans, for your reply. I know that with such a complex layout manual adjustment is necessary. I know about manual balancing. But how to avoid page break after columnset closing? It is feasible or I will have to abjured this idea? the problem with automated balancing in this model is that it's near to impossible (never say never with tex, but its definitely messsy code) to combine this with the advanced float and area placement features; so, your flow will be: - typeset article - determine balance requirements - setup balancing - retypeset article - continue on same page That is the point. How? % output=pdftex interface=en \setuplayout[grid=yes] \showgrid \showstruts % gaat nogal fout zonder grid \setuptolerance[verytolerant] \definecolumnset [test-1] [n=2] \definecolumnset [test-2] [n=3] \starttext \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnset [test-1] [balance=yes] \setupcolumnset [test-2] [balance=top] \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][19] \setupcolumnsetlines[test-2][1][2][18] \setupcolumnsetlines[test-2][1][3][19] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][0] \setupcolumnsetlines[test-2][1][2][-2] \setupcolumnsetlines[test-2][1][3][0] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {6}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetstart[test-2][1][1][20] \setupcolumnsetstart[test-2][1][2][20] \setupcolumnsetstart[test-2][1][3][20] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][-20] \setupcolumnsetlines[test-2][1][2][-20] \setupcolumnsetlines[test-2][1][3][-20] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \stoptext -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Tolerance etc.
John R. Culleton wrote: Now and then, particularly with narrow pages, a paragraph just doesn't come out right and a line sticks into the right margin. In plain I always fiddled with \tolerance, \pretolerance and occasionally used \looseness to fix things up. Should I continue to use these primitives or is there a more Contextish way to handle these situations? \setuptolerance[verytolerant] or \setuptolerance[verytolerant,stretch] BTW I am using both optical alignment and the hz business. Not sure that the latter is working. you can check that in the font list of acrobat Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] OpenType, Jenson, handling
Hans Hagen said this at Fri, 22 Apr 2005 20:36:43 +0200: David Wooten wrote: Greetings all, Adam, Have you had any success in using hanging alignment handling with Adobe Jenson Pro? The last reference to this I've found was in your 2003 My Way on the subject. it's indepent of the font, Actually, the thing David asked about was a weird bug turned up between FontForge's font conversion, that particular font, and the pdfetex of that time. I haven't seen anything like that since, especially since using the --lcdf switch. In any case, that font works for me now. texfont --ma --in --lcdf --pre --ve=adobe --co=jenson --va=liga,kern,onum,pnum texfont --ma --in --lcdf --pre --ve=adobe --co=jenson -- va=liga,kern,smcp,lnum,tnum - 8 --- \loadmapfile[texnansi-LIGA-KERN-ONUM-PNUM-adobe-jenson] \loadmapfile[texnansi-LIGA-KERN-SMCP-LNUM-TNUM-adobe-jenson] \def\SerifTypefaceFeatures{LIGA-KERN-ONUM-PNUM} \def\SerifCapsTypefaceFeatures{LIGA-KERN-SMCP-LNUM-TNUM} % reduced from a more elaborate typescript \starttypescript [serif] [JensonPro] [texnansi,ec,8r] \definefontsynonym[Serif] [\typescriptthree- \SerifTypefaceFeatures-AJensonPro-Regular] [encoding=\typescriptthree,handling=pure] \definefontsynonym[SerifItalic] [\typescriptthree- \SerifTypefaceFeatures-AJensonPro-It] [encoding=\typescriptthree,handling=pure] \definefontsynonym[SerifBold] [\typescriptthree- \SerifTypefaceFeatures-AJensonPro-Bold] [encoding=\typescriptthree,handling=pure] \definefontsynonym[SerifBoldItalic] [\typescriptthree- \SerifTypefaceFeatures-AJensonPro-BoldIt] [encoding=\typescriptthree,handling=pure] \definefontsynonym[SerifCaps] [\typescriptthree- \SerifCapsTypefaceFeatures-AJensonPro-Regular] [encoding=\typescriptthree,handling=pure] \stoptypescript \definetypeface[jenny][rm][serif][JensonPro][default][encoding=texnansi] \setupalign[hanging] \setuptolerance[tolerant] \setupbodyfont[jenny,12pt] \def\compoundhyphen {\scale[sx=1.5]{-}} \starttext \startcolumns[n=2] \dorecurse{3}{\input tufte \par \input knuth \par} \stopcolumns \stoptext -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hyphenation-paterns was:Re: [NTG-context] justification
Hi Hans, For me that is fine. Willi Hans Hagen wrote: Jörg Hagmann wrote: However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that \setuptolerance[horizontal,verystrict] in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them). can you check if you have hyphenation? there have been pattern problems (changes in names and such) btw, doe anyone object if i ship generic context patterns in the main zip? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] justification
Am 15.04.2005 um 22:12 schrieb Willi Egger: This is nice, another swiss user! Me too ;-) In fact if you use \setuptolerance[verystrict] will cause TeX to use as few glue as possible, so the possibilities to stretch a line to have a better breakpoint is lowered. Instead you might use \setuptolerance[tolerant, stretch] or even \setuptolerance[verytolerant,stretch] I'd suggest \setuptolerance[{horizontal,verytolerant,stretch},{vertical,strict}] German has that many long words that I never get nice columns without stretch. Grüßlis vom Hraban! (CH-8274 Tägerwilen TG) --- http://www.fiee.net/texnique/ http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] justification
Dear list members, After months of trying to figure out what TeX, ConTeXt etc is and how to install everything needed I finally produced my first document. I was thrilled when I saw real pdf pages with footnotes and all! However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that \setuptolerance[horizontal,verystrict] in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them). I am currently writing a textbook and I am looking forward to using ConTeXt. PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] justification
Jörg Hagmann wrote: However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that \setuptolerance[horizontal,verystrict] in the setup area should do the trick, but it didn't. Can you give some examples ? Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX Brave heart. I am currently writing a textbook and I am looking forward to using ConTeXt. Context IS the right choice. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] justification
Hyphenation is working. I attached one pdf-page showing the result to a previous message which is being hold for approval. On Apr 15, 2005, at 11:17 AM, Hans Hagen wrote: Jörg Hagmann wrote: However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that \setuptolerance[horizontal,verystrict] in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them). can you check if you have hyphenation? there have been pattern problems (changes in names and such) PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] justification
Since the attachment showing one pdf-page doesn't seem to pass through, let me describe the outcome: On 6 pages with mostly default settings, there are 3 lines sticking out on the right side by 2- 3 characters (igt, mt and ng). In addition, there are about 3 smaller defects (ca. 1 character protrusions). I am using il1, and de as mainlanguage. Interestingly, on 2 pages the defects occur at exactly the same distance from the upper edge. On Apr 15, 2005, at 11:17 AM, Hans Hagen wrote: Jörg Hagmann wrote: However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that \setuptolerance[horizontal,verystrict] in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them). can you check if you have hyphenation? there have been pattern problems (changes in names and such) btw, doe anyone object if i ship generic context patterns in the main zip? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] justification
Guata obat! This is nice, another swiss user! (sorry gang for this bit of patriotism) In fact if you use \setuptolerance[verystrict] will cause TeX to use as few glue as possible, so the possibilities to stretch a line to have a better breakpoint is lowered. Instead you might use \setuptolerance[tolerant, stretch] or even \setuptolerance[verytolerant,stretch] Kind regards Willi Jörg Hagmann wrote: Dear list members, After months of trying to figure out what TeX, ConTeXt etc is and how to install everything needed I finally produced my first document. I was thrilled when I saw real pdf pages with footnotes and all! However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that \setuptolerance[horizontal,verystrict] in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them). I am currently writing a textbook and I am looking forward to using ConTeXt. PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \stretched fails with accents
\hbox to \textwidth {\stretched{pr{\'e}doctoral}} \hbox to \textwidth {\stretched{pr{}doctoral}} Right. Thanks. an other alternative is to use the properties mechanism Do you mean with something like: \hbox to \textwidth {\setuptolerance[stretch]inter word space is stretched} ? David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Left + right justification at once.
Am using \vbox{\hsize8cm text} to typeset my document with blocks of text. This makes a left and right justification of the text, but most of the time it does work alright and i get a ragged right text. What do i have to do in order to avoid this and get my text justified at both sides ? perhaps \setuptolerance[tolerant] if not, you should be more precise in your description. Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Layout stuff
Paul Tremblay wrote: There is, of course, \parshape. And I know that Hans does a lot of paragraph trickery (see for example coloumns). If you can get pages with different widths to work, please let me know! Like I said, I posted the problematic code in the wiki. It would be great to get this to work. for controlled situations it's doable by setting the parshape so, for novels you can use: \startsetups [grid] [*default] \nopenalties \stopsetups \setuppagenumbering [alternative=doublesided] \setuplayout [grid=yes] \definelayout [odd] [width=10cm, lines=40] \definelayout [even] [width=8cm, lines=40] \setuplayout [odd] \setuptolerance [verytolerant] \showframe \def\SetLineWidths {\scratchtoks \emptytoks \ifdim\pagegoal=\maxdimen \scratchdimen\textheight \ifodd\realpageno \noflines\namedlayoutparameter{odd}{lines}% \else \noflines\namedlayoutparameter{even}{lines}% \fi \else \scratchdimen\dimexpr\pagegoal-\pagetotal\relax \advance\scratchdimen-\topskipgap \getnoflines\scratchdimen \fi \ifdim\scratchdimen\lineheight \page \else \scratchcounter\noflines\relax \ifodd\realpageno \doSetLineWidths{odd}{even}% \else \doSetLineWidths{even}{odd}% \fi \parshape \scratchcounter \the\scratchtoks \relax \ignorespaces \fi} \def\doSetLineWidths#1#2% {\dorecurse\noflines {\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}% \dorecurse{2} {\advance\scratchcounter\namedlayoutparameter{#2}{lines}\relax \dorecurse{\namedlayoutparameter{#2}{lines}} {\appendetoks 0cm \namedlayoutparameter{#2}{width} \to\scratchtoks}% \advance\scratchcounter\namedlayoutparameter{#1}{lines}\relax \dorecurse{\namedlayoutparameter{#1}{lines}} {\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}}} \dontcomplain \EveryPar{\SetLineWidths} \starttext \dorecurse{25}{\dorecurse{4}{\input tufte }\par} \stoptext no guarantees, no kernel stuff either, maybe some fun module hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] hyphenation not working
So if I understand what you're saying, that suggests you do have the capability for hyphenation somewhere in your system. What is your test file? Can you strip it to its barest form? Here is the entire file. Luckily, it is very small. Thanks Paul % enable utf \enableregime[utf] % turn off automatic page numbering \setuppagenumbering[state=stop, way=bytext, alternative=doublesided] %\setupbodyfont[rm,12pt] %\setuplanguage[en][ state=start] %\language[en] %\setuptolerance[verytolerant] \starttext \setuppapersize[A4] % show frames so we can debug \showframe \definelayout[test][ backspace=50mm, cutspace=70mm, width=fit, ] % so it is always a good idea to use width=fit \setuplayout[test] \setupheadertexts[odd][][][even] Test\par % input text from another document \dorecurse{6}{\input tufte \par \input knuth \par} \stoptext -- *Paul Tremblay * [EMAIL PROTECTED]* ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \raggedright?
Hi Gerben, with \raggedright one needs to use {}. May be a better approach is to use \framedtext[align=left,width=xxcm,frame=off]{your text} Pease refer to the attached file. Kind regards Willi Gerben Wierda wrote: I tried to get one piece in a justified text to behave as follows: right aligned and with a jagged left edge. But what I tried influenced my entire document. Can someone explain me how to do this? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context % Ragged right text % Gerben Wierda % Context file % filename: ragged-Wierda.ex % Willi Egger % 13-03-2005 \setupoutput[pdftex] \mainlanguage[en] \setuptolerance[tolerant,stretch] \startbuffer[Ward] \input ward \stopbuffer \startbuffer[Knuth] \input knuth \stopbuffer \startbuffer[Zapf] \input zapf \stopbuffer \starttext {\raggedright{ \getbuffer[Knuth]}} \blank[2*big] {\raggedleft {\getbuffer[Ward]}} \blank[2*big] {\raggedright {\getbuffer[Zapf]}} \framedtext[align=left,width=9cm,fram=on,offset=.5cm]{ \getbuffer[Zapf]} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: AW: AW: [NTG-context] Re: Line break after unit or \cite command
Michael Fuchs wrote: Hi everybody! Sorry for the too long example. I wasn't sure what caused the problem and wanted to provide all relevant information at one time. I didn't mention the units module explicitly because I have the same problem using the \cite command from the bib-module and I assumed, that it would be a more general problem. The workaround with the \hbox{} does work. Is this some kind of bug and will be fixed in the future? Thank you all for your help! :-)) Michael -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Peter Münster Gesendet: Freitag, 11. März 2005 19:24 An: mailing list for ConTeXt users Betreff: Re: AW: [NTG-context] Re: Line break after unit or \cite command On Fri, 11 Mar 2005, Michael Fuchs wrote: Here is an example that shows the problem. I created it using live.contextgarden.net. The problem appears with standard and german hyphenation. Nice example: now we see, that you are using the units-module. Just to show you, what could be a minimal example, that shows the problem: \usemodule[units] \starttext In dieser Arbeit wurde die Reaktion untersucht. Im Energiebereich bis XXX~\EVolt\ wurden die Ergebnisse der Kollaboration bestätigt. \stoptext With these few lines, everything is clear. It seems to be an error in the units-module. Possible workaround: XXX~\EVolt\hbox{} wurden... the \hbox{} will introduce a space your problem originates in tex not being able to break lines within the constraints, one optiion is to increase the tolerance \showframe \setuptolerance[verytolerant] \usemodule[units] \starttext In dieser Arbeit wurde die Reaktion untersucht. Im Energiebereich bis XXX \EVolt\ wurden die Ergebnisse der Kollaboration bestätigt. \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] What happens here?
Am 10.03.2005 um 21:25 schrieb Gerben Wierda: I am running a file and one line has a really ugly large overfull box. The run says: Don't know. Did you try setting up tolerance? \setuptolerance[{horizontal, verytolerant},{vertical, strict}] Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] lack of hyphenation
Ciro A. Soto wrote: Thank you Taco, this is what I get. I got a *similar* line to what you sent, but not the same. Is it ok? ciro looks fine, so perhaps you have disabled hyphenation by using something like \setuptolerance[verytolerant], or they were truly unnecesary (it is possible) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Widows, flush bottom, and word breaks
Peter Münster wrote: On Sat, 12 Feb 2005, Adam Lindsay wrote: I *think* it's a multiple of \openlineheight by which the interline space can vary +/-. So the factor cited above seems like it can cause a variance of up to 16% in line spacing. (And I can imagine Hans is biting his tongue on this because this big variance can cause a huge difference in the colour of the text block. :) Yes, that's the reason why I prefer the LaTeX version of \flushbottom... ;-) it's a kind of interplaye between: \setuplayout[height=10cm] \setuptolerance[vertical,verytolerant] \setupalign[line] % \setupalign[bottom] % \setupalign[normal] \showframe \dorecurse{10}{\input tufte \endgraf} it's on my agenda to clean this up (it's slightly complicated by the fact that it interferes with things like footnotes, backgrounds crossuing pages and such, so i have to sit a day or more on it) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Widows, flush bottom, and word breaks
Hans Hagen said this at Mon, 14 Feb 2005 09:45:15 +0100: \setuplayout[height=10cm] \setuptolerance[vertical,verytolerant] \setupalign[line] Okay, that's the command I *should* have found, right? :) Sigh, and it's right there in the manual. What I found today was \alignbottom (and its relatives), which I now presume is ancient and deprecated? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] Widows, flush bottom, and word breaks
With lots of help from Adam and some tinkering on my own, here's what seems to be working best for me: \setupinterlinespace[stretch=0.08] \setuptolerance[vertical,stretch] \setupalign[height] This produces a flush bottom with very even interline and interparagraph spacing, all vertically justified. Nice! I'm very grateful for the help from one and all. Best wishes, Jack M. Lyon ___ The EDITORIUM Microsoft Word Add-Ins for Publishing Professionals http://www.editorium.com ___ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Lindsay Sent: Monday, February 14, 2005 12:15 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Widows, flush bottom, and word breaks Hans Hagen said this at Mon, 14 Feb 2005 09:45:15 +0100: \setuplayout[height=10cm] \setuptolerance[vertical,verytolerant] \setupalign[line] Okay, that's the command I *should* have found, right? :) Sigh, and it's right there in the manual. What I found today was \alignbottom (and its relatives), which I now presume is ancient and deprecated? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] Widows, flush bottom, and word breaks
I take it back. Here's what really works well: \setupinterlinespace[stretch=0.08] \setuptolerance[vertical,stretch] \setupalign[line] Thanks again. Best wishes, Jack M. Lyon ___ The EDITORIUM Microsoft Word Add-Ins for Publishing Professionals http://www.editorium.com ___ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack M. Lyon Sent: Monday, February 14, 2005 1:18 PM To: 'mailing list for ConTeXt users' Subject: RE: [NTG-context] Widows, flush bottom, and word breaks With lots of help from Adam and some tinkering on my own, here's what seems to be working best for me: \setupinterlinespace[stretch=0.08] \setuptolerance[vertical,stretch] \setupalign[height] This produces a flush bottom with very even interline and interparagraph spacing, all vertically justified. Nice! I'm very grateful for the help from one and all. Best wishes, Jack M. Lyon ___ The EDITORIUM Microsoft Word Add-Ins for Publishing Professionals http://www.editorium.com ___ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Lindsay Sent: Monday, February 14, 2005 12:15 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Widows, flush bottom, and word breaks Hans Hagen said this at Mon, 14 Feb 2005 09:45:15 +0100: \setuplayout[height=10cm] \setuptolerance[vertical,verytolerant] \setupalign[line] Okay, that's the command I *should* have found, right? :) Sigh, and it's right there in the manual. What I found today was \alignbottom (and its relatives), which I now presume is ancient and deprecated? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Widows, flush bottom, and word breaks
Adam Lindsay wrote: Hans Hagen said this at Mon, 14 Feb 2005 09:45:15 +0100: \setuplayout[height=10cm] \setuptolerance[vertical,verytolerant] \setupalign[line] Okay, that's the command I *should* have found, right? :) Sigh, and it's right there in the manual. What I found today was \alignbottom (and its relatives), which I now presume is ancient and deprecated? no, the choices expand to one of those; but they are not meant for direct usage Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Widows, flush bottom, and word breaks
Jack M. Lyon wrote: With lots of help from Adam and some tinkering on my own, here's what seems to be working best for me: \setupinterlinespace[stretch=0.08] \setuptolerance[vertical,stretch] \setupalign[height] This produces a flush bottom with very even interline and interparagraph spacing, all vertically justified. Nice! so ... add that recepi to the wiki Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Widows, flush bottom, and word breaks
Jack M. Lyon said this at Sat, 12 Feb 2005 09:35:05 -0700: I'm trying to learn to use ConTeXt for book publishing (wonderful program!) but can't seem to find answers to a couple of questions: 1. How can I turn *off* protection against widows? (Last line of paragraph at top of page.) This is discussed in greater detail in the new (in-progress) style manual, normally available at: http://www.pragma-ade.com/general/manuals/style.pdf But also mirrored (pragma server down) at: http://context.aanhet.net/general/manuals/style.pdf I think what you want is: \widowpenalty 0 2. How can I turn on \flushbottom (LaTeX command) to space lines *inside* paragraphs but not *between* paragraphs? I'm not sure. Peter Münster's email helped me understand the problem a little more, but I think he misinterpreted your lines vs paragraphs directive. Digging around in the source code (sigh), I do notice a parameter that might help. Try these two in combination: \setupinterlinespace[stretch=0.08] % experimentation needed! \setuptolerance[vertical,verystrict] I'm not an expert in this area, so don't take this as the final word! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Widows, flush bottom, and word breaks
Peter Münster said this at Sat, 12 Feb 2005 22:08:27 +0100: \setupinterlinespace[stretch=0.08] % experimentation needed! I'm also very interested in these kinds of problems (and solutions ;). I'm curious because it's the flip side of the grid typesetting I was learning about earlier this week. I have no special insights, here... It seems to me, that with this parameter, interline-spaces can get smaller but not bigger. I think it allows it to become bigger by the same factor. (I've just tried the example on http://contextgarden.net/Flush_bottom) Could you explain this parameter a bit further? um, no? :) I just stumbled across it in core-spa, and empirically determined that it would give a bit of variability to the interline spacing, which is what the original poster asked for. I *think* it's a multiple of \openlineheight by which the interline space can vary +/-. So the factor cited above seems like it can cause a variance of up to 16% in line spacing. (And I can imagine Hans is biting his tongue on this because this big variance can cause a huge difference in the colour of the text block. :) \setuptolerance[vertical,verystrict] I know the meaning of strict and tolerant in horizontal context, but what does it mean in vertical context? I didn't see any difference between \setuptolerance[vertical,verystrict] and \setuptolerance[vertical,verytolerant] I've always been hazy on the distinction myself. Thanks in advance for further comments! We can put it on the wiki then. Anyway, addressing the original poster's requirements, allowing *no* stretch in the inter-paragraph spacing (whitespace) makes it hard for the interline space to handle the whole job of reaching the text block on its own. I'd suggest looking at the definition of \defineblank and how small/ medium/big are defined in order to get a better balance. In the following example (modified from the wiki), the spacing adjustment is a lot less strained if I do \setupwhitespace[big] instead of 12pt. \widowpenalty 0 \setupinterlinespace[stretch=0.09] \setuptolerance[vertical,verystrict,stretch] \setupwhitespace[12pt] \starttext \showframe \section{Section} \input ward \par\input knuth \par\input zapf \section{Section} \input tufte \par\input zapf \par\input tufte \input knuth \section{Section} \input hawking \par\input bryson \par\input tufte \section{Section} \input knuth \input knuth \par\input knuth \input ward \stoptext -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] Widows, flush bottom, and word breaks
Adam: One other question, if you don't mind. You wrote: I'm curious because it's the flip side of the grid typesetting I was learning about earlier this week. I'd be grateful if you could tell me what you learned about this. Thanks again. Best wishes, Jack M. Lyon ___ The EDITORIUM Microsoft Word Add-Ins for Publishing Professionals http://www.editorium.com ___ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Lindsay Sent: Saturday, February 12, 2005 4:26 PM To: ntg-context@ntg.nl Subject: Re: [NTG-context] Widows, flush bottom, and word breaks Peter Münster said this at Sat, 12 Feb 2005 22:08:27 +0100: \setupinterlinespace[stretch=0.08] % experimentation needed! I'm also very interested in these kinds of problems (and solutions ;). I'm curious because it's the flip side of the grid typesetting I was learning about earlier this week. I have no special insights, here... It seems to me, that with this parameter, interline-spaces can get smaller but not bigger. I think it allows it to become bigger by the same factor. (I've just tried the example on http://contextgarden.net/Flush_bottom) Could you explain this parameter a bit further? um, no? :) I just stumbled across it in core-spa, and empirically determined that it would give a bit of variability to the interline spacing, which is what the original poster asked for. I *think* it's a multiple of \openlineheight by which the interline space can vary +/-. So the factor cited above seems like it can cause a variance of up to 16% in line spacing. (And I can imagine Hans is biting his tongue on this because this big variance can cause a huge difference in the colour of the text block. :) \setuptolerance[vertical,verystrict] I know the meaning of strict and tolerant in horizontal context, but what does it mean in vertical context? I didn't see any difference between \setuptolerance[vertical,verystrict] and \setuptolerance[vertical,verytolerant] I've always been hazy on the distinction myself. Thanks in advance for further comments! We can put it on the wiki then. Anyway, addressing the original poster's requirements, allowing *no* stretch in the inter-paragraph spacing (whitespace) makes it hard for the interline space to handle the whole job of reaching the text block on its own. I'd suggest looking at the definition of \defineblank and how small/ medium/big are defined in order to get a better balance. In the following example (modified from the wiki), the spacing adjustment is a lot less strained if I do \setupwhitespace[big] instead of 12pt. \widowpenalty 0 \setupinterlinespace[stretch=0.09] \setuptolerance[vertical,verystrict,stretch] \setupwhitespace[12pt] \starttext \showframe \section{Section} \input ward \par\input knuth \par\input zapf \section{Section} \input tufte \par\input zapf \par\input tufte \input knuth \section{Section} \input hawking \par\input bryson \par\input tufte \section{Section} \input knuth \input knuth \par\input knuth \input ward \stoptext -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] floats pb in a list
Hi contexers, I try writing step by step howtos for Autocad courses. I've borrowed (one more time) Hans example code written around p83 in cont-eni.pdf for combined items, and rename definitions. I'm unable to get correct float placement in a such list, even with small figures. On each new page, the float move towards topleft, above it's anchor. Thanks for any answers. -- Olivier TURLIER %pb-howto.tex \setupoutput [pdftex] \useregime[il1] \enableregime[il1] \useencoding[ffr] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,10pt] \definepapersize [cours] [width=\dimexpr(\paperwidth-.05\paperwidth), height=\dimexpr(\paperheight-.05\paperheight)] \setuppapersize [cours] [A4] \setuplayout [top=6mm,topdistance=6mm, bottom=6mm,bottomdistance=18mm, topspace=18mm, height=263mm,%middle header=6mm,headerdistance=6mm, footer=6mm,footerdistance=18mm, bakspace=46mm,%cutspace=50mm, width=164mm,%middle leftmargin=22mm,leftmargindistance=4mm, leftedge=5mm,leftedgedistance=5mm, rightmargin=28mm,rightmargindistance=4mm, rightedge=6mm,rightedgedistance=5mm %,grid=yes ] % \setuptolerance [verytolerant,stretch] \setuppagenumbering[alternative=doublesided] % \setupfloats[location=middle] \definefloat [etape] [figures] \defineparagraphs [Etape] [n=2,rule=off,align=lohi] \setupparagraphs [Etape] [2] [width=.5\textwidth] \defineenumeration [Explication] [location=left,text=,width=3em,before=,after=] \starttext \chapter[]{One} Some introduction text \section[]{two} Some longer introduction text \section[]{three} \startEtape \startExplication \dorecurse{2}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{3}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{4}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{5}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{6}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{7}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: \setuptolerance
Hello Patrick, thank you very much! Hopely I understand right, that the command \setuptolerance[verytolerant,stretch] ( or \setuptolerance[horizontal,verytolerant,stretch] ) will result to \tolerance 4500\emergencystretch\bodyfontsize :-) Richard Patrick Gundlach wrote: Hello Richard, could somebody explain me the usage of the \setuptolerance command and its particular parameters? I have put an explanation on texshow-web: http://texshow.contextgarden.net The main ConTeXt manual (cont-eni.pdf, pages 87-88) only mentions that it is used [horizontal,verystrict] and [vertical,strict] by default... I wonder what the vertical form is for (columns?). On contextgarden.net I've found one example using the following form: \setuptolerance [{horizontal, verytolerant},{vertical, verystrict}] This looks incorrect to me. See my comment on texshow-web. Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: \setuptolerance
Hello Richard, \setuptolerance[verytolerant,stretch] ( or \setuptolerance[horizontal,verytolerant,stretch] ) will result to \tolerance 4500\emergencystretch\bodyfontsize [from my memory] yes. Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \setuptolerance
Hello all, could somebody explain me the usage of the \setuptolerance command and its particular parameters? I've found several forms of this command, but no explanation of them at all... The main ConTeXt manual (cont-eni.pdf, pages 87-88) only mentions that it is used [horizontal,verystrict] and [vertical,strict] by default... Should I issue two \setuptolerance commands to setup up horizontal and vertical tolerance? On contextgarden.net I've found one example using the following form: \setuptolerance [{horizontal, verytolerant},{vertical, verystrict}] ...tried this, but it produces Overfull \hbox at almost every third line... :-( Currently I use the setup: \setuptolerance[verytolerant,stretch] which gives quite good results, but I don't know what it exactly does (I googled it somewhere)... Thanks for help. Richard ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Wrap a url
David Arnold wrote: Willi et al, How do you use \hyphenatedurl? I tried: ok, let's end the suffering here ... \starttext \showframe \setupurl [style=bold] \useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98/CraigA/project3.htm] \useURL[giarc][nice place][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98/CraigA/project3.htm] \setuptolerance[verytolerant,stretch] \from[craig] \par \from[giarc] \par \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Wrap a url
Hans et al, Thanks. This worked. I am seeing here and there that the syntax for \useURL is: \useURL[][][][] The first [] is to hold a symbolic name such as craig that can be referred to latter, as in \from{craig}\par. The second [] is what actually gets typeset? What is the third [] for? What is the fourth [] for? Finally, could you wax philosophic a bit on the meaning and purpose of \setuptolerance[verytolerant,stretch]? I certainly see that it works, but I am not sure why. Thanks. At 05:24 PM 11/2/04 +0100, you wrote: David Arnold wrote: Willi et al, How do you use \hyphenatedurl? I tried: ok, let's end the suffering here ... \starttext \showframe \setupurl [style=bold] \useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fa ll98/CraigA/project3.htm] \useURL[giarc][nice place][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98/Cra igA/project3.htm] \setuptolerance[verytolerant,stretch] \from[craig] \par \from[giarc] \par \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] column balancing question
Michal Kvasnicka wrote: Good evening. Many thanks for your help. Your solution works well with the newest ConTeXt and one particular document I now typeset. I have to check it still with more documents. Do you want to gen a report from these tests? If you want I can send you many examples, but not `minimal files', since I don't know when the problem occures. As I typeset our church bulletin, I've got that result pretty often---approximately on one third or one fourth of all pages. just test this on many docs and let me know if it fails (one source of problems with i'm currently trying to catch is rounding errors in comparisons) I can't switch to columnset all my documents. Columnsets are absolutely great (one of the ConTeXt miracle---I thought it is not possible to do it in TeX because of its breaking routines), but up-to-now columnsets cannot be ballanced (or can they?), and my church bulletin is typset in such a way that each article can start anywhere on the page, and the columns must be ballanced before it. I can't explain it better because of my English, but its pages look like this: x x x x x x x x Title of article x x x x Therefore I would lobby for the support of the old \startcolumns ... \stopcolumns environment. :-) don't worry, i'm not driopping the old one, actually, in due time i'll provide more specialized ones and interfaces to write your own -) balancing in columnsets is a tricky business, the following should work (kind of manual balacing, complete control over how long columns on pages are; probably a bit fragile) % output=pdftex interface=en \setuplayout[grid=yes] \showgrid \showstruts % gaat nogal fout zonder grid \setuptolerance[verytolerant] \definecolumnset [test-1] [n=2] \definecolumnset [test-2] [n=3] \starttext \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnset [test-1] [balance=yes] \setupcolumnset [test-2] [balance=yes] \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][19] \setupcolumnsetlines[test-2][1][2][18] \setupcolumnsetlines[test-2][1][3][19] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][0] \setupcolumnsetlines[test-2][1][2][-2] \setupcolumnsetlines[test-2][1][3][0] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {6}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetstart[test-2][1][1][20] \setupcolumnsetstart[test-2][1][2][20] \setupcolumnsetstart[test-2][1][3][20] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \page \setupcolumnsetlines[test-1][1][1] [8] \setupcolumnsetlines[test-1][1][2][10] \setupcolumnsetlines[test-2][1][1][-20] \setupcolumnsetlines[test-2][1][2][-20] \setupcolumnsetlines[test-2][1][3][-20] \startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset \startcolumnset [test-2] \dorecurse {2}{\input ward \par} \stopcolumnset \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Overfull boxes using m-cweb
At 10:54 14/10/2003, Patrick Gundlach wrote: Hi, I am running into overfull boxes when including a weaved cweb file into a context document. I don't really understand your question. You have overfull boxes in your TeX run. That is a normal TeX feature. They can usually be avoided. But in your case I guess that it is something which you cannot avoid. But how should we know? I guess that the cweb module is not that commonly used. So you might be better of and supply a minimal (!) but complete (!) example. it may be a result of many unbreakable (key)words, so in that case try: \setuptolerance[verytolerant,stretch] Hans ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Overfull boxes using m-cweb
Hans Hagen wrote: it may be a result of many unbreakable (key)words, so in that case try: \setuptolerance[verytolerant,stretch] Hans It seems to be caused by the fact that \hbox is used frequently in m-cweb.tex. \hbox-es are unbreakable aren't they? Anyway your solution results in plenty of underfull boxes (as can be expected) and a much better looking result. Many thanks, Edwin ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: clubpenalty/widowpenalty ignored - a bug?
Am Donnerstag, 11.09.03, um 18:03 Uhr (Europe/Zurich) schrieb Steffen Wolfrum: Wonderful. Somebody should write this in a ConTeXt manual. The ConTeXt way is: \setuptolerance [{horizontal, verytolerant},{vertical, verystrict}] scale: verytolerant, tolerant, strict, verystrict It's a bit more readable than penalties, but not as exact. I always use grid setting, and there's impossible to avoid *all* clubs and widows, so a 1 penalty is of no help. I used the following in my last book: \clubpenalty=8000 % keine Schusterjungen \widowpenalty=8000 % keine Hurenkinder %\tolerance=1750 % Zeilenumbruch-Toleranz (ca. 500--3000) %\emergencystretch=10 pt % zusatzlich veranderbarer Raum pro Zeile I used the emergency stretch (more white space) only in some paragraphs. Grüßlis vom Hraban! -- http://www.fiee.net/texnique/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context