Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesC authored May 7, 2024
1 parent 1683bd2 commit d0759c0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,39 @@ Settings in VSCode with increased memory size (pgfplots) and shell escape:
"env": {}
}
```

## Aesthetics

### Highlighting

#### Round label

```latex
\usepackage{tikz}
\usepgfplotslibrary{external}
\definecolor{mycolor}{RGB}{112,45,128}
\newcommand{\roundlabel}[1]{\tikzexternaldisable \tikz[baseline=(char.base)]{
\node[rectangle, rounded corners=0.65mm,inner sep=0.65mm,fill=mycolor, draw=mycolor, text=white, font=\itshape](char) {#1};}\tikzexternalenable}
```

Example usgae: `\roundlabel{Message 5/Conclusion:}`

![image](https://github.com/DRAMCO/writing-scientific-papers-in-latex-tips-and-tricks/assets/8626571/eec84614-0f77-400a-a512-d664b24c884f)



#### Grey highlight

```latex
\newcommand{\syntaxHighlight}[1]{\colorbox{black!10}{#1}}
```

Example usage: `\syntaxHighlight{chapters/contributors.tex}`

![image](https://github.com/DRAMCO/writing-scientific-papers-in-latex-tips-and-tricks/assets/8626571/ef6527a8-d869-48f8-8ba8-6e0fdd42a966)


## Meta

### Finding weird Unicode
Expand Down

0 comments on commit d0759c0

Please sign in to comment.