Re: [NTG-context] The appendices envrionment and title in toc
On Thu 21 Apr 2011, Reviczky, Adam wrote: Why does this not work with \mainlanguage[uk] Hmm, good point. It seems to work with several \mainlanguage settings I've tried: en, fr, nl, sv, fi, cs, ru, de. But it fails for uk and en-gb. Pont ___ 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] Latest beta, missing stmary10 while loading fallback modern
Sorry to bring this up again, but something looks wrong with the deletion of the stmary10 fonts from the minimals tree, as the fonts seem to be called in 2 places: ./tex/texmf-context/tex/context/base/s-map-10.mkiv ./tex/texmf-context/tex/context/fonts/lm-math.lfg but stmary10.afm doesn't exist any more in the tree. I searched the mail archive without success about the deletion of the fonts. Minimal example: \setupbodyfont[11pt,libertine] \starttext test \stoptext Log message: fontsfallback modern mm 11pt is loaded fontsdefining forced type afm of stmary10 not found fontsdefining font with asked name 'stmary10' is not found using lookup 'file' fontsvirtual math unable to resolve name mapsfromchar fontsdefining forced type afm of stmary10 not found fontsdefining font with asked name 'stmary10' is not found using lookup 'file' fontsdefining forced type afm of stmary10 not found fontsdefining font with asked name 'stmary10' is not found using lookup 'file' Using mkiv with version 2011.04.20 Bests -- Marco ___ 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] Grid typesetting and inline math
Are there any other suggestions? I did read the manual chapter about grids and details.pdf and don't know what I'm doing wrong. In fact, I don't even understand the examples in the manual chapter. When reading the example code, I can't figure out how it leads to the shown behavior, and why the shown effect is desired. The \startlinecorrection ... \stoplinecorrection description in the wiki is also no help. What does it do and how does it differ from a globally enabled grid? Regards, Christoph Am 20.04.2011 12:31, schrieb Christoph Redecker: Thanks for the suggestion! With grid=on, I get a different result, but it's not better. Code: Testing inline math: \gform{x_2 = \sqrt{\frac{a}{b_2}}}. The following line should be seperated from this one with half a line, but it isn't. In this case, there is no space and the root sign reaches deeply into the following line. Regards, Christoph Am 20.04.2011 11:56, schrieb Khaled Hosny: On Tue, Apr 19, 2011 at 11:59:34AM +0200, Christoph Redecker wrote: Hello, I'm struggling with the grid. I've stepped from LaTeX to luaLaTeX for a simpler font selection, and from luaLaTeX to ConTeXt for getting a usable grid (because I was told that it supports typesetting on a grid). Now that I got font selection working as desired in ConTeXt, the grid is driving me crazy. I'm trying to use the grid as described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \gform{x_2 = \frac{a}{b}}. The following line should be seperated from this one by half a line, but it isn't. Testing inline math: \gform[-]{x_2 = \frac{a}{b}}. The following line should be seperated from this one by half a line, but it isn't. \stoptext Both paragraphs look identical, the second line is too far away from the first one. What's wrong with my code? Not sure, but try grid=on. Regards, Khaled ___ 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 ___ ___ 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] Macro argument handling problem!
Hi, I try this example from the wiki page System Macros/Argument handling: \def\dodefinesomething[#1][#2]% {\getparameters[\??xx#1][#2]} \def\definesomething% {\dodoubleargumentwithset\dodefinesomething} \starttext \definesomething[alfa][variable=test] \stoptext Running this yields ! Undefined control sequence I'm trying to write a few macros with optional delimited arguments with key-value sets and started reading the appropriate pages, but can't figure out why this example fails to run. Anybody any idea? Regards, Gerard Verhaag ___ 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] Multiple references
Hi, citing multiple authors with \cite[author1, author2, ...] is no problem but referencing multiple figures/sections does not work: \in{Figures}[fig:one, fig:two] Is there a way to circumvent repeating successive \in[...]? What about automatic page ranges for \at? This could be interesting... Thanks, Florian ___ 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] Macro argument handling problem!
Am 21.04.2011 um 12:28 schrieb Verhaag, G.C.H.M.: Hi, I try this example from the wiki page System Macros/Argument handling: \def\dodefinesomething[#1][#2]% {\getparameters[\??xx#1][#2]} \def\definesomething% {\dodoubleargumentwithset\dodefinesomething} \starttext \definesomething[alfa][variable=test] \stoptext Running this yields ! Undefined control sequence I'm trying to write a few macros with optional delimited arguments with key-value sets and started reading the appropriate pages, but can't figure out why this example fails to run. Anybody any idea? I guess the message comes from your namespace which is in this form only allowed in unprotected mode, to enter you need \unprotect before and \protect after your command declarations. Another problem is that you use a system namespace (two “?” and two letters) but for modules we use now four “?” and also more than two letter, e.g. \def\something{something} \def\definesomething {\dodoubleargumentwithset\dodefinesomething} \def\dodefinesomething[#1][#2]% {\getparameters[\something#1][#2]} You should also take a look at the \definenamespace command which creates the \define… and \setup… commands for you: - http://wiki.contextgarden.net/Module_Namespaces - http://tex.stackexchange.com/questions/15157/how-to-make-a-ruler/15185#15185 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Macro argument handling problem!
On Thu, Apr 21, 2011 at 1:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 21.04.2011 um 12:28 schrieb Verhaag, G.C.H.M.: Hi, I try this example from the wiki page System Macros/Argument handling: \def\dodefinesomething[#1][#2]% {\getparameters[\??xx#1][#2]} \def\definesomething% {\dodoubleargumentwithset\dodefinesomething} \starttext \definesomething[alfa][variable=test] \stoptext Running this yields ! Undefined control sequence I'm trying to write a few macros with optional delimited arguments with key-value sets and started reading the appropriate pages, but can't figure out why this example fails to run. Anybody any idea? I guess the message comes from your namespace which is in this form only allowed in unprotected mode, to enter you need \unprotect before and \protect after your command declarations ! Undefined control sequence. system tex error on line 8 in file test.tex: Undefined control sequence ... 1 \unprotect 2 \def\definesomething% 3 {\dodoubleargumentwithset\dodefinesomething} 4 \def\dodefinesomething[#1][#2]% 5 {\getparameters[\??xx#1][#2]} 6 \protect 7 \starttext 8\definesomething[alfa][variable=test] 9 \stoptext 10 11 12 argument \??xx alfa \setsomevalue #1#2-\@EA \def \csname #1 #2\endcsname \p!doassign ...EAEA \setsomevalue \fi \fi {#1}{#2} {#3} \xprocesscommaitem ...@relax@ #1==\empty \@relax@ \@EAEAEA \xprocesscommaite... \xdogetparameters #1]-\xprocesscommaitem #1,] ,\@relax@ \next1 #1,-\@@dodowithsetcommand {#1} \doprocesscommaitem ... l.8 \definesomething[alfa][variable=test] -- luigi ___ 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] Macro argument handling problem!
Am 21.04.2011 um 13:35 schrieb luigi scarso: On Thu, Apr 21, 2011 at 1:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 21.04.2011 um 12:28 schrieb Verhaag, G.C.H.M.: Hi, I try this example from the wiki page System Macros/Argument handling: \def\dodefinesomething[#1][#2]% {\getparameters[\??xx#1][#2]} \def\definesomething% {\dodoubleargumentwithset\dodefinesomething} \starttext \definesomething[alfa][variable=test] \stoptext Running this yields ! Undefined control sequence I'm trying to write a few macros with optional delimited arguments with key-value sets and started reading the appropriate pages, but can't figure out why this example fails to run. Anybody any idea? I guess the message comes from your namespace which is in this form only allowed in unprotected mode, to enter you need \unprotect before and \protect after your command declarations ! Undefined control sequence. system tex error on line 8 in file test.tex: Undefined control sequence ... 1 \unprotect 2 \def\definesomething% 3 {\dodoubleargumentwithset\dodefinesomething} 4 \def\dodefinesomething[#1][#2]% 5 {\getparameters[\??xx#1][#2]} 6 \protect 7 \starttext 8\definesomething[alfa][variable=test] 9 \stoptext 10 11 12 argument \??xx alfa \setsomevalue #1#2-\@EA \def \csname #1 #2\endcsname \p!doassign ...EAEA \setsomevalue \fi \fi {#1}{#2} {#3} \xprocesscommaitem ...@relax@ #1==\empty \@relax@ \@EAEAEA \xprocesscommaite... \xdogetparameters #1]-\xprocesscommaitem #1,] ,\@relax@ \next1 #1,-\@@dodowithsetcommand {#1} \doprocesscommaitem ... l.8 \definesomething[alfa][variable=test] \definenamespace [something] [ type=module, name=something, command=yes] \starttext \definesomething[alfa][variable=test] \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Arrows in latest mkiv
Hi Hans, It seems that the latest beta (version 2011.04.20 16:23) has a problem with arrow in math mode: I am not sure about it, but I think with the previous version this problem didn't exist. Here is a minimal example and its PDF result (please look at the \longrightarrow in the PDF): \starttext Let $E,F$ be two Banach spaces and consider a linear operator $L : E \longrightarrow F$. \stoptext Best regards: OK arrow-1.pdf Description: Adobe PDF document ___ 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] problem with printing pdf files (MKIV on Mac)
To those Mac users who updated too early, From what I read, Apple has confirmed the bug and is working on the patch (still nobody knows when it will be released). In the meantime the user KJK555 from a forum suggested to replace ATS.framework and submited an unofficial patch: https://discussions.apple.com/thread/2792142?start=300tstart=0 http://azlist.info/kj/downloads/ I didn't test extensively (you need to apply it at your own risk), but some of my documents that were causing me problems now print fine***. Mojca PS: ***Before I discovered the patch I had to reinstall all of my printers an hour ago, (and one of them is still causing me problems and just prints out error courred = -50, but that might be driver's fault). While I was trying to print a slightly bigger image Mac has consumed approximately 6 GB of disk space while I was away and of course it didn't print anything (it didn't finish). But it did more fun than that. It *removed* all the printers from my settings and God knows what other harm did it do to OS and file system in addition to it. It may not be very healthy to run out of disk space, but removing all the printers from the list is not the nicest and most efficient resolution that OS is supposed to do either. ___ 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] The appendices envrionment and title in toc
On Thu 21 Apr 2011, Pontus Lurcock wrote: On Thu 21 Apr 2011, Reviczky, Adam wrote: Why does this not work with \mainlanguage[uk] Hmm, good point. It seems to work with several \mainlanguage settings I've tried: en, fr, nl, sv, fi, cs, ru, de. But it fails for uk and en-gb. I think I've got somewhere with this: Wolfgang's workaround seems to fail when used with a language that has a ‘default’ parameter in the \installlanguage command (see lang-def.mkiv). So en and de are fine, but en-us, en-gb, de-at, de-ch etc. fail. My workaround was simply to define a custom language from scratch without using ‘default’: \installlanguage [mylang] [spacing=broad, leftsentence=---, rightsentence=---, leftsubsentence=---, rightsubsentence=---, leftquote=\upperleftsinglesixquote, rightquote=\upperrightsingleninequote, leftquotation=\upperleftdoublesixquote, rightquotation=\upperrightdoubleninequote, date={day,\ ,month,\ ,year}, patterns=gb, lefthyphenmin=3, righthyphenmin=3] \mainlanguage[mylang] \setuplabeltext[chapter=Chapter ] \setuplabeltext[appendix=Appendix ] \definehead[appendix][chapter] \setuphead[appendix][appendixlabel=appendix] \setuplist[chapter,appendix][label=yes,width=6em] \starttext \startfrontmatter \title{Contents} \placelist[chapter,appendix,section,subsection] \stopfrontmatter \startbodymatter \chapter{Bodypart} \stopbodymatter \startappendices \appendix{Appendix} \stopappendices \stoptext ___ 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] The appendices envrionment and title in toc
Am 21.04.2011 um 07:02 schrieb Reviczky, Adam: Why does this not work with \mainlanguage[uk] How can I force this to be shown? Set the labels with the “en” tag: \setuplabeltext[en] [chapter=Chapter ] \setuplabeltext[en][appendix=Appendix ] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___