## [MiKTeX] question with Probability tree

 [MiKTeX] question with Probability tree From: Wu Zhang - 2013-10-05 21:22:00  Hi, I found this file for probability tree: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{trees} \usepackage{verbatim} \begin{comment} :Title: Probability tree :Tags: Trees A simple example of a probability tree diagram. \end{comment} \begin{document} \pagestyle{empty} % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3.5cm] \tikzstyle{level 2}=[level distance=3.5cm, sibling distance=2cm] % Define styles for bags and leafs \tikzstyle{bag} = [text width=4em, text centered] \tikzstyle{end} = [circle, minimum width=3pt,fill, inner sep=0pt] % The sloped option gives rotated edge labels. Personally % I find sloped labels a bit difficult to read. Remove the sloped options % to get horizontal labels. \begin{tikzpicture}[grow=right, sloped] \node[bag] {Bag 1 $4W, 3B$} child { node[bag] {Bag 2 $4W, 5B$} child { node[end, label=right: {$P(W_1\cap W_2)=\frac{4}{7}\cdot\frac{4}{9}$}] {} edge from parent node[above] {$W$} node[below] {$\frac{4}{9}$} } child { node[end, label=right: {$P(W_1\cap B_2)=\frac{4}{7}\cdot\frac{5}{9}$}] {} edge from parent node[above] {$B$} node[below] {$\frac{5}{9}$} } edge from parent node[above] {$W$} node[below] {$\frac{4}{7}$} } child { node[bag] {Bag 2 $3W, 6B$} child { node[end, label=right: {$P(B_1\cap W_2)=\frac{3}{7}\cdot\frac{3}{9}$}] {} edge from parent node[above] {$B$} node[below] {$\frac{3}{9}$} } child { node[end, label=right: {$P(B_1\cap B_2)=\frac{3}{7}\cdot\frac{6}{9}$}] {} edge from parent node[above] {$W$} node[below] {$\frac{6}{9}$} } edge from parent node[above] {$B$} node[below] {$\frac{3}{7}$} }; \end{tikzpicture} \end{document} You can find the link here: https://www.writelatex.com/402223pmfdhy My question is: how can we replace the fractions with a box or circle? I am planning to put it as a question to students; I want them to fill out the box or circles for the right probabilities. Thanks, Wu 

 [MiKTeX] Problem with beamer From: Michael Barr - 2013-10-01 23:35:28 I was told that processing a file with pdflatex gives the same result as processing it with latex, with \pdfoutput1 in the preamble. They both load with "pdftex". The following file: \documentclass{beamer} \pdfoutput1 \title{testfile} \author{Michael Barr} \begin{document} \titlepage \end{document} gives quite a different result when processed with latex and pdflatex. The latter gives the expected out, while the former produces a white page with a large black square in the upper left quadrant. When \pdfoutput is changed to 0, they give the same dvi file. This is Miktex 2.8, by the way. I am asking this more out of interest, since I can always process it using pdflatex, but I like to track these things down when I can. Michael Barr -- The modern conservative is engaged in one of man's oldest exercises in moral philosophy--the search for a superior moral justification for selfishness. --J.K. Galbraith 
 Re: [MiKTeX] Problem with beamer From: Joseph Wright - 2013-10-02 05:51:03 On 02/10/2013 00:21, Michael Barr wrote: > I was told that processing a file with pdflatex gives the same result as > processing it with latex, with \pdfoutput1 in the preamble. They both > load with "pdftex". The following file: > > \documentclass{beamer} > \pdfoutput1 > \title{testfile} > \author{Michael Barr} > \begin{document} > \titlepage > \end{document} > > gives quite a different result when processed with latex and pdflatex. > The latter gives the expected out, while the former produces a white page > with a large black square in the upper left quadrant. When \pdfoutput is > changed to 0, they give the same dvi file. This is Miktex 2.8, by the > way. > > I am asking this more out of interest, since I can always process it using > pdflatex, but I like to track these things down when I can. > > Michael Barr Using \pdfoutput directly is not recommended: switching should work fine by choosing either pdflatex or latex as the command used for processing. All works fine for me with the latest beamer release (v3.27) with an up-to-date TeX Live. -- Joseph Wright 
 [MiKTeX] packages involved with etex.sty file From: Wu Zhang - 2013-10-03 04:19:02 Hi there,    I am just wondering how I could know which one out of  20 packages has the etex.sty file involved.  I keep getting error message about that file, I just want to delete all the packages which have the file.   Any comment is welcome! Thanks, Wu ________________________________ 
 Re: [MiKTeX] Problem with beamer From: Ulrike Fischer - 2013-10-04 07:35:13 Am Tue, 1 Oct 2013 19:21:20 -0400 (EDT) schrieb Michael Barr: > I was told that processing a file with pdflatex gives the same result as > processing it with latex, with \pdfoutput1 in the preamble. They both > load with "pdftex". The following file: > > \documentclass{beamer} > \pdfoutput1 > \title{testfile} > \author{Michael Barr} > \begin{document} > \titlepage > \end{document} > > gives quite a different result when processed with latex and pdflatex. > The latter gives the expected out, while the former produces a white page > with a large black square in the upper left quadrant. When \pdfoutput is > changed to 0, they give the same dvi file. This is Miktex 2.8, by the > way. > You are changing \pdfoutput after beamer has loaded tons of files -- including driver files for dvips which beamer has loaded after checking that the current value of \pdfoutput is 0. -- Ulrike Fischer 
 [MiKTeX] question with Probability tree From: Wu Zhang - 2013-10-05 21:22:00  Hi, I found this file for probability tree: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{trees} \usepackage{verbatim} \begin{comment} :Title: Probability tree :Tags: Trees A simple example of a probability tree diagram. \end{comment} \begin{document} \pagestyle{empty} % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3.5cm] \tikzstyle{level 2}=[level distance=3.5cm, sibling distance=2cm] % Define styles for bags and leafs \tikzstyle{bag} = [text width=4em, text centered] \tikzstyle{end} = [circle, minimum width=3pt,fill, inner sep=0pt] % The sloped option gives rotated edge labels. Personally % I find sloped labels a bit difficult to read. Remove the sloped options % to get horizontal labels. \begin{tikzpicture}[grow=right, sloped] \node[bag] {Bag 1 $4W, 3B$} child { node[bag] {Bag 2 $4W, 5B$} child { node[end, label=right: {$P(W_1\cap W_2)=\frac{4}{7}\cdot\frac{4}{9}$}] {} edge from parent node[above] {$W$} node[below] {$\frac{4}{9}$} } child { node[end, label=right: {$P(W_1\cap B_2)=\frac{4}{7}\cdot\frac{5}{9}$}] {} edge from parent node[above] {$B$} node[below] {$\frac{5}{9}$} } edge from parent node[above] {$W$} node[below] {$\frac{4}{7}$} } child { node[bag] {Bag 2 $3W, 6B$} child { node[end, label=right: {$P(B_1\cap W_2)=\frac{3}{7}\cdot\frac{3}{9}$}] {} edge from parent node[above] {$B$} node[below] {$\frac{3}{9}$} } child { node[end, label=right: {$P(B_1\cap B_2)=\frac{3}{7}\cdot\frac{6}{9}$}] {} edge from parent node[above] {$W$} node[below] {$\frac{6}{9}$} } edge from parent node[above] {$B$} node[below] {$\frac{3}{7}$} }; \end{tikzpicture} \end{document} You can find the link here: https://www.writelatex.com/402223pmfdhy My question is: how can we replace the fractions with a box or circle? I am planning to put it as a question to students; I want them to fill out the box or circles for the right probabilities. Thanks, Wu