Re: [NTG-context] Newline in chapter title? Or slight shrinking of it?
That’s it. The \\ is also nicely ignored in the TOC. Thanks. G On 02 Oct 2014, at 17:20, Otared Kavian ota...@gmail.com wrote: How about \\ As in \starttext \chapter{I have a entry that is just a tad too wide. \\ I'd like to have a two-line chapter title } \stoptext On 02 Oct 2014, at 15:03, Gerben Wierda gerben.wie...@rna.nl wrote: I have a \chapter entry that is just a tad too wide. I’d like to have a two-line chapter title, but adding a \crlf leads to an error. Is there another way, or can I somehow make it fit the text width exactly? After all, it only overshoots a little. I’m using mkii Thanks, G ___ 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 ___ ___ 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] Using \startframedtext with \startcombination
Hi Wolfgang, Your explanations are once again very clear, I fully understand the mechanism. Thank you very much, Fabrice ___ 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] frac and tfrac with sqrt
Hi! Is this (see frac.pdf) the expected output of \frac and \tfrac in combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac. I attach also the output from the corresponding latex document, having the result I expect. Best regards, Mikael PS Compilation done with latest standalone frac.pdf Description: Adobe PDF document frac.tex Description: TeX document lfrac.pdf Description: Adobe PDF document lfrac.tex Description: TeX document ___ 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] error in animation
\startanimation … \stopanimation is working in the new ConTeXt 2014.10.02 23:07 version. Thank you. Best regards, Dalyoung___ 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] authors in the toc
Thanks, it’s a bit too complicated for me now, I was hoping for something like a before argument where to place the author param from the chapter. Best -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 02 Oct 2014, at 11:18, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 02.10.2014 um 01:17 schrieb Andrea Valle va...@di.unito.it: Dear all, as I’m working on a book that is a collection of essays by various authors, I need their names in the toc. I’m using mkiv and the command start chapter, in the first argument specifying the author param. I’ve explored the wiki (http://wiki.contextgarden.net/Table_of_Contents) but I don’t get it. Can anyone provide some hints? There is a example on the wiki. You have to set your own values with the second argument of the \startchapter etc. command, to display the entry in the roc you have to write your own layout where you access it with the \structurelistuservariable command. http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content 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] authors in the toc
On 2014-10-03 10:32, Andrea Valle wrote: Thanks, it’s a bit too complicated for me now, I was hoping for something like a before argument where to place the author param from the chapter. Andrea, If you can accept the author's name on a separate line in the toc and also a little less automation than the example that uses user structure variables, you might consider the \writebetweenlist command. In addition to the wiki entry (which is incomplete with respect to the parameters), see the recent email thread with the subject Chapter precis http://www.mail-archive.com/ntg-context%40ntg.nl/msg75670.html. The following may be a useful starting point: \starttext \completecontent \chapter{This is a chapter} \writebetweenlist[chapter][location=here]{\hskip4em\it Author Name} \input ward \section{A section} \section{Another section} \chapter{Another chapter} \stoptext -- Rik ___ 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] Generate Authorlist example fails, was Re: authors in the toc
On 2014-10-02 15:22, Wolfgang Schuster wrote: Am 02.10.2014 um 19:42 schrieb Rik Kabel cont...@rik.users.panix.com mailto:cont...@rik.users.panix.com: On 2014-10-02 05:18, Wolfgang Schuster wrote: There is a example on the wiki. You have to set your own values with the second argument of the \startchapter etc. command, to display the entry in the roc you have to write your own layout where you access it with the \structurelistuservariable command. http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content Wolfgang This example fails for me using the current (2014-09-27) standalone beta and with TL14. The failure is that the list of authors is presented as a grid without contents. Changing any of the lines in the example that construct the table cells, such as \bTD \structureuservariable{author} \eTD to \bTD xx \structureuservariable{author} \eTD results in a table with the new text, but no user variable text, showing that the \structureuservariable commands are not returning any text in this example. Has something relevant changed since the example was prepared (2010-11 or earlier)? (A pointer to useful descriptions of \structureuservariable and \structurelistuservariable would also be welcome. In the wiki, the startsection command description describes the former, but I have come across no comprehensive description for either in the documentation.) First you have to make a distinction between the values which are set with the first and second argument of \startchapter, \startsection etc. While the first argument takes only certain keys, e.g. title, bookmark etc. you’re free to choose your own keys for the second argument because they are considered userdata. The point of this userdata is to give users a way to specify information which are printed in the table of content or in the header, to access these values context provides two commands. When you create a new layout for the table of contents you can use the \structurelistuservariable command which takes the name of the key with the information as argument and when you create a new header layout you can use the \structureuservariable command. \define[3]\ChapterListCommand {\starttabulate \NC Number \NC #1 \NC\NR \NC Title \NC #2 \NC\NR \NC Page \NC #3 \NC\NR \TB[medium] \NC File \NC \structurelistuservariable{file} \NC\NR \stoptabulate} \setuplist[chapter][alternative=command,command=\ChapterListCommand] \define[2]\ChapterHeadCommand {\startframed[align=flushleft,strut=no] \starttabulate[before=,after=] \NC Number \NC #1 \NC\NR \NC Title \NC #2 \NC\NR \TB[medium] \NC File \NC \structureuservariable{file} \NC\NR \stoptabulate \stopframed} \setuphead[chapter][command=\ChapterHeadCommand] \starttext \completecontent \startchapter[title=Knuth example][file=knuth.tex] \input knuth \stopchapter \startchapter[title=Zapf example][file=zapf.tex] \input zapf \stopchapter \stoptext Wolfgang Thank you, Wolfgang, for that explanation. Can you suggest what might be wrong with the example at http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content? The list of authors is created, so the user variable 'author' is set at for \doifsomething. When the index for the author list is set to a constant, only one row is generated, but when it is the user variable 'name' the right number of rows is created, so 'name' is also set when it is referenced as the key in the author list sorting macro. Each line of the table is empty, suggesting that within the scope of the table the user variables are reset to nil. The same problem exists when \starttabulate is used instead of \bTABLE. -- Rik ___ 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] authors in the toc
Thanks a lot Rik, I’ll look into it Best -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 03 Oct 2014, at 19:00, Rik Kabel cont...@rik.users.panix.com wrote: On 2014-10-03 10:32, Andrea Valle wrote: Thanks, it’s a bit too complicated for me now, I was hoping for something like a before argument where to place the author param from the chapter. Andrea, If you can accept the author's name on a separate line in the toc and also a little less automation than the example that uses user structure variables, you might consider the \writebetweenlist command. In addition to the wiki entry (which is incomplete with respect to the parameters), see the recent email thread with the subject Chapter precis. The following may be a useful starting point: \starttext \completecontent \chapter{This is a chapter} \writebetweenlist[chapter][location=here]{\hskip4em\it Author Name} \input ward \section{A section} \section{Another section} \chapter{Another chapter} \stoptext -- Rik ___ 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] Use url to hyperlink bibliography title
Hi Alan, (Of course you are using the bibliography/bibtex module here which is currently being re-implemented but is not quite production ready...) I didn't know that. Am looking forward to using it, thank you. Most bibliography styles ask that the url (or doi) appear at the end of the list rendering. This could be made active when list interaction is enabled. I'd've thought that parameter order shouldn't matter. That is, it should be possible to insert the doi anywhere in the entry. (Typically, name-value pairs are read into a dictionary prior to interpreting, which has a number of benefits, including order independence.) Normally, clicking on the list entry itself (not the url or doi) will like back to the (first) citation of this work in the text. You would That is useful. Yet, if the same reference is cited multiple times, then clicking the entry would return the reader to the first reference, which is probably undesirable if they were at a different point in the document. The ability to disable such a feature is useful. like, rather, that the title links to the url. (Why just the title rather than the entire entry, by the way?) This is an issue that we need to make configurable somehow. I will take note. For this particular document, internal hyperlinks (cross-references) are blue and external hyperlinks are orange. Consider the following image: http://i.stack.imgur.com/CGtQ9.png It'd be nice if just the number within the brackets (i.e., 1) could be set as the hyperlink back to the first reference (e.g., as a blue hyperlink). (Again, the behaviour for citing the same reference in multiple locations needs to be addressed. If it was [1, 2, 3], then each number could cross-reference the correct back-reference in the document. But this is a digression and probably not a terribly useful feature.) Reasons for title links, and not the whole entry, include: - Aesthetics. Having the entire bibliography in orange would look terrible. - Identifiable. The user would know that the text is an external hyperlink, rather than thinking the entire bibliography was mistakenly coloured orange. - Multiple links. It should be possible to link to: the publisher, author home pages (or email addresses), and conference web sites. If the entire entry was a single link, it'd not be possible to have separate links for different items. Stylistically, for example, it should be possible to set Guido Schryen to an orange hyperlink and have a small, hyperlinked envelope beside his name that links to his email address (for digital copies; hard copies would not include the envelope, but might write the email address in parenthesis or, optionally, not display anything at all). Here are a few scenarios: @article{schryen@security, author = {Schryen, Guido}, title = {Software security}, doi = {http://...}, % adds a hyperlink to the title author_schryen = {http://...}, % hyperlinks to author's home page } @article{schryen@security, author = {Schryen, Guido}, title = {Software security}, doi = {http://...}, % adds a hyperlink to the title author_schryen = {http://...}, % hyperlinks name to author's home page author_schryen = {mailto:gschr...@domain.com}, % envelope icon hyperlink } @article{schryen@security, author = {Schryen, Guido}, title = {Software security}, author_schryen = {mailto:gschr...@domain.com}, % hyperlinks name, no envelope } If the authors have two (or more) identical last names, they can be matched in listed order of the author entry: author_schryen_1 = {http://...} author_schryen_2 = {mailto:gschr...@domain.com}, It can be time-consuming to contact the author of a paper. Providing the ability to link back to the author (in some form) is a courteous, expedient convenience. ___ 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 ___