On 2016-02-21, Guillaume Munch wrote:
> Le 21/02/2016 08:33, Pavel Sanda a écrit :
>>>> is there some obstacle I should be aware of before implementing microtype
>>>> support via simple checkbox in document setting (plus maybe edit box for
>>>> params) which would result into simple \usepackage[...]{microtype} in 
>>>> header?
>>>> Is there any opposition to add it into lyx? (I dont mean 2.2 obviously.)

> Good idea.

>>> Please make sure whether this works with "plain" LaTeX (dvi), XeTeX,
>>> and/or LuaTeX.

> In my experience, microtype works out of the box and the default values
> are safe, including with xetex/luatex.

I got the same impression after some tests with a *.tex file here.
This is also what the documentation tells: it works for all three of
pdflatex, xelatex, and lualatex but only pdflatex supports all features.
There is no error with "plain" latex (DVI, PS, PDF (ps2pdf), PDF (dvipdfm)
but no effect either.

A tooltip should hint to limited support (linking to the documentation)

> People who use custom parameters are on their own. But is there an
> advantage of letting users enter custom params via a line edit, instead
> of letting them write it by hand in the preamble?  It does not seem to
> me that the GUI helps here. Or do you have further plans for this
> feature?

Again, tooltips may be an advantage.

> Also, obviating the line edit, could the same not be accomplished by a
> module?

Yes. 

+1 no file format change
-1 bundling the microtype activation with other layout settings
   makes better user experience

>> 2. I am aware that it should be put before various font settings in preamble
>>     so it's spitted just in the beginning. Are you aware of any catch for the
>>     currently produced ordering?

> I haven't heard that microtype must be before font settings. My
> experience is consistent with https://tex.stackexchange.com/a/162436

Maybe this was a previous limitation.
Also, this should be in the documentation otherwise...

Günter


Reply via email to