Skip to content

Instantly share code, notes, and snippets.

View TorbjornT's full-sized avatar

Torbjørn T. TorbjornT

  • Granvin, Norway
View GitHub Profile
\documentclass[border=2mm]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{positioning, calc, fit, backgrounds}
\pgfplotsset{
miniaxis/.style={
scale only axis,
width=8mm,
height=6mm,
axis lines=left,
axis line style={-},
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\captionsetup[subfigure]{justification=justified,singlelinecheck=false}
\begin{document}
\begin{figure}
\begin{subfigure}{0.45\linewidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
What you have now:
\tikz\fill[blue](0,0)circle(1); \kern-0.5cm\tikz \fill[red](0,0)circle(1);
What you want to do:
\documentclass{article}
\usepackage{pgfplotstable,pgfcalendar}
\begin{document}
\pgfplotstabletypeset[
columns={Date, Total Fund, Fee Adjusted, SandP, DJI, MSCI},
%column type=r,
columns/Date/.style={date type={\monthname\ \day\ ,\year}},
columns/SandP/.style={column name=S\&P500}
]
{
\begin{tikzpicture}[
font=\fontsize{18}{18}\selectfont,
index/.style={left, Gray, font=\normalsize}
]
\foreach [count=\n] \N in {%
976867695082.87,9772.9216,115698983.3302,61074171.8288,
81872.56,118010166.2449,1036600250.575,271528084.6175,
3591829.37023,4735855358.70}
{
\begin{filecontents*}{mydata.dat}
x y label
-1.05731886163643 -1.72501587731521 \%
-2.78577238404846 -0.843765364632213 \textbackslash
3.72026508875381 -1.22034965712686 @
0.00465397081060324 0.723899078670965 a
0.118172186120475 3.06523182040332 b
\end{filecontents*}
\documentclass[border=5mm]{standalone}
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex 2017.7.12) 30 JUL 2019 06:49
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**main.tex
(/compile/main.tex
LaTeX2e <2017-04-15>
Babel <3.12> and hyphenation patterns for 84 language(s) loaded.
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex 2019.7.24) 30 JUL 2019 08:46
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2018-12-01>
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{mathtools}
\newcommand{\LHS}[2][1.5em]{\hspace{#1}\mathllap{#2}}
\newcommand{\RHS}[2][1.5em]{\mathrlap{#2}\hspace{#1}} % moved \hspace after mathrlap
\begin{document}