Issues are fine, pull requests are better. :)

Aaron Meurer

On Mon, Feb 1, 2016 at 2:56 PM, Michael Hansen <
[email protected]> wrote:

> Yes, I can see that the parameters are not passes on to init_printing:
>
>
> https://github.com/sympy/sympy/blob/a57f3c43b9c86979ff7fe04d520bc404b94d859a/sympy/interactive/session.py#L457
>
> I am new to the sympy community. Do they prefer a bug report, an issue, or
> a pull request to fix?
>
> On Monday, February 1, 2016 at 12:35:22 PM UTC-5, Aaron Meurer wrote:
>>
>>
>>
>> On Mon, Feb 1, 2016 at 10:44 AM, Michael Hansen <[email protected]
>> > wrote:
>>
>>> Great. That worked:
>>>
>>> import sympy
>>> from sympy.printing.latex import LatexPrinter
>>>
>>> class CustomLatexPrinter(LatexPrinter):
>>>     def _print_Adjoint(self, expr):
>>>         mat = expr.arg
>>>         from sympy.matrices import MatrixSymbol
>>>         if not isinstance(mat, MatrixSymbol):
>>>             return r"\left(%s\right)^H" % self._print(mat)
>>>         else:
>>>             return "%s^H" % self._print(mat)
>>>
>>>
>>> def my_latex(expr, **settings):
>>>     return CustomLatexPrinter(settings).doprint(expr)
>>>
>>> sympy.init_printing(latex_printer=my_latex)
>>>
>>> One remaining question. init_session() does not seem to accept the
>>> latex_printer argument. Is it passed in some other argument?
>>>
>>
>> I guess that's a bug. init_session() should have all the same keyword
>> args as init_printing().
>>
>> Aaron Meurer
>>
>>
>>>
>>>
>>> On Sunday, January 31, 2016 at 11:06:52 PM UTC-5, Jason Moore wrote:
>>>>
>>>> You can pass in the custom latex printer to init_printing or
>>>> init_session as a kwarg.
>>>>
>>>> Jason
>>>>
>>>>
>>>> Jason
>>>> moorepants.info
>>>> +01 530-601-9791
>>>>
>>>> On Sun, Jan 31, 2016 at 7:30 PM, Michael Hansen <
>>>> [email protected]> wrote:
>>>>
>>>>> That will not work if I want to use it in an interactive session.
>>>>> There I need the actual latex function overloaded since that is what it
>>>>> seems to call. Is there a way to do that?
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "sympy" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at https://groups.google.com/group/sympy.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/sympy/2b5347c3-8ebb-41b2-83d2-ead33860c6e7%40googlegroups.com
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "sympy" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/sympy.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sympy/fb250bd4-5771-4b02-b84c-d812d4744e00%40googlegroups.com
>>> <https://groups.google.com/d/msgid/sympy/fb250bd4-5771-4b02-b84c-d812d4744e00%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/8212abb7-fa00-46da-aac9-8fb89fd48f41%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/8212abb7-fa00-46da-aac9-8fb89fd48f41%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6KbM0qvY%3D3oVEMTVmQX6Mi00ufC5jV5VP3Hivqs-2C7rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to