matching problem in LaTeX

16 views
Skip to first unread message

Alex Jordan

unread,
Jul 9, 2024, 3:56:38 AMJul 9
to prete...@googlegroups.com
If you have a matching problem (Runestone component), the LaTeX for that makes a simple tabular with two "l" columns, with horizontal rules between rows. Note that a cell in an "l" column does not line break.

See for example on page 113:

In ORCCA, a matching problem I added has text that is just a bit too long and the tabular goes off into the margin. Also I feel that the horizontal rules are misleading. They imply that something in column 1 has an association with the parallel thing in column 2.

Would a multicols work better for this, with some kind of list environment in each column? Or a better question, what would look really good for this structure in print? (And maybe we can code it up in LaTeX.)


Sean Fitzpatrick

unread,
Jul 9, 2024, 8:29:49 AMJul 9
to prete...@googlegroups.com

What about a two column environment, where the list on the left is numbered 1, 2, 3... and the list on the right is numbered A, B, C...?

Then a "solution" could be given as 1B, 2A, 3C...


--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrfBrmZ1bihBajZYMtNKLOcKrNqdWrTjOyZ5cQDqrnDfmA%40mail.gmail.com.

Rob Beezer

unread,
Jul 9, 2024, 10:55:40 AMJul 9
to prete...@googlegroups.com
> And maybe we can code it up in LaTeX.

Which prompts me to remind everyone that a static version of a Runestone
component is *expressed in PreTeXt* for use in multiple conversions. There is
not a LaTeX version. Nor will there be.
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com
> <mailto:pretext-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrfBrmZ1bihBajZYMtNKLOcKrNqdWrTjOyZ5cQDqrnDfmA%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrfBrmZ1bihBajZYMtNKLOcKrNqdWrTjOyZ5cQDqrnDfmA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Alex Jordan

unread,
Jul 9, 2024, 2:37:19 PMJul 9
to prete...@googlegroups.com
A sidebyside with two p's, each with a ul?

To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/MTAwMDA0MS5iZWV6ZXI.1720536936%40quikprotect.

Rob Beezer

unread,
Jul 9, 2024, 3:46:41 PMJul 9
to prete...@googlegroups.com
That could work. How do you feel about the *solution* being tabular with
horizontal lines? They could be paragraph-cells to get word-wrapping.
> <mailto:pretext-dev%2Bunsu...@googlegroups.com>
> > <mailto:pretext-dev...@googlegroups.com
> <mailto:pretext-dev%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrfBrmZ1bihBajZYMtNKLOcKrNqdWrTjOyZ5cQDqrnDfmA%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrfBrmZ1bihBajZYMtNKLOcKrNqdWrTjOyZ5cQDqrnDfmA%40mail.gmail.com> <https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrfBrmZ1bihBajZYMtNKLOcKrNqdWrTjOyZ5cQDqrnDfmA%40mail.gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrfBrmZ1bihBajZYMtNKLOcKrNqdWrTjOyZ5cQDqrnDfmA%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pretext-dev...@googlegroups.com
> <mailto:pretext-dev%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/MTAwMDA0MS5iZWV6ZXI.1720536936%40quikprotect <https://groups.google.com/d/msgid/pretext-dev/MTAwMDA0MS5iZWV6ZXI.1720536936%40quikprotect>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com
> <mailto:pretext-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jreoGv8FUmOH0aDqNJ_GSUor3ofujxRJFg2v2jySoF0dYQ%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jreoGv8FUmOH0aDqNJ_GSUor3ofujxRJFg2v2jySoF0dYQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Alex Jordan

unread,
Jul 10, 2024, 7:59:17 PM (13 days ago) Jul 10
to prete...@googlegroups.com
> That could work.  How do you feel about the *solution* being tabular with
> horizontal lines?  They could be paragraph-cells to get word-wrapping.

I've tried the following, where the lists are "ol" with the Alph and arabic markers hard-coded (Alph for premise, arabic for response).

Screenshot 2024-07-10 at 4.55.23 PM.png


For the solution, I don't love the tabular. I'm hacking things a bit through ORCCA PDF production (but trying to do so in a way I can stabilize to either a project-specific XSL file or to PTX itself). And I'm leaning toward making the solution look like:

Solution.  A. 4.  B. 3.  C. 1.  D. 2.  

But I might play with spacing and line breaks to make it more student-readable.

Taking any feedback that could lead to something that works for PTX itself.




To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/MTAwMDAwNS5iZWV6ZXI.1720554398%40quikprotect.

Rob Beezer

unread,
Jul 11, 2024, 10:00:28 AM (13 days ago) Jul 11
to prete...@googlegroups.com
On 7/10/24 16:59, Alex Jordan wrote:
> I've tried the following, where the lists are "ol" with the Alph and arabic
> markers hard-coded (Alph for premise, arabic for response).

You said before:

> each with a ul

The items in a Runestone component do not have markers.

Alex Jordan

unread,
Jul 11, 2024, 12:56:01 PM (13 days ago) Jul 11
to prete...@googlegroups.com
Right, "ul" was my first thought.  Then "ol" seems better.

I've looked at live and static examples, and I don't see an issue with the live RS component not having markers, but the static presentation does.

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.

Rob Beezer

unread,
Jul 12, 2024, 7:03:32 PM (11 days ago) Jul 12
to prete...@googlegroups.com
Blind student works off the braille (from static) and says "I think B matches
with 4."

The class and the instructor are using the interactive version (as Andrew S
would have it!) and really don't know what the student is talking about.

Question: could the Runestone component have identical markers?
Reply all
Reply to author
Forward
0 new messages