Hi, I have this error: )) structure > sectioning > title @ level 2 : 0.0 -> Funció quadràtica structure > sectioning > section @ level 3 : 0.0.1 -> Seccions còniques structure > sectioning > section @ level 3 : 0.0.2 -> Construcció geomètrica d'una paràbola structure > sectioning > subsection @ level 4 : 0.0.2.1 -> Definició ! Undefined control sequence. system > tex > error on line 57 in file /home/xan/SYNC/cepasud-raw-mercurial/classe/ESPA4/planificació/Tema1-Funció-quadràtica/97-Quadràtica-a-la-realitat.conTeXt: Undefined control sequence ... 47 {\framed[frame=off]{ 48 \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={ 49 markings,% switch on markings 50 mark=% actually add a mark 51 between positions 0 and 1 step 0.5 52 with 53 { 54 \draw[color=gray] (0,-2pt) -- (0,2pt); 55 } 56 }] 57 >> \coordinate (F) at (0,0.25); 58 \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$}; 59 \draw[color=blue, very thick] plot (\x,{(\x)^2}); 60 61 \foreach \x in {1,0.5,0.75} 62 { 63 \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, -0.25) -- (\x , {(\x)^2}); 64 \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , {(\x)^2}) -- (F); 65 } 66 \filldraw[color=red] (F) circle (0.5pt); 67 \draw (F) node[anchor=north] {$F$}; \tikz@nlt ^^@-\pgfapproximatenonlineartranslation \tikz@fig@continue ...e@transformations \tikz@nlt \setbox \tikz@whichbox =\h... <to be read again> ; l.57 \coordinate (F) at (0,0.25); ? with this code: % Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25) \placefigure[here] [taula:construcció-paràbola-1] {Paràbola amb directriu $r$ i focus $F$} {\framed[frame=off]{ \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={ markings,% switch on markings mark=% actually add a mark between positions 0 and 1 step 0.5 with { \draw[color=gray] (0,-2pt) -- (0,2pt); } }] \coordinate (F) at (0,0.25); \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$}; \draw[color=blue, very thick] plot (\x,{(\x)^2}); \foreach \x in {1,0.5,0.75} { \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, -0.25) -- (\x , {(\x)^2}); \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , {(\x)^2}) -- (F); } \filldraw[color=red] (F) circle (0.5pt); \draw (F) node[anchor=north] {$F$}; \stoptikzpicture}} this happens when I updated to the latest version: $ sh ./first-setup.sh --context=beta --modules=all --engine=luatex What happens there? Thanks, Xan
On 10/10/2013 10:33 AM, Xan wrote:
\tikz@nlt ^^@-\pgfapproximatenonlineartranslation
maybe you need to load some more tikz files 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 -----------------------------------------------------------------
On 2013–10–10 Xan wrote:
with this code:
% Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25) \placefigure[here] [taula:construcció-paràbola-1] {Paràbola amb directriu $r$ i focus $F$} {\framed[frame=off]{ \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={ markings,% switch on markings mark=% actually add a mark between positions 0 and 1 step 0.5 with { \draw[color=gray] (0,-2pt) -- (0,2pt); } }] \coordinate (F) at (0,0.25); \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$}; \draw[color=blue, very thick] plot (\x,{(\x)^2});
\foreach \x in {1,0.5,0.75} { \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, -0.25) -- (\x , {(\x)^2}); \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , {(\x)^2}) -- (F); } \filldraw[color=red] (F) circle (0.5pt); \draw (F) node[anchor=north] {$F$}; \stoptikzpicture}}
this happens when I updated to the latest version: $ sh ./first-setup.sh --context=beta --modules=all --engine=luatex
What happens there?
Hard to tell. Please provide a minimal example next time. I tried to condense your example, but I'm getting a different error than you do. Maybe I deleted too much or my syntax is invalid. I don't really know TikZ. \usemodule [tikz] \usetikzlibrary [decorations] \starttext \starttikzpicture [decoration={ mark= between positions 0 and 1 step 0.5 with { \draw (0,-2pt) -- (0,2pt);}}] \draw node {foo}; \stoptikzpicture \stoptext Marco
Minimal example: % Regime \enableregime[utf] % Choose a language, and associated hyphenation rules. \mainlanguage[ca] \usemodule [tikz] \usetikzlibrary [decorations] \usetikzlibrary[decorations.markings] \starttext \starttext \starttikzpicture [decoration={ markings, mark= between positions 0 and 1 step 0.5 with { \draw (0,-2pt) -- (0,2pt); } } ] \coordinate (F) at (0,0); \draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) -- (F); \stoptikzpicture \stoptext \stoptext does not work. Without \coordinate it works. What fails? Thanks in advance, Xan.
On 2013–10–10 Xan wrote:
Minimal example:
% Regime \enableregime[utf]
Not required if you use MkIV
does not work.
It works here with 2013.10.09 10:36 using MkIV and MkII. At least I don't get an error and a PDF with a few green blots is created. What's the error message you get for that minimal example? Are you running MkII or MkIV?
Without \coordinate it works. What fails?
If you remove \coordinate it should fail actually, since the coordinate for (F) is unknown. Or did you mean you replaced (F) with a coordinate like (0,2)? Marco
On 2013–10–10 Xan wrote:
Minimal example:
% Regime \enableregime[utf]
Not required if you use MkIV
does not work.
It works here with 2013.10.09 10:36 using MkIV and MkII. At least I don't get an error and a PDF with a few green blots is created. What's the error message you get for that minimal example? Are you running MkII or MkIV?
MKIV (read above) [xan@rulot proves-context]$ context prova.tex mtx-context | run 1: luatex --fmt="/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="prova" --lua="/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./prova.tex" --c:input="./prova.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) \write18 enabled. (/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.10.09 10:36 MKIV beta fmt: 2013.10.10 int: english/english system > 'cont-new.mkiv' loaded (/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-new.mkiv) system > files > jobname 'prova', input './prova', result 'prova' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/xan/fems/proves-context/prova.tex resolvers > modules > 'tikz' is loaded (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex loading > ConTeXt User Module / tikz (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex loading > ConTeXt User Module / pgf (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex loading > ConTeXt User Module / pgfcor (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex loading > ConTeXt User Module / pgfsys (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex loading > ConTeXt User Module / pgfrcs (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex loading > ConTeXt User Module / pgfmodules ) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)) (prova.pgf)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code! .tex)) (/ usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex fonts > beware: no fonts are loaded yet, using 'lm mono' in box ) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathparser.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.random.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.base.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.round.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex))) (/usr/local/bin/! context/t ex/texmf-modules/tex/generic/pgf/math/pgfmathfloat.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorequick.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf! /basiclay er/pgfcorearrows.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex))) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/modules/pgfmoduleshapes.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/modules/pgfmoduleplot.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgffor.tex loading > ConTeXt User Module / pgffor (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex loading > ConTeXt User Module / pgfrcs ) (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfkey.tex loading > ConTeXt User Module / pgfkey (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgffor.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex))) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulematrix.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex))) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/modules/pgfmoduledecorations.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.markin! gs.code.t ex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.markings.code.tex)){/usr/local/bin/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown library 'loc' {/usr/local/bin/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/bin/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > 'fallback modern rm 12pt' is loaded ! Undefined control sequence. system > tex > error on line 28 in file /home/xan/fems/proves-context/prova.tex: Undefined control sequence ... 18 \starttikzpicture 19 [decoration={ 20 markings, 21 mark= 22 between positions 0 and 1 step 0.5 23 with { 24 \draw (0,-2pt) -- (0,2pt); 25 } 26 } 27 ] 28 >> \coordinate (F) at (0,0); 29 \draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) -- (F); 30 \stoptikzpicture 31 \stoptext 32 33 \stoptext 34 \tikz@nlt ^^@-\pgfapproximatenonlineartranslation \tikz@fig@continue ...e@transformations \tikz@nlt \setbox \tikz@whichbox =\h... <to be read again> ; l.28 \coordinate (F) at (0,0); ? x mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 76 found files, scanned paths: <none> mkiv lua stats > stored bytecode data: 337 modules (0.228 sec), 69 tables (0.006 sec), 406 chunks (0.234 sec) mkiv lua stats > cleaned up reserved nodes: 39 nodes, 10 lists of 454 mkiv lua stats > node memory usage: 15 glue, 24 attribute, 19 glue_spec, 8 attribute_list, 2 temp, 1 open, 3 dir, 5 pdf_literal mkiv lua stats > node list callback tasks: 6 unique task lists, 1 instances (re)created, 1 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > loaded tex modules: 1 requested, all found (*-tikz) mkiv lua stats > loaded patterns: ca::53 en::2, load time: 0.000 mkiv lua stats > jobdata time: 0.000 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks: 3644 direct, 35423 indirect, 39067 total mkiv lua stats > randomizer: resumed with value 0.083770013453332 mkiv lua stats > result saved in file: prova.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, lmmono10-regular.otf, lmroman12-regular.otf mkiv lua stats > fonts load time: 0.262 seconds mkiv lua stats > metapost font generation: 0 glyphs, 0.000 seconds runtime mkiv lua stats > metapost font loading: 0.000 seconds, 0 instances mkiv lua stats > luatex banner: this is luatex, version beta-0.76.0-2013040516 (tex live 2013/dev)(rev 4627) mkiv lua stats > control sequences: 47525 of 65536 + 100000 mkiv lua stats > current memory usage: 26 MB (ctx: 25 MB) mkiv lua stats > runtime: 3.110 seconds mtx-context | fatal error: return code: 1[xan@rulot proves-context]$ \footnote{La generatriu del con és l'aresta del con. El con es pot al girar la recta generatriu sobre una altra recta (l'eix del con)} bash: hi ha un error inesperat de sintaxi prop del senyal ')'
Without \coordinate it works. What fails?
If you remove \coordinate it should fail actually, since the coordinate for (F) is unknown. Or did you mean you replaced (F) with a coordinate like (0,2)?
I defined (F) previosly
Marco
Thanks,
On 2013–10–10 Xan wrote:
! Undefined control sequence.
system > tex > error on line 28 in file /home/xan/fems/proves-context/prova.tex: Undefined control sequence ...
18 \starttikzpicture 19 [decoration={ 20 markings, 21 mark= 22 between positions 0 and 1 step 0.5 23 with { 24 \draw (0,-2pt) -- (0,2pt); 25 } 26 } 27 ] 28 >> \coordinate (F) at (0,0);
I can reproduce it now. Funnily it works on my regular installation (same version). When I run it on a clean minimal installation I get the same error. No clue what's going on and I don't have much time to check at the moment. Marco
On 2013–10–10 Xan wrote:
! Undefined control sequence.
system > tex > error on line 28 in file /home/xan/fems/proves-context/prova.tex: Undefined control sequence ...
18 \starttikzpicture 19 [decoration={ 20 markings, 21 mark= 22 between positions 0 and 1 step 0.5 23 with { 24 \draw (0,-2pt) -- (0,2pt); 25 } 26 } 27 ] 28 >> \coordinate (F) at (0,0);
I can reproduce it now. Funnily it works on my regular installation (same version). When I run it on a clean minimal installation I get the same error. No clue what's going on and I don't have much time to check at the moment.
Marco
Perhaps anyone could see us with this minimal example. Does anyone? Thanks in advance, Xan
With version 2013-09-07 (sh ./first-setup.sh --context=2013-09-07 --modules=all --engine=luatex) it works With version 2013.10.09 it does not So there is a bug. Can anyone fix it? Thanks, Xan
Using version 2013.10.10 it works for me as stated in my last post.
regards
Keith
Am 11.10.2013 um 09:55 schrieb Xan
With version 2013-09-07 (sh ./first-setup.sh --context=2013-09-07 --modules=all --engine=luatex) it works With version 2013.10.09 it does not
So there is a bug.
Can anyone fix it?
Thanks, Xan
Hi,
I just tested the below MWE!
It worked with the latest beta MKIV (--modules=all), an three day old beta, and with the TeXLive 2013 (MacTeX)
No errors. Running via TeXShop on a Mac OS 10.85
I can only assume that something is wrong with your set-up! maybe a path problem and the wrong TiKZ is being loaded.
reagrds
Keith.
Am 10.10.2013 um 13:09 schrieb Xan
Minimal example:
% Regime \enableregime[utf]
% Choose a language, and associated hyphenation rules. \mainlanguage[ca]
\usemodule [tikz] \usetikzlibrary [decorations] \usetikzlibrary[decorations.markings]
\starttext
\starttext \starttikzpicture [decoration={ markings, mark= between positions 0 and 1 step 0.5 with { \draw (0,-2pt) -- (0,2pt); } } ] \coordinate (F) at (0,0); \draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) -- (F); \stoptikzpicture \stoptext
\stoptext
does not work.
Without \coordinate it works. What fails?
Thanks in advance, Xan. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (4)
-
Hans Hagen
-
Keith J. Schultz
-
Marco Patzer
-
Xan