[சனி நவம்பர் 08, 2025] Ihor Radchenko wrote:

> Visuwesh <[email protected]> writes:
>
>> To make C-c C-x C-l format the LaTeX result, I need to force the
>> :results to be raw.  This introduces a world of pain since I now have to
>> manually kill the old output before I can re-eval the source block.  As
>> an example, try C-c C-x C-l when the point is on
>>
>>     : $$x + 1$$
>>
>> Nothing happens here.  With :results raw, there is no colon in the front
>> so I can preview the output.
>
> Use
>
> #+begin_src elisp :results raw drawer
> (message "$$x + 3$$")
> #+end_src
>
> It is what "drawer" option is for.

I do not want the result to be hidden though.  I think

    #+BEGIN_SRC calc :language latex
    4:5
    #+END_SRC

producing

    #+RESULTS:
    \begin{equation*}
    \frac{4}{5}
    \end{equation*}

is acceptable (note how there is no need to specify :results raw)?

Reply via email to