Skip to content

Commit 4f1ec2d

Browse files
committed
next/features/latex: new multi-file section, make the top an actual ToC
1 parent 4a4c482 commit 4f1ec2d

File tree

2 files changed

+76
-43
lines changed

2 files changed

+76
-43
lines changed

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

Lines changed: 76 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import LatexDarkMode from "public/features/latex-editor-darkmode-20251003.png";
3636
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";
39+
import LaTeXMultiFile from "public/features/latex-editor-multifile-20251006.png";
3940
import Knitr from "public/features/latex-editor-rnw-01.png";
4041
import Sidechat from "public/features/latex-editor-side-chat-20251004.png";
4142
import LatexTimetravel from "public/features/latex-editor-timetravel-01.png";
@@ -79,23 +80,33 @@ export default function LatexEditor({ customize }) {
7980
}}
8081
>
8182
<span>
82-
No software install required: <small>100% online</small>
83+
Working with <LaTeX /> made easy
8384
</span>
8485
</Title>
8586
<Paragraph>
8687
<List bordered size="small">
8788
<List.Item>
8889
<strong>Side-by-side preview</strong> with{" "}
89-
<strong>forward and inverse search</strong>
90+
<strong>
91+
<a href="#a-forwardinverse">
92+
forward and inverse search
93+
</a>
94+
</strong>{" "}
95+
(TEX ↔ PDF)
9096
</List.Item>
9197
<List.Item>
92-
Compiles upon saving and marks errors in the source file
98+
<strong>Automatically compiles upon saving</strong> and
99+
marks problems in the source file
93100
</List.Item>
94101
<List.Item>
95102
<strong>
96-
<a href="#a-backups">Periodic backups</a>
103+
<a href="#a-timetravel">Records every change</a>
97104
</strong>{" "}
98-
of all your files
105+
while you type with{" "}
106+
<strong>
107+
<a href="#a-backups">periodic backups</a>
108+
</strong>{" "}
109+
of all files
99110
</List.Item>
100111
<List.Item>
101112
<strong>
@@ -107,29 +118,16 @@ export default function LatexEditor({ customize }) {
107118
<strong>
108119
<a href="#a-calculations">Runs embedded calculations</a>
109120
</strong>{" "}
110-
right inside your document
121+
with support for <a href="#a-sagetex">SageTeX</a>,{" "}
122+
<a href="#a-pythontex">PythonTeX</a> and{" "}
123+
<a href="#a-knitr">Knitr</a>
111124
</List.Item>
112125
<List.Item>
113126
<strong>
114-
<A href="https://doc.cocalc.com/latex-features.html#latex-multi-file-support">
115-
Multi-file support
116-
</A>
127+
<a href="#a-multifile">Multi-file support</a>
117128
</strong>{" "}
118129
that discovers included files automatically
119130
</List.Item>
120-
<List.Item>
121-
<strong>
122-
<a href="#a-darkmode">Dark mode for PDF</a>
123-
</strong>{" "}
124-
viewing and editing
125-
</List.Item>
126-
<List.Item>
127-
Every{" "}
128-
<strong>
129-
<a href="#a-timetravel">change is recorded</a>
130-
</strong>{" "}
131-
while you type
132-
</List.Item>
133131
</List>
134132
</Paragraph>
135133
</>
@@ -145,9 +143,7 @@ export default function LatexEditor({ customize }) {
145143
flexWrap: "wrap",
146144
}}
147145
>
148-
<span>
149-
Working with <LaTeX /> made easy
150-
</span>
146+
<span>Fully-featured online editor</span>
151147
</Title>
152148
<Paragraph>
153149
<List bordered size="small">
@@ -165,31 +161,31 @@ export default function LatexEditor({ customize }) {
165161
</List.Item>
166162
<List.Item>
167163
<strong>
168-
<a href="#a-timetravel">Complete revision history</a>
164+
<a href="#a-darkmode">Dark Mode with PDF support</a>
169165
</strong>{" "}
170-
to revert any changes
166+
for comfortable night-time editing
171167
</List.Item>
172168
<List.Item>
173169
<strong>
174-
Fully managed <LaTeX /> environment
170+
<a href="#a-timetravel">Complete revision history</a>
175171
</strong>{" "}
176-
with automatic updates
177-
</List.Item>
178-
<List.Item>
179-
<strong>Cloud-based platform</strong> accessible from any
180-
browser
181-
</List.Item>
182-
<List.Item>
183-
<strong>Professional typesetting</strong> with PDF LaTeX,
184-
XeLaTeX, and LuaTeX
172+
to revert any changes
185173
</List.Item>
186174
<List.Item>
187-
<strong>Academic writing optimized</strong> for research
188-
papers and theses
175+
<strong>
176+
<a href="#a-environments">
177+
Fully managed <LaTeX /> environment
178+
</a>
179+
</strong>{" "}
180+
with PDF LaTeX, XeLaTeX, and LuaTeX
189181
</List.Item>
190182
<List.Item>
191-
<strong>Integrated computational tools</strong> for
192-
reproducible research
183+
<strong>
184+
<a href="#a-computational">
185+
Full computational environment
186+
</a>
187+
</strong>{" "}
188+
accessible from any browser
193189
</List.Item>
194190
</List>
195191
</Paragraph>
@@ -304,19 +300,56 @@ export default function LatexEditor({ customize }) {
304300
comfortable night-time work.
305301
</Paragraph>
306302
<Paragraph style={{ color: COLORS.GRAY_L }}>
307-
NOTE: You can quickly disable this PDF dark mode, to double check
303+
Note: You can quickly disable this PDF dark mode, to double check
308304
the actual output.
309305
</Paragraph>
310306
</Info>
311307

308+
<Info
309+
anchor="a-multifile"
310+
icon="folder-open"
311+
title="Multi-file support"
312+
image={LaTeXMultiFile}
313+
alt="LaTeX editor showing multiple files with automatic discovery of included files"
314+
>
315+
<Paragraph>
316+
Working with large LaTeX documents often means splitting your
317+
content across multiple files using <Code>\include{"{...}"}</Code>{" "}
318+
or <Code>\input{"{...}"}</Code> commands.{" "}
319+
</Paragraph>
320+
<Paragraph strong>
321+
CoCalc automatically discovers all included files and makes
322+
navigation easy.
323+
</Paragraph>
324+
<Paragraph>
325+
Each entry shows a brief snippet of its beginning, making it easy
326+
to identify the right file.
327+
</Paragraph>
328+
<Paragraph>
329+
<strong>
330+
<a href="#a-forwardinverse">Inverse search</a>
331+
</strong>{" "}
332+
works seamlessly with multi-file documents: double-click
333+
anywhere in the PDF and CoCalc automatically opens the correct
334+
subfile for you.
335+
</Paragraph>
336+
<Paragraph>
337+
Learn more in the{" "}
338+
<A href="https://doc.cocalc.com/latex#multi-file-support">
339+
multi-file support documentation
340+
</A>
341+
.
342+
</Paragraph>
343+
</Info>
344+
312345
<Info.Heading
313346
anchor="a-calculations"
314347
icon="calculator"
315348
description={
316349
<>
317350
<Paragraph>
318351
<strong>
319-
Execute Python, Sage or R code directly within your LaTeX
352+
Execute Python, Sage, or R code directly within your LaTeX
320353
source
321354
</strong>{" "}
322355
to automatically generate figures, tables, formulas, and
273 KB
Loading

0 commit comments

Comments
 (0)