Re: [NTG-context] specific document layout with ConTeXt
Hello, A big thanks to both Aditya and Wolfgang for their example styles/documents. This will help me (and perhaps also others) get familiar with ConTeXt much faster than any manual could. Aditya, could you also post a document that uses the IEEE module? It is not clear to me how I should specify the title, for example. Wolfgang's module looks very clean and is even somewhat similar to the way Lout's report class can be configured by means of the parameters. This, I like alot and is basically what I was looking for in ConTeXt. Unfortunately there is no small caps included in URW Times. I have tried installing the Gyre fonts, but that was not very successful. What is the easiest way to end up with a SC Times font? Or should I just fake it using a construct simular to what is described in http://www.ntg.nl/pipermail/ntg-context/2006/020929.html? This will not allow me to specify it as a style to \setuphead however, I assume? Kind regards, Brecht PS. Sorry for not properly replying to the thread. But I only subscribed just now and Mailman does not support retrieving old messages... ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem Passing \starttabulate into Lua
Am 27.12.2008 um 12:20 schrieb Tad Ashlock: I'm trying to create a ConTeXt macro (mkiv) that will manipulate the macro argument's text with Lua and then feed it back into ConTeXt with tex.print(). My approach worked correctly until I called the macro with \starttabulate ... \stoptabulate in the macro's argument. So I started reducing the problem down to a minimum example which surprisingly turned out to have nothing to do with the manipulations I was performing. Here is the working example (without \starttabulate): \long\def\testmacro#1{\directlua0{d='\luaescapestring{#1}'}} \starttext Hello, world! \testmacro{% testing} \stoptext Here is the broken example: \long\def\testmacro#1{\directlua0{d='\luaescapestring{#1}'}} \starttext Hello, world! \testmacro{% testing \starttabulate \NC 0 \NC testing tabulate. \NC \NR \stoptabulate} \stoptext \def\testmacro {\bgroup \catcode`\\=12 \dotestmacro} \def\dotestmacro#1 {\ctxlua{d='\luaescapestring{#1}'}% \egroup} \starttext \testmacro{\starttabulate \NC text \NC text \NC\NR \stoptabulate} %\ctxlua{tex.sprint(d)} \stoptext 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] specific document layout with ConTeXt
PS: In your environment file you have \setuplayout[ header = 0pt, footer = 0pt, headerdistance = 0pt, footerdistance = 0pt, top = 1.125in, topdistance = 0pt, bottom = 1.125in, bottomdistance = 0pt, leftedge= 0.85in, rightedge = 0.85in, height = fit] ConTeXt will silently ignore all of this. You must not have space between keywords and options. Write this as I've been using context, on and off, for 5 years and I did not know that! I understood that after many testings. I think it should be specified very clearly in docs. Best -a- -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.va...@unito.it -- - La Repubblica promuove lo sviluppo della cultura e la ricerca scientifica e tecnica. - La Repubblica detta le norme generali sull'istruzione ed istituisce scuole statali per tutti gli ordini e gradi. (Costituzione della Repubblica Italiana, art. 9 e 33) -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.va...@unito.it -- "The objectives of SuperCollider have been taken a stage further with the development of SAOL, the fruits of a research project based at MIT, launched in 1998" (P. Manning, Electronic and Computer Music, revised and expanded edition, 2004) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] specific document layout with ConTeXt
On Sun, 28 Dec 2008, John Devereux wrote: Aditya Mahajan writes: In general I find other peoples "templates" very educational. PS: In your environment file you have \setuplayout[ header = 0pt, footer = 0pt, headerdistance = 0pt, footerdistance = 0pt, top = 1.125in, topdistance = 0pt, bottom = 1.125in, bottomdistance = 0pt, leftedge= 0.85in, rightedge = 0.85in, height = fit] ConTeXt will silently ignore all of this. You must not have space between keywords and options. Write this as I've been using context, on and off, for 5 years and I did not know that! Does anyone know if there is a way to get context to stop when it sees an unknown option, instead of silently ignoring it? The way this is dealt with in the core is by specifying options using \c!header, etc. This has two advantages: First we get a multi-lingual interface for free. Second any typos in the keys are caught. This does not catch "mistakes" like giving an new option to a command, for example specifying headstyle=something to \setuphead (headstyle is valid for \setupitemgroup, but not for \setuphead). There is, however, no way of catching "errors" like height= fit, Here context thinks that height is set to " fit" (with the space), and this does not match any of the cases in the code, so is ignored. Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] specific document layout with ConTeXt
On Sun, 28 Dec 2008, Wolfgang Schuster wrote: Am 28.12.2008 um 16:56 schrieb Aditya Mahajan: > On Sun, 28 Dec 2008, Brecht Machiels wrote: > > > Looking at the countless documents that show off ConTeXt, it is obvious that it is very much possible of creating > > custom layouts. However, I wonder, how much TeX hacking is required? > > I have submitted around 3-4 IEEE conference documents using ConTeXt. I am attaching my private t-IEEE.tex module, > which takes care of formatting things in IEEE format. I also have a bbl file for formatting in IEEE style, which is > used by the above module. I wrote a style too based on the information Machiel used in his style and I got from the example document. Your style is cleaner than mine in certain places. I will try to merge them into my style the next time I work on this style. BTW, why use the terse conversion=A|R, rather than the more versbose Characters and Romannumberals. We are not trying to make context code look like latex, are we? ;-) Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] specific document layout with ConTeXt
Aditya Mahajan writes: > On Sun, 28 Dec 2008, Brecht Machiels wrote: > >> Looking at the countless documents that show off ConTeXt, it is >> obvious that it is very much possible of creating custom >> layouts. However, I wonder, how much TeX hacking is required? > > I have submitted around 3-4 IEEE conference documents using ConTeXt. I > am attaching my private t-IEEE.tex module, which takes care of > formatting things in IEEE format. I also have a bbl file for > formatting in IEEE style, which is used by the above module. > > Unfortunately, I do not have any documentation (this was meant to be a > private module). It also has a lot of private macros which are not > layout specific, but I use them in almost all my documents. I haven't > used this style in almost 6 months, so they may not conform to the > latest spec. (IEEE keeps on changing specs with time and with > conferences, which is a bit frustating). > > If others are interested, I can also release it on ConTeXt garden and > provide some documentation. > > Aditya Hi Aditya, In general I find other peoples "templates" very educational. > PS: In your environment file you have > > \setuplayout[ > header = 0pt, > footer = 0pt, > headerdistance = 0pt, > footerdistance = 0pt, > top = 1.125in, > topdistance = 0pt, > bottom = 1.125in, > bottomdistance = 0pt, > leftedge= 0.85in, > rightedge = 0.85in, > height = fit] > > ConTeXt will silently ignore all of this. You must not have space > between keywords and options. Write this as I've been using context, on and off, for 5 years and I did not know that! Does anyone know if there is a way to get context to stop when it sees an unknown option, instead of silently ignoring it? [...] -- John Devereux ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] specific document layout with ConTeXt
template_paper.tex Description: Binary data s-ieee.tex Description: Binary data Am 28.12.2008 um 16:56 schrieb Aditya Mahajan: On Sun, 28 Dec 2008, Brecht Machiels wrote: Looking at the countless documents that show off ConTeXt, it is obvious that it is very much possible of creating custom layouts. However, I wonder, how much TeX hacking is required? I have submitted around 3-4 IEEE conference documents using ConTeXt. I am attaching my private t-IEEE.tex module, which takes care of formatting things in IEEE format. I also have a bbl file for formatting in IEEE style, which is used by the above module. I wrote a style too based on the information Machiel used in his style and I got from the example document. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] specific document layout with ConTeXt
On Sun, 28 Dec 2008, Brecht Machiels wrote: Looking at the countless documents that show off ConTeXt, it is obvious that it is very much possible of creating custom layouts. However, I wonder, how much TeX hacking is required? I have submitted around 3-4 IEEE conference documents using ConTeXt. I am attaching my private t-IEEE.tex module, which takes care of formatting things in IEEE format. I also have a bbl file for formatting in IEEE style, which is used by the above module. Unfortunately, I do not have any documentation (this was meant to be a private module). It also has a lot of private macros which are not layout specific, but I use them in almost all my documents. I haven't used this style in almost 6 months, so they may not conform to the latest spec. (IEEE keeps on changing specs with time and with conferences, which is a bit frustating). If others are interested, I can also release it on ConTeXt garden and provide some documentation. Aditya PS: In your environment file you have \setuplayout[ header = 0pt, footer = 0pt, headerdistance = 0pt, footerdistance = 0pt, top = 1.125in, topdistance = 0pt, bottom = 1.125in, bottomdistance = 0pt, leftedge= 0.85in, rightedge = 0.85in, height = fit] ConTeXt will silently ignore all of this. You must not have space between keywords and options. Write this as \setuplayout[ header=0pt, footer=0pt, headerdistance=0pt, footerdistance=0pt, top=1.125in, topdistance=0pt, bottom=1.125in, bottomdistance=0pt, leftedge=0.85in, rightedge=0.85in, height=fit] %D \module %D [ file=bibl-ieee, %Dversion=2007.06.17, %D title=IEEE bibliography style, %D subtitle=IEEE Publications, %D author={Aditya Mahajan}, %D date=\currentdate, %D copyright={Aditya Mahajan}] \unprotect %D The default mnemonics are not compatible with IEEE style. \setuplabeltext [\s!en] [\v!january :\s!mnem=Jan.] \setuplabeltext [\s!en] [\v!february :\s!mnem=Feb.] \setuplabeltext [\s!en] [\v!march:\s!mnem=Mar.] \setuplabeltext [\s!en] [\v!april:\s!mnem=Apr.] \setuplabeltext [\s!en] [\v!may :\s!mnem=May] \setuplabeltext [\s!en] [\v!june :\s!mnem=Jun.] \setuplabeltext [\s!en] [\v!july :\s!mnem=Jul.] \setuplabeltext [\s!en] [\v!august :\s!mnem=Aug.] \setuplabeltext [\s!en] [\v!september:\s!mnem=Sep.] \setuplabeltext [\s!en] [\v!october :\s!mnem=Oct.] \setuplabeltext [\s!en] [\v!november :\s!mnem=Nov.] \setuplabeltext [\s!en] [\v!december :\s!mnem=Dec.] \setupbibtex [sort=author] \setuppublicationlist [maybeyear=off] \setuplistalternative [ieee] [\c!distance=1em, \c!width=2em, \c!stretch=0em, \c!command=, ] \setuppublicationlist [\c!numbercommand=\!!i...@brackets, \c!width=2em, \c!alternative=ieee, \c!samplesize={99}, ] \def\doverysimplebibnumref#1#2% {\refsep \ifcase#1\relax \unknownreference{#1}\else \def\tempa{#2}\ifx\empty\tempa#1\else#1\docommaordash{#1}{#2}#2\fi \fi}% \def\docommaordash#1#2% {\doifelse{\the\numexpr#1+1-#2\relax}{0}% {\bibalternative\c!pubsep}% {\bibalternative\c!inbetween}}% \setupcite [author,year] [\c!andtext={ and }, \c!otherstext={ et al.}, \c!pubsep={, }, \c!lastpubsep={ and }, \c!compress=\v!no, \c!inbetween={ }, \c!left={(}, \c!right={)}] \setupcite [authoryear] [\c!andtext={ and }, \c!otherstext={ et al.}, \c!pubsep={, }, \c!lastpubsep={ and }, \c!compress=\v!no, \c!inbetween={ }, \c!left={(}, \c!right={)}] \setupcite [authoryears] [\c!andtext={ and }, \c!otherstext={ et al.}, \c!pubsep={, }, \c!lastpubsep={ and }, \c!compress=\v!no, \c!inbetween={, }, \c!left={(}, \c!right={)}] \setupcite [key,serial,authornum,page,short,type,doi,url] [\c!andtext={ and }, \c!otherstext={ et al.}, \c!pubsep={, }, \c!lastpubsep={ and }, \c!compress=\v!no, \c!inbetween={ }, \c!left={[}, \c!right={]}] \setupcite [num] [\c!andtext={ and }, \c!otherstext={ et al.}, \c!pubsep={, }, \c!lastpubsep={ and }, \c!compress=\v!yes, \c!inbetween={]--[}, \c!left={[}, \c!right={]}] %D This is the ugliest way to make sure that the number is right justified. %D The trouble is that \filename{core-lst.tex} contains an explicit %D \type|\hfill|. \def\!!i...@brackets#1% {\hbox \ifdim\!!widtha>\zeropoint to \!!widtha \fi {\hss[#1]\hskip 0.5em}} \setuppublications [\c!sorttype=cite,
Re: [NTG-context] specific document layout with ConTeXt
2008/12/28 Brecht Machiels : > http://homes.esat.kuleuven.be/~bmachiel/rfic/template_lout.pdf Two observations: - a...@linux complains about a bad /BBox in Times-RomanSC - none of the fonts are embedded Best 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___