Is there a Julia Latex "symbol"? So Latex in Latex is `\LaTeX{}`, is there somethi

Is there a Julia Latex “symbol”? So Latex in Latex is \LaTeX{}, is there something like \Julia{} (presumably after \usepackage{juliasymbols} or something)?

Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message :slack:) (More Info)

4 Likes

If you just want to include the official Julia logo in color without much ado, you could inline a PDF:

The \includegraphics[height=0.7em]{julia-logo-color.pdf}  
code used to generate Figure \ref{fig:devilsbraid} is displayed 
using the minted package, which facilitates expressive  ...

to look like this:

6 Likes

I make heavy use of TikZ so the answer in accents - Making a LaTeX version of a textual logotype - TeX - LaTeX Stack Exchange is great, except that I get this instead:
screenshot_2021-02-05_21_54_00

which might depend on the fact that I’m placing it inside a TikZ node, so maybe it’s the nesting of a tikzpicture inside a node that messes it up…?

I think it would be better to type plain Julia than use that approximation … :slight_smile: It is sort of an official trademark, so it should probably be reproduced with some attempt at fidelity… Font should be correct, for example.

2 Likes

I agree. Julia works fine, it’s just that I enjoy flair where I can get it… Anyhow, thanks for looking into this!

1 Like

I’m not sure how much TikZ is capable of - if you can access OpenType fonts and UTF8 characters, you could use that font that has the Julia logo and access it that way (although it would be monochrome, obviously).

It’s a bit small when viewed in the terminal… :slight_smile:

Yea, I don’t think that’s possible in LaTeX. Thanks for the answers though.

I guess one way “in” might be through fontawesome, they seem to have a lot of random symbols, also python. Then from there, there’s CTAN: Package fontawesome. But I have no idea how often that LaTeX package gets updated when fontawesome does.

I managed to persuade TikZ to draw Unicode characters from a font:

But I wouldn’t claim that the experience was enjoyable or user-friendly (I’m not a LaTeX user :smiley:).

Code is (avert your eyes now)

\begin{tikzpicture}
  \node (Start) at (-3,0) {};
  \node (End) at (3,0) {};  
  \path 
    [rotate=190,postaction={decoration={text along path,text 
format delimiters={|}{|}, text={|\huge\JuliaMono|\ ^^^^e801 
^^^^e830 ^^^^e831 ^^^^e832 ^^^^e833 ^^^^e800 
^^^^e801 ^^^^e802 ^^^^e801 ^^^^e830 ^^^^e831 
^^^^e832 ^^^^e833 ^^^^e800 ^^^^e801 ^^^^e802 \ },
      text align=fit to path,reverse path}, decorate}]
     circle[radius=3cm] ; 
\end{tikzpicture}
3 Likes

OK, baby-steps, I managed to accomplish that at least (install JuliaMono first, thank you Cormullion):

\documentclass{article}
\usepackage{fontspec}
\newfontfamily \JuliaMono {JuliaMono-Regular.ttf}[
    Path      = /usr/share/fonts/julia/,
    Extension = .ttf
    ]
\newfontface \JuliaMonoMedium{JuliaMono-Regular}
\setmonofont{JuliaMonoMedium}[
    Contextuals=Alternate
]

\begin{document}

Languages: {\Huge \texttt{^^^^e801}}, Python

\end{document}

which looks like this:
screenshot_2021-02-08_20:30:33

But I can’t get the logo in color.

Cool. Fonts are nearly always monochrome†, so PDF or SVG (or some more TikZ coding) would be the way to go if you wanted colour or were really procrastinating…:joy:

† Actually, there are colour fonts (https://www.colorfonts.wtf/) but these are pretty new, and it would be a challenge to persuade LaTeX to adopt the technology (even if there was a suitable font available).

this…

Jokes aside, thanks a lot for the help and amazing work!!!

2 Likes

Shameless self promotion:

https://github.com/vancleve/julia_logo_latex

It uses the right julia font and correct julia colors and builds from the stackexchange post:

3 Likes

Alas, I get this:
screenshot_2021-02-09_09:29:24
which might have to do with the fact that I’m placing it inside a TikZ node…?

1 Like

ah interesting, yes, that is probably it. not sure how to fix it… pull requests welcome :wink:

to improve on this

\newcommand{\julia}{\includegraphics[trim=0 1cm 0 -1cm, height=1.2em]{julia-logo-color.pdf}\ }

just to be clear, my julia_logo_latex package works well in simple scenarios, but since the macro uses a TikZ environment, using the macro in another TikZ environment is probably causing issues for @yakir12.