program in m/c question

28 views
Skip to first unread message

Petra Bonfert-Taylor

unread,
Oct 12, 2022, 1:49:13 PM10/12/22
to PreTeXt support
Hi,

I can't figure out how to get syntax-highlighting for a piece of C-code inside a multiple choice question, see https://engs20book.thayer.dartmouth.edu/c-programming/variables-printing-numbers.html (scroll to the bottom).

Here is the code that produces this output (note that if I move the <program> outside of the <statement> it disappears entirely):

        <reading-questions>
            <exercise xml:id="quiz-printing-1">
                <statement>
                    <p>What will be printed to the screen by the following program:</p>
                    <program language="c"><input>
                        #include &lt;stdio.h&gt;
                        int main(void) {
                           printf("We need %d apples and %d cups sugar.\n", 10, 2);

                           return(0);
                        }
                    </input></program>
                </statement>
                 <choices randomize="yes">
                    <choice correct="yes">
                        <statement>
                            <p>We need 10 apples and 2 cups of sugar.</p>
                        </statement>
                        <feedback>
                            <p>Great job!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <p>We need 10 apples and 10 cups of sugar.</p>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <p>We need 2 apples and 2 cups of sugar.</p>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <p>We need 2 apples and 10 cups of sugar.</p>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <p>We need %d apples and %d cups of sugar.</p>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                </choices>
                <hint>
                    <p>There is a one-to-one match between format specifiers and parameters.</p>
                </hint>
            </exercise>
        </reading-questions>

While asking this question... is it possible to not have the choices bold-faced? In fact, I would have preferred them inside <pre> tags but that puts the bold faced choice letter on one line and the answer choice on the next line which is less desirable.

Thanks- Petra

Rob Beezer

unread,
Oct 12, 2022, 2:29:30 PM10/12/22
to pretext...@googlegroups.com
1. Moving "program" out of "statement" tries to make this an ActiveCode
exercise, but I think the "choices" wins and you get a multiple choice question
without extra stuff originating outside of "statement". So right now, I think
your authoring looks right.

2. Syntax highlighting comes from a Javascript library called "Prism" I see it
being loaded on the page you supplied. The HTML looks much like (exactly like?)
what I see in the sample article:

https://pretextbook.org/examples/sample-article/html/section-programs.html

So, my JS debugging skills have not gotten me there yet. But perhaps the
Runestone JS for rendering the exercise is a factor? I can't read the Inspector
well enough to be sure.

3. Brad sez the text of each choice is a "label" for the button, so the reader
can click on the text. Try putting the literal program output in a "c" element
(not "pre" which is a whole paragraph-ish of stuff). Maybe you'll get monospace
(still bold?).

Let us know if (3) helps? Maybe somebody else has ideas on (2)?

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/93a43493-1f7c-403f-9150-d5a85bc17543n%40googlegroups.com
> <https://groups.google.com/d/msgid/pretext-support/93a43493-1f7c-403f-9150-d5a85bc17543n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Petra Bonfert-Taylor

unread,
Oct 13, 2022, 9:35:26 AM10/13/22
to pretext...@googlegroups.com
Thanks so much, Rob! (3) definitely helped and I have the beginning of an ugly workaround for (2) which I am hoping might also help with looking a the differences in javascript?


I copied the exercise but took out the choices and indeed the syntax highlighting returned. Then I tried to create a separate exercise just with the choices (and forced that to happen with an empty <statement>). The only issue is that my choices receive a separate exercise number which of course I don’t want. 

