Re: [NTG-context] combination questions
Am 2005-10-18 um 23:17 schrieb Willi Egger: * How do I get the combination caption printed *above* the picture? (location=high or top in \setupcombinations didn't do that) I think that you will have to look into \setupcaptions I thought so myself, but that didn't help (should've mentioned that). Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] combination questions
Hi Hraban, I think that you will have to look into \setupcaptions Willi Henning Hraban Ramm wrote: Hi ho! * Is it possible to nest combinations? (Doesn't look like, i.e. I didn't manage it.) * How do I get the combination caption printed *above* the picture? (location=high or top in \setupcombinations didn't do that) Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] combination questions
Hi ho! * Is it possible to nest combinations? (Doesn't look like, i.e. I didn't manage it.) * How do I get the combination caption printed *above* the picture? (location=high or top in \setupcombinations didn't do that) Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] def with if..else fails in TABLE
Am 2005-10-18 um 13:26 schrieb Peter Rolf: \doifelsenothing{TEST} {NOTHING part} {SOMETHING part}% Thank you, I could solve it with that. I already suspected that optional-argument-of-eTX issue, there were some error messages in other variants that I tried, that pointed in this direction, but I didn't knew how to solve it (thought about some \expand magic). I guess I should finally buy the TeXbook and learn TeX (sigh, another old fashioned programming language...) Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Getting icelandic letters (eth and thorn) to work.
On 18 Oct 2005, at 15:51, Hans Hagen wrote:has to do with the definition of 'beta' and 'stable' and such; form the trafic on the tex live list i conclude that debian is in the process of getting tex packages more up to date Hans Dear Hans,In relation to your reply above I replied to Kári Hreinsson in relation to getting Icelandic letters with this:Dear Kári,This works for me.\usetypescript[modern][ec]\setupbodyfont[10pt,rm]\enableregime[utf]\setupencoding[default=ec]\useencoding[ec]\starttextaábcdðeéfghiíjklmnoópqrstuúvxyzþæöAÁBCDÐEÉFGHIÍJKLMNOÓPQRSTUÚVXYZ\Thorn{}ÆÖ\stoptextTry that. I am using ConTeXt through the T2005 install by Gerben Wierda.but on looking at my output again the ö and Ö (o umlaut) do not appear when using the 'modern' typescript above. They do appear using 'palatino'. Is this a problem with modern?Best wishes,Charlie ***Charles Doherty,Early Irish History,Room K113,School of History,John Henry Newman Building,University College Dublin,Belfield,Dublin 4Tel: +353 1 716 8381 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange (?) exporting from pdf
I'm not a XML guru (never tried XML with ConTeXt), but I guess if you use a XML format like DocBook (or even OpenOffice's) there'd be a ready-to-use way for RTF. Thanks a lot, I was in fact investigating OO. If you make up something useful from OpenDocumentFormat (or OOo's old format), please share it – I guess an OOo to ConTeXt converter would help some people. Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Getting icelandic letters (eth and thorn) to work.
Quoting "Hans Hagen" : > -- was [EMAIL PROTECTED] on Oct 18, 2005 at 04:51:44 -- > ??? wrote: > > >Hello, > > > >I installed teTeX manually following the instructions at > >http://wiki.contextgarden.net/TeTeX_3.0_installation and this works > >now! > >It's strange though that such an old version of this software comes > >with teTeX in the Ubuntu (debian) packages. > > > > > has to do with the definition of 'beta' and 'stable' and such; form the > trafic on the tex live list i conclude that debian is in the process of > getting tex packages more up to date There are not in the official distrib yet, but the TeXlive based packages available at http://www.tug.org/texlive/Debian/ are very great and up to date. In particular they provide This is pdfeTeX, Version 3.141592-1.30.2-2.2 (Web2C 7.5.5) TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 Instructions for install at http://www.tug.org/texlive/debian.html Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Getting icelandic letters (eth and thorn) to work.
� wrote: Hello, I installed teTeX manually following the instructions at http://wiki.contextgarden.net/TeTeX_3.0_installation and this works now! It's strange though that such an old version of this software comes with teTeX in the Ubuntu (debian) packages. has to do with the definition of 'beta' and 'stable' and such; form the trafic on the tex live list i conclude that debian is in the process of getting tex packages more up to date 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
Re: [NTG-context] def with if..else fails in TABLE
Vit Zyka wrote: I did not test but my opinion is: - \if*argument is set in the \do*empty - \bTR, \eTR has optional params so they also use \do*empty - using test \if*argument AFTER \bTR, \bTD, ... is related to the \bTR, ... number of arguments not to the \TestCmd. your opinion is right also, make sure that the if else fi don't span arguments (unless you know what you're doing), so: \bTD \iftrue \eTD \bTD \fi \eTD kind of things are tricky for instance when \bTD .. \eTD is defined as \def\bTD#1\eTD{...} conditionals are parsed in special ways in tex the program (speed optimiziation) 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
Re: [NTG-context] def with if..else fails in TABLE
Peter Rolf wrote: Henning Hraban Ramm wrote: Am 2005-10-18 um 10:23 schrieb Peter Rolf: I tried to write a macro for a TABLE line: \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 \iffirstargument\hfill (#1)\fi \eTD \bTD \ifsecondargument 3: #2 and #3 \else 2: only #3 \fi \eTD\eTR } But it never goes into "else" (if #2 is empty, I get "3: and #3")! And it's only with the table commands around. Why? What can I do? the numbering is not bound to the parameter number; it's just a counter. calling the macro with two arguments -> \iffirstargument is true \ifsecondargument is true \ifthirdargument is false But why *does it work* without the TABLE commands?? If it would be true (or at least the reason for my problem) what you wrote, the following should work: \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 \ifsecondargument \iffirstargument\hfill (#1)\fi \eTD \bTD 3(#1.#2.#3) \else \iffirstargument\hfill (#1)\fi \eTD \bTD 2(#1/#2/#3) \fi \eTD\eTR } But there I get only a ! Incomplete \iftrue; all text was ignored after line 63. \fi The problem is, that the analysis of the \if?argument is not working here. You always get three arguments inside the TABLE. I did not test but my opinion is: - \if*argument is set in the \do*empty - \bTR, \eTR has optional params so they also use \do*empty - using test \if*argument AFTER \bTR, \bTD, ... is related to the \bTR, ... number of arguments not to the \TestCmd. vit The following example shows this in the first three rows. If you use \doifelsenothing{TEST} {NOTHING part} {SOMETHING part}% it works (last three rows). Dunno why ;) Greetings, Peter - % interface=en output=pdftex % Time-stamp: % \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3% \ifsecondargument \hfill (#1) 3: #2 and #3 \else \iffirstargument \hfill (#1) 2: #3 \else 1: #3 \fi \fi \eTD\eTR } \def\TestCmdA{\dodoubleempty\doTestCmdA} \def\doTestCmdA[#1][#2]#3{\bTR\bTD #3% \doifelsenothing{#2} {\doifelsenothing{#1} {1: #3} {\hfill (#1) 2: #3}% } {\doifelsenothing{#1} {2: #2 and #3} {\hfill (#1) 3: #2 and #3}% }% \eTD\eTR } \starttext \bTABLE \TestCmd{C} \TestCmd[A]{C} \TestCmd[A][B]{C} \TestCmdA{Z} \TestCmdA[Y]{Z} \TestCmdA[X][Y]{Z} \eTABLE \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: "" %%% End: - Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] def with if..else fails in TABLE
Henning Hraban Ramm wrote: > Am 2005-10-18 um 10:23 schrieb Peter Rolf: > >>> I tried to write a macro for a TABLE line: >>> >>> \def\TestCmd{\dodoubleempty\doTestCmd} >>> \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 >>> \iffirstargument\hfill (#1)\fi >>> \eTD \bTD >>> \ifsecondargument >>> 3: #2 and #3 >>> \else >>> 2: only #3 >>> \fi >>> \eTD\eTR >>> } >>> >>> But it never goes into "else" (if #2 is empty, I get "3: and #3")! >>> And it's only with the table commands around. >>> Why? What can I do? >>> >> the numbering is not bound to the parameter number; it's just a counter. >> calling the macro with two arguments -> >> \iffirstargument is true >> \ifsecondargument is true >> \ifthirdargument is false > > > But why *does it work* without the TABLE commands?? > If it would be true (or at least the reason for my problem) what you > wrote, the following should work: > > \def\TestCmd{\dodoubleempty\doTestCmd} > \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 > \ifsecondargument > \iffirstargument\hfill (#1)\fi > \eTD \bTD > 3(#1.#2.#3) > \else > \iffirstargument\hfill (#1)\fi > \eTD \bTD > 2(#1/#2/#3) > \fi > \eTD\eTR > } > > But there I get only a > ! Incomplete \iftrue; all text was ignored after line 63. > > \fi > > The problem is, that the analysis of the \if?argument is not working here. You always get three arguments inside the TABLE. The following example shows this in the first three rows. If you use \doifelsenothing{TEST} {NOTHING part} {SOMETHING part}% it works (last three rows). Dunno why ;) Greetings, Peter - % interface=en output=pdftex % Time-stamp: % \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3% \ifsecondargument \hfill (#1) 3: #2 and #3 \else \iffirstargument \hfill (#1) 2: #3 \else 1: #3 \fi \fi \eTD\eTR } \def\TestCmdA{\dodoubleempty\doTestCmdA} \def\doTestCmdA[#1][#2]#3{\bTR\bTD #3% \doifelsenothing{#2} {\doifelsenothing{#1} {1: #3} {\hfill (#1) 2: #3}% } {\doifelsenothing{#1} {2: #2 and #3} {\hfill (#1) 3: #2 and #3}% }% \eTD\eTR } \starttext \bTABLE \TestCmd{C} \TestCmd[A]{C} \TestCmd[A][B]{C} \TestCmdA{Z} \TestCmdA[Y]{Z} \TestCmdA[X][Y]{Z} \eTABLE \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: "" %%% End: - > > Grüßlis vom Hraban! > --- > http://www.fiee.net/texnique/ > http://contextgarden.net > http://www.cacert.org (I'm an assurer) > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] def with if..else fails in TABLE
Henning Hraban Ramm wrote: > Am 2005-10-18 um 10:23 schrieb Peter Rolf: > >>> I tried to write a macro for a TABLE line: >>> >>> \def\TestCmd{\dodoubleempty\doTestCmd} >>> \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 >>> \iffirstargument\hfill (#1)\fi >>> \eTD \bTD >>> \ifsecondargument >>> 3: #2 and #3 >>> \else >>> 2: only #3 >>> \fi >>> \eTD\eTR >>> } >>> >>> But it never goes into "else" (if #2 is empty, I get "3: and #3")! >>> And it's only with the table commands around. >>> Why? What can I do? >>> >> the numbering is not bound to the parameter number; it's just a counter. >> calling the macro with two arguments -> >> \iffirstargument is true >> \ifsecondargument is true >> \ifthirdargument is false > > sorry, my fault. you are right :) the numbers are bound to the parameter. and \ifthirdargument is always true (not an optional parameter). - \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{% \ifsecondargument \iffirstargument 3(#1/#2/#3) \else 2a(#1.#2.#3) \fi \else \iffirstargument 2b(#1/#2/#3) \else 1(#1/#2/#3) \fi \fi } \starttext \TestCmd{C} \TestCmd[A]{C} \TestCmd[][B]{C} \TestCmd[A][B]{C} \stoptext - this gives 1(//C) 2b(A//C) 3(/B/C) 3(A/B/C) thanks for the lesson ;) Peter > But why *does it work* without the TABLE commands?? ??? maybe an expansion problem. have you tried \expanded{\TestCmd...} > If it would be true (or at least the reason for my problem) what you > wrote, the following should work: > > \def\TestCmd{\dodoubleempty\doTestCmd} > \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 > \ifsecondargument > \iffirstargument\hfill (#1)\fi > \eTD \bTD > 3(#1.#2.#3) > \else > \iffirstargument\hfill (#1)\fi > \eTD \bTD > 2(#1/#2/#3) > \fi > \eTD\eTR > } > > But there I get only a > ! Incomplete \iftrue; all text was ignored after line 63. > > \fi > > > > Grüßlis vom Hraban! > --- > http://www.fiee.net/texnique/ > http://contextgarden.net > http://www.cacert.org (I'm an assurer) > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange (?) exporting from pdf
Thanks a lot, I was in fact investigating OO. -a- On 18 Oct 2005, at 11:10, Henning Hraban Ramm wrote: Seems like the best way would be a XML source that you can process with ConTeXt to PDF or with XSLT to something completely different... Yes, but the main problem is the "something completely different". I should implement rtf format as the output of XSLT (XHTML would be feasible). I'm not a XML guru (never tried XML with ConTeXt), but I guess if you use a XML format like DocBook (or even OpenOffice's) there'd be a ready-to-use way for RTF. Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange (?) exporting from pdf
Seems like the best way would be a XML source that you can process with ConTeXt to PDF or with XSLT to something completely different... Yes, but the main problem is the "something completely different". I should implement rtf format as the output of XSLT (XHTML would be feasible). I'm not a XML guru (never tried XML with ConTeXt), but I guess if you use a XML format like DocBook (or even OpenOffice's) there'd be a ready-to-use way for RTF. Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] def with if..else fails in TABLE
Am 2005-10-18 um 10:23 schrieb Peter Rolf: I tried to write a macro for a TABLE line: \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 \iffirstargument\hfill (#1)\fi \eTD \bTD \ifsecondargument 3: #2 and #3 \else 2: only #3 \fi \eTD\eTR } But it never goes into "else" (if #2 is empty, I get "3: and #3")! And it's only with the table commands around. Why? What can I do? the numbering is not bound to the parameter number; it's just a counter. calling the macro with two arguments -> \iffirstargument is true \ifsecondargument is true \ifthirdargument is false But why *does it work* without the TABLE commands?? If it would be true (or at least the reason for my problem) what you wrote, the following should work: \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 \ifsecondargument \iffirstargument\hfill (#1)\fi \eTD \bTD 3(#1.#2.#3) \else \iffirstargument\hfill (#1)\fi \eTD \bTD 2(#1/#2/#3) \fi \eTD\eTR } But there I get only a ! Incomplete \iftrue; all text was ignored after line 63. \fi Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange (?) exporting from pdf
Yes, but the main problem is the "something completely different". I should implement rtf format as the output of XSLT (XHTML would be feasible). -a- On 18 Oct 2005, at 10:07, Henning Hraban Ramm wrote: Am 2005-10-18 um 01:10 schrieb andrea valle: Thanks to all. I'm still struggling to find a way to share easily common documents with non-Context world. I thought I would have solved passing directly form the final pdf output to doc/rtf format, but it seems that I will have to give up. Seems like the best way would be a XML source that you can process with ConTeXt to PDF or with XSLT to something completely different... Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] def with if..else fails in TABLE
Hi Hraban, Henning Hraban Ramm wrote: > Salute wizards! > > I tried to write a macro for a TABLE line: > > \def\TestCmd{\dodoubleempty\doTestCmd} > \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 > \iffirstargument\hfill (#1)\fi > \eTD \bTD > \ifsecondargument > 3: #2 and #3 > \else > 2: only #3 > \fi > \eTD\eTR > } > > But it never goes into "else" (if #2 is empty, I get "3: and #3")! > And it's only with the table commands around. > Why? What can I do? > the numbering is not bound to the parameter number; it's just a counter. calling the macro with two arguments -> \iffirstargument is true \ifsecondargument is true \ifthirdargument is false so simpy start your code with up-down testing of the argument number \ifthirdargument % [#1][#2]#3 ... \else \ifsecondargument % [#1 or #2; you must decide which one]#3 ... \else % #3 ... \fi \fi Greetings, Peter > > Grüßlis vom Hraban! > --- > http://www.fiee.net/texnique/ > http://contextgarden.net > http://www.cacert.org (I'm an assurer) > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange (?) exporting from pdf
Am 2005-10-18 um 01:10 schrieb andrea valle: Thanks to all. I'm still struggling to find a way to share easily common documents with non-Context world. I thought I would have solved passing directly form the final pdf output to doc/rtf format, but it seems that I will have to give up. Seems like the best way would be a XML source that you can process with ConTeXt to PDF or with XSLT to something completely different... Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context