  We present an algorithm for the adaptive tetrahedral integration over the
Brillouin zone of crystalline materials, and apply it to compute the optical
conductivity, dc conductivity, and thermopower. For these quantities, whose
contributions are often localized in small portions of the Brillouin zone,
adaptive integration is especially relevant. Our implementation, the woptic
package, is tied into the wien2wannier framework and allows including a
many-body self energy, e.g. from dynamical mean-field theory (DMFT). Wannier
functions and dipole matrix elements are computed with the DFT package Wien2k
and Wannier90. For illustration, we show DFT results for fcc-Al and DMFT
results for the correlated metal SrVO$_3$.
