-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Your next individual assignment is a typical programming task. You have to develop a function that will take
- a latex table (in plain text),
- a list of number pairs containing row and column indices to identify cells, and
- a list of colors
and returns a plain text latex table with the content of the indicated cells colored with the desired colors.
Please do not use any dedicated packages that process latex code. Instead, implement your own algorithm. As always, please provide in-code links to all resources that you used when developing your code.
You do not have to implement all extensions to the latex tabular environment (e. g., the \multicolumn and \multirow commands). You decide what you want to implement and what not.
Try to develop the code so that it handles its input gracefully: It should return meaningful errors to the user and not return unusable output.
Some hints:
- See https://en.wikibooks.org/wiki/LaTeX/Tables or https://www.overleaf.com/learn/latex/Tables for a quick introduction to latex tables
- To implement the function, you will most likely be using “regular expressions” (regex). To familiarize yourself with regular expressions, regex editors and debuggers are helpful. Two online examples are: https://regexr.com and https://regex101.com. An online tutorial that you might find useful is https://regexone.com/
Deadline: Nov 18, 2019, 9am
As always: Feel free to discuss your progress in this thread.