Re: [NTG-context] Document title (was: (no subject))
Am 10.09.2011 um 18:20 schrieb Aditya Mahajan: If one is also interested in a usable XML export, then some \starttag..\stoptag must be added to the setups. How about this: http://d.pr/o7Xz 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] Latest betas break tikz matrix
2011/2/23 Mathieu Boespflug 0xbadc...@gmail.com Hi all, just as a followup and for the mailing list archives, the solution is to use both Aditya's suggestion to turn on \donknuthmode, as well replacing the signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example of a working tikz matrix in a context document? (preferrably something that prevents me from littering everything with “\pgfmatrixnextcell”) thanks, philipp ___ 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] Document title (was: (no subject))
On Sun, 11 Sep 2011, Wolfgang Schuster wrote: Am 10.09.2011 um 18:20 schrieb Aditya Mahajan: If one is also interested in a usable XML export, then some \starttag..\stoptag must be added to the setups. How about this: http://d.pr/o7Xz Thanks, that is very nice. Can you make the alignment and the \blanks configurable, perhaps using spacebefore and spaceafter? Is there an easy way to add multiple authors. Sometimes you need to add authors and their affiliation and I don't know what is a good key-value driven way to add them. Thanks, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV strange results in Adobe Reader
Hi, I have now investigated the color errors in Adobe Reader further. I produced a test PDF without simpleslides with MKIV (mtx-context | current version: 2011.09.10 12:55). Here is the source: \language[fi] \setupcolors[rgb] \usemodule[metafun] \setupbackgrounds[page][background=color,backgroundcolor=black] \startreusableMPgraphic{variympyrat} vardef ColorCircle (expr method, factor, ca, cb, cc) = save u, p ; path p ; p := fullcircle shifted (1/4,0); image (fill p rotated 90 withcolor transparent(method,factor,ca); fill p rotated 210 withcolor transparent(method,factor,cb); fill p rotated 330 withcolor transparent(method,factor,cc)) enddef; draw ColorCircle (normal, 1, cyan, magenta, yellow) xsized 6cm; draw ColorCircle (darken, .85, cyan, magenta, yellow) xsized 6cm; currentpicture := currentpicture shifted (0,-6cm); draw ColorCircle (exclusion, 1, red, green, blue) xsized 6cm; \stopreusableMPgraphic \starttext \startcolor[white] \title{metafun} \includeMPgraphic{variympyrat} \title{svg} \externalfigure[variympyrat.svg] \title{png} \externalfigure[variympyrat.png] \stoptext and here is the output: https://pi-xi.net/share/context_reader_test.png https://pi-xi.net/share/context_reader_test.pdf You can also see the original files used in the test here: https://pi-xi.net/share/variympyrat.png https://pi-xi.net/share/variympyrat.svg The gray background effect happens randomly even with only using svg images straight from inkscape. When using png images, I noticed it happens more often when there are multiple layers in the png. With metafun graphics, the image colors are messed up in addition to the gray background. I would like to know: a) How to avoid it with metafun, png AND svg graphics? b) What is the cause (Adobe reader bugs? Errors in my source? Erroneous image files? ConTeXt bug?) Best regards, Otso Helenius ___ 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] Document title (was: (no subject))
Am 11.09.2011 um 16:49 schrieb Aditya Mahajan: On Sun, 11 Sep 2011, Wolfgang Schuster wrote: Am 10.09.2011 um 18:20 schrieb Aditya Mahajan: If one is also interested in a usable XML export, then some \starttag..\stoptag must be added to the setups. How about this: http://d.pr/o7Xz Thanks, that is very nice. Can you make the alignment and the \blanks configurable, perhaps using spacebefore and space after? I can but when you need customization write your own style. Is there an easy way to add multiple authors. Sometimes you need to add authors and their affiliation and I don't know what is a good key-value driven way to add them. The ConTeXt way would be “author={Author One,Author Two,…}” but with MkIV you can use Lua to provide a alternative key-val-interface: \startplacetitle title = …, author = { First author, Second author, …, } , date = \\curentdate \stopplacetitle 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] Document title (was: (no subject))
On Sun, 11 Sep 2011, Wolfgang Schuster wrote: Am 11.09.2011 um 16:49 schrieb Aditya Mahajan: On Sun, 11 Sep 2011, Wolfgang Schuster wrote: Am 10.09.2011 um 18:20 schrieb Aditya Mahajan: If one is also interested in a usable XML export, then some \starttag..\stoptag must be added to the setups. How about this: http://d.pr/o7Xz Thanks, that is very nice. Can you make the alignment and the \blanks configurable, perhaps using spacebefore and space after? I can but when you need customization write your own style. OK. Do you plan to release this on contextgarden? This will simplify the title page setup of the simple-slides module. I think that others might find it useful as well. If you don't want to go through the hassle, I can maintain it. Is there an easy way to add multiple authors. Sometimes you need to add authors and their affiliation and I don't know what is a good key-value driven way to add them. The ConTeXt way would be “author={Author One,Author Two,…}” but with MkIV you can use Lua to provide a alternative key-val-interface: \startplacetitle title = …, author = { First author, Second author, …, } , date = \\curentdate \stopplacetitle Sorry, I should have explained in more detail. Suppose I want to indicate that there are two authors, first author and second author. First author is at institute 1 and second author is at institute 2. I want authors and institutes to be set in different styles. There are a couple of ways of setting this up: \setuptitle [ authors={ {name={First author}, institute={insitute 1}}, {name={Second author}, institute={insitute 2}} }, ... ] or \setuptitle [author1] [name={First author}, insititute={institute 1}] \setuptitle [author2] [name={Second author}, institute={institute 2}] \setuptitle [authors={author1, author2}] or \setuptitle [authors={First author, second author}, institutes={institute 1, institute 2}] To me, none of these look satisfatory, so I am wondering if there is a better solution. Thanks, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Latest betas break tikz matrix
On Sun, 11 Sep 2011, Philipp A. wrote: 2011/2/23 Mathieu Boespflug 0xbadc...@gmail.com Hi all, just as a followup and for the mailing list archives, the solution is to use both Aditya's suggestion to turn on \donknuthmode, as well replacing the signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example of a working tikz matrix in a context document? (preferrably something that prevents me from littering everything with “\pgfmatrixnextcell”) One way around this is to re-read part of tikz module code under the right catcode regime (ideally this should be done by t-tikz). I still cannot get to work, but using \ is a reasonable shortcut. Here is a working example: \usemodule[t-tikz] \usetikzlibrary{matrix} \unprotect \ReadFile{pgfmodulematrix.code.tex} \protect \starttext \tikzstyle{description}=[fill=white,inner sep=2pt] \starttikzpicture \matrix(m)[matrix of math nodes, row sep=3em, column sep=3em, ampersand replacement=\,%% AM: Added this. text height=1.5ex, text depth=0.25ex] {x \ y\\ z \ u\\}; \path[-] (m-1-1) edge node[description] {$*$} (m-1-2) edge node[description] {$*$} (m-2-1) (m-1-2) edge[dashed] node[description] {$*$} (m-2-2) (m-2-1) edge[dashed] node[description] {$*$} (m-2-2); \stoptikzpicture \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Latest betas break tikz matrix
On Sun, 11 Sep 2011, Aditya Mahajan wrote: On Sun, 11 Sep 2011, Philipp A. wrote: 2011/2/23 Mathieu Boespflug 0xbadc...@gmail.com Hi all, just as a followup and for the mailing list archives, the solution is to use both Aditya's suggestion to turn on \donknuthmode, as well replacing the signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example of a working tikz matrix in a context document? (preferrably something that prevents me from littering everything with “\pgfmatrixnextcell”) One way around this is to re-read part of tikz module code under the right catcode regime (ideally this should be done by t-tikz). I still cannot get to work, but using \ is a reasonable shortcut. Here is a working example: \usemodule[t-tikz] \usetikzlibrary{matrix} \unprotect \ReadFile{pgfmodulematrix.code.tex} \protect A slightly more robust solution is to load the attached module instead of t-tikz. (It also patches \usetikzlibrary). However, I cannot figure out what is the expected catcode of inside a tikz \matrix. So, you will still need to use amserand replacement=\. Note that this sets the catcode of ! to other (as expected by tikz). In the past, circuittikz has some troubles with the catcode of !. Aditya t-tikzcontext.tex Description: TeX 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 ___