[NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie
Hi, after using LaTeX for article writing, presentations (beamer) and posters for about 15 years I wanted to try ConTeXt last week. I am not sure whether I installed all components correctly, so I tried to compile different simple test files. As I don't understand the error messages, I would like to ask for help. 0. Installation My configuration is - Macbook Pro, OSX 10.6.8 - TexShop 2.47 - Engine: ConTeXt-MKIV.engine I followed the instructions on http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation step by step and installed a standalone version in the folder /Applications/Context. 1. A simple Hello world example works fine! \starttext Hello world \stoptext 2. A simple presentation works fine and displays the nice black-red-gray background (see log below) \usemodule[s-pre-03] \starttext \TitlePage{A simple presentation} \Topics{Today's talk} \Topic{First item} \Topic{Second item} \stoptext 3. A similarly simple presentation _does not work_ (see log below) \usemodule[s-pre-05] \starttext \TitlePage{A simple presentation} \Topics{Today's talk} \Topic{First item} \Topic{Second item} \stoptext My questions: - What is different between s-pre-03 and s-pre-05? - Does the error messages indicate that the installation was incomplete in some way...? - The error message says error on line 11 in file Pres2.tex although the file contains only 7 lines...? Thanks for your help Thomas Meigen ** Attachment 1: log-file of successful presentation Pres1.tex ** mtx-context | run 1: luatex --fmt=/Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=Pres1 --lua=/Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./Pres1.tex --c:input=./Pres1.tex --c:kindofrun=1 cont-yes.mkiv This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) \write18 enabled. (/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.01.02 18:19 MKIV fmt: 2013.1.4 int: english/english system cont-new.mkiv loaded (/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname: Pres1, input: Pres1, result: Pres1 fontslatin modern fonts are not preloaded languageslanguage en is active (Pres1.tex resolversmodules loaded: 's-pre-03' (/Applications/ConTeXt/tex/texmf-context/tex/context/base/s-pre-03.tex resolversmodules loaded: 'pre-general' (/Applications/ConTeXt/tex/texmf-context/tex/context/base/s-pre-00.tex) fontspreloading latin modern fonts (third stage) fontstypescripts unknown: library 'loc' {/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Applications/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontsfallback modern rm 14.4pt is loaded colors rgb color space is supported colors cmyk color space is supported ) metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun': /Applications/ConTeXt/tex/texmf-context/metapost/context/base/metafun.mpiv, using method: default backend xmp using file '/Applications/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 structuresectioning Nopic @ level 2: 0.0 - Today's talk pagesflushing realpage 2, userpage 1 structuresectioning Topic @ level 2: 0.1 - First item pagesflushing realpage 3, userpage 2 structuresectioning Topic @ level 2: 0.2 - Second item pagesflushing realpage 4, userpage 3 ) )/Applications/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf/Applications/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman10-bold.otf mkiv lua stats used config file - selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path - /Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver - loadtime 0.008 seconds, 3 scans with scantime 0.164 seconds, 0 shared
[NTG-context] How to use module simpleslides' SideToc
hi, all I want to use simplesides' SideToc wirte a presentation like sample SideToc.pdfhttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/styles/SideToc.pdf, there is some introduction in Simple Slideshttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf A Context presentation modulehttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf, but no talking about how to set background color in every region. where can I get the tex source of SideToc.pdf, or tell me what should I do? Thanks a lot! BEST REGARDS PengCZ ___ 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] How to use module simpleslides' SideToc
I believe that simpleslides SideToc style is broken (has been for a while). Adrien and Thomas who wrote the simpleslides module will need to eventually look into this. Alan On Tue, 8 Jan 2013 17:35:07 +0800 土卜皿 pengcz.n...@gmail.com wrote: hi, all I want to use simplesides' SideToc wirte a presentation like sample SideToc.pdfhttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/styles/SideToc.pdf, there is some introduction in Simple Slideshttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf A Context presentation modulehttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf, but no talking about how to set background color in every region. where can I get the tex source of SideToc.pdf, or tell me what should I do? Thanks a lot! BEST REGARDS PengCZ ___ 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] Problem with module ancientgreek
Hi allI send you a code in which I use the module ancientgreek to write the vowels with the sign of long and short. In the case of the short vowel, the sign appears perfectly, but in the case of the long vowel, a rare sign appears. Does anyone know how to solve this?. Here's the code: \enableregime[utf]\usemodule[ancientgreek][Font=GreekOldStandard,scale=1.1]\starttextAlpha longa \localgreek{\={a}}Alpha brevis \localgreek{\u{a}}\stoptextthanks -- Manuel González Suárez ___ 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 module ancientgreek
On 01/08/2013 11:17 AM, MANUEL GONZALEZ SUAREZ wrote: I send you a code in which I use the module ancientgreek to write the vowels with the sign of long and short. In the case of the short vowel, the sign appears perfectly, but in the case of the long vowel, a rare sign appears. Does anyone know how to solve this?. Here's the code: \enableregime[utf] \usemodule[ancientgreek][Font=GreekOldStandard,scale=1.1] \starttext Alpha longa \localgreek{\={a}} Alpha brevis \localgreek{\u{a}} \stoptext Mkii or Mkiv? I'm surprised you get any meaningful output at all. What I would suggest: 1. Use proper unicode input. The two glyphs you want are in OldStandard as 1x1FB0 and 1x1FB1. (I can paste them into this mail, but it's always a risk whether this will be mangled by a mail agent: ᾰ ᾱ) 2. You can also use regular ConTeXt constructs: \buildtextaccent\textmacron α} \buildtextaccent\textbreve α} I would advise (strongly) against using ASCII transliteration; this is essentially a leftover from the 1980s, which should have died with the floppy disk and the dot matrix printer... HTH Thomas ___ 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] Broken header=repeat in extreme tables
Hello ConTeXt-Users, when I try to split long extreme tables and want to get repeating first and last rows on each page (or in each column) with header=repeat (or footer=repeat), that doesn't work (latest beta). minimal example: \starttext \startxtable[split=yes,header=repeat,footer=repeat] \startxtablehead \startxrow \startxcell head one \stopxcell \startxcell head two \stopxcell \stopxrow \stopxtablehead \startxtablebody \dorecurse{100}{\startxrow \startxcell body one \stopxcell \startxcell body two \stopxcell \stopxrow} \stopxtablebody \startxtablefoot \startxrow \startxcell foot one \stopxcell \startxcell foot two \stopxcell \stopxrow \stopxtablefoot \stopxtable \stoptext Thanks Jannik ___ 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] How to use module simpleslides' SideToc
Yes, Many simpleslides styles seem to be broken. Thomas seems to be aware of this but has not gotten to looking into it. (t-slidesvisualcounter.tex is part of the simpleslides module: texmf-modules/tex/context/third/simpleslides) Alan On Tue, 8 Jan 2013 21:05:38 +0800 土卜皿 pengcz.n...@gmail.com wrote: hi, all Also, simpleslides' Shaded,Boxed are not successful, when compiling I got the same error as follows: 84 \definevisualcounter 85 [simpleslides:shadedcounter] 86 [markers] 87 [counter=userpage, 88 % distance=0.5cm, 89distance={(\the\dimexpr\visualcounterparameter{maxwidth})/m + width}, 90path=unitcircle, 91maxwidth=\textwidth, 92width=0.3cm] 93 94 \definepalet[visualcounter:markers] I thought the above error was led by t-visualcounter, so I executed the command: sh first-setup.sh --modules=t-visualcounter but it did not find module visualcounter, what should I do? Thanks! BEST REGARDS 2013/1/8 Alan BRASLAU alan.bras...@cea.fr I believe that simpleslides SideToc style is broken (has been for a while). Adrien and Thomas who wrote the simpleslides module will need to eventually look into this. Alan On Tue, 8 Jan 2013 17:35:07 +0800 土卜皿 pengcz.n...@gmail.com wrote: hi, all I want to use simplesides' SideToc wirte a presentation like sample SideToc.pdf http://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/styles/SideToc.pdf , there is some introduction in Simple Slides http://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf A Context presentation module http://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf , but no talking about how to set background color in every region. where can I get the tex source of SideToc.pdf, or tell me what should I do? Thanks a lot! BEST REGARDS PengCZ -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ 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] problem with Iwona (beta 2012-01-08)
Hi, first of all thanks to Wolfgang and Hans for fixing my TOC problem. :-) The new beta has a problem with the Iwona font. \setupbodyfont[iwona] \starttext foobar \stoptext gives... [..] (test.tex fontstypescripts unknown: library 'loc' (R:/tex/texmf-context/tex/context/base/type-imp-iwona.mkiv){R:/tex/texmf/fonts/map/dvips/iwona/iwona-rm.map}{R:/tex/texmf/fonts/map/dvips/iwona/iwona-mi.map}{R:/tex/texmf/fonts/map/dvips/iwona/iwona-sy.map}{R:/tex/texmf/fonts/map/dvips/iwona/iwona-ex.map}{R:/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontsvirtual math the mapping is incomplete for 'iwonamath' at 7pt ! LuaTeX error R:/tex/texmf-context/tex/context/base/math-vfu.lua:100: attempt to index field '?' (a nil value) stack traceback: R:/tex/texmf-context/tex/context/base/math-vfu.lua:100: in function 'extension' R:/tex/texmf-context/tex/context/base/math-vfu.lua:474: in function 'addmissing' R:/tex/texmf-context/tex/context/base/math-vfu.lua:903: in function R:/tex/texmf-context/tex/context/base/math-vfu.lua:521 (...tail calls...) R:/tex/texmf-context/tex/context/base/font-def.lua:412: in function 'read' R:/tex/texmf-context/tex/context/base/font-ctx.lua:965: in function 'definefont_two' [string \directlua ]:1: in main chunk. system tex error on line 1 in file test.tex: LuaTeX error ... 1 \setupbodyfont[iwona] 2 3 4 \starttext 5 6 foobar 7 8 \stoptext 9 \ctxcommand #1-\directlua {commands.#1} \font_helpers_low_level_define ..._designsize )} \edef \somefontspec {at \n... \font_helpers_trigger_define ..._identifier_class \csname \v_font_identifier... \font_helpers_set_math_family_a ...ily \endcsname \else \font_helpers_set_ma... \font_helpers_set_math_family_indeed ..._family_a \scriptscriptfont #1\font ... \font_helpers_set_math_family ...amily_indeed #1#2 \fi \else \font_helpers_se... ... l.1 \setupbodyfont[iwona] ? Peter ___ 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 Iwona (beta 2012-01-08)
On 1/8/2013 3:53 PM, Peter Rolf wrote: Hi, first of all thanks to Wolfgang and Hans for fixing my TOC problem. :-) The new beta has a problem with the Iwona font. \setupbodyfont[iwona] \starttext foobar \stoptext fixed in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with Iwona (beta 2012-01-08)
Am 08.01.2013 17:03, schrieb Hans Hagen: On 1/8/2013 3:53 PM, Peter Rolf wrote: Hi, first of all thanks to Wolfgang and Hans for fixing my TOC problem. :-) The new beta has a problem with the Iwona font. \setupbodyfont[iwona] \starttext foobar \stoptext fixed in next beta true, no more problems. thanx! Peter ___ 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] hbar (and probably some other symbols) doesn't work in latest beta
Hi all, thanks for your responses. @Hans: yes, hbar is extremely common in quantum physics, in fact I'd go as far to say as ubiquitous. It might be considered strange that the glyph doesn't exist, but it's actually defined in TeX as a ligature: \def\hbar{{\mathchar'26\mkern-9muh} I tried defining this but it doesn't work: I still get nothing. As it happens, \hslash seems to work fine, and in my opinion is a suitable substitute so I will just \def\hbar\hslash (although actually that didn't work, I had to do \def\hbar{\hslash} for some reason or I got an error in some tikz code I wrote). Michael -- Michael Murphy murphy...@gmail.com On Saturday, 5 January 2013 at 04:49, Khaled Hosny wrote: On Sat, Jan 05, 2013 at 02:10:50AM +0100, Hans Hagen wrote: It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts. \hbar should be a glyph variant of \hslash (U+0210F), according to STIX people, if the font provides such a variant. 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 ___
Re: [NTG-context] How to use module simpleslides' SideToc
On 01/08/2013 03:10 PM, Alan BRASLAU wrote: Yes, Many simpleslides styles seem to be broken. Thomas seems to be aware of this but has not gotten to looking into it. (t-slidesvisualcounter.tex is part of the simpleslides module: texmf-modules/tex/context/third/simpleslides) Alan I hope there aren't that many broken styles... Anyway, I'm not teaching this year, so I don't use the module too often, so this slips by me. I looked at the SideToc style, but I can't figure out the problem; something must have changed in the core. So all I can do is give a minimal example for what fails and hope that one of the real experts will have an idea. Most of the clever code in the example is actually Wolfgang's... So here comes: \setuplayout [leftmargin=4cm, backspace=5cm] \define[3]\FancyEntry {\doifelse{#1}{\MyMark}% {\color[red]{#1 = \MyMark}\blank[medium]} {\color[blue]{#1 = \MyMark}\blank[medium]} } \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setuptexttexts[margin][\vbox{\placelist[MyTopics]}][] \starttext \Topic[First] First Topic \page \Topic[Second] Second Topic \stoptext The problem is that the \doifelse always evaluates to false, even when \MyMark is defined and equal to the topic; I hope the example clarifies this. [tested with latest beta mkiv] All best Thomas ___ 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] How to use module simpleslides' SideToc
On 1/8/2013 11:26 PM, Thomas A. Schmitz wrote: \define[3]\FancyEntry {\doifelse{#1}{\MyMark}% {\color[red]{#1 = \MyMark}\blank[medium]} {\color[blue]{#1 = \MyMark}\blank[medium]} } When you're back in teaching mode I'll tell you how to do it properly, so here's a quick hack: \define[3]\FancyEntry { \ifnum\structurelistrealpagenumber=\realpageno\relax SAME \else OTHER \fi PAGE \blank[medium] \doifelse \rawstructurelistfirst \MyMark {\color[red] {#1 = \MyMark}} {\color[blue]{#1 = \MyMark}} \blank[medium] } In your case you compare an unexpandable macro with a regular one so that will always be false. Last year the list macros became more flexible and more properties are available as either unexpandable or expandable macro Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Was: Opening external documents ... - Can ConTeXt reduce size of images?
Thanks Hans, I'll give this a try when I am in a daring mood and less busy. Matthias On Jan 7, 2013, at 8:09 PM, Hans Hagen pra...@wxs.nl wrote: On 1/8/2013 1:00 AM, Matthias Weber wrote: So, this clearly is not a ConTeXt problem. But it causes me major headaches. In my workflow, I have dozens of images that I prepare with Adobe Illustrator and save as pdf files that are still editable with Illustrator, i.e. that include another copy of the file with layers etc. In other words, my pdf images are about 10 times as big as they need to be. I usually just reduce the file size with preview. As this seems to be erroneous now, I am wondering: it's even worse ... all kind of color and other data is present is such a file .. the pstopdf.rb script (comes with mkii) gets rid of some of that normally at pragma we do such things either automatically (when graphics are put in repositories) or with acrobat in batch mode (doable if you get the graphics in advance) because doing such thing smanually for thousands of images is no fun you can play with this: \startluacode local gsp = os.type == windows and gswin32c or gs local gsc = %s -q -dEPSCrop -sDEVICE=pdfwrite -dNOPAUSE -dSAFER -dNOCACHE -dBATCH -dProcessColorModel=/DeviceCMYK -sOutputFile=%s %s -c quit local pdp = pdftops -eps %s %s figures.converters.pdf = { xxx = function(oldname,newname) local tmpname = oldname .. .ps local command = string.format(pdp,oldname,tmpname) os.execute(command) local command = string.format(gsc,gsp,newname,oldname) os.execute(command) end } figures.registersuffix(xxx,pdf) \stopluacode \starttext \externalfigure[cow.pdf][conversion=xxx] \stoptext pdftops comes with xpdf (also in minimals) if needed I can add a standard converter for it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : 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 ___
Re: [NTG-context] Was: Opening external documents ... - Can ConTeXt reduce size of images?
On 1/9/2013 12:04 AM, Matthias Weber wrote: Thanks Hans, I'll give this a try when I am in a daring mood and less busy. the latest beta has this: % \enabletrackers[graphics.programs] \starttext \externalfigure[cow.pdf][conversion=stripped] \stoptext Of course I cannot guarantee that the pdf gets stripped, but at least it's tried. Matthias On Jan 7, 2013, at 8:09 PM, Hans Hagen pra...@wxs.nl wrote: On 1/8/2013 1:00 AM, Matthias Weber wrote: So, this clearly is not a ConTeXt problem. But it causes me major headaches. In my workflow, I have dozens of images that I prepare with Adobe Illustrator and save as pdf files that are still editable with Illustrator, i.e. that include another copy of the file with layers etc. In other words, my pdf images are about 10 times as big as they need to be. I usually just reduce the file size with preview. As this seems to be erroneous now, I am wondering: it's even worse ... all kind of color and other data is present is such a file .. the pstopdf.rb script (comes with mkii) gets rid of some of that normally at pragma we do such things either automatically (when graphics are put in repositories) or with acrobat in batch mode (doable if you get the graphics in advance) because doing such thing smanually for thousands of images is no fun you can play with this: \startluacode local gsp = os.type == windows and gswin32c or gs local gsc = %s -q -dEPSCrop -sDEVICE=pdfwrite -dNOPAUSE -dSAFER -dNOCACHE -dBATCH -dProcessColorModel=/DeviceCMYK -sOutputFile=%s %s -c quit local pdp = pdftops -eps %s %s figures.converters.pdf = { xxx = function(oldname,newname) local tmpname = oldname .. .ps local command = string.format(pdp,oldname,tmpname) os.execute(command) local command = string.format(gsc,gsp,newname,oldname) os.execute(command) end } figures.registersuffix(xxx,pdf) \stopluacode \starttext \externalfigure[cow.pdf][conversion=xxx] \stoptext pdftops comes with xpdf (also in minimals) if needed I can add a standard converter for it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Was: Opening external documents ... - Can ConTeXt reduce size of images?
2013/1/8 Hans Hagen pra...@wxs.nl: it's even worse ... all kind of color and other data is present is such a file .. the pstopdf.rb script (comes with mkii) gets rid of some of that We could reduce some of that during pdf inclusion (or use the new build-in pdf library). Best Martin ___ 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] Was: Opening external documents ... - Can ConTeXt reduce size of images?
On 2013–01–09 Hans Hagen wrote: the latest beta has this: % \enabletrackers[graphics.programs] \starttext \externalfigure[cow.pdf][conversion=stripped] \stoptext Nice feature, indeed. It might save a preprocessing step. We preprocess with -dProcessDSCComments=false otherwise PDFs generated by external programs (OpenOffice, I'm looking at you) in combination with particular fonts might wreak havoc with the document they are included into. I don't know which downsides this might have, though. In our workflow this leads to more predictable results. Maybe someone with more insight of the PDF internals could judge if it makes sense to add this option. It looks like the presets are not hard-coded. What is the interface to change the presets (screen, ebook, prepress)? Marco signature.asc Description: Digital signature ___ 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] How to use module simpleslides' SideToc
hi, I compiled the following code, \setuplayout [leftmargin=4cm, backspace=5cm] \define[3]\FancyEntry { \ifnum\structurelistrealpagenumber=\realpageno\relax SAME \else OTHER \fi PAGE \blank[medium] \doifelse \rawstructurelistfirst \MyMark {\color[red] {#1 = \MyMark}} {\color[blue]{#1 = \MyMark}} \blank[medium] } \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setuptexttexts[margin][\vbox{\placelist[MyTopics]}][] \starttext \Topic[First] First Topic \page \Topic[Second] Second Topic \stoptext but I can not get the right pdf, please check the attachment! context version: 2013.01.08 01:19 LuaTeX, Version beta-0.74.0-2012122510 Thanks! BEST REGARDS PengCZ 2013/1/9 Hans Hagen pra...@wxs.nl On 1/8/2013 11:26 PM, Thomas A. Schmitz wrote: \define[3]\FancyEntry {\doifelse{#1}{\MyMark}% {\color[red]{#1 = \MyMark}\blank[medium]} {\color[blue]{#1 = \MyMark}\blank[medium]} } When you're back in teaching mode I'll tell you how to do it properly, so here's a quick hack: \define[3]\FancyEntry { \ifnum\**structurelistrealpagenumber=\**realpageno\relax SAME \else OTHER \fi PAGE \blank[medium] \doifelse \rawstructurelistfirst \MyMark {\color[red] {#1 = \MyMark}} {\color[blue]{#1 = \MyMark}} \blank[medium] } In your case you compare an unexpandable macro with a regular one so that will always be false. Last year the list macros became more flexible and more properties are available as either unexpandable or expandable macro Hans --**--**- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 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/http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __**__** ___ sidetuc.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] Was: Opening external documents ... - Can ConTeXt reduce size of images?
On 1/9/2013 12:34 AM, Martin Schröder wrote: 2013/1/8 Hans Hagen pra...@wxs.nl: it's even worse ... all kind of color and other data is present is such a file .. the pstopdf.rb script (comes with mkii) gets rid of some of that We could reduce some of that during pdf inclusion (or use the new build-in pdf library). the library would then have to tweak a loaded pdf file which is a no-go with respect to mem usage also, some automatic reduction demands a constant adaption of the heuristics best keep away from that and leave it to other programs Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] SciTE integration FYI
A quick FYI: the URL given in the manual for the LPeg lexers package you need is no longer valid. That project is not hosted on code.google.com any more. Use this one instead: http://foicica.com/scintillua/ -- Bill Meahan Westland, Michigan USA ___ 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 ___