Re: [NTG-context] Reference to a subitem
Dnia Sat, Oct 25, 2008 at 02:58:24AM +0200, Diego Depaoli napisa#322;(a): 2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]: \def\ItemNumber#1% {\expandafter\doItemNumber#1..\relax} \def\doItemNumber#1.#2.#3\relax {\doifelsenothing{#2} {#1} {#2}} \definereferenceformat[initem][left=\ItemNumber] Since I don't speak that language, someone could explain why this code doesn't work when I put a stopper in subitemization? The standard dot isn't a stopper itself? This code seems to work (approximately) like this: it expands the full reference, which is: number dot number dot something, probably space and selects everything from the first dot up to the second one (w/o the dots themselves). So I consider it to be a bit dirty hack (sorry, Wolfgang;)), in a sense that it is not very flexible. If your stopper is, say ) (and the second one, say, ], so you have references in a strange form like 1)2]), you might want to say something like \def\doItemNumber #1)#2]#3\relax (the space after \doItemNumber is gobbled by TeX, so it might be present here or not, it is a matter of taste only). If you have different stoppers, another approach might be reasonable. I can see two possibilities: 1. Get to know _where_ ConTeXt really keeps the relevant info about labels; if the info about the values (w/o stoppers) is preserved, we are saved, if not, we've got a problem; 2. so in the latter case we have to (?) use this kind of hacky solution, which might be something like this (assuming that \stopper and \stopperr are the first- and second level stoppers respectively): \edef\sometemporarymacroname{% \def\noexpand\doItemNumber ##1\stopper ##2\stopperr ##3\relax {\noexpand\doifelsenothing{##2} {##1} {##2}}% }% \sometemporarymacroname (I'm not sure whether the last percentage sign is needed, but a good rule of thumb is to put them everywhere after closing brace newline, so that the newlines don't get translated into spaces.) I'm not sure whether this works, though, *please* check it and tell me (maybe I'm doing some stupid error, please the TeX gurus correct me if yes). I hope this is ok, though, because then it my first post to this list containing actually an _answer_ and not a _question_:))). Cheers -- Diego Depaoli Greets -- Marcin Borkowski (http://mbork.pl) Kim jest ta, co wyłania się z pustyni, Idzie wsparta na swoim Oblubieńcu? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mkiv, luatex and tikz
On Sat, Oct 25, 2008 at 12:33 AM, luigi scarso [EMAIL PROTECTED]wrote: On Fri, Oct 24, 2008 at 11:17 PM, Alan BRASLAU [EMAIL PROTECTED]wrote: Tikz seems to be broken under luatex. As is, compiling something as simple as \usemodule[tikz] \starttext Hello, world! \stoptext gives errors. %% %%colors fixed by Akira Kakuto %% \usemodule[tikz] \setupcolors[state=start] \starttext Hello, world! \blank \begingroup \tikz \draw[thick,rounded corners=8pt] (0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0); \endgroup \starttikzpicture \draw[fill=yellow] (0,0) -- (60:.75cm) arc (60:180:.75cm); \draw(120:0.4cm) node {$\alpha$}; \draw[fill=green!30] (0,0) -- (right:.75cm) arc (0:60:.75cm); \draw(30:0.5cm) node {$\beta$}; \startscope[shift={(60:2cm)}] \draw[fill=green!30] (0,0) -- (180:.75cm) arc (180:240:.75cm); \draw (30:-0.5cm) node {$\gamma$}; \draw[fill=yellow] (0,0) -- (240:.75cm) arc (240:360:.75cm); \draw (-60:0.4cm) node {$\delta$}; \stopscope \startscope[thick] \draw (60:-1cm) node[fill=white] {$E$} -- (60:3cm) node[fill=white] {$F$}; \draw[red] (-2,0) node[left] {$A$} -- (3,0) node[right]{$B$}; \draw[blue,shift={(60:2cm)}] (-3,0) node[left] {$C$} -- (2,0) node[right]{$D$}; \draw[shift={(60:1cm)},xshift=4cm] node [right,text width=6cm,rounded corners,fill=red!20,inner sep=1ex] { When we assume that \color[red]{$AB$} and \color[blue]{$CD$} are parallel, i.\,e., {\color[red]{$AB$}} {$|$} \color[blue]{$CD$}, then $\alpha = \delta$ and $\beta = \gamma$. }; \stopscope \stoptikzpicture \stoptext -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bib module error with context 2008.10.23
Michael Green wrote: After updating the minimals for OSX-intel, I get an error when using the bib module. Here's the relevant bit of the log. you need a new bib module - 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 - ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Reference to a subitem
Diego Depaoli wrote: 2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]: \def\ItemNumber#1% {\expandafter\doItemNumber#1..\relax} \def\doItemNumber#1.#2.#3\relax {\doifelsenothing{#2} {#1} {#2}} \definereferenceformat[initem][left=\ItemNumber] Since I don't speak that language, someone could explain why this code doesn't work when I put a stopper in subitemization? The standard dot isn't a stopper itself? in mkiv this will be done differently, more control over each bit and piece 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 - ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bib module error with context 2008.10.23
Hans Hagen wrote: Michael Green wrote: After updating the minimals for OSX-intel, I get an error when using the bib module. Here's the relevant bit of the log. you need a new bib module Not just that, you need a bib module that doesn't exist yet. I will do a new upload to modules.contextgarden on monday. Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Page arranging: 2SIDE, 2UP, 2DOWN, 2*2, 2**2
What is the difference between the above? In particular, do I get this correctly: (*) 2SIDE just puts 2 pages onto one sheet, in the following order: 1 2 3 4 ... (*) 2UP prepares a booklet I'm not sure if I understand the rest. I tried 2DOWN, but got only even pages (?). And with 2*2 and 2**2 got the same (?) arrangement, but I'm not sure what it's for. Thanks greets! -- Marcin Borkowski (http://mbork.pl) People can be divided into 10 groups: those who like the binary system and those who don't. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A problem with itemizations
Hi, I have a problem with \startitemize ... \stopitemize. Sometimes (I have no idea when, but this effect is fully repeatable!) I get a page break just before a \startitemize. It is nested (second level) and follows one line of another item at the 1st level. It seems that adding [intro] won't help. The problem occurs with [columns,two]; I don't know whether this has any influence - when I change the setup (in the preamble) the page breaks fall in different places, and all my 2nd level itemizations are 2nd level (and I have quite a lot of them). Any ideas? I know that the above is rather vague, but it's difficult to prepare a minimal example etc. Also, Hans, do I get it correctly that the itemization code will get rewritten in MkIV? If yes, is there any chance of having unpacked itemizations in 2 and more columns? And any chance of having an explicit column break (or a preference) in multicolumn itemizations? Thanks greets -- Marcin Borkowski (http://mbork.pl) _ __ __ __ _ __ __ __ ## ## ## ## ## ## | \ | / \ | \ / \| \ | / \ | \ / \ | |_/ | | | | | | ||_/ | | | | | | | | ## ## ## ## ## ## | \ | |--| | | |--|| \ | |--| | | |--| | |_/ | | | |__/ | | / |_/ | | | |__/ | | . ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page arranging: 2SIDE, 2UP, 2DOWN, 2*2, 2**2
Am 2008-10-25 um 15:27 schrieb Marcin Borkowski: What is the difference between the above? In particular, do I get this correctly: (*) 2SIDE just puts 2 pages onto one sheet, in the following order: (*) 2UP prepares a booklet I'm not sure if I understand the rest. I tried 2DOWN, but got only even pages (?). And with 2*2 and 2**2 got the same (?) arrangement, but I'm not sure what it's for. see http://wiki.contextgarden.net/Imposition and add your findings. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] strange file name
source file: %% \starttext {\input knuth} \stoptext %%% compiling it produces error: ! I can't find file `knuth}'. l.2 {\input knuth} Why does tex recognize knuth} but not knuth as the file name? -- ruini ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] strange file name
On Sat, Oct 25, 2008 at 6:12 PM, Ruini Xue [EMAIL PROTECTED] wrote: source file: %% \starttext {\input knuth} \stoptext %%% compiling it produces error: ! I can't find file `knuth}'. l.2 {\input knuth} Why does tex recognize knuth} but not knuth as the file name? Watch for the space after knuth %% \starttext {\input knuth } \stoptext %%% Also %% \starttext {\input knuth\relax} \stoptext %%% It's TeX \input -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Embedded fonts question
Greetings all, A sad story: My context-typeset dissertation was printed/distributed by a POD publisher with aweful typographical errors (like all commas in the main font being replaced by an ff ligature). Obviously the printer didn't check their results. The file reads fine both for me and the publisher, but the printer let us know that the file is unprintable due to problems with fonts not being embedded (why they originally printed an unprintable file I'll never know). Now as far as I can tell, fonts are embedded. It was made with context MKII, using hz and hanging punctuation, etc. When I look at the document in Adobe Acrobat, and check the document/font details, it gives a list of embedded fonts only. I'm not certain that the printer is in the right, but how can I tell? Is it possible that the pdf was altered when transferred from me to the publisher then to the printer? That compression of the pdf (zip) had any impact? Any other possibilities? What do you need to know to offer advice? ---I can send the file or a part of it if it is needed. Best, David___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Embedded fonts question
David Wooten wrote: Greetings all, A sad story: My context-typeset dissertation was printed/distributed by a POD publisher with aweful typographical errors (like all commas in the main font being replaced by an ff ligature). Obviously the printer didn't check their results. The file /reads/ fine both for me and the publisher, but the printer let us know that the file is unprintable due to problems with fonts not being embedded (why they originally printed an unprintable file I'll never know). Now as far as I can tell, fonts /are /embedded. It was made with context MKII, using hz and hanging punctuation, etc. When I look at the document in Adobe Acrobat, and check the document/font details, it gives a list of embedded fonts only. I'm not certain that the printer is in the right, but how can I tell? Is it possible that the pdf was altered when transferred from me to the publisher then to the printer? That compression of the pdf (zip) had any impact? Any other possibilities? What do you need to know to offer advice? ---I can send the file or a part of it if it is needed. Hi David, if the printer didn't alter the file and the fonts were embedded in the original PDF document, they didn't vanished. The zip compression doesn't alter those things (AFAIK). A way to check whether the fonts are embedded or not, you can download ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl2-dos6.zip (if you are using Windows) and run from the command-line pdffonts dissertation-filename.pdf Replace dissertation-filename.pdf with the actual file name and pdffonts will display all font information. If this is too complicated for you, send me the original file in a private reply and I will post the results. I hope it helps, Pablo ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Embedded fonts question
hi david, I'm working in printing house A sad story: My context-typeset dissertation was printed/distributed by a POD publisher with aweful typographical errors (like all commas in the main font being replaced by an ff ligature). Horrors, and really strange Obviously the printer didn't check their results. The file *reads* fine both for me and the publisher, but the printer let us know that the file is unprintable due to problems with fonts not being embedded This is a common problem (why they originally printed an unprintable file I'll never know). money ? Now as far as I can tell, fonts *are *embedded. It was made with context MKII, using hz and hanging punctuation, etc. When I look at the document in Adobe Acrobat, and check the document/font details, it gives a list of embedded fonts only. Are you sure? As pable write pdffonts is very good I'm not certain that the printer is in the right, but how can I tell? Is it possible that the pdf was altered when transferred from me to the publisher then to the printer? With very hight probability , no ; pdf is a 'bynary' format an alteration will broken the file. That compression of the pdf (zip) had any impact? With very hight probability , no . Any other possibilities? What do you need to know to offer advice? I can send the file or a part of it if it is needed. yes, if you want . -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Embedded fonts question
On Oct 25, 2008, at 11:18 AM, Pablo Rodríguez wrote: David Wooten wrote: Greetings all, A sad story: My context-typeset dissertation was printed/ distributed by a POD publisher with aweful typographical errors (like all commas in the main font being replaced by an ff ligature). Obviously the printer didn't check their results. The file /reads/ fine both for me and the publisher, but the printer let us know that the file is unprintable due to problems with fonts not being embedded (why they originally printed an unprintable file I'll never know). Now as far as I can tell, fonts /are /embedded. It was made with context MKII, using hz and hanging punctuation, etc. When I look at the document in Adobe Acrobat, and check the document/font details, it gives a list of embedded fonts only. I'm not certain that the printer is in the right, but how can I tell? Is it possible that the pdf was altered when transferred from me to the publisher then to the printer? That compression of the pdf (zip) had any impact? Any other possibilities? What do you need to know to offer advice? ---I can send the file or a part of it if it is needed. Hi David, if the printer didn't alter the file and the fonts were embedded in the original PDF document, they didn't vanished. The zip compression doesn't alter those things (AFAIK). A way to check whether the fonts are embedded or not, you can download ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl2-dos6.zip (if you are using Windows) and run from the command-line pdffonts dissertation-filename.pdf Replace dissertation-filename.pdf with the actual file name and pdffonts will display all font information. If this is too complicated for you, send me the original file in a private reply and I will post the results. I hope it helps, Pablo Thanks, Pablo and Luigi, I was able to run pdffonts and check my file, it agrees with adobe acrobat in saying that all fonts are embedded. SoI'm going to send the publisher the current file and see what happens. I'm only 98% sure that it's exactly the same as the original file I sent, so I am slightly hopeful that it will work out better. Thanks again for your quick responses, David ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___