New answers tagged

1

Here's a LuaLaTeX-based solution. It adds the instruction \directlua{do_something=true} to the \ifexport clause and provides a Lua function called remove_trailing_punct which -- if \ifexport is "true" -- removes punctuation marks that occur at the ends of lines inside equation[*] and align[*] environments. Commas, periods ("full stops"), and semicolons, are ...


4

Switch There is already a switch, \ifexport, which can be used: x = y\ifexport\else.\fi Or a macro can be defined, depending on switch \ifexport: \documentclass{article} \newif\ifexport %\exporttrue \ifexport \RequirePackage{mathtools} \mathtoolsset{showonlyrefs} \RequirePackage[active,tightpage]{preview} \PreviewEnvironment{equation} ...



Top 50 recent answers are included