Here is the code:

        <reading-questions>
            <exercise xml:id="quiz-printing-1">
                <statement>
                    <p>What will be printed to the screen by the following program:</p>
                    <program language="c"><input>
                        #include &lt;stdio.h&gt;
                        int main(void) {
                           printf("We need %d apples and %d cups sugar.\n", 10, 2);

                           return(0);
                        }
                    </input></program>
                </statement>
                 <choices randomize="yes">
                    <choice correct="yes">
                        <statement>
                            <c>We need 10 apples and 2 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Great job!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need 10 apples and 10 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need 2 apples and 2 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need 2 apples and 10 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need %d apples and %d cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                </choices>
                <hint>
                    <p>There is a one-to-one match between format specifiers and parameters.</p>
                </hint>
            </exercise>
            <exercise xml:id="quiz-printing-test">
                <statement>
                    <p>What will be printed to the screen by the following program:</p>
                    <program language="c"><input>
                        #include &lt;stdio.h&gt;
                        int main(void) {
                           printf("We need %d apples and %d cups sugar.\n", 10, 2);

                           return(0);
                        }
                    </input></program>
                </statement>
            </exercise>
            <exercise xml:id="quiz-printing-test2">
                <statement/>
                 <choices randomize="yes">
                    <choice correct="yes">
                        <statement>
                            <c>We need 10 apples and 2 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Great job!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need 10 apples and 10 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need 2 apples and 2 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need 2 apples and 10 cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                    <choice>
                        <statement>
                            <c>We need %d apples and %d cups of sugar.</c>
                        </statement>
                        <feedback>
                            <p>Not quite - try again!</p>
                        </feedback>
                    </choice>
                </choices>
                <hint>
                    <p>There is a one-to-one match between format specifiers and parameters.</p>
                </hint>
            </exercise>  
        </reading-questions>


Thanks- Petra

On Oct 12, 2022, at 2:29 PM, Rob Beezer <bee...@ups.edu> wrote:

1.  Moving "program" out of "statement" tries to make this an ActiveCode exercise, but I think the "choices" wins and you get a multiple choice question without extra stuff originating outside of "statement".  So right now, I think your authoring looks right.

2.  Syntax highlighting comes from a Javascript library called "Prism"  I see it being loaded on the page you supplied.  The HTML looks much like (exactly like?) what I see in the sample article:



So, my JS debugging skills have not gotten me there yet.  But perhaps the Runestone JS for rendering the exercise is a factor?  I can't read the Inspector well enough to be sure.

3.  Brad sez the text of each choice is a "label" for the button, so the reader can click on the text.  Try putting the literal program output in a "c" element (not "pre" which is a whole paragraph-ish of stuff).  Maybe you'll get monospace (still bold?).

Let us know if (3) helps?  Maybe somebody else has ideas on (2)?

Rob

On 10/12/22 10:49, Petra Bonfert-Taylor wrote:
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cbb0b8ed168844f7fcf5d08daac7fbb1c%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638011962025274971%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=89iXMZRkR5NOpp1tcf1hMozUvLIRKdrONZQA0FUfBwQ%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cbb0b8ed168844f7fcf5d08daac7fbb1c%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638011962025274971%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Mn5cDfCR0Knfew7IguvsEaomnwdt8bY4oAvd1sN9FIM%3D&amp;reserved=0>.

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cbb0b8ed168844f7fcf5d08daac7fbb1c%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638011962025274971%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=YFa8gJvZe2f2q9Cm%2Bom3%2FuJdRP6wVaT4ZVlVLnxkOUs%3D&amp;reserved=0.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F228a0791-2993-8b7f-cf34-6a56b6c779b4%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cbb0b8ed168844f7fcf5d08daac7fbb1c%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638011962025274971%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MzvYFSzg4P3QxdpuPydX0rmsQ4Gc3bXPNTV4%2F%2FWjhMo%3D&amp;reserved=0.

Rob Beezer

unread,
Oct 13, 2022, 5:40:52 PM10/13/22
to pretext...@googlegroups.com
Thanks, Petra.

We appreiate your inventiveness, but workarounds should not be necessary to get
a nice textbook out in PreTeXt. ;-)

I'll take a closer look at (2). No reason we shouldn't be able to get the right
highlighting in there.

Rob
> https://groups.google.com/d/msgid/pretext-support/6B42AD6F-95C8-4CC6-8C31-E103C279BA18%40dartmouth.edu
> <https://groups.google.com/d/msgid/pretext-support/6B42AD6F-95C8-4CC6-8C31-E103C279BA18%40dartmouth.edu?utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Oct 13, 2022, 9:41:46 PM10/13/22
to pretext...@googlegroups.com
I've moved this to pretext-dev where it might get the attention it needs.

@Petra - request a membership if you are not already on that list.

Rob

Petra Bonfert-Taylor

unread,
Oct 14, 2022, 9:26:53 AM10/14/22
to pretext...@googlegroups.com
Thanks, Rob! There is definitely some kind of tug-of-war going on between styling coming from m/c questions and “regular” styling. Another symptom (though not related to syntax-highlighting) can be seen in the double-border around Activity 4.7 (never mind that the code window won’t load for you): https://engs20book.thayer.dartmouth.edu/c-programming/variables-division.html

