Re: [NTG-context] new to ConTeXt
On Tue, 7 Nov 2006 17:34:54 -0500 (EST), Aditya Mahajan <[EMAIL PROTECTED]> wrote: > On Tue, 7 Nov 2006, Pablo Rodríguez wrote: > >> Thanks for your answer, Hans. Sorry for not answering before (these days >> I find myself installing a new computer and moving data into it). >> >> It seems that the task is more difficult than I thought (although >> x-contm.tex seems a very interesting example to begin with). > > You can also check the thread > http://archive.contextgarden.net/thread/20050225.103441.cda2d788.en.html#20050225.103441.cda2d788 > for some discussion on getting started with XML and context. Since this thread is also talking about some tools, I'll complete the list with dbcontext (http://dblatex.sf.net) on which I contribute, that translates DocBook to ConTeXt via XSL stylesheets. I guess that many aspects could be directly handled by context. Here are some examples built from DocBook sources: http://dblatex.sourceforge.net/example/svn-book-by-dbcontext.pdf, http://dblatex.sourceforge.net/example/divepython-dbc.pdf.bz2. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new to ConTeXt
On Tue, 7 Nov 2006, Pablo Rodríguez wrote: > > Hans Hagen wrote: >>> should be something similar DocbookInConTeXt, but I don't know whether >>> it uses the eXaMplE framework (I don't even know whether . >>> >> the example framework is some ongoing experiment with web related >> tex/xml things; you don't need that, just stick to the built in xml >> handler (as described in example.pdf, but more extensive examples can be >> found in the x-*.tex files in the distribution >>> Could anyone comment on this topic? I mean, whether the described task >>> could be achieved with ConTeXt, which issues may arise, whether this is >>> the best approach to the issue, whether I miss something, and so on. >>> >> most of the projects we run at pragma involve xml -> pdf processing; >> using a dedicated dtd works most convenient >> >> using tei is ok, as long as you stick to structural elements and keep >> away from layour-related coding > > Thanks for your answer, Hans. Sorry for not answering before (these days > I find myself installing a new computer and moving data into it). > > It seems that the task is more difficult than I thought (although > x-contm.tex seems a very interesting example to begin with). You can also check the thread http://archive.contextgarden.net/thread/20050225.103441.cda2d788.en.html#20050225.103441.cda2d788 for some discussion on getting started with XML and context. > But my problem right now is ConTeXt itself. My PhD thesis (that was > typeset with LaTeX [for the examination board], Lambda [for the > electronic publication] and XeLaTeX [just for fun ;-)]) contains quotes > and some fragments in ancient Greek. And I would like to be able to do > similar things (in a fancier way, of course ;-)) with ConTeXt. > > For those ones who were newbies not so long ago or that come from a > humanities background, which are the best documents to start learning > ConTeXt? There is also Berend de Boer's Latex in proper context that can help in the transition. http://articles.contextgarden.net/article/32 Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Header number separator
On Tue, 7 Nov 2006, Aditya Mahajan wrote: > On Tue, 7 Nov 2006, Jeff Smith wrote: > >> Hi, >> >> Some time ago I had a query on the list about roman numbering in >> headers. Once I got my answer, I asked something else relatively >> unrelated but in the same thread. It's probably bad etiquette, so I >> figure that is why it has remained unheeded. I'd like to submit my >> second query again. >> >> I have a problem with the separator in header numbers. I want to >> use a different separator between chapter and section numbers (-), than >> between >> section and subsection numbers (.). >> >> So, assuming I'm using roman numerals for chapters, I'd like numering >> of sections to be I-1, I-2, I-3, etc., of subsections to be I-1.1, >> I-1.2, I-2.1, I-2.2, I-2.3, etc. >> >> Is there a way to achieve what I want to do? > > Yes, as long as you do not want to refer to your sections :) The > separator seems to be broken while refering anyways. I need this functionality for a project (IEEE conference style), so here is hack to get the feature. The referencing also works. Use with caution, can break existing macros. \setupsection[section-1][separator=-] \setupsection[section-2][separator=-] \setupsection[section-3][separator=-] %section \setupsection[section-4][separator=.] %subsection \setupsection[section-5][separator=-] \setupsection[section-6][separator=-] \setupsection[section-2][bodypartconversion=Romannumerals] \unprotect \def\@@longsectionnumber#1% {\ifreversesectionnumbers \@@shortsectionnumber{#1}% \ifnum\countervalue{\??se\previoussection{#1}}>\zerocount \csname\??se#1\c!separator\endcsname%AM: was . \csname\previoussection{#1}\c!number\endcsname \fi \else \ifnum\countervalue{\??se\previoussection{#1}}>\zerocount \csname\previoussection{#1}\c!number\endcsname% \csname\??se#1\c!separator\endcsname%AM: was . \fi \@@shortsectionnumber{#1}% \fi} \protect \starttext \chapter{Test} \section[sec]{section test} \subsection[sub]{test} The separator is honored in \in Section[sec] and in \in subsection[sub]. \stoptext Basically, section numbers are built according to \??se (\setupsection, etc), while separators are specified using \??ko (\setuphead, etc), so any interaction is very difficult. I defined separators according to \setupsection, and use while generating the number. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Header number separator
On Tue, 7 Nov 2006, Jeff Smith wrote: > Hi, > > Some time ago I had a query on the list about roman numbering in > headers. Once I got my answer, I asked something else relatively > unrelated but in the same thread. It's probably bad etiquette, so I > figure that is why it has remained unheeded. I'd like to submit my > second query again. > > I have a problem with the separator in header numbers. I want to > use a different separator between chapter and section numbers (-), than > between > section and subsection numbers (.). > > So, assuming I'm using roman numerals for chapters, I'd like numering > of sections to be I-1, I-2, I-3, etc., of subsections to be I-1.1, > I-1.2, I-2.1, I-2.2, I-2.3, etc. > > Is there a way to achieve what I want to do? Yes, as long as you do not want to refer to your sections :) The separator seems to be broken while refering anyways. \setupsection[section-2][bodypartconversion=Romannumerals] \setuphead [subsection] [numbercommand=\mysubsectionnumber] \setuphead[section][separator=-] \unprotect \def\mysubsectionnumber#1% {\@@shortsectionnumber{section-2}-% \@@shortsectionnumber{section-3}.% \@@shortsectionnumber{section-4}} \protect \starttext \chapter{Test} \section[sec]{section test} \subsection[sub]{test} The separator is not honored in \in Section[sec] and in \in subsection[sub]. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new to ConTeXt
On Nov 7, 2006, at 9:20 PM, Pablo Rodríguez wrote: > It seems that the task is more difficult than I thought (although > x-contm.tex seems a very interesting example to begin with). > > But my problem right now is ConTeXt itself. My PhD thesis (that was > typeset with LaTeX [for the examination board], Lambda [for the > electronic publication] and XeLaTeX [just for fun ;-)]) contains > quotes > and some fragments in ancient Greek. And I would like to be able to do > similar things (in a fancier way, of course ;-)) with ConTeXt. > > For those ones who were newbies not so long ago or that come from a > humanities background, which are the best documents to start learning > ConTeXt? > > Thanks for your help, > > > Pablo Difficult to answer this question because it's a bit vague. What kind of documents do you want to produce with ConTeXt? Articles, presentations, textbooks, lists, interactive screen documents? But to give you a few pointers that may or may not be useful: - The first stop would be the wiki http://wiki.contextgarden.net . There is a section called "Sample documents" that may be a good starting point. - You could have a look at recent issues of the PracTeX journal; there is some stuff about ConTeXt in there, and it should be good for beginners. - Of course, the Pragma website, but I guess you know that already. - Finally, for ancient Greek, there is the ancientgreek module http:// modules.contextgarden.net/t-greek which I find superior to all Greek typesetting in LaTeX (because I wrote the module). Don't hesitate to ask here when you have specific questions, but maybe that can get you started. I am a humanities guy and do all my work in ConTeXt... HTH Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new to ConTeXt
Hans Hagen wrote: >> should be something similar DocbookInConTeXt, but I don't know whether >> it uses the eXaMplE framework (I don't even know whether . >> > the example framework is some ongoing experiment with web related > tex/xml things; you don't need that, just stick to the built in xml > handler (as described in example.pdf, but more extensive examples can be > found in the x-*.tex files in the distribution >> Could anyone comment on this topic? I mean, whether the described task >> could be achieved with ConTeXt, which issues may arise, whether this is >> the best approach to the issue, whether I miss something, and so on. >> > most of the projects we run at pragma involve xml -> pdf processing; > using a dedicated dtd works most convenient > > using tei is ok, as long as you stick to structural elements and keep > away from layour-related coding Thanks for your answer, Hans. Sorry for not answering before (these days I find myself installing a new computer and moving data into it). It seems that the task is more difficult than I thought (although x-contm.tex seems a very interesting example to begin with). But my problem right now is ConTeXt itself. My PhD thesis (that was typeset with LaTeX [for the examination board], Lambda [for the electronic publication] and XeLaTeX [just for fun ;-)]) contains quotes and some fragments in ancient Greek. And I would like to be able to do similar things (in a fancier way, of course ;-)) with ConTeXt. For those ones who were newbies not so long ago or that come from a humanities background, which are the best documents to start learning ConTeXt? Thanks for your help, Pablo ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Header number separator
Hi, Some time ago I had a query on the list about roman numbering in headers. Once I got my answer, I asked something else relatively unrelated but in the same thread. It's probably bad etiquette, so I figure that is why it has remained unheeded. I'd like to submit my second query again. I have a problem with the separator in header numbers. I want to use a different separator between chapter and section numbers (-), than between section and subsection numbers (.). So, assuming I'm using roman numerals for chapters, I'd like numering of sections to be I-1, I-2, I-3, etc., of subsections to be I-1.1, I-1.2, I-2.1, I-2.2, I-2.3, etc. Now when I use \setuphead for section and subsection blocks with different [separator=] attributes: \setuphead[section][separator=-] \setuphead[subsection][separator=.] ... it defines the separator for the _whole_ header level, not the number position within any relevant header. So I get this instead: sections are numbered I-1, I-2, I-3, etc. subsections are numbered I.1.1, 1.1.2, I.2.1, I.2.2, I.2.3, etc. Is there a way to achieve what I want to do? Thanks! Jeff ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] postoned text and headers
Hello everyone, I have a tex document where I postpone (\startpostponing) certain pages until later in the document. On those pages I would like the headers/footers turned off. I have tried \noheaderandfooterlines, and setting the header to high, but neither seem to work. Have I done something wrong or is there another way to do this? Here is an example of what I tried to describe. %output=pdf \setuppagenumbering[conversion=numbers, location=] \setupheadertexts[pagenumber][][][pagenumber] \starttext \startpostponing[+2] \page \noheaderandfooterlines %this will generally be a fullbleed picture or set of pictures on a page by themselves \framed[frame=on, width=\textwidth, height=\textheight] {\dorecurse{1}{\input zapf}} \page \stoppostponing \dorecurse{20}{\input davis } \stoptext Thanks in advance for any help, paul ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Columns and backgrounds problem
Hello, I am trying to use backgrounds in columns. Typically, the background runs into the other column as the following example. Is this a limitation, or am I doing something wrong? Any help is appreciated. Matthias \setupcolors[state=start] \setuppagenumbering[location=] \setupbodyfont[12pt] \definecolor[myframecolor][r=.0,g=.5,b=.6] \definecolor[myheadcolor][r=.0,g=.5,b=.0] \definecolor[myemcolor][r=.6,g=.1,b=.5] \definecolor[textcolor][r=.2,g=.02,b=.3] \definecolor[thmcolor] [r=.94,g=.94,b=.9] \definetextbackground [thmbackground] [backgroundcolor=thmcolor, %corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, frame=on, framecolor=darkblue, location=paragraph, color=darkblue] \defineenumeration [theorem] [before={\starttextbackground[thmbackground]}, after={\stoptextbackground}, text=Theorem, way=bysection, location=hanging, letter=rm] \setuppapersize[letter][letter] \starttext \startcolumns[n=2] \input tufte \starttheorem $1+1=2$ \stoptheorem \input tufte \starttheorem $1+1=2$ \stoptheorem \input tufte \stopcolumns \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Some questions about lua && context
On Die 07.11.2006 12:21, Martin Schröder wrote: >2006/11/7, Aleksandar Lazic <[EMAIL PROTECTED]>: >> Just for my curiosity, have you looked into neko?! > >lua <-> neko was already discussed on the lua list. :-) I think I have read it in the past ;-) Regards Aleks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Some questions about lua && context
On Die 07.11.2006 10:47, Hans Hagen wrote: >Aleksandar Lazic wrote: [snipp] >> I don't know when you have decide to go to lua and if then neko was >> out. >> >> Thanks to satisfied my curiosity ;- ) [snipp] >anyhow, the decision has been made (after the decision already several >alternatives have been proposed -) Thanks for answer ;-) Regards Aleks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Some questions about lua && context
2006/11/7, Aleksandar Lazic <[EMAIL PROTECTED]>: > Just for my curiosity, have you looked into neko?! lua <-> neko was already discussed on the lua list. :-) The thread starts at http://lua-users.org/lists/lua-l/2006-09/msg00598.html Best Martin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Some questions about luatex
luigi scarso wrote: > hi some questions about luatex > (www.luatex.org) > 1) will be possible some code like > \luatry{% > ...tex code} > \luaexcept{ > ..tex code} Guess at what you want: maybe, but not right away. The \luatry would have to save quite a bit of state information for this to be useful, which is not feasible on short notice (imagine having to save some 400+ globals and hooking into a few dozen data structure operations) > 2) will be possible to embedding some other language ie Python (of > course, reading the C source) ? If you want to change the sources yourself, then yes. Otherwise no. If luatex were to allow this without recompile, nobody could rely on a stable platform for interchange of documents. Greetigngs, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Some questions about lua && context
Aleksandar Lazic wrote: > Hi, > > today I have looked into luatex and read the FAQ > http://www.luatex.org/faq.html > > Just for my curiosity, have you looked into neko?! > > http://www.nekovm.org/ > > I don't know when you have decide to go to lua and if then neko was out. > > Thanks to satisfied my curiosity ;- ) > the choice for lua was made purely on my experience with perl, ruby and ... lua (embedded into skype) one big advantage of lua is that it has a long history, has reached a point of stability, is developped in an academic atmosphere, is rather clean, very lightweight, etc anyhow, the decision has been made (after the decision already several alternatives have been proposed -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Some questions about lua && context
Hi, today I have looked into luatex and read the FAQ http://www.luatex.org/faq.html Just for my curiosity, have you looked into neko?! http://www.nekovm.org/ I don't know when you have decide to go to lua and if then neko was out. Thanks to satisfied my curiosity ;- ) Regards Aleks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Some questions about luatex
luigi scarso wrote: > hi some questions about luatex > (www.luatex.org) > 1) will be possible some code like > \luatry{% > tex code} > \luaexcept{ > ...tex code} > 2) will be possible to embedding some other language ie Python (of > course, reading the C source) ? > i'm not sure what you mean here \somelua{ lua code that may or may not give back tex input } if you mean that we can use lua for pretty printing, then the answer is yes, in my mkiv code there is already a lua based pretty printing framework Hans Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Some questions about luatex
hi some questions about luatex (www.luatex.org) 1) will be possible some code like \luatry{% ...tex code} \luaexcept{ ..tex code} 2) will be possible to embedding some other language ie Python (of course, reading the C source) ? Thanks in advance luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context