Re: [NTG-context] Table cell spanning multiple columns in tabulate
Thomas Friedrich wrote: >> I am switching from texexec to context, and from table to tabulate. >> Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the >> \table environment, when you what to do the same in the \tabulate >> environment? I couldn't find the answer in the context garden. Wolfgang Schuster wrote: > The tabulate environment has no support for spanned cells. The TABLE mechanism does, though, and that is probably the mkiv standard for writing non-trivial tables. It's a bit more verbose, but it can do an enormous number of things -- including many things that the tabulate mechanism can't. Wiki link: http://wiki.contextgarden.net/TABLE The equivalent of \use{2}\ReFormat[c]{text} would be this (rest of table code added to make this example self-contained and compilable): \bTABLE \bTR \bTD[nc=2, align=center] text \eTD \eTR \bTR \bTD apples \eTD \bTD oranges \eTD \eTR \eTABLE Hope this help! Cheers, Sietse On 15 July 2013 16:49, Wolfgang Schuster wrote: > > Am 15.07.2013 um 16:39 schrieb Thomas Friedrich > : > >> Hello ConTeXt users, >> >> I am switching from texexec to context, and from table to tabulate. >> Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the >> \table environment, when you what to do the same in the \tabulate >> environment? I couldn't find the answer in the context garden. > > The tabulate environment has no support for spanned cells. > > Wolfgang > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] counter in linenote disables hyphenation in body text
Dear list, in the following sample: \setuppapersize[A6] \newcounter\LineNote \setupnote[linenote][paragraph=yes] \setupnotation[linenote][alternative=serried] \define[2]\Variant {\increment\LineNote \startlinenote[LineNote:\LineNote]{#1 #2} #1% \stoplinenote[LineNote:\LineNote]} \starttext \startlinenumbering \dorecurse{10}{\Variant{not original}{variant} \Variant{origin}{variants} } \stoplinenumbering \stoptext I have realized that hyphenation is disabled in body text when \increment\LineNote is used in the \Variant command definition. I don’t know whether this is a bug, but I don’t know how to workaround it either. Does anyone how to get the body text hyphenated with this command? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Some questions about the letter module
Dear all, (This is a repeat post. I apologize if that's rude, but I would appreciate some assistance with the letter module or a pointer to documentation. Thanks.) I am using the letter module that came with context. A sample of a basic letter is below; I have put in "dummy" for the logo and the signature, but these are working fine when I include the files. I have several questions: 1. to center the footer. 2. to lower the footer (closer to the bottom of the page) 3. to delete the word "Date" above the date. 4. to put the date *above *the recipient address (and how in general do I adjust the vertical space here). 5. to left-justify the date. 6. to control the foldmarks (for US-letter-size paper, omit, etc.) I have consulted http://wiki.contextgarden.net/Letter but there are many things I don't understand. What is the meaning of "alternative=example"; what is the option "preset=" in \setuplayer[foot] ? Also is there a better way to manage color? I \definecolor, \startcolor, \stopcolor, but maybe there is a better way to indicate that certain sections of the letter should be in a color. Thanks. Thank you very much for your guidance. Yours, Michael \usemodule[letter] \setuppapersize[letter][letter] \definecolor[maroon][h=990033] \setuplanguage [en] [date={dd, month, year}] \setupletteroptions [language=english, bodyfont={rm,12pt}, ] % Define logo for the first page \defineletterelement[layer][head][example]% {\framed[background=logohead,height=25mm,frame=off,align=left]% {\externalfigure[dummy]}} % We put our logo in the head \setupletterlayer[head] [alternative=example, x=9mm, y=10mm ] \defineletterelement[layer][foot][example]% {\startcolor[maroon] \ss \tfx The University of Massachusetts is an Affirmative Action/Equal Opportunity Institution. \stopcolor} \setupletterlayer[foot][ align=centerbottom, alternative=example] \setupletter[ name={Michael Ash}, dept={Department of Economics}, building={Thompson Hall}, street={200 Hicks Way}, city={Amherst, MA 01003-9277}, phone={+1-413-545-2590}, fax={+1-413-545-2921}, email={m...@econs.umass.edu} ] \defineletterelement[layer][location][example]% {\setuptabulate[bodyfont=normal] \startcolor[maroon] \starttabulate[|lw(.4\textwidth)|rw(.55\textwidth)|] \NC \tfa \sc University of Massachusetts \NC \NR \NC \tfa \sc Amherst \NC \correspondenceparameter{dept} \NR \NC \NC \NR \NC\correspondenceparameter{building} \NC tel \correspondenceparameter{phone} \NR \NC\correspondenceparameter{street} \NC fax \correspondenceparameter{fax}\NC\NR \NC\correspondenceparameter{city} \NC \correspondenceparameter{email} \NC\NR \stoptabulate \stopcolor} \setupletterlayer[location] [alternative=example, x=42mm, y=4mm ] \starttext \startletter[ toname={Professor Addressee}, toaddress={123 West Home Ave.\\Chicago, IL 60614}, opening={Dear Dr. Addressee,}, subject={A test letter}, closing={Best regards,}, signature={\externalfigure[dummy]\\Michael Ash} ] Thank you very much for the invitation I am truly honored by the opportunity and delighted to attend. I look forward to meeting you. Thank you again for the invitation. \stopletter \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Colored horizontal line
Am 15.07.2013 um 17:33 schrieb Hans Hagen : > On 7/15/2013 2:53 PM, Marco Patzer wrote: >> On 2013–07–15 "H. Özoguz" wrote: >> >>> \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. >> >> This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color >> expects a previously defined colour. > > \blackrule[width=10cm,height=1mm,color=red] Can the \blackrule command be change to let it use also a \hrule, e.g. - \blackrule[alternative=horizontal] -> \hrule - \blackrule[alternative=vertical] -> \vrule Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Colored horizontal line
On 7/15/2013 2:53 PM, Marco Patzer wrote: On 2013–07–15 "H. Özoguz" wrote: \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color expects a previously defined colour. \blackrule[width=10cm,height=1mm,color=red] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected
Ah, cool, thanks, I really had no idea, this would be the problem. I had a look at http://wiki.contextgarden.net/Command/setupheader and, thus, thought that I would need to put the 'style=small' statement in a second pair of squared brackets. Cheers, Thomas 2013/7/15 Wolfgang Schuster : > > Am 15.07.2013 um 16:23 schrieb Thomas Friedrich > : > >> Does the job. I also realised that \setupheader[][style=small] doesn't >> have an effect, too. So, I am using > > Use \setupheader[style=small]. Empty arguments can be problematic because > some commands do different things depending on the number of arguments. > > Wolfgang > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- Thomas Friedrich Fakultät Statistik Technische Universität Dortmund 44221 Dortmund Telefon: 0231 755 - 3116 FAX: 0231 755 - 5304 E-Mail: friedr...@statistik.tu-dortmund.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table cell spanning multiple columns in tabulate
Am 15.07.2013 um 16:39 schrieb Thomas Friedrich : > Hello ConTeXt users, > > I am switching from texexec to context, and from table to tabulate. > Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the > \table environment, when you what to do the same in the \tabulate > environment? I couldn't find the answer in the context garden. The tabulate environment has no support for spanned cells. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Table cell spanning multiple columns in tabulate
Hello ConTeXt users, I am switching from texexec to context, and from table to tabulate. Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the \table environment, when you what to do the same in the \tabulate environment? I couldn't find the answer in the contextgarden. Thank you for your help. Please have a look at the following code. ~~~ snip ~~~ \enableregime[utf-8] \starttext \placetable[here][tab:tabulate]{Data of $13$ clinical trials evaluating the efficacy of the Bacillus Calmette-Guérin vaccine.}{\tfxx \starttabulatehead \FL \NC Trial \NC Author \NC Year \NC Vaccinated\NC\NC Non vaccinated\NC\NC Absolute \FR \NC\NC\NC\NC Disease \NC No disease \NC Disease \NC No disease \NC Latitude \LR \HL \stoptabulatehead \starttabulate[|r|l|r|r|r|r|r|r|] \HL \NC A \NC Aronson \NC 1948 \NC 4 \NC 119 \NC 11 \NC 128 \NC 44 \FR \NC B \NC Ferguson \& Simes\NC 1949 \NC 6 \NC 300 \NC 29 \NC 274 \NC 55 \MR \NC C \NC Rosenthal et al \NC 1960 \NC 3 \NC 228 \NC 11 \NC 209 \NC 42 \MR \NC D \NC Hart \& Sutherland \NC 1977 \NC 62 \NC 13536 \NC 248 \NC 12619 \NC 52 \MR \NC E \NC Frimodt-Moller et al \NC 1973 \NC 33 \NC 5036 \NC 47 \NC 5761 \NC 13 \MR \NC F \NC Stein \& Aronson \NC 1953 \NC 180 \NC 1361 \NC 372 \NC 1079 \NC 44 \MR \NC G \NC Vandiviere et al \NC 1973 \NC 8 \NC 2537 \NC 10 \NC 619 \NC 19 \MR \NC H \NC TPT Madras \NC 1980 \NC 505 \NC 87886 \NC 499 \NC 87892 \NC 13 \MR \NC I \NC Coetzee \& Berjak\NC 1968 \NC 29 \NC 7470 \NC 45 \NC 7232 \NC 27 \MR \NC J \NC Rosenthal et al \NC 1961 \NC 17 \NC 1699 \NC 65 \NC 1600 \NC 42 \MR \NC K \NC Comstock et al \NC 1974 \NC 186 \NC 50448 \NC 141 \NC 27197 \NC 18 \MR \NC L \NC Comstock \& Webster \NC 1969 \NC 5 \NC 2493 \NC 3 \NC 2338 \NC 33 \MR \NC M \NC Comstock et al \NC 1976 \NC 27 \NC 16886 \NC 29 \NC 17825 \NC 33 \LR \LL \stoptabulate} \placetable [here] [tab:table] {Data of $13$ clinical trials evaluating the efficacy of the Bacillus Calmette-Guérin vaccine.} {\tfxx \starttable[|r|l|r|r|r|r|r|r|] \HL \NC Trial \NC Author \NC Year \NC \use{2}\ReFormat[c]{Vaccinated} \NC \use{2}\ReFormat[c]{Non vaccinated} \NC Absolute \FR \NC \NC \NC \NC Disease \NC No disease \NC Disease \NC No disease \NC Latitude \LR \HL \NC A \NC Aronson \NC 1948 \NC 4 \NC 119 \NC 11 \NC 128 \NC 44 \FR \NC B \NC Ferguson \& Simes\NC 1949 \NC 6 \NC 300 \NC 29 \NC 274 \NC 55 \MR \NC C \NC Rosenthal et al \NC 1960 \NC 3 \NC 228 \NC 11 \NC 209 \NC 42 \MR \NC D \NC Hart \& Sutherland \NC 1977 \NC 62 \NC 13536 \NC 248 \NC 12619 \NC 52 \MR \NC E \NC Frimodt-Moller et al \NC 1973 \NC 33 \NC 5036 \NC 47 \NC 5761 \NC 13 \MR \NC F \NC Stein \& Aronson \NC 1953 \NC 180 \NC 1361 \NC 372 \NC 1079 \NC 44 \MR \NC G \NC Vandiviere et al \NC 1973 \NC 8 \NC 2537 \NC 10 \NC 619 \NC 19 \MR \NC H \NC TPT Madras \NC 1980 \NC 505 \NC 87886 \NC 499 \NC 87892 \NC 13 \MR \NC I \NC Coetzee \& Berjak\NC 1968 \NC 29 \NC 7470 \NC 45 \NC 7232 \NC 27 \MR \NC J \NC Rosenthal et al \NC 1961 \NC 17 \NC 1699 \NC 65 \NC 1600 \NC 42 \MR \NC K \NC Comstock et al \NC 1974 \NC 186 \NC 50448 \NC 141 \NC 27197 \NC 18 \MR \NC L \NC Comstock \& Webster \NC 1969 \NC 5 \NC 2493 \NC 3 \NC 2338 \NC 33 \MR \NC M \NC Comstock et al \NC 1976 \NC 27 \NC 16886 \NC 29 \NC 17825 \NC 33 \LR \HL \stoptable} \stoptext ~~~ snip ~~~ Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected
Am 15.07.2013 um 16:23 schrieb Thomas Friedrich : > Does the job. I also realised that \setupheader[][style=small] doesn't > have an effect, too. So, I am using Use \setupheader[style=small]. Empty arguments can be problematic because some commands do different things depending on the number of arguments. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected
On Jul 15, 2013, at 10:23 AM, Thomas Friedrich wrote: > Does the job. I also realised that \setupheader[][style=small] doesn't > have an effect, too. So, I am using > \setupheader[style=small] Aditya > \setupheadertexts > [{\tfx{\getmarking[sectionnumber].~\getmarking[section]}}] > [{\tfx\pagenumber}] > [{\tfx\pagenumber}] > [{\tfx{\getmarking[chapternumber].~\getmarking[chapter]}}] > > now. Thank you, Wolfgang. > > Thomas > > > > 2013/7/15 Wolfgang Schuster : >> >> Am 15.07.2013 um 12:17 schrieb Thomas Friedrich >> : >> >>> Hello everybody, >>> >>> learning my lesson for asking questions only with a minimal example >>> attached, please have a look at the following code >>> >>> ~~~ snip ~~~ >>> \setuphead[chapter][page=yes,header=empty] >>> \setuppagenumbering[start=start,alternative=doublesided,location=] >>> \setupheader[][style=small] >>> \setupheadertexts[section][pagenumber][pagenumber][chapter] >> >> \setupheadertexts >> [{\getmarking[sectionnumber]~\getmarking[section]}] >> [pagenumber] >> [pagenumber] >> [{\getmarking[chapternumber]~\getmarking[chapter]}] >> >> Wolfgang >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___ > > > > -- > Thomas Friedrich > Fakultät Statistik > Technische Universität Dortmund > 44221 Dortmund > Telefon: 0231 755 - 3116 > FAX: 0231 755 - 5304 > E-Mail: friedr...@statistik.tu-dortmund.de > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected
Does the job. I also realised that \setupheader[][style=small] doesn't have an effect, too. So, I am using \setupheadertexts [{\tfx{\getmarking[sectionnumber].~\getmarking[section]}}] [{\tfx\pagenumber}] [{\tfx\pagenumber}] [{\tfx{\getmarking[chapternumber].~\getmarking[chapter]}}] now. Thank you, Wolfgang. Thomas 2013/7/15 Wolfgang Schuster : > > Am 15.07.2013 um 12:17 schrieb Thomas Friedrich > : > >> Hello everybody, >> >> learning my lesson for asking questions only with a minimal example >> attached, please have a look at the following code >> >> ~~~ snip ~~~ >> \setuphead[chapter][page=yes,header=empty] >> \setuppagenumbering[start=start,alternative=doublesided,location=] >> \setupheader[][style=small] >> \setupheadertexts[section][pagenumber][pagenumber][chapter] > > \setupheadertexts > [{\getmarking[sectionnumber]~\getmarking[section]}] > [pagenumber] > [pagenumber] > [{\getmarking[chapternumber]~\getmarking[chapter]}] > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- Thomas Friedrich Fakultät Statistik Technische Universität Dortmund 44221 Dortmund Telefon: 0231 755 - 3116 FAX: 0231 755 - 5304 E-Mail: friedr...@statistik.tu-dortmund.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected
Am 15.07.2013 um 12:17 schrieb Thomas Friedrich : > Hello everybody, > > learning my lesson for asking questions only with a minimal example > attached, please have a look at the following code > > ~~~ snip ~~~ > \setuphead[chapter][page=yes,header=empty] > \setuppagenumbering[start=start,alternative=doublesided,location=] > \setupheader[][style=small] > \setupheadertexts[section][pagenumber][pagenumber][chapter] \setupheadertexts [{\getmarking[sectionnumber]~\getmarking[section]}] [pagenumber] [pagenumber] [{\getmarking[chapternumber]~\getmarking[chapter]}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Colored horizontal line
On 2013–07–15 "H. Özoguz" wrote: > \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color expects a previously defined colour. Marco signature.asc Description: Digital 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Colored horizontal line
On Mon, Jul 15 2013, H. Özoguz wrote: > The direct attempt \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. \definecolor[my hrule color][r=0.4,g=0.4,b=0.4] \starttext bla \color[my hrule color]{\hrule} bla \stoptext -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Colored horizontal line
On 2013–07–15 "H. Özoguz" wrote: > \setupheader[text][after=\hrule] \setupheader[text][after=\blue\hrule] Marco signature.asc Description: Digital 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Colored horizontal line
Hello there, after long time I have a question again :) I use \setupheader[text][after=\hrule] to get a horizontal line below the header. How can I color this line? The direct attempt \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. Thank you. Huseyin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected
Hello everybody, learning my lesson for asking questions only with a minimal example attached, please have a look at the following code ~~~ snip ~~~ \setuphead[chapter][page=yes,header=empty] \setuppagenumbering[start=start,alternative=doublesided,location=] \setupheader[][style=small] \setupheadertexts[section][pagenumber][pagenumber][chapter] \starttext \chapter{Anfang} \section{Eins} \input knuth \input knuth \input knuth \section{Zwei} \input knuth \input knuth \input knuth \section{Drei} \input knuth \input knuth \input knuth \chapter{Mitte} \section{Eins} \input knuth \input knuth \input knuth \section{Zwei} \input knuth \input knuth \input knuth \section{Drei} \input knuth \input knuth \input knuth \section{Vier} \input knuth \input knuth \input knuth \chapter{Ende} \section{Eins} \input knuth \input knuth \input knuth \section{Zwei} \input knuth \input knuth \input knuth \section{Drei} \input knuth \input knuth \input knuth \stoptext ~~~ snip ~~~ How can I get the chapter number and section number to also appear in the header in front of the respected chapter title and chapter number? I couldn't find the answer in the online documentation. Thank you for your help. Thomas 2013/5/31 Wolfgang Schuster : > > Am 31.05.2013 um 15:31 schrieb Thomas Friedrich > : > >> Hello, >> >> I would like to put the \chapter and \section names, including their >> respected numbers, in the header of my document, in small script and >> separated from the main text by a horizontal line, the width of >> \textwidth. On uneven pages the chapter-names, on even pages the >> section names. Reading the manual (4.16 Headers and Footers), I >> thought this should work: >> >> \setuppagenumbering[start=start,alternative=doublesided,location=] >> \setupheader[][style=small,after=\hrule] >> \setupheadertexts[section][pagenumber][pagenumber][chapter] >> >> Problems: 1) the mark "chapter" does not work. The section title >> appears but not the chapter title. >> 2) The chapter-number and the section-number don't appear in the header. >> 3) \hrule draws a line from the very left to the very right of the page. >> >> My Questions: i) What is the "mark-mechanism" that is mentioned in the >> manual (couldn't find any information about that). >> ii) Why does chapter not work? >> iii) \hrule is probably not the best command here? >> >> I found the following somewhere in the web: >> >> \setupheadertexts[{\tfx\fetchmark[section][first]}][][][{\tfx\fetchmark[chapter][current]}] >> >> which gives me indeed the chapter-name. Why "current" instead of >> "first"? What do I have to add to get the numbers? > > It does help when you can show us a minimal example for your document. > > Wolfgang > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Overlays as background in textbackground
On 2013–07–15 Hans Hagen wrote: > On 7/14/2013 8:54 PM, Marco Patzer wrote: > >Hi, > > > >overlays are not displayed when used as a background for > >textbackground. Is this a bug or are overlays not supported? > > in principle we can make it pluggable (given that there is some > sensible way to pass info and real need for it) No, I don't need it. > \definetextbackground [mybackgroundOverlay] [mp=mpos:region:whatever] > > \startuseMPgraphic{mpos:region:whatever} > for i=1 upto nofmultipars : > draw textext("\externalfigure[cow.pdf]") rotated 10 shifted > center multipars[i] ; > endfor ; > \stopuseMPgraphic > > \starttext > > \startmybackgroundOverlay > \dorecurse{10}{\input knuth \par} > \stopmybackgroundOverlay > > \stoptext Thanks for the example. Marco signature.asc Description: Digital 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Overlays as background in textbackground
On 7/14/2013 8:54 PM, Marco Patzer wrote: Hi, overlays are not displayed when used as a background for textbackground. Is this a bug or are overlays not supported? in principle we can make it pluggable (given that there is some sensible way to pass info and real need for it) \defineoverlay [myoverlay] [\ssd Foo] \definetextbackground [mybackgroundColour] [background=color, backgroundcolor=gray] \definetextbackground [mybackgroundOverlay] [background=myoverlay] \starttext %% overlay works \framed [background=myoverlay, align=normal] {\input knuth\par} %% background=color works \startmybackgroundColour \input knuth \stopmybackgroundColour %% overlay is missing \startmybackgroundOverlay \input knuth \stopmybackgroundOverlay \stoptext \definetextbackground [mybackgroundOverlay] [mp=mpos:region:whatever] \startuseMPgraphic{mpos:region:whatever} for i=1 upto nofmultipars : draw textext("\externalfigure[cow.pdf]") rotated 10 shifted center multipars[i] ; endfor ; \stopuseMPgraphic \starttext \startmybackgroundOverlay \dorecurse{10}{\input knuth \par} \stopmybackgroundOverlay \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___