Re: [NTG-context] Automatic reference prefixing in heads with prefix=+
On Sat, Sep 27, 2014 at 12:00 PM, Christoph Reller christoph.rel...@gmail.com wrote: Hi, Various documents mention a namespace feature for references by setting prefix=+. This is a really cool feature but I cannot get it to work. Why does the following example not work: \setupinteraction[state=start] \setuphead[chapter][prefix=+] \starttext \startchapter[reference=chap1,title={First Chapter}] \startsection[reference=sec1,title={First Section in First Chapter}] Reference \type{sec1} is \about[sec1].\par Reference \type{chap2:sec1} is \about[chap2:sec1].\par \stopsection \stopchapter \startchapter[reference=chap2,title={Second Chapter}] \startsection[reference=sec1,title={First Section in Second Chapter}] Reference \type{sec1} is \about[sec1].\par Reference \type{chap1:sec1} is \about[chap1:sec1].\par \stopsection \stopchapter \stoptext Any help is appreciated. Christoph Reller Does anybody have a minimal working example on this topic? Because of the concise syntax prefix=+ it is difficult to google for an example. This feature is mentioned in two places: 1. contextref.pdf in section 12.5 Cross references explains the main mechanism but seems a little outdated. 2. Hans Hagen, This Way - Cross document referencing, September 2011. This is more up to date, but mentions the feature only briefly. The mentioned key there is not prefix but referenceprefix, which doesn't seem to work either. Regards, Christoph Reller ___ 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] splitting bibliographic references
On 30 Sep 2014, Andrea Valle va...@di.unito.it wrote I?m working on a project for a book that is a collection of essays. Each one needs at its end a list of references. But how can I force context to take into account only a portion of text for generating bibliographic references and for inserting a block of references after a section? (To collect all refs in a single bib file or to have split bib files is not an issue) Hi Andrea, It probably depends on whether you cite your bibliographic references in the text of your essay, or only a part of them. What I would do anyway is to make a subsection or a subject “References after each essay, add the references that I have not cited in my text as \nocite[key] and finish with \placepublications[criterium=cite]. I should perhaps add that I always process my projects without using the bib-module. I separately make the necessary .bbl-files, which I linput before \starttext. It gives me a lot of flexibility. I hope this helps. Best regards, Robert Blackstone ___ 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] frown in context 2
On Tue, 29 Oct 2013, Xan wrote: Hi, I just want to make an arc to a word. I found that [http://tex.stackexchange.com/questions/15468/frown-and-mathop-stackrel-overset] but it's LaTeX or XeTeX centric. Is there any equivalent in ConTeXt? $\overparent{MMM}$ Aditya Can the symbol be more close to the MMM? There is so big space between the content and the frown symbol Thanks, Xan ___ 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] splitting bibliographic references
Thanks Robert. It probably depends on whether you cite your bibliographic references in the text of your essay, or only a part of them. I’m working now on the bib files, so I can consider having a single bib for all essays, or split bib files (maybe cleaner). What I would do anyway is to make a subsection or a subject “References after each essay, add the references that I have not cited in my text as \nocite[key] and finish with \placepublications[criterium=cite]. Hmm, I’m tweaking a test like this, but I’m getting a single ref section on top, including both citations. \setupbibtex[database={cim2014template},sort=author] \setuppublications[alternative=apa] \starttext this is a test\cite{malham19953d} \placepublications[criterium=cite] \page % readd or not? Doesn't change \setupbibtex[database={cim2014template},sort=author] \setuppublications[alternative=apa] Now another\cite{SoDAICMC} \placepublications[criterium=cite] \stoptext I should perhaps add that I always process my projects without using the bib-module. I separately make the necessary .bbl-files, which I linput before \starttext. It gives me a lot of flexibility. Could you provide a minimal example? I’ve never used ConTeXt for this, and I’m a bit stuck Thanks a lot! Best -a- I hope this helps. Best regards, Robert Blackstone ___ 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] Combining outer effect with filled glyphs
Hi, I would like to get red text with black outlines. The magic in ConTeXt that does the outline is \starteffect[outer] Something \stopeffect but I would like to combine normal filled glyphs with an outline. While I'm able to come up with some magic to do this for single lines (creating zero width hboxes etc.), I would really like to typeset a complete paragraph on a poster. Is there any magic that would allow me to do that? Thank you, Mojca ___ 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] Combining outer effect with filled glyphs
On 9/30/2014 11:45 AM, Mojca Miklavec wrote: Hi, I would like to get red text with black outlines. The magic in ConTeXt that does the outline is \starteffect[outer] Something \stopeffect but I would like to combine normal filled glyphs with an outline. While I'm able to come up with some magic to do this for single lines (creating zero width hboxes etc.), I would really like to typeset a complete paragraph on a poster. Is there any magic that would allow me to do that? \starttext \startbuffer[test] \input tufte \stopbuffer \startoverlay {\framed[align=normal,foregroundstyle=\bfd,foregroundcolor=blue]{\starteffect[inner]\getbuffer[test]\stopeffect}} {\framed[align=normal,foregroundstyle=\bfd,foregroundcolor=red] {\starteffect[outer]\getbuffer[test]\stopeffect}} \stopoverlay \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 ___
Re: [NTG-context] splitting bibliographic references
On 30 Sep 2014, at 11:45 , Andrea Valle va...@di.unito.it wrote Could you provide a minimal example? I?ve never used ConTeXt for this, and I?m a bit stuck Hi Andrea, Here is a “minimal example. It is for mkii now but you can easily switch to mkiv by changing the starting (and stopping) of the chapters. Is this what you had in mind? Best regards, Robert Blackstone %Ref.: ntg-context Digest, Vol 123, Issue 46, 30-09-2014 %Subject: splitting bibliographic references \setuppublicationlist[samplesize={{Lam}81},totalnumber=4] \startpublication[k=Arnold:1931bl,t=booklet, a={{{Arnold, Franck. T.}}},y=1931, n=4,s={Arn}31] \author[]{}[]{}{{Arnold, Franck. T.}} \pubyear{1931} \title{{The Art of Accompaniment from a Thorough-Bass as practiced in the 17th and 18th centuries}} \pubname{The Holland Press} \city{London} \stoppublication \startpublication[k=ChristensenT:1992qzbl,t=booklet, a={{{Christensen, Thomas}}},y=, n=3,s={Chr}] \author[]{}[]{}{{Christensen, Thomas}} \title{{{\em \quote{The Spanish Baroque Guitar and Seventeenth-Century Triadic Theory}}, JMT, {\em 36 (1992), 1-42}}} \stoppublication \startpublication[k=Dreyfus-Laurence:1987zbl,t=booklet, a={{{Dreyfus, Laurence}}},y=1987, n=2,s={Dre}87] \author[]{}[]{}{{Dreyfus, Laurence}} \pubyear{1987} \title{{Bach's Continuo Group: Players and Practices in his Vocal Works}} \city{Cambridge} \stoppublication \startpublication[k=Lamott:1981crbl,t=booklet, a={{{Lamott, Bruce A.}}},y=1981, n=1,s={Lam}81] \author[]{}[]{}{{Lamott, Bruce A.}} \pubyear{1981} \title{{{\em \quote{Keyboard Improvisation according to \quotation{Nova instructio pro pulsandis organis}, 1670-{\em c}1675} by Spiridion a Monte Carmelo, Ph.D.~diss.~(Stanford U., 1980), repr.}}} \city{Ann Arbor, MI} \stoppublication \starttext \chapter{Knuth}%mkii %\startchapter[bookmark=,list=,title={Knuth}]%mkiv \input knuth \section{References} \nocite[Arnold:1931bl] \nocite[ChristensenT:1992qzbl] \placepublications[criterium=cite] %\stopchapter%mkiv \chapter{Tufte}%mkii %\startchapter[bookmark=,list=,title={Tufte}]%mkiv \input tufte \section{References} \nocite[Dreyfus-Laurence:1987zbl] \nocite[Lamott:1981crbl] \placepublications[criterium=cite] %\stopchapter%mkiv \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 ___
[NTG-context] (MKIV beta) APA citations: et al. incorrectly written
Hi all, I use This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) ConTeXt ver: 2014.09.27 14:46 MKIV beta fmt: 2014.9.30 int: english/english I want citations to respect APA rules, as described here: http://blog.apastyle.org/apastyle/2011/11/the-proper-use-of-et-al-in-apa-style.htm l *Problem*: when I cite a work with three authors, et al. appears in the first citation. *Example*: \setupbibtex[database={references/bibliographic_database},sort=author] \setuppublications[alternative=apa] \starttext \cite[extras={, p.~3}][Zhou2012] \cite[Zhou2012] \stoptext Incorrectly produces: (Zhou et al., 2012, p. 3) (Zhou et al., 2012) Instead of: (Zhou, Lyu, King, 2012, p. 3) (Zhou, Lyu, King, 2012) Where the BibTeX entry is @inproceedings{Zhou2012, address = {New York, New York, USA}, annote = {2/5}, author = {Zhou, Tom Chao and Lyu, Michael R. and King, Irwin}, booktitle = {Proceedings of the 21st international conference companion on World Wide Web - WWW '12 Companion}, doi = {10.1145/2187980.2188201}, isbn = {9781450312301}, keywords = {classification,community question answering,question routing}, month = apr, pages = {783}, publisher = {ACM Press}, title = {{A classification-based approach to question routing in community question answering}}, url = {http://dl.acm.org/citation.cfm?id=2187980.2188201}, year = {2012} } I hope someone can help me with this. Best regards, Sander Maijers ___ 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] (MKIV beta) APA citations: et al. incorrectly written
Hello, These are the sort of details that we are trying to address with the new bibliography subsystem. The APA rules (reference: Publication Manual of the APA, 6th edition) give many special cases, some of which can be a bit tricky. The mkii/mkiv bibliography module that you are using does a good job but is not so sophisticated. The new mkiv rewrite is (unfortunately) still work in progress and is not quite production ready. The new subsystem was one topic of the recent ConTeXt meeting. You can continue to address bibliography questions to the list, or to me directly as I am presently working on this with Hans in my spare time (Luigi and Thomas are also actively involved). This does not solve your immediate problem, however. Alan On Tue, 30 Sep 2014 16:19:36 +0200 Sander Maijers s.n.maij...@gmail.com wrote: Hi all, I use This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) ConTeXt ver: 2014.09.27 14:46 MKIV beta fmt: 2014.9.30 int: english/english I want citations to respect APA rules, as described here: http://blog.apastyle.org/apastyle/2011/11/the-proper-use-of-et-al-in-apa-style.htm l *Problem*: when I cite a work with three authors, et al. appears in the first citation. *Example*: \setupbibtex[database={references/bibliographic_database},sort=author] \setuppublications[alternative=apa] \starttext \cite[extras={, p.~3}][Zhou2012] \cite[Zhou2012] \stoptext Incorrectly produces: (Zhou et al., 2012, p. 3) (Zhou et al., 2012) Instead of: (Zhou, Lyu, King, 2012, p. 3) (Zhou, Lyu, King, 2012) Where the BibTeX entry is @inproceedings{Zhou2012, address = {New York, New York, USA}, annote = {2/5}, author = {Zhou, Tom Chao and Lyu, Michael R. and King, Irwin}, booktitle = {Proceedings of the 21st international conference companion on World Wide Web - WWW '12 Companion}, doi = {10.1145/2187980.2188201}, isbn = {9781450312301}, keywords = {classification,community question answering,question routing}, month = apr, pages = {783}, publisher = {ACM Press}, title = {{A classification-based approach to question routing in community question answering}}, url = {http://dl.acm.org/citation.cfm?id=2187980.2188201}, year = {2012} } I hope someone can help me with this. Best regards, Sander Maijers -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ 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] splitting bibliographic references
On Tue, 30 Sep 2014 01:17:14 +0200 Andrea Valle va...@di.unito.it wrote: But how can I force context to take into account only a portion of text for generating bibliographic references and for inserting a block of references after a section? With the new bibliography subsystem (still work in progress), you can use \placelistofpublications [criterium=section] Alan ___ 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] (MKIV beta) APA citations: et al. incorrectly written
Hi Alan, I'm writing a thesis in ConTeXt so I'm keen to make this work. I can test things, and I hope that the basics of APA are covered already? Also, a temporary solution could be to allow explicit choice of the citation format and to rely on the author to make the proper choice, as long as automatic formatting hasn't been completed. All I want in the short term is to keep track of references to show them in a proper format - it needn't be easy and/or automatic for now. Best, Sander Maijers On Tue, Sep 30, 2014 at 8:32 PM, Alan BRASLAU alan.bras...@cea.fr wrote: Hello, These are the sort of details that we are trying to address with the new bibliography subsystem. The APA rules (reference: Publication Manual of the APA, 6th edition) give many special cases, some of which can be a bit tricky. The mkii/mkiv bibliography module that you are using does a good job but is not so sophisticated. The new mkiv rewrite is (unfortunately) still work in progress and is not quite production ready. The new subsystem was one topic of the recent ConTeXt meeting. You can continue to address bibliography questions to the list, or to me directly as I am presently working on this with Hans in my spare time (Luigi and Thomas are also actively involved). This does not solve your immediate problem, however. Alan On Tue, 30 Sep 2014 16:19:36 +0200 Sander Maijers s.n.maij...@gmail.com wrote: Hi all, I use This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) ConTeXt ver: 2014.09.27 14:46 MKIV beta fmt: 2014.9.30 int: english/english I want citations to respect APA rules, as described here: http://blog.apastyle.org/apastyle/2011/11/the-proper-use-of-et-al-in-apa-style.htm l *Problem*: when I cite a work with three authors, et al. appears in the first citation. *Example*: \setupbibtex[database={references/bibliographic_database},sort=author] \setuppublications[alternative=apa] \starttext \cite[extras={, p.~3}][Zhou2012] \cite[Zhou2012] \stoptext Incorrectly produces: (Zhou et al., 2012, p. 3) (Zhou et al., 2012) Instead of: (Zhou, Lyu, King, 2012, p. 3) (Zhou, Lyu, King, 2012) Where the BibTeX entry is @inproceedings{Zhou2012, address = {New York, New York, USA}, annote = {2/5}, author = {Zhou, Tom Chao and Lyu, Michael R. and King, Irwin}, booktitle = {Proceedings of the 21st international conference companion on World Wide Web - WWW '12 Companion}, doi = {10.1145/2187980.2188201}, isbn = {9781450312301}, keywords = {classification,community question answering,question routing}, month = apr, pages = {783}, publisher = {ACM Press}, title = {{A classification-based approach to question routing in community question answering}}, url = {http://dl.acm.org/citation.cfm?id=2187980.2188201}, year = {2012} } I hope someone can help me with this. Best regards, Sander Maijers -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ 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
(Of course you are using the bibliography/bibtex module here which is currently being re-implemented but is not quite production ready...) 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. 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 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. Alan On Tue, 16 Sep 2014 09:30:45 -0700 Thangalin thanga...@gmail.com wrote: Hi List, How do you make a hyperlink for a bibtex entry's title using the entry's URL? The bibtex entries include articles, techreports, inproceedings, books, and so forth. I can work around the issue by duplicating the URL as follows. For example, save this as sources.bib: @inproceedings{schryen@security, author={Schryen, Guido and Rich, Eliot}, title={\bibhref{Increasing software security through open source or closed source development? Empirics suggest that we have asked the wrong question}{http://epub.uni-regensburg.de/21293/}}, booktitle={Proceedings of the 2010 43rd Hawaii International Conference on System Sciences}, series={HICSS '10}, year={2010}, isbn={978-0-7695-3869-3}, pages={1--10}, numpages={10}, doi={10.1109/HICSS.2010.228}, acmid={1748219}, publisher={IEEE Computer Society}, address={Washington, DC, USA}, url={http://epub.uni-regensburg.de/21293/}, } Here is a short example that uses the sources.bib file: \setupbibtex[database=sources] \setuppublications[ alternative=num, sorttype=cite, ] % Superscript citation cross-references. \setupcite[num][ left=\raisebox{1ex}\hbox\bgroup\tfxx, right=\egroup, ] \definecolor[WPexternal][h=B93507] \setupinteraction[ state=start, ] \def\WPHyperlink{% \setupinteraction[ style=normal, color=WPexternal, ]% } \define[2]\bibhref{% \WPHyperlink {\goto{#1}[url(#2)]}% } \starttext \startbodymatter \startchapter[title={Title},] \startsection[title={Transparency}] The complete source code is open for analysis and development.\cite[schryen@security] \stopsection \stopchapter \stopbodymatter \startbackmatter \completepublications[criterium=text] \stopbackmatter \stoptext The title is hyperlinked, but mixes presentation with content and duplicates the URL. Note that the colour is also changed to match the other external links in the document. Thank you. ___ 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
Hello Wolfgang, Thank you for the answer, but I did not understand everything. Fabrice Envoyé de mon iPad ___ 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 ___