RE: [NTG-context] Re: Table of contents, alternative d
Hi Patrick, This is how my toc appears: Part 1 first part 11 (1) Chapter one 12 (2) Chapter two 13 (3) Chapter three 14 (4) Chapter four 15 (5) Chapter five 16 Part 2 second part 21 (1) Chapter one 22 (2) Chapter two 23 (3) Chapter three 24 (4) Chapter four 25 (5) Chapter five 26 Part 3 Third part 31 (1) Chapter one 32 (2) Chapter two 33 (3) Chapter three 34 (4) Chapter four 35 (5) Chapter five 36 I want to control the distance for instance in the second and third line to the right margin (This means chapters indeed => Line5,6,8,9 too). This could result in the fact that my chapters will appear on 3 lines instead of 2 here. To my knowledge there is no parameter such as "distance" to change this. Here "distance" changes only the distance between chapter elements for instance: the element (1) Chapter one 12 and the element Chapter two 13 (3). This how alternative d works (with elements). This is how the result i want could be: Part 1 first part11 (1) Chapter one 12 (2) Chapter two 13 (3) Chapter three 14 (4) Chapter four 15 (5) Chapter five 16 Part 2 second part 21 (1) Chapter one 22 (2) Chapter two 23 (3) Chapter three 24 (4) Chapter four 25 (5) Chapter five 26 Part 3 Third part 31 (1) Chapter one 32 (2) Chapter two 33 (3) Chapter three 34 (4) Chapter four 35 (5) Chapter five 36 Thanks. Dirar. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Table of contents, alternative d
Dirar BOUGATEF wrote: Hi Patrick, This is how my toc appears: Part 1 first part 1–1 (1) Chapter one 1–2 (2) Chapter two 1–3 (3) Chapter three 1–4 (4) Chapter four 1–5 (5) Chapter five 1–6 Part 2 second part 2–1 (1) Chapter one 2–2 (2) Chapter two 2–3 (3) Chapter three 2–4 (4) Chapter four 2–5 (5) Chapter five 2–6 Part 3 Third part 3–1 (1) Chapter one 3–2 (2) Chapter two 3–3 (3) Chapter three 3–4 (4) Chapter four 3–5 (5) Chapter five 3–6 I want to control the distance for instance in the second and third line to the right margin (This means chapters indeed => Line5,6,8,9 too). This could result in the fact that my chapters will appear on 3 lines instead of 2 here. To my knowledge there is no parameter such as "distance" to change this. Here "distance" changes only the distance between chapter elements for instance: the element (1) Chapter one 1–2 and the element Chapter two 1–3 (3). This how alternative d works (with elements). This is how the result i want could be: Part 1 first part 1–1 (1) Chapter one 1–2 (2) Chapter two 1–3 (3) Chapter three 1–4 (4) Chapter four 1–5 (5) Chapter five 1–6 Part 2 second part 2–1 (1) Chapter one 2–2 (2) Chapter two 2–3 (3) Chapter three 2–4 (4) Chapter four 2–5 (5) Chapter five 2–6 Part 3 Third part 3–1 (1) Chapter one 3–2 (2) Chapter two 3–3 (3) Chapter three 3–4 (4) Chapter four 3–5 (5) Chapter five 3–6 An option is to use the narrower mechanism; unfortunately abc placement does not listen that so we need a patch (not sure if this is not breaking other things). % this goes into core-sec or cont-new \unprotect \def\dodofixdlijstelementABC#1#2#3#4#5#6% weeden {\endgraf \leftskip\getvalue{\??li#1\c!margin}% na de \endgraf ! \getvalue{\??li#1\c!before}% \!!widthc\getvalue{\??li#1\c!distance}% \doifelsevalue{\??li#1\c!width}\v!fit {\!!widtha\zeropoint} {\doifelsenothing{#3} {\doifelsevalue{\??li#1\c!aligntitle}\v!yes {\!!widtha\zeropoint \!!widthc\zeropoint} {\!!widtha\getvalue{\??li#1\c!width}}} {\!!widtha\getvalue{\??li#1\c!width}}}% \getvalue{\??li\c!alternative\getvalue{\??li#1\c!alternative}}% \endgraf \def\makelijstelement##1##2% {\doifelsevalue{\??li#1\c!interaction}{##1} {\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}% \linklisttoelement{#1}{#2}{#5}{#6}{\box0}}%{\copy0}}% {\hbox{##2}}}% \doifvalue{\??li#1\c!interaction}\v!text % not supported {\setlistparameter{#1}\c!interaction\v!all}% %\makelijstelement\v!all % {\hbox to \hsize \makelijstelement\v!all {\setlocalhsize \hsize\localhsize \hbox to \hsize {\forgetall \dostartattributes{\??li#1}\c!style\c!color\empty \!!widthb\hsize \setbox2\hbox \ifdim\!!widtha>\zeropoint to \!!widtha \fi {\makelijstelement\v!sectionnumber {\dolistattributes{#1}\c!numberstyle\c!numbercolor {\getvalue{\??li#1\c!numbercommand}{\currentlistsymbol}}% \hfill}}% \setbox4\hbox {\doifvalue{\??li#1\c!pagenumber}\v!yes {\doifsomething{#5}% \lijstwidth is new ; temp hack {\hbox \ifdim\lijstwidth>\zeropoint to \lijstwidth\fi {\hfill \makelijstelement\v!pagenumber {\dolistattributes{#1}\c!pagestyle\c!pagecolor {\getvalue{\??li#1\c!pagecommand}% {\pageprefix\??li#1[#5]% \translatednumber[#5]}}}% \vbox {\hsize\!!widthb \setupalign[\getvalue{\??li#1\c!align}]% \ifdim\!!widtha<\hsize \hangindent=\wd2 \dimen2=\!!widthc % \getvalue{\??li#1\c!distance}% \advance\hangindent \dimen2 \hangafter=1 \doifvalue{\??li#1\c!hang}\v!no{\hangafter\zerocount}% \ifdim\wd4=\zeropoint % \ifvoid4 % we kunnen gewoon afbreken aan het eind \else \ifdim\lijstskip>\zeropoint\relax \rightskip=\lijstskip\!!plus10em\relax \parfillskip=-\rightskip \fi \fi \else \dimen2\zeropoint \fi \parindent\zeropoint\relax \leavevmode \box2\relax \hskip\dimen2 \bgroup \dolistattributes{#1}\c!textstyle\c!textcolor {\let\\=\newlineinlist \dontconvertfont %\getvalue{\??li#1\c!textcommand}{#4}}% \limitatedlistentry{#1}{#4}}% %\carryoverpar % new otherwise wrong linespacing \egroup \ifdim\wd4=\zeropoint\relax % \ifvoid4 % \ifdim\!!widtha<\hsize \hfill\str
Re: [NTG-context] Re: Table of contents, alternative d
Wha Thanks a lot to you all. Hans, I have tried: \startnarrower[4*right] \placecontent \stopnarrower \blank[4*big] This is exactly what i meant. Unfortunately, there is a problem, which is in my opinion not related to TOC, but to Tex (or Context, you'll be able to tell). i get a result like this: Part 1 First part 11 (1) Chapter one 12 (2) Chapter two 13 (3) Chapter ^^ three 14 (4) Chapter four 15 (5) Chapter five 16 Part 2 Second part 21 (1) Chapter one 22 (2) Chapter two 23 (3) Chapter three 24 (4) Chapter four 25 (5) Chapter five 26 Part 3 Third part 31 (1) Chapter one 32 (2) Chapter two 33 (3) Chapter three 34 (4) Chapter four 35 (5) Chapter five 36 Why does Context cut all the lines at the right place, and not that second one ? I got the same error the other day when i was writing a letter. I had all the paragraphs aligned to the right at the same distance, but the last line of my document didnt align with them, and i got a text like this: ks dsdjkl fq sqfl sdlkj f dsld sfjds s ds sdjklf gfi lkdsjf ig lkdsjf oi fls sjfskl id fsdl sdi dsjfu fjs fl lùgdd ks dsdjkl fq sqfl sdlkj f dsld sfjds s ds sdjklf gfi lkdsjf ig lkdsjf oi fls sjfskl id fsdl sdi dsjfu fjs fl lùgdd ks dsdjkl fq sqfl sdlkj f dsld sfjds s ds sdjklf gfi lkdsjf ig lkdsjf oi fls sjfskl id fsdl sdi dsjfu fjs fl lùgdd sdksjf dsjklf ds fsdkl fs fkldsf dj dslf dsjk fd. How can i control this ? Thanks in advance. Dirar. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Black generation in cmyk output
Hello, I was wondering if it is possible to influence the level of black component generation in cmyk ConTeXt output? Piotr -- Piotr Kopszak, Ph.D. Polish Art Gallery, National Museum in Warsaw ->http://kopszak.mnw.art.pl/ http://www.magnatune.com/artists/altri_stromenti ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Black generation in cmyk output
Hi, Piotr Kopszak wrote: Hello, I was wondering if it is possible to influence the level of black component generation in cmyk ConTeXt output? In the automatic conversion of metapost you mean? Well, you can turn black generation on (\setupcolors[reduce=no]) or turn it off ([reduce=yes]) ... There is no way to control the *amount* of black generation, but you can of course define your own CMYK colors with an appropriate K component. I hope I understood your question correctly. Greetings, Taco ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] m-bib, \cite and no year?
Taco Hoekwater wrote: In authoryear styles, year entries are usually required, so I am going to keep this as it is now. You can either use \cite[author] for this case, or you could build your own \cite command, in a similar way to Tobias' answer: Sorry for bothering you that much. I'm now using \cite[author], yet there is one place I can't solve that way, which is cross references: @Article{dominus04, author = {Mark Jason Dominus}, title = {Slide Rule}, journal = {Wikipedia}, year = 2004, crossref = {Wikipedia}, month = May, note = {\gotoURL{http://en.wikipedia.org/w/wiki.phtml?title=Slide_rule&oldid=3849585}} } @Misc{Wikipedia, key = {Wikipedia}, title ={Wikipedia, the free online encyclopedia}, howpublished = {\gotoURL{http://wikipedia.com}} } Not that I plan to use really many wikipedia entries, but the problem as such seems to exist. (I am not sure about using @Article here, but that's another topic.) As an aside, there is another problem: The entry cross-referenced to does not appear – this seems to be a general problem with cross-references. I'm using \completepublications, but the same happens with \placepublications. (I haven't managed to get the list sorted by author, either.) Another thing I stumbled upon: Using \type{whatever} in a BibTeX entry does not work: “whatever” is simply ignored. (It is intact in the .bbl file, as in \startpublication[k=Kulpa,t=misc, a={Kulpa},y=2004, n=40,s=Kul04] \author[]{Zenon}[Z.]{}{Kulpa} \pubyear{2004} \month{6} \pubname{{message [EMAIL PROTECTED] on the mailing list [EMAIL PROTECTED] \stoppublication where I'm using \type because of the _.) Finally, the entry \startpublication[k=abramowitz,t=book, a={Abramowitz and Stegun},y=1972, n=30,s=AS72] \editor[]{Milton}[M.]{}{Abramowitz} \editor[]{Irene~A.}[I.~A.]{}{Stegun} \pubyear{1972} \title{{Handbook of Mathematical Functions}} \pubname{Dover Publications} \edition{ninth} \stoppublication is indented by about one interword space relative to the entries not using \editor. Which commands do the actual typesetting of the list entries? I only got to \@@pbt and was lost ... regards, Christopher Creutzig ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Tex Live 2004 + context
Today I was about to install TeX Live 2003, to then install Context lastest release. But I found that Tex Live 2004 was released the 27th (3 days ago). I notice the texmf directory structure has been changed in 2004. What do you guys recommend? 2003+context? Or is the latest context installation compatible with the new TeXLive2004 texmf directory? Please advise. Ciro==Ciro A. Soto"All problems are at the interface. Each one of them has a solution."___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Tex Live 2004 + context
Hi, > Today I was about to install TeX Live 2003, to then install Context > lastest release. But I found that Tex Live 2004 was released the > 27th (3 days ago). I notice the texmf directory structure has been > changed in 2004. What do you guys recommend? 2003+context? Or is the > latest context installation compatible with the new TeXLive2004 > texmf directory? Please advise. I'd say: new ConTeXt = new TeX distribution, old ConTeXt = old TeX distribution. What operating system are you using? See also in the wiki: http://contextgarden.net/Update_Hints Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Tex Live 2004 + context
I am using linux Fedora Core 3. It came with a *very* old tex installation with context version 2003. If I understand your advice, I should use texlive2003 and the latest context from last week upload in pragma? thank you Patrick Gundlach <[EMAIL PROTECTED]> wrote: Hi,> Today I was about to install TeX Live 2003, to then install Context> lastest release. But I found that Tex Live 2004 was released the> 27th (3 days ago). I notice the texmf directory structure has been> changed in 2004. What do you guys recommend? 2003+context? Or is the> latest context installation compatible with the new TeXLive2004> texmf directory? Please advise.I'd say: new ConTeXt = new TeX distribution, old ConTeXt = old TeXdistribution.What operating system are you using?See also in the wiki: http://contextgarden.net/Update_HintsPatrick-- ConTeXt wiki: http://contextgarden.net___ntg-context mailing list[EMAIL PROTECTED]http://www.ntg.nl/mailman/listinfo/ntg-context==Ciro A. Soto"All problems are at the interface. Each one of them has a solution."___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Tex Live 2004 + context
Hello Ciro, > I am using linux Fedora Core 3. It came with a *very* old tex installation > with > context version 2003. If I understand your advice, I should use texlive2003 > and the latest context from last week upload in pragma? No, something more recent then texlive 2003. Perhaps texlive 2004 (out already?) or a current tetex beta. That is what I use at contextgarden.net > thank you You're welcome. Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context