[NTG-context] Last names in citations
Hi, probably my question is not a very hard one but I don't find a way to do what I'm trying to do. If I use \cite[authoryears] ConTeXt uses last names in the citation. That's what I want, but I want to use another style for my task, that I defined this way: \definebtx[aps:cite:margin][authorconversion=normalshort] \startsetups btx:aps:cite:margin \texdefinition{btx:aps:title} \texdefinition{btx:aps:author} \doiftextelse\currentbtxrighttext{ \currentbtxrighttext } { \removeunwantedspaces \removepunctuation } this works and is perfect for my style, but I obtain the full names, and not just the last names. How can I obtain something similar to the citation I'm using, but with just last names? ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering and splitting a table
Il giorno Sat, 7 Jan 2012 09:32:25 +0100 Wolfgang Schuster ha scritto: > > Am 07.01.2012 um 01:49 schrieb Fulvio: > > > Hi, it's me again, with another problem. > > > > I want to typeset very simple tables. Each table system is ok, > > because I need very simple tables, as long as I can split the table > > in multiple pages and repeat the header in multiple pages, so it > > should be ok to use Tabulate, Tables, TABLE and Linetable. > > > > I can typeset a similar table easily, but I want to center the table > > horizontally in the page. I can box the table (with an hbox or a > > vbox) and then center the box, but in this way the box won't split > > in multiple pages. I think that floatings aren't the solution, too, > > because I need the table exactly in place (I understand that the > > "here" placement don't give me that guaranty, but I'm not totally > > sure). > > > > I've at least a solution in my mind, but that requires too > > much work, so I hope that there is a simple one. > > \placetable[split,force]{}{} > > gives you a table which is centered, is split across pages (“split” > keyword) and will stay at the position (“force” keyword). > > WOlfgang Ok, it works ;) Thanks :) signature.asc Description: PGP 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] Centering and splitting a table
Hi, it's me again, with another problem. I want to typeset very simple tables. Each table system is ok, because I need very simple tables, as long as I can split the table in multiple pages and repeat the header in multiple pages, so it should be ok to use Tabulate, Tables, TABLE and Linetable. I can typeset a similar table easily, but I want to center the table horizontally in the page. I can box the table (with an hbox or a vbox) and then center the box, but in this way the box won't split in multiple pages. I think that floatings aren't the solution, too, because I need the table exactly in place (I understand that the "here" placement don't give me that guaranty, but I'm not totally sure). I've at least a solution in my mind, but that requires too much work, so I hope that there is a simple one. Thanks in advance. Fulvio Satta signature.asc Description: PGP 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] Constraint in line numbers
Il giorno Thu, 22 Dec 2011 09:32:01 +0100 luigi scarso ha scritto: > On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster > wrote: > > > > Am 21.12.2011 um 18:19 schrieb Fulvio: > > > >> Hi, this is my first message in this ml ;) > >> > >> Well, I've a stupid constraint in a work: I must limit the number > >> of lines in a page. I have to have 32-35 lines on each page. > >> > >> Now, the task isn't too complex in principle, I can work on > >> interline sizes and glues, but this way is a little bit tricky. > >> I wonder if there is a better (and elegant) way to manage the > >> problem. > > > > You can the number of lines on a page with the \setuplayout command. > > > > \setuplayout[lines=20] > > \starttext > > \dorecurse{100}{Line \recurselevel\par} > > \stoptext > > > > Wolfang > Of course there is a static idea of "line" that depends on the > current font and a dynamic idea of row that depends on the current > document: here is an exaggerated example > > \setuplayout[lines=20] > \newdimen\T \T=1.5mm > \starttext > \dorecurse{40}{\ruledvbox{Line \recurselevel}\par} > \dorecurse{100}{\ruledvbox{Line \recurselevel\vrule width1pt height > \recurselevel\T depth \recurselevel\T}\par} > \stoptext > Very good hints, thank you! I'll investigate on them in the next few days! :) Fulvio signature.asc Description: PGP 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] Constraint in line numbers
Hi, this is my first message in this ml ;) Well, I've a stupid constraint in a work: I must limit the number of lines in a page. I have to have 32-35 lines on each page. Now, the task isn't too complex in principle, I can work on interline sizes and glues, but this way is a little bit tricky. I wonder if there is a better (and elegant) way to manage the problem. Thanks Fulvio signature.asc Description: PGP 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] Escaping in LuaTeX
Il domenica 02 gennaio 2011 02:04:46 Fulvio Satta ha scritto: > I have a problem with Lua and the "#" operator. > If I execute the following code I receive an error. > > \def\luacode% > {\startluacode > local t = {1, 2, 3} > tex.print(#t) > \stopluacode} > > \starttext > \luacode > \stoptext > > ConTeXt give me the message: > > ! Illegal parameter number in definition of \luacode. > >t > l.4 tex.print(#t > ) > > And if I execute the "H" command I get: > > You meant to type ## instead of #, right? > Or maybe a } was forgotten somewhere earlier, and things > are all screwed up? I''m going to assume that you meant ##. > > I've tryed with ##t, whit \#t, with \string#t, with \ctxlua instread of > \startluacode and \stopluacode, and I've obtained some other errors, but > ConTeXt always give me an error. > > Maybe should I escape in another manner the "#" operator? In the previous mail I foget to say my ConTeXt version. I use ConTeXt minimals 2010.12.31 08:59. signature.asc Description: This is a digitally signed message part. ___ 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] Escaping in LuaTeX
I have a problem with Lua and the "#" operator. If I execute the following code I receive an error. \def\luacode% {\startluacode local t = {1, 2, 3} tex.print(#t) \stopluacode} \starttext \luacode \stoptext ConTeXt give me the message: ! Illegal parameter number in definition of \luacode. t l.4 tex.print(#t ) And if I execute the "H" command I get: You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I''m going to assume that you meant ##. I've tryed with ##t, whit \#t, with \string#t, with \ctxlua instread of \startluacode and \stopluacode, and I've obtained some other errors, but ConTeXt always give me an error. Maybe should I escape in another manner the "#" operator? signature.asc Description: This is a digitally signed message part. ___ 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 ___