I know the outer border comes from Oscar-Levin styling but even when I remove it the looks are awkward (boxed m/c question inside the L).

Thanks- Petra



On Oct 13, 2022, at 9:41 PM, Rob Beezer <bee...@ups.edu> wrote:

I've moved this to  pretext-dev  where it might get the attention it needs.

@Petra - request a membership if you are not already on that list.

Rob

On 10/13/22 14:40, Rob Beezer wrote:
Thanks, Petra.
We appreiate your inventiveness, but workarounds should not be necessary to get a nice textbook out in PreTeXt.  ;-)
I'll take a closer look at (2).  No reason we shouldn't be able to get the right highlighting in there.
Rob
On 10/13/22 06:35, Petra Bonfert-Taylor wrote:
Thanks so much, Rob! (3) definitely helped and I have the beginning of an ugly workaround for (2) which I am hoping might also help with looking a the differences in javascript?

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0>
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=knczMK5NbEs%2FV7yAlT4daVNLgL3n3Fijp7CvcBe6j34%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=knczMK5NbEs%2FV7yAlT4daVNLgL3n3Fijp7CvcBe6j34%3D&amp;reserved=0>

So, my JS debugging skills have not gotten me there yet.  But perhaps the Runestone JS for rendering the exercise is a factor?  I can't read the Inspector well enough to be sure.

3.  Brad sez the text of each choice is a "label" for the button, so the reader can click on the text.  Try putting the literal program output in a "c" element (not "pre" which is a whole paragraph-ish of stuff).  Maybe you'll get monospace (still bold?).

Let us know if (3) helps?  Maybe somebody else has ideas on (2)?

Rob

On 10/12/22 10:49, Petra Bonfert-Taylor wrote:
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Q%2FltzwyVxkDXOUqVSzweeRM9UxiELHNzDrEqXv83SsU%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Umwn%2BsmW0O9KThK1tzRpROvxiAkXw0m%2BLv0vkoYaQls%3D&amp;reserved=0>.

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N2Y2fmLb3mCmJnpoLQ4CvhWJAl2O4W264qTsjQ%2BBBi8%3D&amp;reserved=0.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F228a0791-2993-8b7f-cf34-6a56b6c779b4%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A2VJBZFvLOLnPXL65fhSPWCITU4bfrVbzuYTssWsozI%3D&amp;reserved=0.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com <mailto:pretext-suppo...@googlegroups.com>.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XCv6o3oHbBSdgof2jWqhbC%2FJNFZISjSBAkwXGMriurs%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=7fvLzoppeidokJioV7vzISXIyaWEPpGl4uJmfZCErRk%3D&amp;reserved=0>.

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N2Y2fmLb3mCmJnpoLQ4CvhWJAl2O4W264qTsjQ%2BBBi8%3D&amp;reserved=0.

To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F5ce6751b-f6c8-d31b-ca25-bf6e9ed97a5e%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SAEyKyUK3ZEKn1mUUUZALxK4bxwdYMs50CJCAI%2FtfAU%3D&amp;reserved=0.

Rob Beezer

unread,
Nov 5, 2022, 6:47:30 PM11/5/22
to pretext...@googlegroups.com
Dear Petra,

Try a thorough rebuild now - no changes to PreTeXt, but you need a build that
will get new Javascript from Brad (automatic). This is all his work.

But I built a test-case which is working for me in non-Runestone-server builds.
A program in a statement in a multiple choice in a task in an exploration. Phew.

Exploration 5.8.2: Exploring Two-Deep(b): Second Iterations of Each(i):
Multiple-Choice, Not Randomized, One Answer (Second Copy)
https://pretextbook.org/examples/sample-book/noparts/html/interactive-projects.html#task-multiple-choice-second

Yes, there is room for improvement with the CSS.

Rob



