[OS X TeX] Trouble with Tikz and Edit -> Experiment...

Don Green Dragon fergdc at Shaw.ca
Fri Mar 11 06:36:52 CET 2016


Hi, 

Perhaps this should be sent to a different list, but I’ll try here first. I cannot get the \foreach command to work properly while using Edit -> Experiment….  For example, the code

\begin{tikzpicture}
\foreach \n in {1,2,3,4,5}
	\fill [red] (\n, 0) circle (2pt);
\end{tikzpicture}

executes properly and shows the expected five red discs whether I typeset from the source file with the Typeset button at the upper-left of the TeXShop window or whether I open «Edit -> Experiment…»  and then hit the Typeset key at lower-right of the «Edit -> Experiment» window.

However, if the code is

\begin{tikzpicture}
\foreach \n in {1,...,5}
	\fill [red] (\n, 0) circle (2pt);
\end{tikzpicture}

then it typesets properly from TeXShop’s upper-left Typeset button but NOT when the code is typeset from the «Edit -> Experiment…»  window. It certainly would be useful (to me) if it worked properly when working with Edit -> Experiment as I use {tikzpicture} a great deal.

In other words, Edit -> Experiment… requires (it seems) that the list of `values’ be explicit not implied. For example, 

\foreach \n \in {1,2,3,4,5}

is explicit whereas

\foreach \n  in {1,…,5}

is implicit. I don’t know whether the problem lies with the Tikz code or the coding related to the functioning of Edit -> Experiment…. 

I have found Edit -> Experiment… to be  amazingly useful. Wonderful! Splendid!


don green dragon
fergdc at shaw.ca





----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list