Skip to content

Commit b0939b4

Browse files
committed
Documenter
1 parent 4bbc88b commit b0939b4

28 files changed

+2299
-96
lines changed

.codecov.yml

-1
This file was deleted.

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "weekly"

.github/workflows/CI.yml

+11-16
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ on:
33
push:
44
branches:
55
- main
6-
tags: '*'
6+
tags: ['*']
77
pull_request:
8+
workflow_dispatch:
89
concurrency:
910
# Skip intermediate builds: always.
1011
# Cancel intermediate builds: only if it is a pull request build.
@@ -14,33 +15,27 @@ jobs:
1415
test:
1516
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1617
runs-on: ${{ matrix.os }}
18+
timeout-minutes: 60
19+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
20+
actions: write
21+
contents: read
1722
strategy:
1823
fail-fast: false
1924
matrix:
2025
version:
21-
- '1.0'
26+
- '1.10'
2227
- '1.6'
23-
- '1'
28+
- 'pre'
2429
os:
2530
- ubuntu-latest
26-
- windows-latest
2731
arch:
2832
- x64
2933
steps:
30-
- uses: actions/checkout@v2
31-
- uses: julia-actions/setup-julia@v1
34+
- uses: actions/checkout@v4
35+
- uses: julia-actions/setup-julia@v2
3236
with:
3337
version: ${{ matrix.version }}
3438
arch: ${{ matrix.arch }}
35-
- uses: actions/cache@v1
36-
env:
37-
cache-name: cache-artifacts
38-
with:
39-
path: ~/.julia/artifacts
40-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
41-
restore-keys: |
42-
${{ runner.os }}-test-${{ env.cache-name }}-
43-
${{ runner.os }}-test-
44-
${{ runner.os }}-
39+
- uses: julia-actions/cache@v2
4540
- uses: julia-actions/julia-buildpkg@v1
4641
- uses: julia-actions/julia-runtest@v1

.github/workflows/TagBot.yml

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

.github/workflows/documentation.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master # update to match your development branch (master, main, dev, trunk, ...)
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
permissions:
13+
contents: write
14+
pull-requests: read
15+
statuses: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v2
20+
with:
21+
version: '1.6'
22+
- uses: julia-actions/cache@v2
23+
- name: Install dependencies
24+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
25+
- name: Build and deploy
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
28+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
29+
run: julia --project=docs/ docs/make.jl

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Manifest.toml
1+
.vscode/*

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LatexPrint"
22
uuid = "d2208f48-c256-5759-9089-c25ed2a93924"
33
author = ["Edward Scheinerman <[email protected]>"]
4-
version = "1.1.0"
4+
version = "1.1.1"
55

66
[deps]
77
Requires = "ae029012-a4dd-5104-9daa-d747884805df"

README.md

+13-21
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
# LatexPrint
22

3-
[![Build Status](https://travis-ci.com/scheinerman/LatexPrint.jl.svg?branch=master)](https://travis-ci.com/scheinerman/LatexPrint.jl)
4-
5-
63
Print Julia objects in LaTeX form.
74

8-
## Installation
9-
10-
Enter the package manager by typing a close bracket: `]` and then
11-
```
12-
pkg> add LatexPrint
13-
```
5+
> Instead of seeing `1//3` in your document, you get to have $\frac{1}{3}$.
146
157

16-
## Key functions
8+
## Key Functions
179

1810
This module provides functions for converting Julia objects into
1911
string representations for use in LaTeX mathematics mode. The primary
@@ -22,6 +14,7 @@ Julia objects are first converted to a form suitable for
2214
LaTeX. Because `laprintln` is a lot to type, we also provide the
2315
abbreviation `lap`.
2416

17+
2518
```
2619
julia> using LatexPrint
2720
@@ -47,11 +40,10 @@ The double backslash in the output of `latex_form` is converted to a
4740
single backslash when run through a `print` function.
4841

4942

50-
## Supported Types
5143

52-
### Numbers
44+
## Numbers
5345

54-
#### Integers and floating point numbers
46+
### Integers and floating point numbers
5547

5648
`FloatingPoint` and `Integer` numbers are printed unchanged.
5749

@@ -84,7 +76,7 @@ julia> lap(pi)
8476
\pi
8577
```
8678

87-
#### Rational numbers
79+
### Rational numbers
8880

8981
Rational numbers are printed as fractions (unless the denominator
9082
happens to be 1, in which case we print as an integer).
@@ -97,7 +89,7 @@ julia> lap(10//2)
9789
5
9890
```
9991

100-
#### Complex numbers
92+
### Complex numbers
10193

10294
Complex numbers always include a real and an imaginary part, even if
10395
either part equals zero:
@@ -116,7 +108,7 @@ julia> lap(im^im)
116108
0.20787957635076193+0.0i
117109
```
118110

119-
### Boolean values
111+
## Boolean Values
120112

121113
The `Bool` values `true` and `false` output like this:
122114
```
@@ -127,12 +119,12 @@ julia> lap(false)
127119
\mathrm{F}
128120
```
129121

130-
### `nothing`
122+
## `nothing`
131123

132124
A `nothing` value is rendered as `\mathrm{nothing}`.
133125

134126

135-
### Text
127+
## Text
136128

137129
The LaTeX version of an `String` is wrapped in the command
138130
`\text` (which requires the `amsmath` package in LaTeX). The rationale
@@ -146,7 +138,7 @@ julia> lap("Hello, world!")
146138

147139

148140

149-
### Arrays
141+
## Arrays
150142

151143
Vectors (one-dimensional arrays) and matrices (two-dimensional arrays)
152144
are converted into LaTeX `array` environments bounded by square
@@ -203,7 +195,7 @@ julia> lap(x')
203195
\right]
204196
```
205197

206-
### Sets
198+
## Sets
207199

208200
Julia `Set` and `IntSet` objects are rendered as a comma separated
209201
list between curly braces. The elements are sorted into ascending
@@ -230,7 +222,7 @@ julia> lap(C)
230222
\emptyset
231223
```
232224

233-
## The `tabular` function
225+
## The `tabular` Function
234226

235227
If `A` is a matrix (two-dimensional array), then `laprintln(A)` (or
236228
`lap(A)`) prints the LaTeX code for that matrix (complete with

0 commit comments

Comments
 (0)