On 10/14/22 06:26, Petra Bonfert-Taylor wrote:
> Thanks, Rob! There is definitely some kind of tug-of-war going on between
> styling coming from m/c questions and “regular” styling. Another symptom (though
> not related to syntax-highlighting) can be seen in the double-border around
> Activity 4.7 (never mind that the code window won’t load for you):
> https://engs20book.thayer.dartmouth.edu/c-programming/variables-division.html
> <https://engs20book.thayer.dartmouth.edu/c-programming/variables-division.html>
>
> I know the outer border comes from Oscar-Levin styling but even when I remove it
> the looks are awkward (boxed m/c question inside the L).
>
> Thanks- Petra
>
>
>
>> On Oct 13, 2022, at 9:41 PM, Rob Beezer <bee...@ups.edu
>> <mailto:bee...@ups.edu>> wrote:
>>
>> I've moved this to  pretext-dev  where it might get the attention it needs.
>>
>> @Petra - request a membership if you are not already on that list.
>>
>> Rob
>>
>> On 10/13/22 14:40, Rob Beezer wrote:
>>> Thanks, Petra.
>>> We appreiate your inventiveness, but workarounds should not be necessary to
>>> get a nice textbook out in PreTeXt.  ;-)
>>> I'll take a closer look at (2).  No reason we shouldn't be able to get the
>>> right highlighting in there.
>>> Rob
>>> On 10/13/22 06:35, Petra Bonfert-Taylor wrote:
>>>> Thanks so much, Rob! (3) definitely helped and I have the beginning of an
>>>> ugly workaround for (2) which I am hoping might also help with looking a the
>>>> differences in javascript?
>>>>
>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0>>
>>>>> <mailto:bee...@ups.edu> <mailto:bee...@ups.edu <mailto:bee...@ups.edu>>> wrote:
>>>>>
>>>>> 1.  Moving "program" out of "statement" tries to make this an ActiveCode
>>>>> exercise, but I think the "choices" wins and you get a multiple choice
>>>>> question without extra stuff originating outside of "statement".  So right
>>>>> now, I think your authoring looks right.
>>>>>
>>>>> 2.  Syntax highlighting comes from a Javascript library called "Prism"  I
>>>>> see it being loaded on the page you supplied.  The HTML looks much like
>>>>> (exactly like?) what I see in the sample article:
>>>>>
>>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=knczMK5NbEs%2FV7yAlT4daVNLgL3n3Fijp7CvcBe6j34%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=knczMK5NbEs%2FV7yAlT4daVNLgL3n3Fijp7CvcBe6j34%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=knczMK5NbEs%2FV7yAlT4daVNLgL3n3Fijp7CvcBe6j34%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=knczMK5NbEs%2FV7yAlT4daVNLgL3n3Fijp7CvcBe6j34%3D&amp;reserved=0>>
>>>>>
>>>>> So, my JS debugging skills have not gotten me there yet.  But perhaps the
>>>>> Runestone JS for rendering the exercise is a factor?  I can't read the
>>>>> Inspector well enough to be sure.
>>>>>
>>>>> 3.  Brad sez the text of each choice is a "label" for the button, so the
>>>>> reader can click on the text.  Try putting the literal program output in a
>>>>> "c" element (not "pre" which is a whole paragraph-ish of stuff).  Maybe
>>>>> you'll get monospace (still bold?).
>>>>>
>>>>> Let us know if (3) helps?  Maybe somebody else has ideas on (2)?
>>>>>
>>>>> Rob
>>>>>
>>>>> On 10/12/22 10:49, Petra Bonfert-Taylor wrote:
>>>>>> Hi,
>>>>>> I can't figure out how to get syntax-highlighting for a piece of C-code
>>>>>> inside a multiple choice question, see
>>>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gd0lLUfn6x%2BM2dhBpGSqZ%2BfONMzsAsYez24tL5r36Zg%3D&amp;reserved=0> (scroll to the bottom).
>>>>>> <mailto:pretext-suppo...@googlegroups.com
>>>>>> <mailto:pretext-suppo...@googlegroups.com>>.
>>>>>> To view this discussion on the web visit
>>>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Q%2FltzwyVxkDXOUqVSzweeRM9UxiELHNzDrEqXv83SsU%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Q%2FltzwyVxkDXOUqVSzweeRM9UxiELHNzDrEqXv83SsU%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Umwn%2BsmW0O9KThK1tzRpROvxiAkXw0m%2BLv0vkoYaQls%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Umwn%2BsmW0O9KThK1tzRpROvxiAkXw0m%2BLv0vkoYaQls%3D&amp;reserved=0>>.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "PreTeXt support" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu>%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N2Y2fmLb3mCmJnpoLQ4CvhWJAl2O4W264qTsjQ%2BBBi8%3D&amp;reserved=0.
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> pretext-suppo...@googlegroups.com
>>>>> <mailto:pretext-suppo...@googlegroups.com>.
>>>>> To view this discussion on the web visit
>>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F228a0791-2993-8b7f-cf34-6a56b6c779b4%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F228a0791-2993-8b7f-cf34-6a56b6c779b4%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert>-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A2VJBZFvLOLnPXL65fhSPWCITU4bfrVbzuYTssWsozI%3D&amp;reserved=0.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Groups
>>>> "PreTeXt support" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an
>>>> email to pretext-suppo...@googlegroups.com
>>>> <mailto:pretext-suppo...@googlegroups.com>
>>>> <mailto:pretext-suppo...@googlegroups.com
>>>> <mailto:pretext-suppo...@googlegroups.com>>.
>>>> To view this discussion on the web visit
>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XCv6o3oHbBSdgof2jWqhbC%2FJNFZISjSBAkwXGMriurs%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XCv6o3oHbBSdgof2jWqhbC%2FJNFZISjSBAkwXGMriurs%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=7fvLzoppeidokJioV7vzISXIyaWEPpGl4uJmfZCErRk%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=7fvLzoppeidokJioV7vzISXIyaWEPpGl4uJmfZCErRk%3D&amp;reserved=0>>.
>>
>> --
>> You received this message because you are subscribed to a topic in the Google
>> Groups "PreTeXt support" group.
>> To unsubscribe from this topic, visit
>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu>%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N2Y2fmLb3mCmJnpoLQ4CvhWJAl2O4W264qTsjQ%2BBBi8%3D&amp;reserved=0.
>> To unsubscribe from this group and all its topics, send an email to
>> pretext-suppo...@googlegroups.com
>> <mailto:pretext-suppo...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F5ce6751b-f6c8-d31b-ca25-bf6e9ed97a5e%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F5ce6751b-f6c8-d31b-ca25-bf6e9ed97a5e%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert>-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SAEyKyUK3ZEKn1mUUUZALxK4bxwdYMs50CJCAI%2FtfAU%3D&amp;reserved=0.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/ED37AF74-2BD1-4C1C-B52B-E303B1F5565A%40dartmouth.edu <https://groups.google.com/d/msgid/pretext-support/ED37AF74-2BD1-4C1C-B52B-E303B1F5565A%40dartmouth.edu?utm_medium=email&utm_source=footer>.

