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...
Am 29.12.2008 um 00:56 schrieb Brecht Machiels:
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.
\article[title for the document] or \setvariables[article][title={title for the document}] \article % without brackets
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?
I used LuaTeX for the document, to use it with pdfTeX you need a few additional settings. - replace \usetypescript[postscript] with \usetypescript[postscript][ec] - if you use a older ConTeXt version, add \usetypescriptfile[type-gyr] to the style file - add \enableregime[utf] to the sample document Wolfgang
Hello,
I used LuaTeX for the document, to use it with pdfTeX you need a few additional settings.
- replace \usetypescript[postscript] with \usetypescript[postscript][ec] - if you use a older ConTeXt version, add \usetypescriptfile[type-gyr] to the style file - add \enableregime[utf] to the sample document
Both solutions worked (once I got 'texexec --lua' working anyway). In your original style file, you put: \setupbodyfontenvironment [9pt][interlinespace=10pt] I assume this should set the interline spacing of the Abstract section to 10pt? This doesn't work however. I assume this is because the style option to \definestartstop[abstract] does not change the bodyfont, and thus not the interline spacing. I have tried using \setupinterlinespace in the \definestartstop[abstract], but to no avail. Regards, Brecht
Am 29.12.2008 um 18:55 schrieb Brecht Machiels:
Hello,
I used LuaTeX for the document, to use it with pdfTeX you need a few additional settings. - replace \usetypescript[postscript] with \usetypescript[postscript] [ec] - if you use a older ConTeXt version, add \usetypescriptfile[type- gyr] to the style file - add \enableregime[utf] to the sample document
Both solutions worked (once I got 'texexec --lua' working anyway).
In your original style file, you put: \setupbodyfontenvironment [9pt][interlinespace=10pt]
I assume this should set the interline spacing of the Abstract section to 10pt? This doesn't work however. I assume this is because the style option to \definestartstop[abstract] does not change the bodyfont, and thus not the interline spacing.
I have tried using \setupinterlinespace in the \definestartstop[abstract], but to no avail.
\definestartstop [abstract] [style={\switchtobodyfont[9pt]\bf}] Wolfgang
Wolfgang Schuster wrote:
Am 29.12.2008 um 18:55 schrieb Brecht Machiels:
Hello,
I used LuaTeX for the document, to use it with pdfTeX you need a few additional settings. - replace \usetypescript[postscript] with \usetypescript[postscript][ec] - if you use a older ConTeXt version, add \usetypescriptfile[type-gyr] to the style file - add \enableregime[utf] to the sample document
Both solutions worked (once I got 'texexec --lua' working anyway).
In your original style file, you put: \setupbodyfontenvironment [9pt][interlinespace=10pt]
I assume this should set the interline spacing of the Abstract section to 10pt? This doesn't work however. I assume this is because the style option to \definestartstop[abstract] does not change the bodyfont, and thus not the interline spacing.
I have tried using \setupinterlinespace in the \definestartstop[abstract], but to no avail.
\definestartstop [abstract] [style={\switchtobodyfont[9pt]\bf}]
I had also tried this... but this results in some weird effects. Using: \setupbodyfontenvironment [9pt][interlinespace=10pt] it does not seem to change the interline spacing (when comparing it to \setupbodyfontenvironment [9pt][interlinespace=12pt] ) Trying to see what is going on, I try: \setupbodyfontenvironment [9pt][interlinespace=20pt] and I get something that cannot be correct: http://homes.esat.kuleuven.be/~bmachiel/rfic/template.pdf Any ideas? Brecht
Am 29.12.2008 um 19:52 schrieb Brecht Machiels:
Wolfgang Schuster wrote:
Am 29.12.2008 um 18:55 schrieb Brecht Machiels:
Hello,
I used LuaTeX for the document, to use it with pdfTeX you need a few additional settings. - replace \usetypescript[postscript] with \usetypescript[postscript][ec] - if you use a older ConTeXt version, add \usetypescriptfile[type- gyr] to the style file - add \enableregime[utf] to the sample document
Both solutions worked (once I got 'texexec --lua' working anyway).
In your original style file, you put: \setupbodyfontenvironment [9pt][interlinespace=10pt]
I assume this should set the interline spacing of the Abstract section to 10pt? This doesn't work however. I assume this is because the style option to \definestartstop[abstract] does not change the bodyfont, and thus not the interline spacing.
I have tried using \setupinterlinespace in the \definestartstop[abstract], but to no avail. \definestartstop [abstract] [style={\switchtobodyfont[9pt]\bf}]
I had also tried this... but this results in some weird effects. Using: \setupbodyfontenvironment [9pt][interlinespace=10pt] it does not seem to change the interline spacing (when comparing it to \setupbodyfontenvironment [9pt][interlinespace=12pt] )
Trying to see what is going on, I try: \setupbodyfontenvironment [9pt][interlinespace=20pt] and I get something that cannot be correct: http://homes.esat.kuleuven.be/~bmachiel/rfic/template.pdf
Any ideas?
Try a newer LuaTeX version. Wolfgang
participants (2)
-
Brecht Machiels
-
Wolfgang Schuster