# Pluto - hide LHS of assignment (\`@latexrun\`)

**URL:** https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638
**Category:** Pluto
**Created:** [February 17, 2022, 4:59pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638 "2022-02-17T16:59:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [February 17, 2022, 4:59pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/1 "2022-02-17T16:59:55Z")

</div>

I’m `using Latexify` in Pluto and running `@latexrun x = something`, which assigns `something` to `x` and returns a `LaTeXString` – which looks great. The problem is, Pluto identifies this as an assignment, and prints an extra `@latexrun x =` above the result.

For pure vanity reasons, is there something that can be done to suppress this LHS, temporarily or otherwise?

## Example:

 ![latexrun](https://global.discourse-cdn.com/julialang/original/3X/a/6/a63abab7f1b9a9ee566122e918bd6ca3bb12217f.png)

What I want is to get rid of the `@latexrun U_p =` in the top left corner.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [February 17, 2022, 5:28pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/2 "2022-02-17T17:28:05Z")

</div>

This might not be the solution you need, but the solution… well at least the solution I could come up with:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/2/820ec026635a0bd666530849a05fe68134bc2970.png)

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [February 17, 2022, 5:30pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/3 "2022-02-17T17:30:57Z")

</div>

That’s pretty good. I thought Pluto would be angry about the multiple expressions thing.

---

<div class="post-metadata">

### Author: ![runjaj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/runjaj/32/23628_2.png) [@runjaj](https://discourse.julialang.org/u/runjaj)
#### Post date: [February 17, 2022, 5:30pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/4 "2022-02-17T17:30:57Z")

</div>

Using “…”:

```julia
@latexrun "U_p = 3*E_max^2"

```

 ![latexrun](https://global.discourse-cdn.com/julialang/original/3X/0/a/0a5216649d12250e2666c74c724c16bb5b186a69.png)

This is very cool, I didn’t know that it existed. Thanks!

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [February 17, 2022, 5:32pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/5 "2022-02-17T17:32:06Z")

</div>

They’re in the same cell though! You can redefine expressions to your heart’s content as long as you keep it within a cell.

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [February 17, 2022, 6:14pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/6 "2022-02-17T18:14:26Z")

</div>

But

```julia
x=3
x

```

errors out (within a cell). It’s interesting that this is not equivalent to

```julia
x=3;x

```

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [February 17, 2022, 6:16pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/7 "2022-02-17T18:16:31Z")

</div>

That’s because multi-line cells need `begin/let ... end` - I’m not that deep into Pluto’s internals, but ultimately it’s just a plain .jl file which needs to be split into cells automatically by Pluto’s parser - if it’s multiple lines you have to explicitly tell Pluto that it’s one statement, while as long as it’s on one line I guess Pluto will assume it’s one statement.

---

<div class="post-metadata">

### Author: ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)
#### Post date: [February 17, 2022, 6:23pm UTC](https://discourse.julialang.org/t/pluto-hide-lhs-of-assignment-latexrun/76638/8 "2022-02-17T18:23:20Z")

</div>

Alternatively you can wrap whatever expression you have in a `begin/end` block and Pluto will stop showing the name of the variable.