Petra Bonfert-Taylor

unread,
Nov 5, 2022, 8:19:25 PM11/5/22
to pretext...@googlegroups.com
Yes!!!! It worked! Wow!!! Check it out: https://engs20book.thayer.dartmouth.edu/c-programming/variables-printing-numbers.html (first exercise). Amazing! Thank you so much!!

—Petra

On Nov 5, 2022, at 6:46 PM, Rob Beezer <bee...@ups.edu> wrote:

Dear Petra,

Try a thorough rebuild now - no changes to PreTeXt, but you need a build that will get new Javascript from Brad (automatic).  This is all his work.

But I built a test-case which is working for me in non-Runestone-server builds. A program in a statement in a multiple choice in a task in an exploration.  Phew.

Exploration 5.8.2: Exploring Two-Deep(b): Second Iterations of Each(i): Multiple-Choice, Not Randomized, One Answer (Second Copy)


Yes, there is room for improvement with the CSS.

Rob



On 10/14/22 06:26, Petra Bonfert-Taylor wrote:
Thanks, Rob! There is definitely some kind of tug-of-war going on between styling coming from m/c questions and “regular” styling. Another symptom (though not related to syntax-highlighting) can be seen in the double-border around Activity 4.7 (never mind that the code window won’t load for you): https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-division.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SX3mL6P4Ugz7DwkYewb0oFv7KaoegCt6vvGfaQRhKCk%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-division.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SX3mL6P4Ugz7DwkYewb0oFv7KaoegCt6vvGfaQRhKCk%3D&amp;reserved=0>

I know the outer border comes from Oscar-Levin styling but even when I remove it the looks are awkward (boxed m/c question inside the L).
Thanks- Petra
On Oct 13, 2022, at 9:41 PM, Rob Beezer <bee...@ups.edu <mailto:bee...@ups.edu>> wrote:

