Skip to content

Commit 4a4c482

Browse files
committed
next/featues/latex: new forward-inverse search screencast with an explanation
1 parent 463bdaf commit 4a4c482

File tree

7 files changed

+80
-27
lines changed

7 files changed

+80
-27
lines changed

src/packages/next/components/landing/content.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ export default function Content(props: Props) {
188188
<Row
189189
gutter={[20, 30]}
190190
style={{
191-
paddingTop: "12px",
191+
paddingTop: "50px",
192+
paddingBottom: "50px",
192193
maxWidth: MAX_WIDTH_LANDING,
193194
marginTop: "0",
194195
marginBottom: "0",

src/packages/next/pages/features/latex-editor.tsx

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Descriptions, Layout, List } from "antd";
77

88
import { Icon } from "@cocalc/frontend/components/icon";
99
import { DARK_MODE_ICON } from "@cocalc/util/consts/ui";
10+
import { COLORS } from "@cocalc/util/theme";
1011

1112
import Backups from "components/landing/backups";
1213
import Code from "components/landing/code";
@@ -27,7 +28,6 @@ import A from "components/misc/A";
2728
import { Customize } from "lib/customize";
2829
import withCustomize from "lib/with-customize";
2930

30-
import Sidechat from "public/features/latex-editor-side-chat-20251004.png";
3131
import Pythontex from "public/features/cocalc-pythontex.png";
3232
import Sagetex from "public/features/cocalc-sagetex.png";
3333
import AIFormula from "public/features/latex-ai-formula.png";
@@ -37,6 +37,7 @@ import LatexEditorImage from "public/features/latex-editor-main-20251003.png";
3737
import LatexPythontex from "public/features/latex-editor-pythontex-20251003.png";
3838
import LatexCollab from "public/features/latex-editor-realtime-sync-20251003.png";
3939
import Knitr from "public/features/latex-editor-rnw-01.png";
40+
import Sidechat from "public/features/latex-editor-side-chat-20251004.png";
4041
import LatexTimetravel from "public/features/latex-editor-timetravel-01.png";
4142
import Logo from "public/features/latex-logo.svg";
4243

@@ -77,7 +78,9 @@ export default function LatexEditor({ customize }) {
7778
flexWrap: "wrap",
7879
}}
7980
>
80-
<span>No software install required: <small>100% online</small></span>
81+
<span>
82+
No software install required: <small>100% online</small>
83+
</span>
8184
</Title>
8285
<Paragraph>
8386
<List bordered size="small">
@@ -142,7 +145,9 @@ export default function LatexEditor({ customize }) {
142145
flexWrap: "wrap",
143146
}}
144147
>
145-
<span>Working with <LaTeX /> made easy</span>
148+
<span>
149+
Working with <LaTeX /> made easy
150+
</span>
146151
</Title>
147152
<Paragraph>
148153
<List bordered size="small">
@@ -165,8 +170,10 @@ export default function LatexEditor({ customize }) {
165170
to revert any changes
166171
</List.Item>
167172
<List.Item>
168-
<strong>Fully managed <LaTeX /> environment</strong> with
169-
automatic updates
173+
<strong>
174+
Fully managed <LaTeX /> environment
175+
</strong>{" "}
176+
with automatic updates
170177
</List.Item>
171178
<List.Item>
172179
<strong>Cloud-based platform</strong> accessible from any
@@ -265,35 +272,40 @@ export default function LatexEditor({ customize }) {
265272
<Info
266273
anchor="a-darkmode"
267274
icon={
268-
<Icon style={{ fontSize: "40px" }} unicode={DARK_MODE_ICON} />
275+
<Icon
276+
style={{ fontSize: "40px", color: "white" }}
277+
unicode={DARK_MODE_ICON}
278+
/>
279+
}
280+
title={
281+
<span style={{ color: "white" }}>Dark Mode with PDF Support</span>
269282
}
270-
title={"Dark Mode with PDF Support"}
271283
image={LatexDarkMode}
284+
style={{ background: "rgb(50, 50, 50)", color: "white" }}
272285
>
273-
<Paragraph>
274-
CoCalc fully supports{" "}
286+
<Paragraph style={{ color: "white" }}>
287+
Love{" "}
275288
<span
276289
style={{
277290
background: "black",
278291
color: "white",
279292
padding: "2px 5px",
280293
}}
281294
>
282-
Dark Mode
283-
</span>{" "}
284-
enthusiasts!
295+
dark mode
296+
</span>
297+
? CoCalc has you covered!
285298
</Paragraph>
286-
<Paragraph>
287-
{" "}
288-
The <LaTeX /> editor not only supports the usual dark mode
289-
functionality, but also styles the PDF viewer. This means that even
290-
though your final PDF will have a white background, you can view
291-
and edit it with a dark background and bright text for comfortable
292-
night-time work.{" "}
299+
<Paragraph style={{ color: "white" }}>
300+
The <LaTeX /> editor features dark UI elements as you'd expect,
301+
but goes further by inverting the PDF viewer colors. This means
302+
that even though your final PDF will have a white background, you
303+
can view and edit it with a dark background and bright text for
304+
comfortable night-time work.
293305
</Paragraph>
294-
<Paragraph>
295-
There is also a button to quickly disable the PDF dark mode, to
296-
double check the actual output.
306+
<Paragraph style={{ color: COLORS.GRAY_L }}>
307+
NOTE: You can quickly disable this PDF dark mode, to double check
308+
the actual output.
297309
</Paragraph>
298310
</Info>
299311

@@ -503,8 +515,8 @@ export default function LatexEditor({ customize }) {
503515
title="Forward and Inverse search"
504516
icon="sync"
505517
video={[
506-
"features/latex-forward-inverse-02.webm",
507-
"features/latex-forward-inverse-02.mp4",
518+
"features/latex-forward-inverse-20251006.webm",
519+
"features/latex-forward-inverse-20251006.mp4",
508520
]}
509521
wide
510522
alt="Video showing forward and inverse search in a LaTeX document"
@@ -518,11 +530,13 @@ export default function LatexEditor({ customize }) {
518530
</Paragraph>
519531
<Paragraph>
520532
<strong>Forward Search:</strong> Click in your LaTeX source to
521-
instantly jump to the corresponding location in the PDF preview.
533+
jump to the corresponding location in the PDF preview.
522534
</Paragraph>
523535
<Paragraph>
524536
<strong>Inverse Search:</strong> Double-click anywhere in the PDF
525-
to jump back to the exact line in your source code.
537+
to jump back to the corresponding location in your source code.
538+
You can also enable automatic sync mode to keep your source editor
539+
aligned with the PDF as you scroll.
526540
</Paragraph>
527541
<Paragraph>
528542
Powered by{" "}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Screencasts
2+
3+
## 1. Record Screencast
4+
5+
Use the Chrome extension [Screen Recorder](https://chromewebstore.google.com/detail/screen-recorder/hniebljpgcogalllopnjokppmgbhaden) to record screencasts.
6+
7+
## 2. Export Format
8+
9+
Set it to record in **WebM** format, in the Screen Recorder extension.
10+
11+
## 3. Convert WebM to MP4
12+
13+
For website compatibility, convert the WebM file to MP4 format without re-encoding (preserves quality and file size):
14+
15+
```bash
16+
ffmpeg -y -i input.webm -c:v copy input.mp4
17+
```
18+
19+
**Command explanation:**
20+
21+
- `-y` - Automatically overwrite output file if it exists
22+
- `-i input.webm` - Input file
23+
- `-c:v copy` - Copy video stream without re-encoding (fast, preserves quality)
24+
- `input.mp4` - Output file
25+
26+
**Note:** This command preserves audio if present in the source file. The `-c:v copy` codec only copies the video stream, and ffmpeg will handle audio appropriately (copy if present, omit if not). Set `-an` to remove audio.
27+
28+
## 4. Website Usage
29+
30+
Include both formats in HTML for maximum browser compatibility:
31+
32+
```html
33+
<video controls>
34+
<source src="video.webm" type="video/webm" />
35+
<source src="video.mp4" type="video/mp4" />
36+
Your browser does not support the video tag.
37+
</video>
38+
```
-2.26 MB
Binary file not shown.
-1.62 MB
Binary file not shown.
4.02 MB
Binary file not shown.
4.01 MB
Binary file not shown.

0 commit comments

Comments
 (0)