Re: [O] ATTR_LATEX :options ignored for source code

2016-05-16 Thread Jeff Trull
Ah, I see...

I was expecting the "option to the environment" to look like:

\begin{lstlisting}[commentstyle=\bfseries]

Though doing it with \lstset will produce the same result if the option is
placed at the end, which it is.

Thanks for your help,
Jeff

On Sun, May 15, 2016 at 12:33 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Jeff Trull  writes:
>
> > According to the manual users can supply #+ATTR_LATEX: :options ... prior
> > to a source section and the options present will be supplied to the
> > environment (lstlistings in my case).  I find that this does not work -
> > regardless of settings, no options are supplied to the lstlistings
> > environment.  Attached is a test case that demonstrates the problem.  It
> is
> > taken from the manual.
>
> FWIW, I cannot reproduce it. I get
>
>   \lstset{language=C++,label= ,caption=
> ,captionpos=b,numbers=none,commentstyle=\bfseries}
>   \begin{lstlisting}
>   using foo_t = int;
>   struct bar_t {
>   foo_t a; // this comment should be bold
>   };
>   \end{lstlisting}
>
> What Org version are you using?
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] ATTR_LATEX :options ignored for source code

2016-05-15 Thread Nicolas Goaziou
Hello,

Jeff Trull  writes:

> According to the manual users can supply #+ATTR_LATEX: :options ... prior
> to a source section and the options present will be supplied to the
> environment (lstlistings in my case).  I find that this does not work -
> regardless of settings, no options are supplied to the lstlistings
> environment.  Attached is a test case that demonstrates the problem.  It is
> taken from the manual.

FWIW, I cannot reproduce it. I get

  \lstset{language=C++,label= ,caption= 
,captionpos=b,numbers=none,commentstyle=\bfseries}
  \begin{lstlisting}
  using foo_t = int;
  struct bar_t {
  foo_t a; // this comment should be bold
  };
  \end{lstlisting}

What Org version are you using?

Regards,

-- 
Nicolas Goaziou



[O] ATTR_LATEX :options ignored for source code

2016-05-14 Thread Jeff Trull
According to the manual users can supply #+ATTR_LATEX: :options ... prior
to a source section and the options present will be supplied to the
environment (lstlistings in my case).  I find that this does not work -
regardless of settings, no options are supplied to the lstlistings
environment.  Attached is a test case that demonstrates the problem.  It is
taken from the manual.

Thanks,
Jeff


testcase.org
Description: Binary data