I've moved this to  pretext-dev  where it might get the attention it needs.

@Petra - request a membership if you are not already on that list.

Rob

On 10/13/22 14:40, Rob Beezer wrote:
Thanks, Petra.
We appreiate your inventiveness, but workarounds should not be necessary to get a nice textbook out in PreTeXt.  ;-)
I'll take a closer look at (2).  No reason we shouldn't be able to get the right highlighting in there.
Rob
On 10/13/22 06:35, Petra Bonfert-Taylor wrote:
Thanks so much, Rob! (3) definitely helped and I have the beginning of an ugly workaround for (2) which I am hoping might also help with looking a the differences in javascript?

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XZ97s9MC5v16b4%2B96sygbMuwFJznDHQTo9ZjzeHPyBU%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XZ97s9MC5v16b4%2B96sygbMuwFJznDHQTo9ZjzeHPyBU%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XZ97s9MC5v16b4%2B96sygbMuwFJznDHQTo9ZjzeHPyBU%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XZ97s9MC5v16b4%2B96sygbMuwFJznDHQTo9ZjzeHPyBU%3D&amp;reserved=0>>
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gHWcOg8DunqHhBq87sNay%2Be1WAv%2FieddqCcnontZMVw%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545090084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gHWcOg8DunqHhBq87sNay%2Be1WAv%2FieddqCcnontZMVw%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Pt0rz9mSv91mruJXq6uEvGlxnV7%2FaLFbPtFC2nXPBM4%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpretextbook.org%2Fexamples%2Fsample-article%2Fhtml%2Fsection-programs.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Pt0rz9mSv91mruJXq6uEvGlxnV7%2FaLFbPtFC2nXPBM4%3D&amp;reserved=0>>


So, my JS debugging skills have not gotten me there yet.  But perhaps the Runestone JS for rendering the exercise is a factor?  I can't read the Inspector well enough to be sure.

3.  Brad sez the text of each choice is a "label" for the button, so the reader can click on the text.  Try putting the literal program output in a "c" element (not "pre" which is a whole paragraph-ish of stuff).  Maybe you'll get monospace (still bold?).

Let us know if (3) helps?  Maybe somebody else has ideas on (2)?

Rob

On 10/12/22 10:49, Petra Bonfert-Taylor wrote:
Hi,
I can't figure out how to get syntax-highlighting for a piece of C-code inside a multiple choice question, see https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qNOJH2qqU9gLIQdXd2wEEeqvCuuf4VPXLTnWcOq1ons%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fengs20book.thayer.dartmouth.edu%2Fc-programming%2Fvariables-printing-numbers.html&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qNOJH2qqU9gLIQdXd2wEEeqvCuuf4VPXLTnWcOq1ons%3D&amp;reserved=0> (scroll to the bottom).
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=S3%2F3juqqoxiT%2Fu4GdIRKn0WOaFRzT92iNr45Qy4CXQw%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=S3%2F3juqqoxiT%2Fu4GdIRKn0WOaFRzT92iNr45Qy4CXQw%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gVMJyknSWCmJzTvNs4vS8iNLwTvJezZyQ2bgWDC6o4E%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F93a43493-1f7c-403f-9150-d5a85bc17543n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gVMJyknSWCmJzTvNs4vS8iNLwTvJezZyQ2bgWDC6o4E%3D&amp;reserved=0>>.

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=juuWqVfjXkgWvAxnfRCpD9yRJtPrtCQTQcaH4h4lA%2Fo%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=juuWqVfjXkgWvAxnfRCpD9yRJtPrtCQTQcaH4h4lA%2Fo%3D&amp;reserved=0>%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N2Y2fmLb3mCmJnpoLQ4CvhWJAl2O4W264qTsjQ%2BBBi8%3D&amp;reserved=0.

