[NTG-context] PDF-Toc text is wrong for new \start… commands
Hi all, I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g. \startsection[ title={my fancy section} ] bla \stopsection then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title \startsection[ title={my fancy section}, ] it looks fine. Guess this is bug, not expected behavior. Cheers, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF-Toc text is wrong for new \start… commands
A similar problem occurs, when using references: \startsection[ title={my fancy section}, ] \startsubsection[title={first subsection}] \in{see}[secsub] \stopsubsection \startsubsection[ title={second subsection}, reference=secsub ] foo \stopsubsection \stopsection the \in reference does not work, as long as you don't declare the reference as \startsubsection[ title={second subsection}, reference=secsub, ] Since other context commands don't work that way, I guess something is wrong … Steffen Am 16.07.2013 um 10:10 schrieb Steffen Kram s...@kram.io: Hi all, I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g. \startsection[ title={my fancy section} ] bla \stopsection then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title \startsection[ title={my fancy section}, ] it looks fine. Guess this is bug, not expected behavior. Cheers, 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 : 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] new beta
Hi all, ligature seems to fail also with beta from 2013.06.10. But with the latest beta, pages start numbering from 2: \starttext \input knuth \stoptext Am I the only one hit by this? I can confirm this, too. Anyone already tracked that down and has a working fix? Thanks, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF-Toc text is wrong for new \start… commands
There’s a similar quirk in the title and author attributes of \setupinteraction. I’ve just got myself into a habit of always having a trailing comma in […,…] lists, and haven’t had any problems with that so far. Gareth ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF-Toc text is wrong for new \start… commands
On 2013–07–16 Steffen Kram wrote: A similar problem occurs, when using references: It might be a parser issue. ConTeXt uses different parsers for different commands. Most commands happily accept values without trailing comma. The commands using a different parser require a trailing comma. I recall this applied to \definepalet, \usepath and a few others. The issue occasionally pops up on the mailing list, since it's inconsistent and non-intuitive behaviour. http://www.ntg.nl/pipermail/ntg-context/2012/067585.html https://gist.github.com/phi-gamma/2941284#file-features-wiki-L258 Personally I don't use that syntax any more. It doesn't work reliably and fails occasionally with particular commands. 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] PDF-Toc text is wrong for new \start… commands
On Tue, Jul 16, 2013 at 10:10 AM, Steffen Kram s...@kram.io wrote: Hi all, I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g. \startsection[ title={my fancy section} ] bla \stopsection then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title \startsection[ title={my fancy section}, ] it looks fine. Guess this is bug, not expected behavior. \starttext \startsection[ title={my fancy section} ] bla \stopsection then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title \startsection[ title={my fancy section}, ] foo \stopsection \stoptext is ok here $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/luatex/standalone-mkiv-new/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2013.07.12 19:10 -- luigi ___ 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
2013/7/16 Sietse Brouwer sbbrou...@gmail.com: 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 Thanks for pointing this out, and I did indeed rewrite the code, so it would work with the TABLE mechanism. It's a bit like breaking a butterfly with a wheel. Please have a look at the following code, as I think I may have found bug in the TABLE mechanism. The following code does exactly what I want but it has a pretty bad hack on line 7, where I reference all columns by [1,2,3,4,5,6,7,8][1,2,3] rather than using the [r][1,2,3], since the latter does not work as expected. It seems that statements concerning columns take precedence before statements that concern rows. In the example below, \setupTABLE[c][1,2,3][align=right] overwrites \setupTABLE[r][1,2][align=center] --- no matter where you put the latter (before or after the former statement). At least for me, this is rather unintuitive. ~~~ snip ~~~ \enableregime[utf-8] \starttext \placetable[here][tab:bcg-study-data]{The table shows results}{% \bTABLE \setupTABLE[r][each][align=left] \setupTABLE[1,2,3,4,5,6,7,8][1,2][align=center] %%% The following should be equivalest to the line above: %\setupTABLE[r][1,2][align=center] \setupTABLE[c][1,2,3][align=right] \setupTABLE[c][4,5,6,7][width=17mm] \setupTABLE[r][2][height=\lineheight] \setupTABLE[frame=off] \setupTABLE[4,5,6,7][2][bottomframe=on] \setupTABLE[r][first][topframe=on] \setupTABLE[r][last][bottomframe=on] \setupTABLE[r][4][topframe=on] \bTABLEhead \bTR \bTD[nr=3] Trial \eTD \bTD[nr=3] Author \eTD \bTD[nr=3] Year \eTD \bTD[nc=4] Infected when\eTD \bTD[nr=3] {Absolute\\ latitute}\eTD \eTR \bTR \bTD[nc=2] vaccinated \eTD \bTD[nc=2] not vaccinated \eTD \eTR \bTR \bTD yes \eTD \bTD no \eTD \bTD yes \eTD \bTD no \eTD \eTR \eTABLEhead \bTABLEbody \bTR\bTD A \eTD\bTD Aronson \eTD\bTD 1948 \eTD\bTD 4 \eTD\bTD 119 \eTD\bTD 11 \eTD\bTD 128 \eTD\bTD 44 \eTD\eTR \bTR\bTD B \eTD\bTD Ferguson \eTD\bTD 1949 \eTD\bTD 6 \eTD\bTD 300 \eTD\bTD 129 \eTD\bTD 274 \eTD\bTD 55 \eTD\eTR \bTR\bTD C \eTD\bTD Rosenthal \eTD\bTD 1960 \eTD\bTD 3 \eTD\bTD 228 \eTD\bTD 11 \eTD\bTD 2090 \eTD\bTD 442 \eTD\eTR \bTR\bTD D \eTD\bTD Hart \eTD\bTD 1977 \eTD\bTD 656 \eTD\bTD 13536 \eTD\bTD 248 \eTD\bTD 12619 \eTD\bTD 52 \eTD\eTR \eTABLEbody \eTABLE} \stoptext ~~~ snip ~~~ Is this a bug? Is this a feature? Thanks. Thomas On 15 July 2013 16:49, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 15.07.2013 um 16:39 schrieb Thomas Friedrich friedr...@statistik.tu-dortmund.de: 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 ___ -- Thomas Friedrich Fakultät Statistik Technische Universität Dortmund 44221 Dortmund Telefon: 0231 755 - 3116 FAX: 0231 755 - 5304 E-Mail:
Re: [NTG-context] PDF-Toc text is wrong for new \start? commands
Have you tried formatting it this way: \startsection [title={my fancy section}] bla \stopsection Breaking before closing or after opening the square braces has always given trouble to me. Andrés Conrado Montoya El Andi andresconr...@gmail.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint. Lea http://www.gnu.org/philosophy/no-word-attachments.es.html Naturalmente, la gente normal no desea la guerra, pero al final son los líderes de una nación quienes determinan su política, y resulta muy sencillo doblegar a la gente, sea una democracia, una dictadura fascista, un parlamento o una dictadura comunista. Con voz o sin voz, la gente siempre podrá entregarse a la voluntad de sus líderes. Es fácil. Lo único que hay que hacer es decirles que están siendo atacados, y denunciar a los pacifistas por su falta de patriotismo y exponer el país al peligro. Funciona igual en todos los países. ---Hermann Goering, en los juicios de Nuremberg. 2013/7/16 ntg-context-requ...@ntg.nl: Send ntg-context mailing list submissions to ntg-context@ntg.nl To subscribe or unsubscribe via the World Wide Web, visit http://www.ntg.nl/mailman/listinfo/ntg-context or, via email, send a message with subject or body 'help' to ntg-context-requ...@ntg.nl You can reach the person managing the list at ntg-context-ow...@ntg.nl When replying, please edit your Subject line so it is more specific than Re: Contents of ntg-context digest... Today's Topics: 1. Some questions about the letter module (Michael Ash) 2. counter in linenote disables hyphenation in body text (Pablo Rodr?guez) 3. Re: Table cell spanning multiple columns in tabulate (Sietse Brouwer) 4. PDF-Toc text is wrong for new \start? commands (Steffen Kram) 5. Re: PDF-Toc text is wrong for new \start? commands (Steffen Kram) -- Message: 1 Date: Mon, 15 Jul 2013 12:34:36 -0400 From: Michael Ash m...@econs.umass.edu To: ntg-context@ntg.nl Subject: [NTG-context] Some questions about the letter module Message-ID: caktwfunnw35z4uqnmrwwv-yjuavo7vxeuta2qthzvk4phgi...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 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]