ITDP / the-online-brt-planning-guide

Online collaborative version of the BRT Planning Guide
https://brtguide.itdp.org
Other
6 stars 20 forks source link

Gen: allow the use of images as tables #19

Closed jonasmalacofilho closed 8 years ago

jonasmalacofilho commented 8 years ago

Syntax:

Inside a \begintable\endtable block, add \useimage{<path>} instead of providing header and data rows.

Example:

\begintable{Pedestrian LOS Criteria} \' MAYBE include src? src := Highway Capacity Manual, 2010 '\
\useimage{assets/image3.png}
\endtable

(chapter 8, section 6)

jonasmalacofilho commented 8 years ago

Merging...

@aszasz can you experiment with this on chapters 6 and 7, and give me your feedback?

aszasz commented 8 years ago

Just tried, it worked, my first trial used \useimage[medium]{path} and it did not work (as you should have expected, but I didn't)... the result without [medium] was medium though, so.... great. (I think we should have the [large] eventually) For the source :src=: I think it would be good to have it as an option (with or without using image), although I have not seen any table with source, this far on the guide... I think that is because it was not a requirement for the authors (in the 2012 docx with instructions for authors. So it would be an future enhancement, not needed for the initial compeltion of the guide.

jonasmalacofilho commented 8 years ago

Ok, thanks.

The table size (hint) is set up when you open the table block, as with other tables:

\begintable[small]{caption}
\begintable[medium]{caption}
\begintable[large]{caption}
\begintable{caption}  \' just leave it in the default '\

Note that the generator might overrule size hints in some cases. This now mostly affects regular text tables, but as with figures, we are discussing the need to sometimes alter image sizes as well.