![]() ![]() This means that it would take at least two runs of bookdown, but then the list of figures and tables would be comprehensive.Īm I missing something? If not, I'll be happy to make a feature request. The list of figures and tables should be generated in the end of the building process to catch all the html files and the tables und figures within.Another function could look for such a file in the directory and pull it into the building process of the book at any position in the book, as Rmd or html.Thus we need a function that searches all the built html files for tables and figures, collects these data and saves it, together with the path (relative link to the html-file containing fig/tab) to a text/Rmd/html file, e.g.The same with images: Number ("2.1"), a caption (in the caption-class and also in the alt-text) ("Here is a nice figure!"), and an id (id="fig:nice-fig") (and even the path to the image). If we look at the built default bookdown project we find a table with all the information needed for a link: A table number ("2.1"), a Table caption "Here is a nice table!" and an id to link to (id="tab:nice-tab").These links, including the number and caption of the figs/tabs could be extracted from the html files of the book by parsing these html files and look for and tags (+ caption, etc.).a list of figures (or tables) in html does not need to show a page number, only a link to the fig/tab.Thanks for your considerations! I think this could work - maybe it's not even too hard for experienced web scrapers: Please feel free to open a feature request with this so we can discuss.Ĭurrently there is one for building an index in HTML as in PDF (using latex) I got some ideas on that, but I willing to hear what you are wishing for as format and output. One trick is that the splitting process happens in R after pandoc conversion, so we need to know how files will be split and names to create link to them. For now, it would need to rely on a post processor step after the pdf has been generated, maybe couple with a lua filter as in pagedown. ![]() When it will be built in Pandoc, it will surely be easy to do something about it in bookdown. I am insterested in what you would expect the list of Tables and Figures to be like, as there will be no page number. It is not easy to know what should be done for a bookdown::gitbook() format. But it would be formatted differently than usual list. List of Figures and Tables are only available to PDF output as built-in in Latex.įor other HTML output format, it would require to be a list of tables / figures that could link back to the closest header link. Two, fans want more action, more balls in play. Configurable to support Imgur, Qiniu, SM.MS, Coding, Cloudinary and other CDN service. Oh yes, if you are using bookdown, that won't be what you need.Ĭurrently, there is no build in way to do that, but I hope we'll come up with something. MacDown is an open source Markdown editor for OS X, released under the MIT License. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |