-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any possibilites to use memoize for multiple page in the future ? #30
Comments
While an extern cannot be broken across lines or pages by definition (an extern is just a picture, after all), Memoize actually supports producing multiple externs per a piece of memoized code. However, producing multiple externs per memo heavily depends on the usage case, in particular, on the implementation details of the memoized code. You mention long tables. I have been thinking about those. Section 4.4.3 presents a general approach that I believe could work for multi-page tables. However, I don't think that it makes sense for Memoize to support all the various multi-page table packages (longtable, supertablular, etc.); maintaining such support would be a major undertaking. I rather believe that the functionality should be implemented in the multi-page table package itself: the package should be aware of Memoize and provide a memoization driver which can produce multiple externs per table. It is in order to make this possible that much of Memoize's internals are publicly accessible and extensively documented. The idea about externalizing entire chapters is similar to the idea of externalizing Beamer frames. Neither of these can work with Memoize as it is, because Memoize puts externs on the page rather than including an extern as a page. However, this is an issue that I could (and I am willing to) address in a future release. For Beamer, some further support from the Beamer side would certainly be required to have this work, but support for chapters might belong to Memoize itself. I'll have to think about this more ... preserving all the various references, counters and such automatically is not trivial ... if possible at all. |
I am not at all sure whether I should say this or not. It is certainly not my place to tell you what to do with your software and nobody asked for my opinion. So by all means tell me to disappear. I think it's worth thinking about whether turning tables into images is something you want First, a minor concern which is not actually an objection. Using
For comparison:
It is not at all obvious that externalising But nothing I've said so far constitutes a reason not to provide the option. Certainly there are tabular packages which provide far costlier environments in terms of compilation time. ( Second, however, my major concern isn't whether it would actually reduce compilation time etc., but whether the convenience of decreased compilation time is worth the cost of reducing it. There are serious issues concerning accessibility here. You may tell people they should disable Most people won't read the advice, won't follow it and won't remember to do it. I'm prepared to bet very few will do all three. If externalised images end up in the final version, you get a larger PDF, but that's about it. If externalised text (including tables etc.) ends up in the final version, you get a larger PDF which contains large chunks of unnecessarily inaccessible content. Of course, people can already use it for Third, I think there must be better options for multi-page 1I don't know if this is actually possible, but it seems prima facie plausible given my limited knowledge of TeX. If i can put stuff into a box and then unbox it, without having to re-typeset it, surely I can write the box out to file and read it back without having to re-typeset it? |
Thank you Clea, these are all very good points! About Overleaf. I realize now that Overleaf does not have the necessary Perl and Python modules installed. I'll ask them to install them. However, I just tested to confirm that the TeX-based extraction method ( The accessibility issue you mention is a big issue in my opinion, as well, already with TikZ pictures and especially Forest trees. I actually have a vision to provide something like what you describe for tables by storing the low-level PGF commands into the memo. I hope I can get to that in some reasonable time. (As far as I know, saving the content of boxes as text files is impossible.) |
How odd: you can show the content in the log/on the terminal, but can't write it to a different file. I just assumed you could do the one if you could do the other. |
As I said, as far as I know ... don't take my word for it!
Do you mean by |
I was thinking of the way |
I honestly don't know, but I guess there is not, as those are just log files, afaik. Perhaps the route to go is to have a better mechanism for embedding PDFs ... at the end of the day, a PDF is there precisely to store the content of boxes. I would say that the fact that an embedded PDF behaves essentially like a picture is a consequence of the embedding procedure. If a PDF page could be "unboxed", accessibility issues might dissolve. But then again, given the complexities of the PDF format I know very little about, I'm probably mightily oversimplifying here ... |
From section 3.1 of the documentation, I can read clearly that "an extern can’t be broken across lines or pages".
However, I think that have such possibility would be a very powerful feature.
For example, I could be used to externalize long multi-page tables.
Or even better, when writing books, already stabilized chapters could be externalized to save compilation time (and still preserving internal references, counters, etc.).
So, simplify as a question, is there any eventuality to have an extern broken across lines or pages with future developments of memoize ?
The text was updated successfully, but these errors were encountered: