On Fri, Oct 30, 2015 at 10:45:38PM +0000, Guenter Milde wrote:
> On 2015-10-30, Scott Kostyshak wrote:
> > On Thu, Oct 29, 2015 at 09:12:04AM +0000, Guenter Milde wrote:
> >> On 2015-10-29, Scott Kostyshak wrote:
> 
> ...
> 
> >   words, the only place that knows whether the inputenc package is
> >   loaded is BufferParams::writeEncodingPreamble()
> 
> This is my understanding, too.
> 
> > Actually, after thinking about this a bit longer my new favorite
> > approach is simply for BufferParams::writeEncodingPreamble to return the
> > necessary information (e.g. it could return a boolean using_inputenc)
> > that is then just passed to pdfoptions().writeLaTeX(). That seems the
> > cleanest and safest approach. I thought that it might not be common for
> > a write method to return such information (I figured if anything it
> > would return success/fail), but actually we already do this:
> > BufferParams::writeLaTeX() returns a boolean use_babel.
> 
> Good to know, that there is a precedence.

OK so it seems we're on the same page. The next question is what
information exactly do you need from writeEncodingPreamble? Do you just
need a bool 'use_inputenc' that is true if either
\usepackage[...]{inputenc} or \usepackage[...]{luainputenc} is output by
writeEncodingPreamble?

Do you want to do the C++ work or would you prefer for me to? I think it
should be simple but I'm happy to do the work since I've finally wrapped
my head around the issue.

Scott

Reply via email to