Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 6b24c4e

Browse files
committed
Merge branch 'develop'
2 parents 9719cbf + afc430b commit 6b24c4e

File tree

8 files changed

+637
-158
lines changed

8 files changed

+637
-158
lines changed

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,29 @@ Develop build status: [![Build Status](https://travis-ci.org/impermeable/waterpr
1313

1414
## How to get started - Linux and Mac
1515

16-
The easiest way to get started with Waterproof is to follow the steps:
16+
The easiest way to get started with Waterproof on Linux or Mac is to follow the steps:
1717

18-
* Step 1. Install SerAPI following the steps below
18+
* Step 1. Install SerAPI and coq-waterproof following the steps below
1919
* Step 2. Install Waterproof using the installer from the [release page](http://github.com/impermeable/waterproof/releases)
2020

2121
### Step 1 for MacOS and Linux. Installation of SerAPI.
2222

23-
The following steps (1.a, 1.b and 1.c) describe how to install SerAPI on MacOS or Linux.
23+
The following steps (1.a, 1.b, 1.c and 1.d) describe how to install SerAPI and coq-waterproof on MacOS or Linux.
2424

2525
#### Step 1.a for MacOS and Linux: Install opam
2626

2727
##### On MacOS:
28-
Install opam by running the following commands in the terminal (taken from https://opam.ocaml.org/doc/Install.html#OSX)
28+
Install opam. You can either do so throug homebrew (https://brew.sh/) or through MacPorts (https://www.macports.org/). If you want to use homebrew, you can run the following commands in the terminal (taken from https://opam.ocaml.org/doc/Install.html#OSX)
2929
```
3030
brew install gpatch
3131
brew install opam
3232
```
3333

34+
If you prefer MacPorts, instead run
35+
```
36+
port install opam
37+
```
38+
3439
##### On Linux:
3540
Install opam, following instructions on https://opam.ocaml.org/doc/Install.html. For instance, for **Ubuntu**:
3641
```
@@ -50,11 +55,6 @@ opam init
5055
This may take a few minutes. In the meantime, opam will likely ask two questions. We recommend choosing 'y' to both, i.e. to opam modifying the `.bash_profile` and to opam adding a hook to the init scripts. Now execute the following line
5156
```
5257
eval `opam env`
53-
```
54-
55-
##### On Linux or macOS:
56-
Install OCaml with
57-
```
5858
opam switch create 4.11.1
5959
eval `opam env`
6060
```
@@ -75,9 +75,21 @@ Finally, execute again
7575
eval `opam env`
7676
```
7777

78+
#### Step 1.d for MacOS and Linux: Install the coq-waterproof library
79+
80+
Navigate in the terminal to a folder in which you are willing to place a folder with necessary library files. Then run:
81+
82+
```
83+
git clone https://github.com/impermeable/coq-waterproof
84+
cd coq-waterproof
85+
make
86+
make install
87+
```
88+
89+
7890
### Step 2. Install Waterproof with the installer from the release page
7991

80-
After installing SerAPI, you are ready to install Waterproof using your preferred installer from the [release page](http://github.com/impermeable/waterproof/releases).
92+
After installing SerAPI, you are ready to install Waterproof using your preferred installer from the [release page](http://github.com/impermeable/waterproof/releases). After installing Waterproof, it will ask you to point to a program called **sertop**. This is located in a hidden file folder. To show hidden file folders in the terminal press **⌘ + Shift + .** .
8193

8294
> **Known issue**: Because Waterproof is relatively unknown software, it is possible that it will initially be blocked by a virus scanner. To run Waterproof anyway: **on Windows:** Choose 'run anyway', **on Mac:** right-click and choose 'open software'; you may need to go to security settings to allow for running the app.
8395

src/codemirror/tex-input.js

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,30 @@ export default function createTexInputHints(symbols) {
3535
*/
3636

3737
function createUnicodeTable(symbols) {
38-
let newSymbol;
39-
4038
for (const category of symbols) {
4139
for (const element of category.elements) {
42-
newSymbol = {
43-
text: '\\' + element.name,
44-
symbol: element.symbol,
45-
};
46-
unicodePreTable.push(newSymbol);
40+
if (element.hasOwnProperty('names')) {
41+
for (const name of element.names) {
42+
unicodePreTable.push({
43+
text: '\\' + name,
44+
symbol: element.symbol,
45+
});
46+
}
47+
if (element.hasOwnProperty('name')) {
48+
console.log('WARNING: symbol has both "name" and "names"', element);
49+
}
50+
} else if (element.hasOwnProperty('name')) {
51+
unicodePreTable.push({
52+
text: '\\' + element.name,
53+
symbol: element.symbol,
54+
});
55+
} else {
56+
console.log('WARNING: symbol without name: ', element);
57+
}
4758
}
4859
}
60+
61+
unicodePreTable.sort((a, b) => a.text.localeCompare(b.text));
4962
}
5063

5164
function TeXInputHint(editor) {

src/editpage/components/blocks/InputBlock.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ export default {
2323
2424
.input-start-block {
2525
@include theme(border, color-primary-light, 3px solid);
26-
border-bottom: 0;
26+
/* We use important here since theme sets the border directly in a higher
27+
priority style set (Same for below) */
28+
border-bottom-width: 0 !important;
2729
margin-bottom: 7px;
2830
}
2931
3032
.input-end-block {
3133
@include theme(border, color-primary-light, 3px solid);
3234
margin-top: 7px;
33-
border-top: 0;
35+
border-top-width: 0 !important;
3436
}
3537
</style>

0 commit comments

Comments
 (0)