To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com <mailto:pretext-suppo...@googlegroups.com>.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F228a0791-2993-8b7f-cf34-6a56b6c779b4%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=JRRHzphjka07bt3ZaA0j3fjpqjxjDxtXAo4gWmMPGiY%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F228a0791-2993-8b7f-cf34-6a56b6c779b4%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=JRRHzphjka07bt3ZaA0j3fjpqjxjDxtXAo4gWmMPGiY%3D&amp;reserved=0>-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=A2VJBZFvLOLnPXL65fhSPWCITU4bfrVbzuYTssWsozI%3D&amp;reserved=0.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com <mailto:pretext-suppo...@googlegroups.com> <mailto:pretext-suppo...@googlegroups.com <mailto:pretext-suppo...@googlegroups.com>>.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=iplUvWCjiu%2Bj1YZbMVvZOgwvdS%2BQz%2FeOXztGKFdU%2FYk%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=iplUvWCjiu%2Bj1YZbMVvZOgwvdS%2BQz%2FeOXztGKFdU%2FYk%3D&amp;reserved=0> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Ux3GOX7JKHhGBPsWdu6b3UuHGQUMy0HDaSynSxmWuK8%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F6B42AD6F-95C8-4CC6-8C31-E103C279BA18%2540dartmouth.edu%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Ux3GOX7JKHhGBPsWdu6b3UuHGQUMy0HDaSynSxmWuK8%3D&amp;reserved=0>>.

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=juuWqVfjXkgWvAxnfRCpD9yRJtPrtCQTQcaH4h4lA%2Fo%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=juuWqVfjXkgWvAxnfRCpD9yRJtPrtCQTQcaH4h4lA%2Fo%3D&amp;reserved=0>%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N2Y2fmLb3mCmJnpoLQ4CvhWJAl2O4W264qTsjQ%2BBBi8%3D&amp;reserved=0.

To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com <mailto:pretext-suppo...@googlegroups.com>.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F5ce6751b-f6c8-d31b-ca25-bf6e9ed97a5e%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=5A6Oa5Hby%2BI15N9SdqCwx5uzzG9QOKM%2B1Zgkr%2Fe9Niw%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F5ce6751b-f6c8-d31b-ca25-bf6e9ed97a5e%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=5A6Oa5Hby%2BI15N9SdqCwx5uzzG9QOKM%2B1Zgkr%2Fe9Niw%3D&amp;reserved=0>-taylor%40dartmouth.edu%7Cedee24c9c983477fefbd08daad8541c2%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638013086745930258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SAEyKyUK3ZEKn1mUUUZALxK4bxwdYMs50CJCAI%2FtfAU%3D&amp;reserved=0.
--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com <mailto:pretext-suppo...@googlegroups.com>.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2FED37AF74-2BD1-4C1C-B52B-E303B1F5565A%2540dartmouth.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SaPOG0jEF3igJHpBCsrlu1i0nErIYVFm4%2B5o8flX0ZA%3D&amp;reserved=0 <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2FED37AF74-2BD1-4C1C-B52B-E303B1F5565A%2540dartmouth.edu%3Futm_medium%3Demail%26utm_source%3Dfooter&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=cmISG4%2BIAbl18JO1LhLsfZTrvHrt5dkKXJHvqhWf9x8%3D&amp;reserved=0>.

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fpretext-support%2FrBNu69QhvPE%2Funsubscribe&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=juuWqVfjXkgWvAxnfRCpD9yRJtPrtCQTQcaH4h4lA%2Fo%3D&amp;reserved=0.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpretext-support%2F34a1baaf-6d9d-c2b1-000c-5d4cd73bdd9c%2540ups.edu&amp;data=05%7C01%7Cpetra.bonfert-taylor%40dartmouth.edu%7C4969c6a5df274dab688908dabf7fb98d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638032852545246295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=9y02EebxBow%2FuRUXkeB4wqNLcvTgcz65dnLD%2BUga0qE%3D&amp;reserved=0.

Rob Beezer

unread,
Nov 5, 2022, 8:34:27 PM11/5/22
to pretext...@googlegroups.com
Excellent! Looks good, and I got it right in my fone. All Brad's work

Thanks for your patience. Keep helping us improve. If you want to send me your source off list I'll add it to the sample book. I like the code font in the choices.

Rob

On November 5, 2022 5:19:22 PM PDT, Petra Bonfert-Taylor <Petra.Bonf...@dartmouth.edu> wrote:
>Yes!!!! It worked! Wow!!! Check it out: https://engs20book.thayer.dartmouth.edu/c-programming/variables-printing-numbers.html (first exercise). Amazing! Thank you so much!!
>
>—Petra
>
Reply all
Reply to author
Forward
0 new messages