The phase behavior of short-chain fluids in slit pores is investigated by using a nonlocal-density-functional theory that takes into account the effects of segment size, chain connectivity, and van der Waals attractions explicitly. The layering and capillary condensation/evaporation transitions are examined at different chain length, temperature, pore width, and surface energy. It is found that...