-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/12/2015 07:40 AM, Jeff Fearn wrote: > On 02/24/2015 08:30 PM, Sascha Manns wrote: >> Hello list, > >> the most time i'm generating documents with colors in fo output. But >> sometimes i know that the customers would print out the document. So i would >> like to place in the code a option to use the colored pictures or >> using the black and white pendant instead. Maybe that could be done with a >> attribute role or so. Maybe anyone has done such thing? > > I've never done this so there might be a simpler way, but you could use > conditionals for this. > > Put two imagedata in place, one with condition="colour", one with > condition="greyscale" then set the condition in you publican.cfg.
You can of course have two cfg files one for each and the use --config to control whic gets used. If colour is your default then if you set that in publican.cfg then you only need to supply --config for the black and white build. Cheers, Jeff. - -- Jeff Fearn Senior Software Engineer Hosted & Shared Services Red Hat Asia Pacific Pty Ltd http://dilbert.com/fast/2004-08-17/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVALcrAAoJELs3R4zxGZvKeqYH/RFMqQknr1CAN4KQRMnmxexJ J74Hr3xWSTK+jKV+EbvlAmqjV0PBX314s+srMEBBCn2Jb8de2hNOiPhKw1ckOMMK JBxHY4dfpfr3HWYQ0+txxqO2r4ZTRR5y5zsPe8tzD4y5rQzG0yQk1LPpiC7XTJZk hVn267Zpj+e4ZLUyAlv5P1UZ4yuDP8LEk5jbHw0UcLA5BYW/e4SJ53gGf+ZOOjj8 LjLjyf6LC22gjIblLFKQJM9j71AU9p2LAoG9TsA5GrKH6I5AOKxu90Lq4PfYMFEs FOcC5WyjJ1UCyplcsFBOub2Oo2bw2BilP7mzKwxh0irf7/ja4osqFsr2SOsgMgw= =xBpq -----END PGP SIGNATURE----- _______________________________________________ publican-list mailing list publican-list@redhat.com https://www.redhat.com/mailman/listinfo/publican-list Wiki: https://fedorahosted.org/publican