Re: [NTG-context] Strange bib referencing behavior
Taco Hoekwater skrev: Janneman wrote: One missing "curly" bracket but still the same problem. Anything to do with some global settings with "INCOLLECTION@" ? Add \usepublications[\jobname] just before \starttext and you should be fine. (you can search the archives, this problem has come up a couple of times in the last two weeks). Best wishes, Taco PS It is better to be a little more specific about the actual problem inside the actual email text, I simply stopped looking after I saw the first error in the bib log. ___ 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 ___ After I added \usepublications[\jobname] it work as expected thanks for the help! MVH /Janneman % -- \usemodule[bib] %\usemodule[bibltx] \setupheadtext[sv][pubs=Litteraturhänvisning] \setupbibtex[database=test] %\usepublications[uppsatsGJ2009] \setuppublications[state=start,alternative=apa,criterium=all,refcommand=authoryear] \setuppublicationlist[author=\invertedauthor,artauthor=\invertedauthor,editor=\invertedauthor] \setupcite[authoryear][andtext={ och },compress=no] \usepublications[\jobname] \starttext \section{test} When citing this author it makes an annoying new line. Eva \cite[Hultin2007]. But this reference \cite[2005tmo] keeps at the same line. This is bad because i'm writing a thesis right now and this doesn't look good. \stoptext % - PS! I will investigate further those earlier discussions about this topic and of course check my preferences in thunderbird so not the attached files pastes in the mail automatically. I thought it would be useful to have the log entries for you to investigate. DS! ___ 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] font info in mkiv
Taco Hoekwater skrev: Taco Hoekwater wrote: Hi, Janneman wrote: HI! The command : /mtxrun --script fonts --list /generates the result: MTXrun | fontnames: not supported: --list Strange, it worked before as according to the wikipage http://wiki.contextgarden.net/Fonts_in_LuaTeX So, what I want is to list all my installed fonts on my system. This works mtxrun --script fonts --list --pattern=\* Sorry, mtxrun --script fonts --list --all --pattern=\* ___ 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 ___ OK thanks! It works now! MVH /Janneman ___ 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] Strange bib referencing behavior
Taco Hoekwater skrev: Janneman wrote: HI! This is very strange . See attached minimal examples! Try fixing you bib file first, it is broken. Best wishes, Taco ___ 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 ___ One missing "curly" bracket but still the same problem. Anything to do with some global settings with "INCOLLECTION@" ? /Janneman This is BibTeX, Version 0.99c (TeX Live 2009) The top-level auxiliary file: test.aux The style file: cont-no.bst Database file #1: test.bib You've used 2 entries, 2181 wiz_defined-function locations, 511 strings with 4014 characters, and the built_in function-call counts, 818 in all, are: = -- 15 > -- 14 < -- 4 + -- 9 - -- 3 * -- 96 := -- 92 add.period$ -- 3 call.type$ -- 2 change.case$ -- 3 chr.to.int$ -- 2 cite$ -- 2 duplicate$ -- 63 empty$ -- 76 format.name$ -- 21 if$ -- 105 int.to.chr$ -- 2 int.to.str$ -- 4 missing$ -- 2 newline$ -- 29 num.names$ -- 9 pop$ -- 90 preamble$ -- 1 purify$ -- 8 quote$ -- 0 skip$ -- 15 stack$ -- 0 substring$ -- 6 swap$ -- 18 text.length$ -- 2 text.prefix$ -- 2 top$ -- 0 type$ -- 13 warning$ -- 0 while$ -- 3 width$ -- 4 write$ -- 100 ___ 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] Strange bib referencing behavior
HI! This is very strange . See attached minimal examples! Thanks for help in advance! /Janneman \citation{*} \bibstyle{cont-no} \bibdata{test} \setuppublicationlist[samplesize={Hul07},totalnumber=2] \startpublication[k=Hultin2007,t=incollection, a={{Hultin}},y=2007, n=1,s=Hul07] \artauthor[]{Eva}[E.]{}{Hultin} \pubyear{2007} \arttitle{Dialogiska klassrum eller deliberativa samtal - spelar det någon roll? en jämförelse mellan två normativa positioner i det samtida talet om skolans demokratiuppdrag} \editor[]{Tomas}[T.]{}{Englund} \title{Utbildning som kommunikation} \city{Göteborg} \pages{383 - 397} \pages{383 - 397} \pubname{Daidalos} \stoppublication \startpublication[k=2005tmo,t=book, a={{Bergstr{\"o}m}},y=2005, n=2,s=Ber05] \author[G{\"o}ran~Bor{\'e}us]{Kristina}[K.]{}{Bergstr{\"o}m} \pubyear{2005} \title{Textens mening och makt : metodbok i samh{\"a}llsvetenskaplig text- och diskursanalys} \isbn{91-44-04274-4} \city{Lund} \pubname{Studentlitteratur} \edition{2., [omarb.] uppl.} \keywords{Samh{\"a}llsvetenskap -- metodik Textanalys Diskursanalys} \stoppublication @INCOLLECTION{Hultin2007, author = {Hultin, Eva}, title = {Dialogiska klassrum eller deliberativa samtal - spelar det någon roll? En jämförelse mellan två normativa positioner i det samtida talet om skolans demokratiuppdrag}, booktitle = {Utbildning som kommunikation}, publisher = {Daidalos}, year = {2007}, editor = {Tomas Englund}, pages = {383 - 397}, address = {Göteborg}, owner = {janerik}, timestamp = {2009.12.15} @BOOK{2005tmo, title = {Textens mening och makt : metodbok i samh{\"a}llsvetenskaplig text- och diskursanalys}, publisher = {Studentlitteratur}, year = {2005}, author = {Bergstr{\"o}m, G{\"o}ran Bor{\'e}us, Kristina}, address = {Lund}, edition = {2., [omarb.] uppl.}, isbn = {91-44-04274-4}, keywords = {Samh{\"a}llsvetenskap -- metodik Textanalys Diskursanalys}, owner = {sameman}, timestamp = {2009.10.02} } This is BibTeX, Version 0.99c (TeX Live 2009) The top-level auxiliary file: test.aux The style file: cont-no.bst Database file #1: test.bib I was expecting a `,' or a `}'---line 14 of file test.bib : : @BOOK{2005tmo, (Error may have been on previous line) I'm skipping whatever remains of this entry You've used 2 entries, 2181 wiz_defined-function locations, 511 strings with 4014 characters, and the built_in function-call counts, 818 in all, are: = -- 15 > -- 14 < -- 4 + -- 9 - -- 3 * -- 96 := -- 92 add.period$ -- 3 call.type$ -- 2 change.case$ -- 3 chr.to.int$ -- 2 cite$ -- 2 duplicate$ -- 63 empty$ -- 76 format.name$ -- 21 if$ -- 105 int.to.chr$ -- 2 int.to.str$ -- 4 missing$ -- 2 newline$ -- 29 num.names$ -- 9 pop$ -- 90 preamble$ -- 1 purify$ -- 8 quote$ -- 0 skip$ -- 15 stack$ -- 0 substring$ -- 6 swap$ -- 18 text.length$ -- 2 text.prefix$ -- 2 top$ -- 0 type$ -- 13 warning$ -- 0 while$ -- 3 width$ -- 4 write$ -- 100 (There was 1 error message) (test.tex ConTeXt ver: 2009.12.01 17:09 MKIV fmt: 2009.12.1 int: english/english system : cont-new loaded (/home/janerik/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/home/janerik/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/home/janerik/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/home/janerik/context/tex/texmf-context/tex/context/user/cont-sys.rme (/home/janerik/context/tex/texmf-context/tex/context/base/type-lua.tex) (/home/janerik/context/tex/texmf-context/tex/context/base/type-tmf.tex (/home/janerik/context/tex/texmf-context/tex/context/base/type-tmf.mkiv)) (/home/janerik/context/tex/texmf-context/tex/context/base/type-siz.tex (/home/janerik/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/home/janerik/context/tex/texmf-context/tex/context/base/type-otf.tex (/home/janerik/context/tex/texmf-context/tex/context/base/type-otf.mkiv))) system : test.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % special commands, mostly for the ctx development team % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ % "test.tex", % } % \stopluacode % % process info % \setupsystem[inputfile=test.tex] % \setupsystem[\c!n=2,\c!m=2] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (test.top) fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active system :
[NTG-context] font info in mkiv
HI! The command : /mtxrun --script fonts --list /generates the result: MTXrun | fontnames: not supported: --list specification> Strange, it worked before as according to the wikipage http://wiki.contextgarden.net/Fonts_in_LuaTeX So, what I want is to list all my installed fonts on my system. context --version MTXrun | main context file: /home/janerik/context/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.12.01 17:09 /Janneman ___ 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] The best place to install fonts so it is discovered by mkiv?
According to an earlier and recent thread http://archive.contextgarden.net/thread/20091021.090505.4153465c.en.html#20091021.090505.4153465c that finally were solved, thanks to Wolfgang and also Aditya. Here is a following question: Is there some convention where to place files, documents, fonts, modules and stuff? It seems in my case that LuaTools wasn't able to find the fonts in ~./fonts or even /usr/share/fonts. Not either in my minimals/tex/texmf-local/tex/context/fonts/ directory But I had to create texmf-project/fonts/.. to make context to discover the fonts. http://wiki.contextgarden.net/Fonts_in_LuaTex mentioned about setting osfontdir= which I did in my my /home/user/.bash_profile linked to .bashrc cat .bash_profile PATH=$PATH:/home/janerik/bin . ~/context/tex/setuptex set OSFONTDIR="/usr/share/fonts" It seems to have no effect. Very strange! :-( Here is my output from Luatools --generate command LuaTools | fileio: locating list of /home/janerik/texmf LuaTools | fileio: locating list of /home/janerik/context/tex/texmf-project LuaTools | fileio: locating list of /home/janerik/context/tex/texmf-fonts LuaTools | fileio: locating list of /home/janerik/context/tex/texmf-local LuaTools | fileio: locating list of /home/janerik/context/tex/texmf-context LuaTools | fileio: locating list of /home/janerik/context/tex/texmf-linux LuaTools | fileio: locating list of /home/janerik/context/tex/texmf-extra LuaTools | fileio: locating list of /home/janerik/context/tex/texmf LuaTools | fileio: scanning path /home/janerik/context/tex/texmf-local It seems to only search these directories. All best Janneman ___ 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] Section setup
Janneman skrev: Martin Scholz skrev: Am Fri, 16 Oct 2009 21:06:01 +0200 schrieb Mojca Miklavec: On Tue, Oct 13, 2009 at 19:05, Martin Scholz wrote: Hi List, I'm trying to setup a new document in Context, and a newbee, so I now want to setup the section head as following § Secnum - Sectitle Where the § Secnum part is set up in the margin and the Sectitle over the Text is there any solution how to get it done? Not to be taken too seriously: you need to ask a more complex (challenging) questions to get a better chance for an answer :) :) :) It's best to study chapter 8 of cont-eni.pdf from pragma-ade.com to get the idea of how to handle section modifications. Here's one possible solution: \def\mynumbercommand#1{§ #1 --} \setuphead [section] [numbercommand=\mynumbercommand, alternative=inmargin] You may get a bit too big distance, but you can do one of the following tricks: a) shorten the distance between margin and text b) instead of just "--" you can use something like \hbox to 0.2mm{--\hss} to fake negative spacing or add explicit negative kerning. Mojca Hi Mojca, I'm a type of learner by reading the sourcecode, so it is easier for me if I see examples in the code then reading manuals... thanks for you help, will try your example later that day... Thanks and greetings Martin ___ 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 ___ Maybe a more simplified solution \definehead[paragraf][section] \setuphead[paragraf][before= {\crlf \S},after=,style=bold] % or style=something else \starttext \paragraf[ref]{Paragraf title} \input tufte \stoptext Cheers Janneman ___ 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 ___ Understood! ;-) \definehead[paragraf][section] \def\mynumbercommand#1{\bf{\S} #1 --} \setuphead[paragraf][numbercommand=\mynumbercommand,alternative=inmargin] \starttext \paragraf[ref]{TEST} \input tufte \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] Section setup
Martin Scholz skrev: Am Fri, 16 Oct 2009 21:06:01 +0200 schrieb Mojca Miklavec: On Tue, Oct 13, 2009 at 19:05, Martin Scholz wrote: Hi List, I'm trying to setup a new document in Context, and a newbee, so I now want to setup the section head as following § Secnum - Sectitle Where the § Secnum part is set up in the margin and the Sectitle over the Text is there any solution how to get it done? Not to be taken too seriously: you need to ask a more complex (challenging) questions to get a better chance for an answer :) :) :) It's best to study chapter 8 of cont-eni.pdf from pragma-ade.com to get the idea of how to handle section modifications. Here's one possible solution: \def\mynumbercommand#1{§ #1 --} \setuphead [section] [numbercommand=\mynumbercommand, alternative=inmargin] You may get a bit too big distance, but you can do one of the following tricks: a) shorten the distance between margin and text b) instead of just "--" you can use something like \hbox to 0.2mm{--\hss} to fake negative spacing or add explicit negative kerning. Mojca Hi Mojca, I'm a type of learner by reading the sourcecode, so it is easier for me if I see examples in the code then reading manuals... thanks for you help, will try your example later that day... Thanks and greetings Martin ___ 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 ___ Maybe a more simplified solution \definehead[paragraf][section] \setuphead[paragraf][before= {\crlf \S},after=,style=bold] % or style=something else \starttext \paragraf[ref]{Paragraf title} \input tufte \stoptext Cheers Janneman ___ 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] bibtex referencelist doesn't show up with mkiv
Hi All! It seems to be broken in some way when I try this example \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=7titlar] \starttext \cite[Carlsen2008amt] \cite[Dash2008fik] \cite[Häggström2008tso] \cite[Klisinska2009tft] \cite[Lantz-Andersson2009fie] \cite[Långström2008msf] \cite[Sumpter2009oao] \completepublications \stoptext The result is that citations do work but no publicationlist under "References" heading. I've attached the logs and bib and also the generated bbl file and is running ConTeXt ver: 2009.09.14 12:39 MKIV fmt: 2009.9.14 int: english/english Regards Janneman @book{Carlsen2008amt, author={Carlsen, Martin}, title={Appropriating mathematical tools through problem solving in collaborative smallgroup settings}, publisher={University of Agder}, address={Kristiansand}, year={2008}, ISBN={978-82-7117-639-6}, keywords={Matematikutbildning -- gymnasieskolan}, note={Diss. (sammanfattning) Kristiansand : University of Agder, 2008}, } @book{Dash2008fik, author={Dash, Ingrid}, title={Flexibility in knowing school mathematics in the contexts of a Swedish and an Indian school class [Elektronisk resurs]}, publisher={Department of Education, Lund University}, address={Lund}, year={2008}, keywords={Matematikundervisning -- Sverige Matematikundervisning -- Indien Pedagogisk metodik}, note={Diss. Lund : Lunds universitet, 2009}, } @book{Häggström2008tso, author={H{\"a}ggstr{\"o}m, Johan}, title={Teaching systems of linear equations in Sweden and China : what is made possible to learn?}, publisher={Acta Universitatis Gothoburgensis}, address={G{\"o}teborg}, year={2008}, ISBN={978-91-7346-621-9}, keywords={Matematikundervisning -- Sverige Matematikundervisning -- Kina Ekvationer}, note={Diss. G{\"o}teborg : G{\"o}teborgs universitet, 2008}, } @book{Klisinska2009tft, author={KlisinÌska, Anna}, title={The fundamental theorem of calculus : a case study into the didactic transposition of proof}, publisher={Lule{\aa} Tekniska Universitet}, address={Lule{\aa}}, year={2009}, ISBN={978-91-86233-46-4}, keywords={Matematikundervisning}, note={Diss. Lule{\aa} : Lule{\aa} universitet, 2009}, } @book{Lantz-Andersson2009fie, author={Lantz-Andersson, Annika}, title={Framing in educational practices : learning activity, digital technology and the logic of situated action}, publisher={Acta Universitatis Gothoburgensis}, address={G{\"o}teborg}, year={2009}, ISBN={978-91-7346-654-7}, keywords={Utbildning via Internet Matematikundervisning -- gymnasieskolan Interaktiva multimedier}, note={Diss. G{\"o}teborg : G{\"o}teborgs universitet, 2009}, } @book{LÃ¥ngström2008msf, author={L{\aa}ngstr{\"o}m, Peder}, title={Matematikelevers strategier f{\"o}r fel- och hj{\"a}lps{\"o}kning}, publisher={Department of Mathematics and Mathematics Statistics, Ume{\aa} University}, address={Ume{\aa}}, year={2008}, ISBN={978-91-7264-554-7}, keywords={Matematikundervisning -- gymnasieskolan}, note={Licentiatavhandling Ume{\aa} : Ume{\aa} universitet, 2008}, } @book{Sumpter2009oao, author={Sumpter, Lovisa}, title={On aspects of mathematical reasoning : affect and gender}, publisher={Department of Mathematics and Mathematical Statistics, Ume{\aa} Universitet}, address={Ume{\aa}}, year={2009}, ISBN={978-91-7264-791-6}, keywords={Matematikundervisning -- gymnasieskolan Matematiskt t{\"a}nkande -- genusaspekter}, note={Diss. (sammanfattning) Ume{\aa} : Ume{\aa} universitet, 2009}, } \setuppublicationlist[samplesize={Sum09},totalnumber=7] \startpublication[k=Carlsen2008amt,t=book, a={{Carlsen}},y=2008, n=1,s=Car08] \author[]{Martin}[M.]{}{Carlsen} \pubyear{2008} \title{Appropriating mathematical tools through problem solving in collaborative smallgroup settings} \isbn{978-82-7117-639-6} \city{Kristiansand} \pubname{University of Agder} \note{Diss. (sammanfattning) Kristiansand : University of Agder, 2008} \keywords{Matematikutbildning -- gymnasieskolan} \stoppublication \startpublication[k=Dash2008fik,t=book, a={{Dash}},y=2008, n=2,s=Das08] \author[]{Ingrid}[I.]{}{Dash} \pubyear{2008} \title{Flexibility in knowing school mathematics in the contexts of a Swedish and an Indian school class [Elektronisk resurs]} \city{Lund} \pubname{Department of Education, Lund University} \note{Diss. Lund : Lunds universitet, 2009} \keywords{Matematikundervisning -- Sverige Matematikundervisning -- Indien Pedagogisk metodik} \stoppublication \startpublication[k=Häggström2008tso,t=book, a={{H{\"a}ggstr{\"o}m}},y=2008, n=3,s=H{\"a}g08] \author[]{Johan}[J.]{}{H{\"a}ggstr{\"o}m} \pubyear{2008} \title{Teaching systems of linear equations in Sweden and China : what is made possible to learn?} \isbn{978-91-7346-621-9} \city{G{\"o}teborg} \pubname{Acta Universitatis Gothoburgensis} \note{Diss. G{\"o}teborg : G{\"o}teborgs universitet, 2008} \keywords{Matematikundervisning -- Sverige Matematikunder