Comments (2)
I would love to see 'Tufte style' listed in list_out_formats
, but I imagine that Julia Mardown needs to support it first (?)
Maybe someone knows how to create Tufte with Weaver.jl
could post a minimal working example here.
from weave.jl.
I have a custom template like this
\documentclass{tufte-handout}
\usepackage{geometry}
\usepackage{lmodern}
\usepackage{sourcecodepro}
\usepackage{amssymb,amsmath}
\usepackage{bm}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{color}
\definecolor{lbcolor}{rgb}{1,1,0.95}
\lstset{frameround=fttt,
frame=trBL,
basicstyle=\sourcecodepro\footnotesize,
upquote=true,
breaklines=true,
breakindent=0pt,
keepspaces=true,
showspaces=false,
columns=fullflexible,
showtabs=false,
showstringspaces=false,
escapeinside={(*@}{@*)},
extendedchars=true,
backgroundcolor=\color{lbcolor}
}
{{#:tex_deps}}
{{{ :tex_deps }}}
{{/:tex_deps}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1.2ex}
\hypersetup
{ pdfauthor = { {{{:author}}} },
pdftitle={ {{{:title}}} },
colorlinks=TRUE,
linkcolor=black,
citecolor=blue,
urlcolor=blue
}
{{#:title}}
\title{ {{{ :title }}} }
{{/:title}}
{{#:author}}
\author{ {{{ :author }}} }
{{/:author}}
{{#:date}}
\date{ {{{ :date }}} }
{{/:date}}
{{ :highlight }}
\begin{document}
{{#:title}}\maketitle{{/:title}}
{{{ :body }}}
\end{document}
and call weave like so
weave("my_doc.jmd", template = "custom.tpl", doctype = "md2pdf")
margin figures can be included:
```julia, fig_env = "marginfigure", fig_pos = "-1cm",fig_cap = "Plot of x and y."
plot(x,y)
Only works if you include fig_pos
Obviously, you need to install tufte.sty for this to work.
Not sure how to do sidenotes, but Julia Markdown would not need to support it. Just needs some way to tell Weave to pass on the raw LaTeX command to pdflatex, I think.
from weave.jl.
Related Issues (20)
- Block Scope
- hangs with plots [BUG] HOT 8
- Undefined `Array` constructor in example
- [FR] Batch Processing to Different File Formats
- [BUG] `weave` with some doctypes creates a tempdir that is not deleted HOT 1
- [BUG] Unable to use Weave with a Genie server HOT 1
- [BUG] Sometimes errors with Memento
- [FR] Support problem sheets with solutions
- Plot images in RCall are not shown
- [BUG] Julia 1.7 issue - Error message `ERROR: type DataType has no field mutable` when trying to run `WorkPrecisionSet` for SciML benchmarks HOT 1
- Suport for Makie Plots [FR] HOT 1
- [BUG] An `out_path` arg with a "." in last segment results in incorrect save path
- [BUG] Problem when I do Weave.run() ERROR in process.jl:443 Stacktrace: [1] top-level scope @ REPL[9]:1
- [FR] I cannot switch line for one bullet of a list HOT 2
- Enable HTTPS for the docs HOT 2
- Please remove hardcoded geometry when converting to PDF via pandoc
- [FR] Numbered equations HOT 1
- [FR] Would it be useful to allow Julia code run in `shell` and `Pkg` mode? HOT 1
- [FR] Package dependency chain involving weave causes strange incompatibility issues.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weave.jl.