earakely-scale commited on
Commit
db620a0
·
verified ·
1 Parent(s): ba5a7a6

REA computer-use environment, v0.1.0

Browse files
README.md ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pretty_name: LyX computer-use environment from a one-line request (REA)
4
+ tags:
5
+ - computer-use
6
+ - cua
7
+ - gui-agent
8
+ - rl-environment
9
+ - agentenv
10
+ - desktop
11
+ - linux
12
+ - rea
13
+ - document-processor
14
+ - latex
15
+ - writing
16
+ - from-request
17
+ ---
18
+
19
+ # LyX: a computer-use environment built from a one-line request
20
+
21
+ ![An agent solving the task in LyX](media/hero.gif)
22
+
23
+ **The real LyX 2.4 document processor running on an Ubuntu 24.04 desktop, as an [agentenv](https://pypi.org/project/agentenv-framework/) computer environment. An agent completes the task only through screenshots, mouse and keyboard, and a verifier grades the saved files with no model.**
24
+
25
+ Claude Code built this environment from a one-line request in about 26 minutes, with only REA's build skill and MCP tools; [How it was made](#how-it-was-made) has the request and the steps. LyX opens a short report, `Documents/garden-report.lyx`, at launch: a title and three sections, Introduction, Soil Preperation and Harvest Results, each with one paragraph. The agent has to correct the misspelled heading to Soil Preparation and save. It sees only the screen and acts only with the mouse and keyboard.
26
+
27
+ ## Watch
28
+
29
+ - Agent runs (Claude Code with Claude Sonnet 5.5): [run 1](media/solve-1.mp4), [run 2](media/solve-2.mp4), [run 3](media/solve-3.mp4)
30
+ - Witness, which proves the task can be done through the computer: [witness.mp4](media/witness.mp4)
31
+
32
+ Each video is the computer's own screen recording at 10 frames per second.
33
+
34
+ ## The task
35
+
36
+ > In LyX, the heading of section 2 in Documents/garden-report.lyx says "Soil Preperation". Correct the misspelled word so the heading reads "Soil Preparation", and save the document.
37
+
38
+ `bundle/artifacts/fix-section-heading-check/verify.py` reads the app's files through the computer's `data/get` view and passes only if every check holds:
39
+
40
+ | Check | Kind | File |
41
+ | --- | --- | --- |
42
+ | `heading-fixed` | `lines_present` | `Documents/garden-report.lyx` |
43
+ | `typo-gone` | `lines_absent` | `Documents/garden-report.lyx` |
44
+ | `three-sections` | `line_count` | `Documents/garden-report.lyx` |
45
+ | `other-headings-kept` | `lines_present` | `Documents/garden-report.lyx` |
46
+
47
+ A `.lyx` file is LyX's own plain-text format, with one command or paragraph per line, so REA reads it as text lines. The checks need the line "Soil Preparation" and no line "Soil Preperation", still exactly three `\begin_layout Section` lines, and the other two headings, Introduction and Harvest Results, as lines of their own. REA's draft suggested the first two checks, both kept exactly as written; it also suggested a guard on markup lines every section shares, which Claude Code discarded, and Claude Code added the section count and the kept headings.
48
+
49
+ ## Results
50
+
51
+ 3 of 3 runs passed, about $0.54 per run.
52
+
53
+ | Run | Outcome | Turns | Cost | Video |
54
+ | --- | --- | --- | --- | --- |
55
+ | 1 | passed | 7 | $0.68 | [video](media/solve-1.mp4) |
56
+ | 2 | passed | 11 | $0.77 | [video](media/solve-2.mp4) |
57
+ | 3 | passed | 7 | $0.18 | [video](media/solve-3.mp4) |
58
+
59
+ ## Run it
60
+
61
+ You need Docker. `agentenv-framework` builds the computer: Ubuntu 24.04 with the app installed from Ubuntu's archive (`lyx` 2.4.0~RC3).
62
+
63
+ ```bash
64
+ pip install agentenv-framework==0.9.1431
65
+ hf download earakely-scale/LyXFromRequestComputerEnv-REA --repo-type dataset --local-dir lyx-request
66
+ agent-env run lyx-request/bundle --task fix-section-heading --agent claude-code --model <model>
67
+ ```
68
+
69
+ The agent needs a model provider configured for agentenv. `--task smoke` only boots the computer, with no agent. `bundle/README.md` describes the bundle in detail.
70
+
71
+ ## How it was made
72
+
73
+ Claude Code built this environment from a one-line request, given only [REA](https://github.com/morluto/rea)'s build skill and REA's MCP tools:
74
+
75
+ > Build me a LyX environment where the agent fixes a word in a section heading of a short document and saves it.
76
+
77
+ It asked only the skill's upfront questions, wrote no app-specific scripts, and finished in about 26 minutes. The steps were REA's usual ones:
78
+
79
+ 1. **Capture.** REA launched LyX on a Linux desktop and recorded its package, windows and opened files while the edit was made. It also recorded the app's state folders before and after.
80
+ 2. **Export.** REA turned the capture into an agentenv `computer_app`. It installs the app, seeds the starting files, starts the app, and waits for its main window. It also serves typed views of the app's files for verifiers.
81
+ 3. **Task.** The task's checks were validated against the capture: they fail on the starting state and pass on the captured end state.
82
+ 4. **Witness.** In a fresh computer, the edit was made through computer actions alone, and the checks were read at four stages. They held on the first try:
83
+
84
+ | Stage | Checks |
85
+ | --- | --- |
86
+ | `seed` | fail, as expected: the heading reads Soil Preperation; the kept checks pass |
87
+ | `after_edit` | pass |
88
+ | `near_miss` | fail, as expected: the heading was retyped as "Soil Preparaton" |
89
+ | `after_reset` | fail, as expected: `data/reset` restored the seed |
90
+
91
+ The agent runs came after the build: Claude Code with Claude Sonnet 5.5 (`--model anthropic/claude-sonnet-5-5 --no-emulate`, on an amd64 host) solved the task 3 times, each run recorded.
92
+
93
+ ## What's inside
94
+
95
+ ```
96
+ bundle/ the agentenv bundle: envs/ (app module, seed files), tasks/, artifacts/ (verifier), evals/
97
+ media/ witness and agent-run recordings (MP4) with short GIF previews
98
+ results.json the runs above, with each check's result
99
+ ```
100
+
101
+ ## Limits
102
+
103
+ - The checks read the file as lines and don't tie the fixed heading to section 2: a line reading "Soil Preparation" anywhere passes, as long as the typo is gone and there are still three sections. The paragraphs under the headings aren't checked.
104
+ - The computer has no TeX installation, so LyX can edit and save the document but not typeset or export it. The seed hides LyX's warning that the article class is unavailable.
105
+ - The seed also holds the configuration LyX wrote on its first start (`~/.lyx`, including `configure.log`), which the capture picked up. LyX started cleanly from it in the witness and in every run.
106
+ - The computer installs whatever `lyx` Ubuntu 24.04's archive holds at build time (2.4.0~RC3, a release candidate, for these runs); it is not pinned.
107
+ - Three runs is a small sample: the solve rate shows the task is solvable, not how hard it is.
108
+
109
+ ## Licences
110
+
111
+ The bundle code, the task and the synthetic seed files are Apache-2.0. LyX itself is not included: the computer installs it from Ubuntu's archive (`lyx` 2.4.0~RC3) at build time, under its own licence (GPL-2.0-or-later).
bundle/README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LyX computer app
2
+
3
+ Exported by REA's `export-desktop-application` from a capture of the `lyx` package
4
+ (capture Evidence `ev_a1721a9bb396409192540109192c45c9a2186d0ed4a2c1cb329636edf97249ce`). It was checked against agentenv-framework
5
+ 0.9.1431.
6
+
7
+ - `envs/lyx/` is a computer app on the `ubuntu-24.04` base with the `reference` driver, for
8
+ `amd64` and `arm64`. It installs `lyx` from the distribution archive, launches `sh -c cd "$HOME" 2>/dev/null; exec 'lyx' "$HOME"/'Documents/garden-report.lyx'` at boot and is ready
9
+ when a window of class `lyx` appears.
10
+ - At launch the app opens `~/Documents/garden-report.lyx`, the seed's one document.
11
+ - Owned paths: `~/.config/LyX`, `~/.lyx`, `~/Documents`.
12
+ `data/get` returns their files and a typed JSON view of each; `data/reset` restores the seed.
13
+ - Seed: 16 file(s) made for the task, as saved at checkpoint `seed`.
14
+ Text files and dconf keys spell the capture host's name as `localhost`, `user@host` as `user@localhost`
15
+ and the home as `/home/user`, which the computer respells to its own at boot.
16
+ - Neither owned nor seeded, so the app starts without what it saved there: files changed during the capture in
17
+ `~/.config/QtProject.conf`, `~/.config/enchant`.
18
+ To own them, capture again naming them with `state_paths` on `start_build_capture`, or `--state-path` on `capture-desktop-application`.
19
+ - `tasks/smoke.json` deploys the app.
20
+
21
+ Run the task with `agent-env run <this folder>`, or only the deploy with `--task smoke`.
22
+
23
+ The seed was made for this task, not taken from a user's own data; read `envs/lyx/seed/` before publishing the bundle.
24
+
25
+ ## Task `fix-section-heading`
26
+
27
+ `tasks/fix-section-heading.json` deploys the app, has the agent work through the computer from the prompt below, and grades
28
+ the outcome with `artifacts/fix-section-heading-check/verify.py`, which reads the app's `data/get` views and needs
29
+ no model. It grades once the app's files have held for 3 s, so a save the app makes on its own within that
30
+ time of the agent stopping counts; each result's `settled` is false when they were still changing 15 s after the
31
+ first read. `evals/lyx.toml` names it, so a run of the bundle runs it.
32
+
33
+ > In LyX, the heading of section 2 in Documents/garden-report.lyx says "Soil Preperation". Correct the misspelled word so the heading reads "Soil Preparation", and save the document.
34
+
35
+ Checks, each of which must pass:
36
+
37
+ - `heading-fixed`: `{"kind":"lines_present","file":"Documents/garden-report.lyx","lines":["Soil Preparation"]}`
38
+ - `typo-gone`: `{"kind":"lines_absent","file":"Documents/garden-report.lyx","lines":["Soil Preperation"]}`
39
+ - `three-sections`: `{"kind":"line_count","file":"Documents/garden-report.lyx","exact":"\\begin_layout Section","equals":3}`
40
+ - `other-headings-kept`: `{"kind":"lines_present","file":"Documents/garden-report.lyx","lines":["Introduction","Harvest Results"]}`
41
+
42
+ REA kept the task because its checks fail on the seed (`heading-fixed`, `typo-gone`) and all
43
+ pass on the captured end state.
44
+
45
+ To measure a solve rate, run the task k times (3 by default) with the agent and model to measure, and count the runs
46
+ whose summary line says `passed`; a run that says `failed` did not finish and is run again rather than counted:
47
+
48
+ agent-env run <this folder> --task fix-section-heading --agent claude-code --model MODEL
bundle/artifacts/fix-section-heading-check/verify.py ADDED
@@ -0,0 +1,562 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Checks of the task fix-section-heading against the lyx app's state, exported by REA from a desktop application capture.
2
+
3
+ It reads the app's data/get through the computer, takes the typed views of its files and evaluates each check: no
4
+ model, no code from the task. It grades once the app's files settle, since an app can save a few seconds after the
5
+ last change: each result's settled says whether they had held for SETTLE_WINDOW_S, or had not by SETTLE_BOUND_S and
6
+ the last completed read was graded, and read_cut whether a read still running at SETTLE_BOUND_S was cut. A failure to
7
+ reach the app raises, so the run fails rather than scoring the agent.
8
+ """
9
+ import asyncio
10
+ import hashlib
11
+ import json
12
+ import math
13
+ import re
14
+ import time
15
+
16
+ from agentenv_protocol import client as protocol
17
+ from agentenv_protocol.types import RPC_PATH
18
+
19
+ APP = "lyx"
20
+ CHECKS = [
21
+ {"id": "heading-fixed", "kind": "lines_present", "file": "Documents/garden-report.lyx", "lines": ["Soil Preparation"]},
22
+ {"id": "typo-gone", "kind": "lines_absent", "file": "Documents/garden-report.lyx", "lines": ["Soil Preperation"]},
23
+ {"id": "three-sections", "kind": "line_count", "file": "Documents/garden-report.lyx", "exact": "\\begin_layout Section", "equals": 3},
24
+ {"id": "other-headings-kept", "kind": "lines_present", "file": "Documents/garden-report.lyx", "lines": ["Introduction", "Harvest Results"]},
25
+ ]
26
+ #: The app's data/get is read this often until its files settle.
27
+ SETTLE_INTERVAL_S = 0.5
28
+ #: How long each file's bytes must hold, from the read that returned them, before the views are graded.
29
+ SETTLE_WINDOW_S = 3.0
30
+ #: After the first read began: no read starts then or later, one still running is cut, and the last completed read is
31
+ #: graded though the files are still changing.
32
+ SETTLE_BOUND_S = 15.0
33
+ #: Where a data/get file part names its path in the home.
34
+ DATA_OBJECTS = "urn:agentenv:data-objects/v1"
35
+
36
+ MISSING = object()
37
+ INDEX = re.compile(r"0|[1-9][0-9]*")
38
+ VIEW_FORMATS = ("text", "json", "keyfile", "xml")
39
+ NUMERAL = re.compile(r"[+-]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[eE][+-]?[0-9]+)?")
40
+ WHITESPACE_RUN = re.compile(r"[ \t\r\n]+")
41
+
42
+
43
+ def _shown(value) -> str:
44
+ text = json.dumps(value, ensure_ascii=False, separators=(",", ":"))
45
+ return text if len(text) <= 200 else text[:200] + "…"
46
+
47
+
48
+ def _same(actual, expected) -> bool:
49
+ """JSON equality: numbers by value but never a boolean for a number, objects by their keys, arrays in order."""
50
+ if isinstance(expected, list):
51
+ return (isinstance(actual, list) and len(actual) == len(expected)
52
+ and all(_same(item, wanted) for item, wanted in zip(actual, expected)))
53
+ if isinstance(expected, dict):
54
+ return (isinstance(actual, dict) and len(actual) == len(expected)
55
+ and all(key in actual and _same(actual[key], value) for key, value in expected.items()))
56
+ if isinstance(expected, bool) or isinstance(actual, bool):
57
+ return isinstance(expected, bool) and isinstance(actual, bool) and actual == expected
58
+ if isinstance(expected, (int, float)):
59
+ return isinstance(actual, (int, float)) and actual == expected
60
+ return type(actual) is type(expected) and actual == expected
61
+
62
+
63
+ def _is_element(value) -> bool:
64
+ return (isinstance(value, dict) and isinstance(value.get("name"), str) and isinstance(value.get("attributes"), dict)
65
+ and isinstance(value.get("children"), list))
66
+
67
+
68
+ def _element_text(element, attribute=None) -> str:
69
+ """An element's text as XPath's string() reads it from what the view keeps: every text node among its children
70
+ and its descendants', in document order. With attribute, the values of that attribute on it and its descendants
71
+ instead, in document order, and no text node."""
72
+ parts, pending = [], [element]
73
+ while pending:
74
+ node = pending.pop()
75
+ if isinstance(node, str):
76
+ if attribute is None:
77
+ parts.append(node)
78
+ elif _is_element(node):
79
+ if attribute is not None and isinstance(node["attributes"].get(attribute), str):
80
+ parts.append(node["attributes"][attribute])
81
+ pending.extend(reversed(node["children"]))
82
+ return "".join(parts)
83
+
84
+
85
+ def _bracketed(token: str) -> bool:
86
+ return len(token) >= 2 and token.startswith("[") and token.endswith("]")
87
+
88
+
89
+ def _selector(token: str):
90
+ """A selector's conditions, [KEY=VALUE], [@KEY=VALUE] or [>KEY=VALUE] one or more times, or None when the token
91
+ is not one."""
92
+ if not _bracketed(token):
93
+ return None
94
+ conditions = []
95
+ for part in token[1:-1].split("]["):
96
+ key, equals, value = part.partition("=")
97
+ prefix = key[:1] if key[:1] in ("@", ">") else ""
98
+ name = key[len(prefix):]
99
+ if not equals or not name:
100
+ return None
101
+ conditions.append((prefix, name, value))
102
+ return conditions
103
+
104
+
105
+ def _has_child_text(member, key: str, value: str) -> bool:
106
+ """Whether an element has a child element named key whose text, its whitespace collapsed, is value."""
107
+ return _is_element(member) and any(
108
+ _is_element(child) and child["name"] == key and _collapse_whitespace(_element_text(child)) == value
109
+ for child in member["children"])
110
+
111
+
112
+ def _selects(member, conditions) -> bool:
113
+ """Whether an array member meets every condition; selectors compare strings only."""
114
+ if not isinstance(member, dict):
115
+ return False
116
+ for prefix, key, value in conditions:
117
+ if prefix == ">":
118
+ if not _has_child_text(member, key, value):
119
+ return False
120
+ continue
121
+ fields = member.get("attributes") if prefix == "@" else member
122
+ if not isinstance(fields, dict) or not isinstance(fields.get(key), str) or fields[key] != value:
123
+ return False
124
+ return True
125
+
126
+
127
+ def _step(items: list, token: str, last: bool):
128
+ """One step into an array, by index or by a selector that must match one member, or none when it is the last."""
129
+ if INDEX.fullmatch(token):
130
+ return ("member", items[int(token)]) if int(token) < len(items) else ("none", None)
131
+ conditions = _selector(token)
132
+ if conditions is None:
133
+ return ("unresolved", f"{token} is not a selector of the form [KEY=VALUE]") if _bracketed(token) else (
134
+ "none", None)
135
+ matched = [item for item in items if _selects(item, conditions)]
136
+ if len(matched) == 1:
137
+ return "member", matched[0]
138
+ if len(matched) > 1:
139
+ return "unresolved", f"{token} matches {len(matched)} members, not one"
140
+ return ("none" if last else "unresolved"), f"{token} matches no member"
141
+
142
+
143
+ def _locate(view, pointer: str):
144
+ """Where a pointer leads: ("value", value), ("none", why or None) or ("unresolved", problem), with the pointers
145
+ to the arrays a selector searched on the way."""
146
+ current, searched = view, []
147
+ segments = pointer[1:].split("/")
148
+ for position, segment in enumerate(segments):
149
+ token = segment.replace("~1", "/").replace("~0", "~")
150
+ if isinstance(current, list):
151
+ if not INDEX.fullmatch(token) and _selector(token) is not None:
152
+ searched.append("".join("/" + part for part in segments[:position]))
153
+ kind, found = _step(current, token, position == len(segments) - 1)
154
+ if kind != "member":
155
+ return kind, found, searched
156
+ current = found
157
+ elif isinstance(current, dict) and token in current:
158
+ current = current[token]
159
+ else:
160
+ return "none", None, searched
161
+ return "value", current, searched
162
+
163
+
164
+ def _number(value):
165
+ """A number, or a numeral string read as one; None for anything else, a boolean, or a numeral past the doubles."""
166
+ if isinstance(value, bool):
167
+ return None
168
+ if isinstance(value, (int, float)):
169
+ return value
170
+ if not isinstance(value, str) or not NUMERAL.fullmatch(value):
171
+ return None
172
+ number = float(value)
173
+ return number if math.isfinite(number) else None
174
+
175
+
176
+ def _entry_leaves_out(entry) -> bool:
177
+ return isinstance(entry, dict) and (isinstance(entry.get("view_error"), str) or (
178
+ entry.get("format") in ("text", "xml") and isinstance(entry.get("view"), dict)
179
+ and entry["view"].get("truncated") is True))
180
+
181
+
182
+ def _viewless_entry(view, pointer: str):
183
+ """The name of the entry whose view a pointer goes into when it has none, so its null is no JSON value, and
184
+ why: binary, unread, or of a format without a view; None when it has one."""
185
+ parts = pointer[1:].split("/")
186
+ if len(parts) < 3 or parts[0] != "entries" or parts[2] != "view":
187
+ return None
188
+ kind, item, _ = _locate(view, "/entries/" + parts[1])
189
+ if kind != "value" or not isinstance(item, dict):
190
+ return None
191
+ if isinstance(item.get("view_error"), str):
192
+ reason = f"has no view: {item['view_error']}"
193
+ elif item.get("format") == "binary":
194
+ reason = "is binary and has no view"
195
+ elif item.get("format") not in VIEW_FORMATS:
196
+ reason = "has no view"
197
+ else:
198
+ return None
199
+ return (item["name"] if isinstance(item.get("name"), str) else ""), reason
200
+
201
+
202
+ def _array_leaves_out(form, view, array: str) -> bool:
203
+ """Whether an array a selector searched may lack members: in a zip the listing or its entry's view, else the
204
+ view's own truncation."""
205
+ if form != "zip":
206
+ return _truncated(form, view)
207
+ if array == "/entries":
208
+ return isinstance(view, dict) and view.get("truncated") is True
209
+ return _zip_leaves_out(view, array)
210
+
211
+
212
+ def _zip_leaves_out(view, pointer: str) -> bool:
213
+ """Whether a zip view leaves out what a pointer reaches: for a pointer into one listed entry, only that entry."""
214
+ if not isinstance(view, dict):
215
+ return False
216
+ parts = pointer[1:].split("/")
217
+ if parts[0] == "entries" and len(parts) > 1:
218
+ kind, entry, _ = _locate(view, "/entries/" + parts[1])
219
+ return _entry_leaves_out(entry) if kind == "value" else view.get("truncated") is True
220
+ entries = view.get("entries") if isinstance(view.get("entries"), list) else []
221
+ return view.get("truncated") is True or any(_entry_leaves_out(entry) for entry in entries)
222
+
223
+
224
+ def _truncated(form, view) -> bool:
225
+ if not isinstance(view, dict):
226
+ return False
227
+ if form in ("text", "xml"):
228
+ return view.get("truncated") is True
229
+ if form != "sqlite":
230
+ return False
231
+ tables = view.get("tables")
232
+ return view.get("tables_truncated") is True or any(
233
+ isinstance(table, dict) and (table.get("truncated") is True or isinstance(table.get("error"), str))
234
+ for table in (tables.values() if isinstance(tables, dict) else []))
235
+
236
+
237
+ def _view_of(check, entry, form):
238
+ """The view, whether it is truncated, and why the check cannot read it; an absent file reads as empty."""
239
+ if entry is None:
240
+ return None, False, None
241
+ if isinstance(entry.get("error"), str):
242
+ return None, False, f"{check['file']} has no view: {entry['error']}"
243
+ if entry.get("format") in (None, "binary"):
244
+ return None, False, f"{check['file']} is binary and has no view"
245
+ if form is not None and entry.get("format") != form:
246
+ return None, False, f"{check['file']} is read as {entry.get('format')}, not {form}"
247
+ return entry.get("view"), _truncated(entry.get("format"), entry.get("view")), None
248
+
249
+
250
+ def _undecided(check):
251
+ return False, f"the view of {check['file']} is truncated, so what it leaves out is unknown"
252
+
253
+
254
+ def _compared(check, n: int, what: str):
255
+ operator = next(key for key in ("equals", "at_least", "at_most") if check.get(key) is not None)
256
+ expected = check[operator]
257
+ met = n == expected if operator == "equals" else n >= expected if operator == "at_least" else n <= expected
258
+ return met, f"{n} {what}, expected {operator.replace('_', ' ')} {expected}"
259
+
260
+
261
+ def _lines(check, entry):
262
+ view, truncated, problem = _view_of(check, entry, "text")
263
+ if problem is not None:
264
+ return False, problem
265
+ lines = view.get("lines") if isinstance(view, dict) and isinstance(view.get("lines"), list) else []
266
+ lines = [line for line in lines if isinstance(line, str)]
267
+ file = check["file"]
268
+ if check["kind"] == "lines_present":
269
+ missing = next((line for line in check["lines"] if line not in lines), None)
270
+ return (True, f"{file} has the line(s) {_shown(check['lines'])}") if missing is None else (
271
+ False, f"{file} has no line {_shown(missing)}")
272
+ if truncated:
273
+ return _undecided(check)
274
+ if check["kind"] == "lines_absent":
275
+ found = next((line for line in check["lines"] if line in lines), None)
276
+ return (True, f"{file} has none of the lines {_shown(check['lines'])}") if found is None else (
277
+ False, f"{file} still has the line {_shown(found)}")
278
+ if check.get("contains") is not None:
279
+ n = sum(1 for line in lines if check["contains"] in line)
280
+ return _compared(check, n, f"line(s) of {file} contain {_shown(check['contains'])}")
281
+ n = sum(1 for line in lines if line == check["exact"])
282
+ return _compared(check, n, f"line(s) of {file} match {_shown(check['exact'])}")
283
+
284
+
285
+ def _near(at: str, found, expected, tolerance):
286
+ """A value compared within a tolerance: numbers, and numeral strings, by their difference."""
287
+ number = _number(found)
288
+ within = f"within {_shown(tolerance)} of {_shown(expected)}"
289
+ if number is None:
290
+ return False, f"{at} is {_shown(found)}, not a number"
291
+ if abs(number - expected) <= tolerance:
292
+ return True, f"{at} is {_shown(found)}, {within}"
293
+ return False, f"{at} is {_shown(found)}, not {within}"
294
+
295
+
296
+ def _value(check, entry):
297
+ view, truncated, problem = _view_of(check, entry, None)
298
+ if problem is not None:
299
+ return False, problem
300
+ kind, found, searched = ("none", None, []) if entry is None else _locate(view, check["pointer"])
301
+ at = f"{check['file']} at {check['pointer']}"
302
+ viewless = _viewless_entry(view, check["pointer"]) if entry is not None and entry.get("format") == "zip" else None
303
+ if viewless is not None:
304
+ return False, f"{check['file']} entry {viewless[0]} {viewless[1]}"
305
+ # A selector tells one member from several only in an array the view holds whole.
306
+ if any(_array_leaves_out(entry.get("format"), view, array) for array in searched):
307
+ return _undecided(check)
308
+ if kind == "unresolved":
309
+ return False, f"{at}: {found}"
310
+ if entry is not None and entry.get("format") == "zip":
311
+ truncated = _zip_leaves_out(view, check["pointer"])
312
+ if check["kind"] == "value_equals" and isinstance(check["value"], (dict, list)) and truncated:
313
+ return _undecided(check)
314
+ if check["kind"] == "value_equals":
315
+ if kind == "none":
316
+ return False, f"{at} has no value" if found is None else f"{at}: {found}"
317
+ expected = check["value"]
318
+ if check.get("tolerance") is not None and isinstance(expected, (int, float)) and not isinstance(expected, bool):
319
+ return _near(at, found, expected, check["tolerance"])
320
+ if _same(found, check["value"]):
321
+ return True, f"{at} is {_shown(check['value'])}"
322
+ return False, f"{at} is {_shown(found)}, not {_shown(check['value'])}"
323
+ if truncated:
324
+ return _undecided(check)
325
+ return (True, f"{at} has no value") if kind == "none" else (False, f"{at} is {_shown(found)}")
326
+
327
+
328
+ def _collapse_whitespace(text: str) -> str:
329
+ """Each run of XML whitespace (space, tab, CR, LF) made one space, none at either end, as normalize-space()."""
330
+ return WHITESPACE_RUN.sub(" ", text).strip(" ")
331
+
332
+
333
+ def _text_at(view, pointer: str) -> bool:
334
+ """Whether a string a pointer reaches is text of the document: a member of an element's children (a text node)
335
+ or attributes (an attribute's value), rather than an element's name or a field of the DOCTYPE."""
336
+ segments = pointer.split("/")
337
+ if len(segments) < 3 or segments[-2] not in ("children", "attributes"):
338
+ return False
339
+ kind, owner, _ = _locate(view, "/".join(segments[:-2]))
340
+ return kind == "value" and _is_element(owner)
341
+
342
+
343
+ def _not_xml_entry(check, view):
344
+ """Why a text check's pointer into an archive goes into no XML entry's view, or None when it does or names an
345
+ entry not listed."""
346
+ parts = check["pointer"].split("/")
347
+ if len(parts) < 4 or parts[3] != "view":
348
+ return f"{check['file']} at {check['pointer']} does not point into an entry's view"
349
+ if parts[1] != "entries":
350
+ return None
351
+ kind, item, _ = _locate(view, "/entries/" + parts[2])
352
+ if kind != "value" or not isinstance(item, dict) or item.get("format") == "xml":
353
+ return None
354
+ # An entry without a view failed before this, so its format is one with a view.
355
+ name, form = (value if isinstance(value, str) else "" for value in (item.get("name"), item.get("format")))
356
+ return f"{check['file']} entry {name} is read as {form}, not xml"
357
+
358
+
359
+ def _whole_text(check, entry):
360
+ """An element's whole text, or a text node's, compared with the value or searched for it."""
361
+ view, truncated, problem = _view_of(check, entry, None)
362
+ if problem is not None:
363
+ return False, problem
364
+ at = f"{check['file']} at {check['pointer']}"
365
+ if entry is None:
366
+ return False, f"{at} has no value"
367
+ form = entry.get("format")
368
+ if form not in ("xml", "zip"):
369
+ return False, f"{check['file']} is read as {form}, not xml"
370
+ kind, found, searched = _locate(view, check["pointer"])
371
+ viewless = _viewless_entry(view, check["pointer"]) if form == "zip" else None
372
+ if viewless is not None:
373
+ return False, f"{check['file']} entry {viewless[0]} {viewless[1]}"
374
+ if any(_array_leaves_out(form, view, array) for array in searched):
375
+ return _undecided(check)
376
+ problem = _not_xml_entry(check, view) if form == "zip" else None
377
+ if problem is not None:
378
+ return False, problem
379
+ if kind == "unresolved":
380
+ return False, f"{at}: {found}"
381
+ if kind == "none":
382
+ return False, f"{at} has no value" if found is None else f"{at}: {found}"
383
+ # Only an element has attributes of its own and of its descendants to join.
384
+ attribute = check.get("text_attribute")
385
+ if not ((attribute is None and _text_at(view, check["pointer"])) if isinstance(found, str) else _is_element(found)):
386
+ what = "an element, a text node or an attribute value" if attribute is None else "an element"
387
+ return False, f"{at} is {_shown(found)}, not {what}"
388
+ # A text node is whole. An element's text in a cut view may lack what the cut dropped from its middle.
389
+ if form == "zip":
390
+ truncated = _zip_leaves_out(view, check["pointer"])
391
+ if not isinstance(found, str) and truncated:
392
+ return _undecided(check)
393
+ return _compared_text(check, at, _element_text(found, attribute))
394
+
395
+
396
+ def _compared_text(check, at: str, found: str):
397
+ """A text found at a pointer compared with the check's value or searched for it, both collapsed when it asks."""
398
+ collapse = check.get("normalize_whitespace") is True
399
+ text = _collapse_whitespace(found) if collapse else found
400
+ value = _collapse_whitespace(check["value"]) if collapse else check["value"]
401
+ attribute = check.get("text_attribute")
402
+ read = "" if attribute is None else f" in its {attribute} values"
403
+ how = read + (" with whitespace collapsed" if collapse else "")
404
+ if check["kind"] == "text_equals":
405
+ if text == value:
406
+ return True, f"{at} has the text {_shown(value)}{how}"
407
+ return False, f"{at} has the text {_shown(text)}{how}, not {_shown(value)}"
408
+ if value in text:
409
+ return True, f"{at} has text containing {_shown(value)}{how}"
410
+ return False, f"{at} has the text {_shown(text)}{how}, without {_shown(value)}"
411
+
412
+
413
+ def _members(check, entry):
414
+ """How many members of the array at a pointer, or of those a selector matches, compared with the expected
415
+ number."""
416
+ matching, pointer = check.get("matching"), check["pointer"]
417
+ view, truncated, problem = _view_of(check, entry, None)
418
+ if problem is not None:
419
+ return False, problem
420
+ form = None if entry is None else entry.get("format")
421
+ # The empty pointer names the whole view, as a JSON file whose top level is an array.
422
+ kind, found, searched = (("none", None, []) if entry is None else ("value", view, []) if pointer == ""
423
+ else _locate(view, pointer))
424
+ at = check["file"] if pointer == "" else f"{check['file']} at {pointer}"
425
+ viewless = _viewless_entry(view, pointer) if form == "zip" else None
426
+ if viewless is not None:
427
+ return False, f"{check['file']} entry {viewless[0]} {viewless[1]}"
428
+ if any(_array_leaves_out(form, view, array) for array in searched):
429
+ return _undecided(check)
430
+ if kind == "unresolved":
431
+ return False, f"{at}: {found}"
432
+ if kind == "none":
433
+ return False, f"{at} has no value" if found is None else f"{at}: {found}"
434
+ if not isinstance(found, list):
435
+ return False, f"{at} is {_shown(found)}, not an array"
436
+ # A count is decided only on an array the view holds whole.
437
+ if _array_leaves_out(form, view, pointer):
438
+ return _undecided(check)
439
+ # The parser refuses a matching that is no selector.
440
+ conditions = None if matching is None else _selector(matching)
441
+ n = len(found) if matching is None else sum(1 for item in found if conditions and _selects(item, conditions))
442
+ return _compared(check, n, f"member(s) of {at}" + ("" if matching is None else f" matching {matching}"))
443
+
444
+
445
+ def _rows(check, entry):
446
+ view, _, problem = _view_of(check, entry, "sqlite")
447
+ if problem is not None:
448
+ return False, problem
449
+ view = view if isinstance(view, dict) else {}
450
+ tables = view.get("tables") if isinstance(view.get("tables"), dict) else {}
451
+ table = tables[check["table"]] if check["table"] in tables else MISSING
452
+ name = f"{check['file']} table {check['table']}"
453
+ if table is MISSING and view.get("tables_truncated") is True:
454
+ return _undecided(check)
455
+ table = table if isinstance(table, dict) else {}
456
+ if isinstance(table.get("error"), str):
457
+ return False, f"{name} could not be read: {table['error']}"
458
+ columns = table.get("columns") if isinstance(table.get("columns"), list) else []
459
+ rows = table.get("rows") if isinstance(table.get("rows"), list) else []
460
+ where = check.get("where") or {}
461
+
462
+ def matches(row) -> bool:
463
+ return isinstance(row, list) and all(
464
+ column in columns and columns.index(column) < len(row) and _same(row[columns.index(column)], value)
465
+ for column, value in where.items())
466
+
467
+ n = sum(1 for row in rows if matches(row))
468
+ if check["kind"] == "row_present":
469
+ return (n > 0, f"{name} has a row with {_shown(where)}" if n > 0 else f"{name} has no row with {_shown(where)}")
470
+ if table.get("truncated") is True:
471
+ return _undecided(check)
472
+ if check["kind"] == "row_absent":
473
+ return (True, f"{name} has no row with {_shown(where)}") if n == 0 else (
474
+ False, f"{name} has {n} row(s) with {_shown(where)}")
475
+ return _compared(check, n, f"row(s) of {name}" + (f" with {_shown(where)}" if "where" in check else ""))
476
+
477
+
478
+ def _verdict(check, entry):
479
+ kind = check["kind"]
480
+ if kind == "file_present":
481
+ return (entry is not None, f"{check['file']} exists" if entry is not None else f"{check['file']} does not exist")
482
+ if kind == "file_absent":
483
+ return (entry is None, f"{check['file']} does not exist" if entry is None else f"{check['file']} exists")
484
+ if kind in ("lines_present", "lines_absent", "line_count"):
485
+ return _lines(check, entry)
486
+ if kind in ("value_equals", "value_absent"):
487
+ return _value(check, entry)
488
+ if kind in ("text_equals", "text_contains"):
489
+ return _whole_text(check, entry)
490
+ if kind == "member_count":
491
+ return _members(check, entry)
492
+ return _rows(check, entry)
493
+
494
+
495
+ def evaluate(checks: list, views: dict) -> list:
496
+ """One result per check against the views data/get returned, by home path."""
497
+ results = []
498
+ for check in checks:
499
+ passed, description = _verdict(check, views.get(check["file"]))
500
+ results.append({"id": check["id"], "result": passed, "description": description})
501
+ return results
502
+
503
+
504
+ def _files(answer) -> list:
505
+ """Each file data/get returned, by its home path or its place among the parts, with the SHA-256 of its bytes as
506
+ sent: what changes when the app saves."""
507
+ files = []
508
+ for index, part in enumerate(answer.parts):
509
+ if part.kind != "file":
510
+ continue
511
+ marker = (getattr(part, "metadata", None) or {}).get(DATA_OBJECTS)
512
+ path = marker.get("path") if isinstance(marker, dict) else None
513
+ content = getattr(part.file, "bytes", None) or getattr(part.file, "uri", None) or ""
514
+ files.append((path if isinstance(path, str) else f"#{index}", hashlib.sha256(content.encode()).hexdigest()))
515
+ return sorted(files)
516
+
517
+
518
+ async def _read(url):
519
+ answer = await protocol.get_data(url, timeout=120)
520
+ states = [part.data["state"] for part in answer.parts
521
+ if part.kind == "data" and isinstance(part.data.get("state"), dict)]
522
+ if not states:
523
+ raise RuntimeError(f"the {APP} app's data/get returned no state views")
524
+ return states[0], _files(answer)
525
+
526
+
527
+ async def _settled_views(url):
528
+ """The app's views once each file's bytes have held for SETTLE_WINDOW_S, counted from the read that returned them,
529
+ read every SETTLE_INTERVAL_S; else the last completed read's. No read starts SETTLE_BOUND_S or more after the first
530
+ began, and one still running then is cut. Also whether the files had held, and whether a read was cut."""
531
+ start = time.monotonic()
532
+ # The first read is the one a grade needs, so only its own timeout bounds it.
533
+ views, files = await _read(url)
534
+ # Offsets from the first read's start: when the last completed read began, and when a read first returned the
535
+ # bytes it holds.
536
+ began, since = 0.0, time.monotonic() - start
537
+ while began - since < SETTLE_WINDOW_S:
538
+ # Reads come an interval apart, and the one that can settle the files as soon as the window allows.
539
+ at = max(min(began + SETTLE_INTERVAL_S, since + SETTLE_WINDOW_S), time.monotonic() - start)
540
+ if at >= SETTLE_BOUND_S:
541
+ return views, False, False
542
+ await asyncio.sleep(max(0.0, at - (time.monotonic() - start)))
543
+ at = max(at, time.monotonic() - start)
544
+ if at >= SETTLE_BOUND_S:
545
+ return views, False, False
546
+ try:
547
+ latest_views, latest = await asyncio.wait_for(_read(url), SETTLE_BOUND_S - at)
548
+ except asyncio.TimeoutError:
549
+ return views, False, True
550
+ began, views = at, latest_views
551
+ if latest != files:
552
+ since, files = time.monotonic() - start, latest
553
+ return views, True, False
554
+
555
+
556
+ async def verify(mcp_url, env_url):
557
+ card = await protocol.get_card(env_url)
558
+ child = protocol.find_child(card, APP)
559
+ if child is None:
560
+ raise RuntimeError(f"the computer at {env_url} lists no app named {APP}")
561
+ views, settled, read_cut = await _settled_views(env_url + (child.get("url") or RPC_PATH).removesuffix(RPC_PATH))
562
+ return [{**result, "settled": settled, "read_cut": read_cut} for result in evaluate(CHECKS, views)]
bundle/envs/lyx/SKILL.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ description: Use LyX on this Linux desktop; its window has class lyx.
3
+ ---
4
+
5
+ # LyX
6
+
7
+ LyX is open on the desktop at boot. Its window's class is `lyx`.
8
+
9
+ Its files live under `~/.config/LyX`, `~/.lyx`, `~/Documents`. Work through the application's own
10
+ window and dialogs; the result is read from those files.
bundle/envs/lyx/env.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ type = "computer_app"
2
+ module = "lyx_app.py:Lyx"
3
+ computer = "ubuntu-24.04"
4
+ driver = "reference"
bundle/envs/lyx/lyx_app.py ADDED
@@ -0,0 +1,903 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """LyX as an agentenv computer app, exported by REA from a desktop application capture.
2
+
3
+ Package: lyx (captured at 2.4.0~RC3-1build4). Capture Evidence: ev_a1721a9bb396409192540109192c45c9a2186d0ed4a2c1cb329636edf97249ce.
4
+ The seed was made for the task, as saved at checkpoint seed.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import contextlib
10
+ import copy
11
+ import hashlib
12
+ import io
13
+ import json
14
+ import math
15
+ import os
16
+ import re
17
+ import sqlite3
18
+ import struct
19
+ import subprocess
20
+ import sys
21
+ import tempfile
22
+ import zipfile
23
+ import zlib
24
+ from pathlib import Path
25
+ from xml.parsers import expat
26
+
27
+ from agentenv_protocol import add_data, get_data, reset_data
28
+ from agentenv_protocol.computer import AptSource, ComputerAppEnvironment, Download, Launch, Packages, Ready, RunScript, computer_app, linux, ready_check
29
+ from agentenv_protocol.computer.app_data import INITIAL, add, get, in_thread, keep_initial, reset
30
+ from agentenv_protocol.types import DataPart
31
+
32
+ HERE = Path(__file__).resolve().parent
33
+ SEED_HOME = "/home/user"
34
+ PATHS = [".config/LyX", ".lyx", "Documents"]
35
+ DCONF = ""
36
+ TEXT_SEEDS = frozenset([".config/LyX/lyx.conf", ".lyx/bbxFiles.lst", ".lyx/bibFiles.lst", ".lyx/bstFiles.lst", ".lyx/cbxFiles.lst", ".lyx/clsFiles.lst", ".lyx/configure.log", ".lyx/lyxciteengines.lst", ".lyx/lyxmodules.lst", ".lyx/lyxrc.defaults", ".lyx/packages.lst", ".lyx/session", ".lyx/styFiles.lst", ".lyx/textclass.lst", ".lyx/xtemplates.lst", "Documents/garden-report.lyx"])
37
+ WINDOW_CLASS = "lyx"
38
+
39
+ XML_SUFFIXES = (".xml", ".xbel", ".plist", ".svg", ".ui")
40
+ GROUP_HEADER = re.compile(r"^\[([^\]]+)\]$")
41
+ LINE_BREAK = re.compile(r"\r?\n")
42
+ SQLITE_HEADER = b"SQLite format 3\x00"
43
+ GVDB_HEADER = b"GVariant"
44
+ ZIP_HEADER = b"PK\x03\x04"
45
+ GZIP_HEADER = b"\x1f\x8b\x08"
46
+ XML_SPACE = "xml:space"
47
+ MAX_VIEW_BYTES = 64 * 1024 * 1024
48
+ MAX_SAFE_INTEGER = 2**53 - 1
49
+ MAX_TABLES = 64
50
+ MAX_ROWS = 500
51
+ MAX_LINES = 5000
52
+ MAX_XML_NODES = 5000
53
+ MAX_XML_DEPTH = 64
54
+ SQLITE_BUSY_S = 0.25
55
+ MAX_PARSED_BYTES = 4 * 1024 * 1024
56
+ PARSED_TOO_LARGE = "larger than the 4 MiB limit for JSON and key file views"
57
+ MAX_JSON_VIEW_DEPTH = 500
58
+ JSON_TOO_DEEP = f"nested deeper than the {MAX_JSON_VIEW_DEPTH} levels a JSON view keeps"
59
+ #: A JSON token after any whitespace, by group: an opening, a closing, a comma, a colon, a string's quote, or a number
60
+ #: or literal. Strings are read by json's scanner, since a pattern repeating per escape holds memory for each.
61
+ JSON_TOKEN = re.compile(r'[ \t\n\r]*(?:([\[{])|([\]}])|(,)|(:)|(")|(-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?'
62
+ r"|true|false|null))")
63
+ JSON_SPACE = re.compile(r"[ \t\n\r]*")
64
+
65
+
66
+ def _respelled(text: str, home: Path) -> str:
67
+ """The seed's home path respelled to this computer's home, only where a whole path segment ends after it."""
68
+ return re.sub(re.escape(SEED_HOME) + r"(?![\w.@+~-])", lambda _: str(home), text)
69
+
70
+
71
+ def _respelled_utf16(data: bytes, home: Path) -> bytes:
72
+ """A UTF-16 text file with a byte-order mark respelled like a text seed, its mark kept; any other bytes as given."""
73
+ for mark, codec in ((b"\xff\xfe", "utf-16-le"), (b"\xfe\xff", "utf-16-be")):
74
+ if data.startswith(mark):
75
+ try:
76
+ text = data[len(mark):].decode(codec)
77
+ except UnicodeDecodeError:
78
+ return data
79
+ return mark + _respelled(text, home).encode(codec) if SEED_HOME in text else data
80
+ return data
81
+
82
+
83
+ #: What marks a window as not yet the app's own: skipping the taskbar, as splash screens and dialogs do, or a splash type.
84
+ SPLASH_MARKS = ("_NET_WM_STATE_SKIP_TASKBAR", "_NET_WM_WINDOW_TYPE_SPLASH")
85
+
86
+
87
+ def _taskbar_window(window_class: str) -> bool:
88
+ """Whether a top-level window of the given class that the taskbar lists is shown; a splash screen or a dialog
89
+ skips the taskbar."""
90
+ def xprop(*args: str) -> str:
91
+ done = subprocess.run(["xprop", *args], capture_output=True, text=True)
92
+ return done.stdout if done.returncode == 0 else ""
93
+
94
+ for window in re.findall(r"0x[0-9a-f]+", xprop("-root", "_NET_CLIENT_LIST").partition("#")[2]):
95
+ props = xprop("-id", window, "WM_CLASS", "_NET_WM_STATE", "_NET_WM_WINDOW_TYPE")
96
+ classes = re.findall(r'"((?:[^"\\]|\\.)*)"', props.partition("WM_CLASS")[2].split("\n", 1)[0])
97
+ if window_class in classes and not any(mark in props for mark in SPLASH_MARKS):
98
+ return True
99
+ return False
100
+
101
+
102
+ def _seed_home(home: Path) -> None:
103
+ """Copy the captured files into this computer's home; text files, UTF-16 ones too, have the seed's home path
104
+ respelled."""
105
+ seed = HERE / "seed"
106
+ for source in sorted(seed.rglob("*")) if seed.is_dir() else []:
107
+ if not source.is_file():
108
+ continue
109
+ relative = source.relative_to(seed).as_posix()
110
+ target = home / relative
111
+ target.parent.mkdir(parents=True, exist_ok=True)
112
+ data = source.read_bytes()
113
+ if relative in TEXT_SEEDS:
114
+ data = _respelled(data.decode("utf-8"), home).encode("utf-8")
115
+ else:
116
+ data = _respelled_utf16(data, home)
117
+ target.write_bytes(data)
118
+
119
+
120
+ def _dconf(arguments: list, environment: dict) -> str:
121
+ return subprocess.run(["dconf", *arguments], env={**os.environ, **environment}, capture_output=True, text=True,
122
+ check=True).stdout
123
+
124
+
125
+ def _load_dconf(home: Path) -> None:
126
+ """Compile the captured dconf keys into the user database without D-Bus, which is not up yet. Keys already there
127
+ stay unless captured: dconf compile reads the key files in name order and a later file wins. A failure is
128
+ reported and the app starts without them."""
129
+ if not DCONF:
130
+ return
131
+ database = home / ".config" / "dconf" / "user"
132
+ try:
133
+ database.parent.mkdir(parents=True, exist_ok=True)
134
+ with tempfile.TemporaryDirectory(dir=database.parent) as scratch:
135
+ keyfiles = Path(scratch, "keyfiles")
136
+ keyfiles.mkdir()
137
+ if database.is_file():
138
+ profile = Path(scratch, "profile")
139
+ profile.write_text(f"file-db:{database}\n")
140
+ existing = _dconf(["dump", "/"], {"DCONF_PROFILE": str(profile)})
141
+ (keyfiles / "00-existing").write_text(existing)
142
+ (keyfiles / "01-captured").write_text(_respelled(DCONF, home))
143
+ _dconf(["compile", str(Path(scratch, "user")), str(keyfiles)], {})
144
+ os.replace(Path(scratch, "user"), database)
145
+ except (OSError, subprocess.CalledProcessError) as error:
146
+ detail = (getattr(error, "stderr", None) or "").strip().splitlines()
147
+ print(f"warning: the captured dconf settings were not loaded: {detail[-1] if detail else error}",
148
+ file=sys.stderr)
149
+
150
+
151
+ def _sqlite_text(data: bytes):
152
+ text = data.decode("utf-8", "replace")
153
+ return {"text": text, "bytes_hex": data.hex()} if "�" in text else text
154
+
155
+
156
+ def _cell(value):
157
+ if isinstance(value, bytes):
158
+ return {"blob_hex": value.hex()}
159
+ if isinstance(value, int) and abs(value) > MAX_SAFE_INTEGER:
160
+ return {"integer": str(value)}
161
+ # JSON has no infinities or negative zero; REA's SQLite reader spells them as strings.
162
+ if isinstance(value, float) and (math.isinf(value) or (value == 0 and math.copysign(1, value) < 0)):
163
+ return "Infinity" if value == math.inf else "-Infinity" if value == -math.inf else "-0"
164
+ return value
165
+
166
+
167
+ def _table(db, name: str, primary_key: list) -> dict:
168
+ quoted = '"' + name.replace('"', '""') + '"'
169
+ cursor = db.execute(f"select * from main.{quoted} not indexed limit {MAX_ROWS + 1}")
170
+ rows = [[_cell(value) for value in row] for row in cursor]
171
+ return {"columns": [column[0] for column in cursor.description], "primary_key": primary_key,
172
+ "rows": rows[:MAX_ROWS], "truncated": len(rows) > MAX_ROWS}
173
+
174
+
175
+ def _sqlite(path: Path) -> dict:
176
+ """The database's ordinary tables, in schema order, up to REA's table and row limits."""
177
+ with contextlib.closing(sqlite3.connect(path.resolve().as_uri() + "?mode=ro", uri=True, timeout=SQLITE_BUSY_S)) as db:
178
+ kinds = dict(db.execute("select name, type from pragma_table_list where schema = 'main'"))
179
+ names = [name for (name,) in db.execute("select name from sqlite_schema where type = 'table'")
180
+ if kinds.get(name) == "table"]
181
+ keys = {name: [key for (key,) in db.execute(
182
+ "select name from pragma_table_info(?, 'main') where pk > 0 order by pk", (name,))]
183
+ for name in names[:MAX_TABLES]}
184
+ db.text_factory = _sqlite_text
185
+ tables = {name: _table(db, name, keys[name]) for name in names[:MAX_TABLES]}
186
+ cut = len(names) > MAX_TABLES
187
+ return {"format": "sqlite", "view": {"tables": tables, "tables_truncated": cut},
188
+ "truncated": cut or any(table["truncated"] for table in tables.values())}
189
+
190
+
191
+ def _text(text: str) -> dict:
192
+ lines = LINE_BREAK.split(text)
193
+ if lines[-1] == "":
194
+ lines.pop()
195
+ view = {"lines": lines[:MAX_LINES], "line_count": len(lines), "truncated": len(lines) > MAX_LINES}
196
+ return {"format": "text", "view": view, "truncated": view["truncated"]}
197
+
198
+
199
+ def _keyfile_line(raw: str) -> tuple:
200
+ """A key file line as REA reads it: skip (blank or comment), group, entry or other."""
201
+ line = raw.strip()
202
+ if not line or line[0] in "#;":
203
+ return ("skip",)
204
+ header = GROUP_HEADER.match(line)
205
+ if header:
206
+ return ("group", header.group(1))
207
+ key, equals, value = line.partition("=")
208
+ return ("entry", key.strip(), value.strip()) if equals and key else ("other",)
209
+
210
+
211
+ def _each_line(text: str):
212
+ """Each line of text as REA splits them, one at a time."""
213
+ start = 0
214
+ for line_break in LINE_BREAK.finditer(text):
215
+ yield text[start:line_break.start()]
216
+ start = line_break.end()
217
+ yield text[start:]
218
+
219
+
220
+ def _is_keyfile(text: str) -> bool:
221
+ """REA's rule: at least one group, and nothing a key file view would drop. Lines are read one at a time, stopping
222
+ at the first it would drop."""
223
+ group = False
224
+ for line in _each_line(text):
225
+ kind = _keyfile_line(line)[0]
226
+ if kind == "other":
227
+ return False
228
+ group = group or kind == "group"
229
+ return group
230
+
231
+
232
+ def _keyfile(text: str) -> dict:
233
+ groups, group = {}, ""
234
+ for line in map(_keyfile_line, LINE_BREAK.split(text)):
235
+ if line[0] == "group":
236
+ group = line[1]
237
+ groups.setdefault(group, {})
238
+ elif line[0] == "entry":
239
+ groups.setdefault(group, {})[line[1]] = line[2]
240
+ return groups
241
+
242
+
243
+ #: XML's whitespace, which alone can be formatting between elements; Unicode's wider set is text.
244
+ XML_WHITESPACE = " \t\r\n"
245
+ PREDEFINED_ENTITIES = ("amp", "lt", "gt", "apos", "quot")
246
+ ENTITY_REFERENCE = re.compile(r"&([^#;][^;]*);")
247
+
248
+
249
+ def _expat(namespaces: bool, doctype=None):
250
+ """An expat parser that reads a DOCTYPE as REA does: one with an internal subset, which could declare entities,
251
+ is refused, the DTD it names is never read, and a reference to an entity other than XML's five is refused where
252
+ expat would skip it. With namespaces it also enforces their rules, as REA's parser does, and without them it
253
+ reports names as the document spells them. doctype, when given, receives the declared name and identifiers."""
254
+ parser = expat.ParserCreate(namespace_separator=" " if namespaces else None)
255
+ parser.SetParamEntityParsing(expat.XML_PARAM_ENTITY_PARSING_NEVER)
256
+
257
+ def declared(name: str, system_id, public_id, internal_subset: bool) -> None:
258
+ if internal_subset:
259
+ raise ValueError("the document's DOCTYPE has an internal subset")
260
+ if doctype is not None:
261
+ doctype({"name": name, "public_id": public_id, "system_id": system_id})
262
+
263
+ def undeclared(name: str, _parameter: bool) -> None:
264
+ raise ValueError(f"the document refers to the undeclared entity {name}")
265
+
266
+ def external(*_) -> None:
267
+ raise ValueError("the document refers to an external entity")
268
+
269
+ parser.StartDoctypeDeclHandler = declared
270
+ parser.SkippedEntityHandler = undeclared
271
+ parser.ExternalEntityRefHandler = external
272
+ return parser
273
+
274
+
275
+ def _check_tag(markup: str) -> None:
276
+ """expat leaves an undeclared entity out of an attribute value without a word when a DOCTYPE names a DTD; REA's
277
+ parser refuses it. With text taken by its own handler, a start tag is the only markup expat passes here that
278
+ starts with < and a name, and it passes it whole."""
279
+ if markup[:1] == "<" and markup[1:2] not in ("!", "?", "/"):
280
+ for name in ENTITY_REFERENCE.findall(markup):
281
+ if name not in PREDEFINED_ENTITIES:
282
+ raise ValueError(f"the document refers to the undeclared entity {name}")
283
+
284
+
285
+ def _ignore_text(_text: str) -> None:
286
+ pass
287
+
288
+
289
+ class _XmlReader:
290
+ """REA's XML view built as expat reads: names as spelled, declarations as attributes, text split where REA's DOM
291
+ splits it (an empty CDATA section joins the text around it), and each node counted against REA's limits."""
292
+
293
+ def __init__(self) -> None:
294
+ self.remaining, self.truncated, self.root, self.doctype = MAX_XML_NODES, False, None, None
295
+ #: Per open element: its view or None when left out, whether xml:space="preserve" applies inside it, whether
296
+ #: it holds an element, and whether it holds text other than whitespace: whitespace-only text is formatting
297
+ #: only in an element that holds elements and no such text.
298
+ self.open = []
299
+ self.text, self.cdata = [], None
300
+
301
+ def read(self, text: str) -> None:
302
+ parser = _expat(False, self._doctype)
303
+ parser.buffer_text = True
304
+ parser.StartElementHandler, parser.EndElementHandler = self._start, self._end
305
+ parser.CharacterDataHandler = self._data
306
+ parser.StartCdataSectionHandler, parser.EndCdataSectionHandler = self._cdata_start, self._cdata_end
307
+ parser.CommentHandler = parser.ProcessingInstructionHandler = self._other
308
+ parser.Parse(text, True)
309
+
310
+ def _doctype(self, declared: dict) -> None:
311
+ self.doctype = declared
312
+
313
+ def _admit(self) -> bool:
314
+ """Whether the next node inside a kept element is kept, within the node and depth limits; one past them
315
+ marks the view truncated."""
316
+ if self.open and self.open[-1][0] is None:
317
+ return False
318
+ if self.remaining <= 0 or len(self.open) > MAX_XML_DEPTH:
319
+ self.truncated = True
320
+ return False
321
+ self.remaining -= 1
322
+ return True
323
+
324
+ def _text_node(self, text: str) -> None:
325
+ if self.open and text.strip(XML_WHITESPACE):
326
+ self.open[-1][3] = True
327
+ if self._admit():
328
+ self.open[-1][0]["children"].append(text)
329
+
330
+ def _flush(self) -> None:
331
+ if self.text:
332
+ text, self.text = "".join(self.text), []
333
+ self._text_node(text)
334
+
335
+ def _data(self, text: str) -> None:
336
+ (self.text if self.cdata is None else self.cdata).append(text)
337
+
338
+ def _cdata_start(self) -> None:
339
+ self.cdata = []
340
+
341
+ def _cdata_end(self) -> None:
342
+ text, self.cdata = "".join(self.cdata), None
343
+ if text:
344
+ self._flush()
345
+ self._text_node(text)
346
+
347
+ def _other(self, *_) -> None:
348
+ """A comment or processing instruction, counted like any node and never kept."""
349
+ self._flush()
350
+ if self.open:
351
+ self._admit()
352
+
353
+ def _start(self, name: str, attributes: dict) -> None:
354
+ self._flush()
355
+ parent = self.open[-1] if self.open else [None, False, False, False]
356
+ parent[2] = True
357
+ view = {"name": name, "attributes": attributes, "children": []} if self._admit() else None
358
+ if view is not None and parent[0] is not None:
359
+ parent[0]["children"].append(view)
360
+ space = attributes.get(XML_SPACE)
361
+ self.open.append([view, space == "preserve" if space else parent[1], False, False])
362
+
363
+ def _end(self, _name: str) -> None:
364
+ self._flush()
365
+ view, preserve, holds_element, holds_text = self.open.pop()
366
+ if view is not None and holds_element and not holds_text and not preserve:
367
+ view["children"] = [child for child in view["children"]
368
+ if not isinstance(child, str) or child.strip(XML_WHITESPACE)]
369
+ if not self.open:
370
+ self.root = view
371
+
372
+
373
+ def _xml_view(text: str):
374
+ """REA's XML view, or None for a document REA's parser refuses: a pass with namespaces checks the document as REA's
375
+ parser does, then a pass without them reads names as spelled, as REA's view keeps them, and the DOCTYPE."""
376
+ reader = _XmlReader()
377
+ try:
378
+ check = _expat(True)
379
+ check.CharacterDataHandler, check.DefaultHandler = _ignore_text, _check_tag
380
+ check.Parse(text, True)
381
+ reader.read(text)
382
+ except (expat.ExpatError, ValueError):
383
+ return None
384
+ view = {"root": reader.root, "truncated": reader.truncated}
385
+ return view if reader.doctype is None else {"doctype": reader.doctype, **view}
386
+
387
+
388
+ def _not_json(constant: str):
389
+ raise ValueError(f"{constant} is not JSON")
390
+
391
+
392
+ class _Inexact(Exception):
393
+ """A JSON number that REA's state view refuses, since reading it would change it."""
394
+
395
+
396
+ def _digits(text: str) -> str:
397
+ return re.split(r"[eE]", text.lstrip("-"))[0].replace(".", "").strip("0") or "0"
398
+
399
+
400
+ def _js_string(value: float) -> str:
401
+ """How JavaScript's String() writes a finite double: an integer below 1e21 in full, any other in shortest form."""
402
+ return str(int(value)) if value.is_integer() and abs(value) < 1e21 else repr(value)
403
+
404
+
405
+ def _safe_number(text: str) -> bool:
406
+ """lossless-json's isSafeNumber: an integer spelling within 2^53, or a float spelling that keeps its digits."""
407
+ if re.fullmatch(r"-?[0-9]+", text):
408
+ return len(text.lstrip("-")) <= 16 and abs(int(text)) <= MAX_SAFE_INTEGER
409
+ value = float(text)
410
+ if not math.isfinite(value):
411
+ return False
412
+ written = _js_string(value)
413
+ return written == text or _digits(written) == _digits(text)
414
+
415
+
416
+ def _exact_number(text: str):
417
+ """A JSON number read only when reading it changes nothing, as REA's state view rules: its spelling and its
418
+ written-back form both safe, and not -0."""
419
+ value = float(text)
420
+ if (not _safe_number(text) or not math.isfinite(value) or not _safe_number(_js_string(value))
421
+ or (value == 0 and math.copysign(1, value) < 0)):
422
+ raise _Inexact(text)
423
+ return int(text) if re.fullmatch(r"-?[0-9]+", text) else value
424
+
425
+
426
+ _INEXACT = object()
427
+ _LEVEL_END = object()
428
+
429
+
430
+ def _number_or_mark(spelling: str):
431
+ """A JSON number read exactly, or a mark for one REA's state view refuses."""
432
+ try:
433
+ return _exact_number(spelling)
434
+ except _Inexact:
435
+ return _INEXACT
436
+
437
+
438
+ def _holds_inexact(value) -> bool:
439
+ """Whether a parsed JSON value still holds a marked number once duplicate keys kept their last value; one
440
+ iterator per nesting level, so no child list is copied."""
441
+ levels = [iter((value,))]
442
+ while levels:
443
+ item = next(levels[-1], _LEVEL_END)
444
+ if item is _LEVEL_END:
445
+ levels.pop()
446
+ elif item is _INEXACT:
447
+ return True
448
+ elif isinstance(item, dict):
449
+ levels.append(iter(item.values()))
450
+ elif isinstance(item, list):
451
+ levels.append(iter(item))
452
+ return False
453
+
454
+
455
+ def _deeper_than(root, limit: int) -> bool:
456
+ """Whether a parsed JSON value nests deeper than a limit, as REA checks it: a value's depth is the number of
457
+ iterators open above it, one per nesting level, so no child list is copied."""
458
+ levels = [iter((root,))]
459
+ while levels:
460
+ item = next(levels[-1], _LEVEL_END)
461
+ if item is _LEVEL_END:
462
+ levels.pop()
463
+ elif len(levels) - 1 > limit:
464
+ return True
465
+ elif isinstance(item, dict):
466
+ levels.append(iter(item.values()))
467
+ elif isinstance(item, list):
468
+ levels.append(iter(item))
469
+ return False
470
+
471
+
472
+ def _is_json(text: str) -> bool:
473
+ """Whether text is one JSON value as REA's state view reads it, checked a token at a time without building it or
474
+ recursing: it holds a byte per open container and one string at a time, so text too deep for Python's parser or
475
+ too large to parse into a view is still told apart from other text."""
476
+ containers, expect, empty, at = bytearray(), "value", False, 0
477
+ while True:
478
+ token = JSON_TOKEN.match(text, at)
479
+ if token is None:
480
+ break
481
+ kind, at = token.lastindex, token.end()
482
+ if kind == 5:
483
+ try:
484
+ at = json.decoder.scanstring(text, at)[1]
485
+ except ValueError:
486
+ return False
487
+ if kind == 1 and expect == "value":
488
+ containers.append(ord(text[at - 1]))
489
+ expect, empty = ("value" if text[at - 1] == "[" else "key"), True
490
+ # A closing bracket's code is its opening's plus two.
491
+ elif kind == 2 and (expect == "after" or empty) and containers and containers[-1] == ord(text[at - 1]) - 2:
492
+ containers.pop()
493
+ expect, empty = "after", False
494
+ elif kind == 3 and expect == "after" and containers:
495
+ expect = "value" if containers[-1] == ord("[") else "key"
496
+ elif kind == 4 and expect == "colon":
497
+ expect = "value"
498
+ elif kind >= 5 and (expect == "value" or (kind == 5 and expect == "key")):
499
+ expect, empty = ("colon" if expect == "key" else "after"), False
500
+ else:
501
+ return False
502
+ return expect == "after" and not containers and JSON_SPACE.fullmatch(text, at) is not None
503
+
504
+
505
+ def _json_view(text: str, size: int):
506
+ """A JSON text's format and view, or why it has none, as REA reads it; None when it is not JSON. Text over the
507
+ parsed-view limit, or nested past Python's recursion limit, is told apart without building its value."""
508
+ if size > MAX_PARSED_BYTES:
509
+ return {"format": "json", "view": None, "error": PARSED_TOO_LARGE} if _is_json(text) else None
510
+ # The whole text must parse, and duplicate keys settle, before an inexact number makes it JSON with an error.
511
+ try:
512
+ view = json.loads(text, parse_constant=_not_json, parse_float=_number_or_mark, parse_int=_number_or_mark)
513
+ except RecursionError:
514
+ # Nesting too deep for Python to parse is far deeper than REA's view keeps, once the rest of it is JSON too.
515
+ return {"format": "json", "view": None, "error": JSON_TOO_DEEP} if _is_json(text) else None
516
+ except ValueError:
517
+ return None
518
+ if _holds_inexact(view):
519
+ return {"format": "json", "view": None,
520
+ "error": "a number in it cannot be read exactly, such as an integer above 2^53"}
521
+ if _deeper_than(view, MAX_JSON_VIEW_DEPTH):
522
+ return {"format": "json", "view": None, "error": JSON_TOO_DEEP}
523
+ return {"format": "json", "view": view, "truncated": False}
524
+
525
+
526
+ def _text_view(name: str, text: str, size: int) -> dict:
527
+ """The format REA's state view detects for decoded text of size bytes, and its view; a JSON or key file over the
528
+ parsed-view limit is refused before its value is built."""
529
+ trimmed = re.sub(r"^[\s]+", "", text)
530
+ if name.endswith(".json") or trimmed[:1] in ("[", "{"):
531
+ view = _json_view(text, size)
532
+ if view is not None:
533
+ return view
534
+ lowered = name.lower()
535
+ # Text that opens with an element is XML if it parses, whatever the file is called, as a Freeplane map.
536
+ if lowered.endswith(XML_SUFFIXES) or trimmed.startswith("<?xml") or re.match(r"<[A-Za-z_:]", trimmed):
537
+ view = _xml_view(text)
538
+ return _text(text) if view is None else {"format": "xml", "view": view, "truncated": view["truncated"]}
539
+ if _is_keyfile(text):
540
+ if size > MAX_PARSED_BYTES:
541
+ return {"format": "keyfile", "view": None, "error": PARSED_TOO_LARGE}
542
+ return {"format": "keyfile", "view": {"groups": _keyfile(text)}, "truncated": False}
543
+ return _text(text)
544
+
545
+
546
+ def _bytes_view(name: str, data: bytes) -> dict:
547
+ """The view of a document that is no database or archive: its text's, or none when it is binary."""
548
+ try:
549
+ text = data.decode("utf-8-sig") if b"\x00" not in data[:8192] else None
550
+ except UnicodeDecodeError:
551
+ text = None
552
+ if text is None:
553
+ return {"format": "binary", "view": None, "truncated": False}
554
+ return _text_view(name, text, len(data))
555
+
556
+
557
+ def _view(path: Path) -> dict:
558
+ """A typed JSON view of one file in the shapes of REA's state view; truncated says the view is partial."""
559
+ too_large = {"format": None, "view": None, "error": "larger than 64 MiB, the most the view reads"}
560
+ if path.stat().st_size > MAX_VIEW_BYTES:
561
+ return too_large
562
+ with path.open("rb") as file:
563
+ data = file.read(8192)
564
+ whole = data.startswith(GZIP_HEADER) or (not data.startswith(SQLITE_HEADER) and b"\x00" not in data)
565
+ data += file.read(MAX_VIEW_BYTES + 1 - len(data)) if whole else b""
566
+ if data.startswith(SQLITE_HEADER):
567
+ return _sqlite(path)
568
+ if data.startswith(ZIP_HEADER):
569
+ with path.open("rb") as file:
570
+ return _zip(file, os.fstat(file.fileno()).st_size)
571
+ if len(data) > MAX_VIEW_BYTES:
572
+ return too_large
573
+ if data.startswith(GZIP_HEADER):
574
+ return _gzip(path.name, data)
575
+ return _bytes_view(path.name, data)
576
+
577
+
578
+ def _views(home: Path, paths: list) -> dict:
579
+ """A view of every file under the app's paths, keyed by its home-relative path."""
580
+ files = {}
581
+ for owned in paths:
582
+ root = home / owned
583
+ candidates = [root] if root.is_file() else sorted(root.rglob("*")) if root.is_dir() else []
584
+ for path in candidates:
585
+ if path.is_file() and not path.is_symlink():
586
+ key = path.relative_to(home).as_posix()
587
+ try:
588
+ files[key] = _view(path)
589
+ except (OSError, ValueError, sqlite3.Error, RecursionError) as error:
590
+ files[key] = {"format": None, "view": None, "error": str(error)}
591
+ return files
592
+
593
+ MAX_ZIP_ENTRIES = 1000
594
+ MAX_ZIP_ENTRY_BYTES = 16 * 1024 * 1024
595
+ MAX_ZIP_BYTES = 64 * 1024 * 1024
596
+ MAX_ZIP_RATIO = 100
597
+ ZIP_READ_CHUNK = 64 * 1024
598
+ #: Small, since the end of each gzip member copies what is left of the piece it was read from.
599
+ GZIP_READ_CHUNK = 4 * 1024
600
+ ZIP_END = b"PK\x05\x06"
601
+ ZIP_CENTRAL = b"PK\x01\x02"
602
+ ZIP64_LOCATOR = b"PK\x06\x07"
603
+ ZIP64_END = b"PK\x06\x06"
604
+ #: Formats an archive entry may have whose reader needs a tool, a worker or another archive opened.
605
+ NOT_READ_INSIDE = ((SQLITE_HEADER, "sqlite", "a SQLite database"), (GVDB_HEADER, "dconf", "a dconf database"),
606
+ (ZIP_HEADER, "zip", "an archive"))
607
+
608
+
609
+ def _entry_view(name: str, data: bytes) -> dict:
610
+ """An archive entry's format and view by the rules a file's follow; a database or an archive inside is not
611
+ read."""
612
+ for header, form, inside in NOT_READ_INSIDE:
613
+ if data.startswith(header):
614
+ return {"format": form, "view": None, "error": f"{inside} inside an archive is not read"}
615
+ return _bytes_view(name, data)
616
+
617
+
618
+ def _zip_refusal(info, spent: int):
619
+ """Why an entry is not read, checked in REA's order, or None; spent is the archive's bytes read so far."""
620
+ if info.flag_bits & 0x1:
621
+ return "encrypted, so it is not read"
622
+ if info.compress_type not in (zipfile.ZIP_STORED, zipfile.ZIP_DEFLATED):
623
+ return f"compressed with method {info.compress_type}, which the view does not read"
624
+ if info.file_size > MAX_ZIP_ENTRY_BYTES:
625
+ return "larger than the 16 MiB an entry's view reads"
626
+ if info.file_size > MAX_ZIP_RATIO * info.compress_size:
627
+ return f"expands more than {MAX_ZIP_RATIO} times, so it is not read"
628
+ if spent + info.file_size > MAX_ZIP_BYTES:
629
+ return "past the 64 MiB read from one archive"
630
+ return None
631
+
632
+
633
+ def _entry_bytes(archive, info):
634
+ """An entry's uncompressed bytes, or None when they fail its CRC-32 or are not exactly its declared size. Reading
635
+ stops one byte past that size, which data past a short declared size fills, and asks for a bounded chunk at a
636
+ time, which bounds what the decompressor expands per call, so a forged small size holds no more than that."""
637
+ probe = copy.copy(info)
638
+ probe.file_size = info.file_size + 1
639
+ data = bytearray()
640
+ try:
641
+ with archive.open(probe) as member:
642
+ while len(data) <= info.file_size:
643
+ chunk = member.read(min(probe.file_size - len(data), ZIP_READ_CHUNK))
644
+ if not chunk:
645
+ break
646
+ data += chunk
647
+ except (zipfile.BadZipFile, zlib.error, EOFError, OSError, ValueError):
648
+ return None
649
+ return data if len(data) == info.file_size else None
650
+
651
+
652
+ def _zip_entry(archive, info, refusal):
653
+ """One entry of a zip view: its name, size and digest, and its own format and view, or why it was not read."""
654
+ entry = {"name": info.filename, "size": info.file_size, "sha256": None, "format": None, "view": None,
655
+ "view_error": refusal}
656
+ if refusal is not None:
657
+ return entry
658
+ data = _entry_bytes(archive, info)
659
+ if data is None:
660
+ return {**entry, "view_error": "its compressed data is damaged"}
661
+ view = _entry_view(info.filename, data)
662
+ return {**entry, "sha256": hashlib.sha256(data).hexdigest(), "format": view["format"],
663
+ "view": view.get("view"), "view_error": view.get("error")}
664
+
665
+
666
+ def _zip_end(file, size: int):
667
+ """Where an archive's central directory ends, how long it is and the offset it declares, from the last end
668
+ record whose comment reaches the end of the file and, when a Zip64 locator precedes it whatever that record
669
+ holds, the Zip64 one just before the locator; None without an end record, or when sentinels defer to a
670
+ Zip64 record that is missing."""
671
+ window = min(size, 22 + 0xFFFF)
672
+ file.seek(size - window)
673
+ tail = file.read(window)
674
+ at = tail.rfind(ZIP_END, 0, len(tail) - 18)
675
+ while at >= 0 and at + 22 + int.from_bytes(tail[at + 20:at + 22], "little") != len(tail):
676
+ at = tail.rfind(ZIP_END, 0, at + 3)
677
+ if at < 0:
678
+ return None
679
+ total, length, offset = struct.unpack_from("<HII", tail, at + 10)
680
+ end = size - window + at
681
+ record = end - 20 - 56
682
+ if record < 0:
683
+ return end, length, offset
684
+ file.seek(end - 20)
685
+ if file.read(4) != ZIP64_LOCATOR:
686
+ return end, length, offset
687
+ file.seek(record)
688
+ zip64 = file.read(56)
689
+ if len(zip64) == 56 and zip64[:4] == ZIP64_END:
690
+ length, offset = struct.unpack_from("<QQ", zip64, 40)
691
+ return record, length, offset
692
+ if total == 0xFFFF or 0xFFFFFFFF in (length, offset):
693
+ return None
694
+ return end, length, offset
695
+
696
+
697
+ def _zip_unicode_path(raw: bytes, flags: int, extra: bytes):
698
+ """An Info-ZIP Unicode Path when zip.js uses it: version 1, no UTF-8 flag, and the CRC-32 of the stored name."""
699
+ at = 0
700
+ while at + 4 <= len(extra):
701
+ kind, length = struct.unpack_from("<HH", extra, at)
702
+ if kind == 0x7075:
703
+ data = extra[at + 4:at + 4 + length]
704
+ usable = (length >= 5 and len(data) == length and data[0] == 1 and not flags & 0x800
705
+ and int.from_bytes(data[1:5], "little") == zlib.crc32(raw))
706
+ return data[5:] if usable else None
707
+ at += 4 + length
708
+ return None
709
+
710
+
711
+ def _zip_ends_in_slash(raw: bytes, flags: int, extra: bytes):
712
+ """Whether an entry's name, as REA decodes it, ends in a slash; None when it must be UTF-8 and is not."""
713
+ utf8 = _zip_unicode_path(raw, flags, extra)
714
+ if utf8 is None and flags & 0x800:
715
+ utf8 = raw
716
+ if utf8 is None:
717
+ return raw.endswith(b"/")
718
+ try:
719
+ return utf8.decode("utf-8").endswith("/")
720
+ except UnicodeDecodeError:
721
+ return None
722
+
723
+
724
+ def _zip_directory(file, size: int, keep: int):
725
+ """An archive's central directory read a record at a time, keeping the first file entries' records, as many as keep allows, and
726
+ counting the rest, as REA reads it: (start, declared offset, records, count), or None when it cannot be read.
727
+ Directories are told apart as zip.js tells them: a final slash, a Unix directory mode, or the MS-DOS attribute."""
728
+ located = _zip_end(file, size)
729
+ if located is None:
730
+ return None
731
+ end, length, declared = located
732
+ start = end - length
733
+ if start < 0:
734
+ return None
735
+ file.seek(start)
736
+ records, count, at = [], 0, start
737
+ while at < end:
738
+ fixed = file.read(46)
739
+ if at + 46 > end or len(fixed) < 46 or fixed[:4] != ZIP_CENTRAL:
740
+ return None
741
+ made_by, flags = struct.unpack_from("<H2xH", fixed, 4)
742
+ name_length, extra_length, comment_length = struct.unpack_from("<HHH", fixed, 28)
743
+ external = struct.unpack_from("<I", fixed, 38)[0]
744
+ rest = file.read(name_length + extra_length + comment_length)
745
+ at += 46 + name_length + extra_length + comment_length
746
+ if len(rest) < name_length + extra_length + comment_length or at > end:
747
+ return None
748
+ slash = _zip_ends_in_slash(rest[:name_length], flags, rest[name_length:name_length + extra_length])
749
+ if slash is None:
750
+ return None
751
+ if not (slash or (external >> 16) & 0o170000 == 0o040000 or (made_by >> 8 == 0 and external & 0x10)):
752
+ count += 1
753
+ if len(records) < keep:
754
+ records.append(fixed + rest)
755
+ return start, declared, records, count
756
+
757
+
758
+ class _BoundedArchive(io.RawIOBase):
759
+ """An archive as zipfile reads it: its entries in place, then a directory of the kept records alone and end
760
+ records for them, so zipfile parses no more records than the view lists."""
761
+
762
+ def __init__(self, file, start: int, tail: bytes) -> None:
763
+ super().__init__()
764
+ self._file, self._start, self._tail, self._at = file, start, tail, 0
765
+
766
+ def readable(self) -> bool:
767
+ return True
768
+
769
+ def seekable(self) -> bool:
770
+ return True
771
+
772
+ def tell(self) -> int:
773
+ return self._at
774
+
775
+ def seek(self, offset: int, whence: int = 0) -> int:
776
+ self._at = offset + (0, self._at, self._start + len(self._tail))[whence]
777
+ return self._at
778
+
779
+ def readinto(self, buffer) -> int:
780
+ view = memoryview(buffer)
781
+ if self._at < self._start:
782
+ self._file.seek(self._at)
783
+ count = self._file.readinto(view[:self._start - self._at])
784
+ else:
785
+ chunk = self._tail[self._at - self._start:self._at - self._start + len(view)]
786
+ count = len(chunk)
787
+ view[:count] = chunk
788
+ self._at += count
789
+ return count
790
+
791
+
792
+ def _zip(file, size: int) -> dict:
793
+ """A zip archive's file entries in archive order, up to REA's entry, size, ratio and archive limits; nothing is
794
+ extracted to disk, no archive inside is opened, and zipfile is shown only the directory records listed."""
795
+ entries, spent = [], 0
796
+ try:
797
+ directory = _zip_directory(file, size, MAX_ZIP_ENTRIES)
798
+ if directory is None:
799
+ raise zipfile.BadZipFile("no readable central directory")
800
+ start, declared, records, count = directory
801
+ kept = b"".join(records)
802
+ offset = declared if declared <= 0xFFFFFFFF else start
803
+ # zipfile follows a Zip64 locator signature wherever one sits before the end record, and the kept records
804
+ # may end in those bytes, so a real Zip64 end record and locator for them come first.
805
+ tail = (kept
806
+ + struct.pack("<4sQ2H2I4Q", ZIP64_END, 44, 45, 45, 0, 0, len(records), len(records), len(kept), offset)
807
+ + struct.pack("<4sIQI", ZIP64_LOCATOR, 0, offset + len(kept), 1)
808
+ + struct.pack("<4s4H2IH", ZIP_END, 0, 0, len(records), len(records), len(kept), offset, 0))
809
+ with zipfile.ZipFile(_BoundedArchive(file, start, tail)) as archive:
810
+ for info in archive.infolist():
811
+ refusal = _zip_refusal(info, spent)
812
+ spent += info.file_size if refusal is None else 0
813
+ entries.append(_zip_entry(archive, info, refusal))
814
+ except (zipfile.BadZipFile, zlib.error, EOFError, NotImplementedError, OSError, ValueError, struct.error):
815
+ return {"format": "zip", "view": None, "error": "not a readable zip archive"}
816
+ view = {"entries": entries, "entry_count": count, "truncated": count > len(entries)}
817
+ return {"format": "zip", "view": view, "truncated": view["truncated"]}
818
+
819
+
820
+ def _gunzip(data: bytes, limit: int):
821
+ """A gzip stream's document, its members joined as REA joins them, or None once it passes limit bytes, where
822
+ decompressing stops: data after a member that starts with a zero byte is padding and ends the stream. It is read
823
+ a piece at a time, so a member's end carries over only the rest of its piece. Raises zlib.error or EOFError when
824
+ the stream is damaged or cut short."""
825
+ document, member, rest, at = bytearray(), zlib.decompressobj(16 + zlib.MAX_WBITS), b"", 0
826
+ while True:
827
+ if not rest:
828
+ if at >= len(data):
829
+ raise EOFError("the gzip stream is cut short")
830
+ rest, at = data[at:at + GZIP_READ_CHUNK], at + GZIP_READ_CHUNK
831
+ document += member.decompress(rest, limit + 1 - len(document))
832
+ if len(document) > limit:
833
+ return None
834
+ if not member.eof:
835
+ rest = member.unconsumed_tail
836
+ continue
837
+ rest = member.unused_data
838
+ if not rest and at < len(data):
839
+ rest, at = data[at:at + GZIP_READ_CHUNK], at + GZIP_READ_CHUNK
840
+ if not rest or rest[0] == 0:
841
+ return bytes(document)
842
+ member = zlib.decompressobj(16 + zlib.MAX_WBITS)
843
+
844
+
845
+ def _gzip(name: str, data: bytes) -> dict:
846
+ """A gzip file's view: its document's, decompressed within an archive entry's size and ratio limits and read by
847
+ the rules a file's follow; a database inside is not read."""
848
+ compressed = {"format": None, "compression": "gzip", "view": None}
849
+ try:
850
+ document = _gunzip(data, min(MAX_ZIP_ENTRY_BYTES, MAX_ZIP_RATIO * len(data)))
851
+ except (zlib.error, EOFError):
852
+ return {**compressed, "error": "not a readable gzip stream"}
853
+ if document is None:
854
+ return {**compressed, "error": f"expands more than {MAX_ZIP_RATIO} times, so it is not read"
855
+ if MAX_ZIP_RATIO * len(data) < MAX_ZIP_ENTRY_BYTES
856
+ else "larger than the 16 MiB a compressed document's view reads"}
857
+ for header, form, inside in NOT_READ_INSIDE:
858
+ if form != "zip" and document.startswith(header):
859
+ return {**compressed, "format": form, "error": f"{inside} inside a gzip file is not read"}
860
+ view = _zip(io.BytesIO(document), len(document)) if document.startswith(ZIP_HEADER) else _bytes_view(name, document)
861
+ return {**view, "compression": "gzip"}
862
+
863
+
864
+ @computer_app(supports=[{"os": {"type": "linux", "display": ["x11"]}, "arch": ["amd64", "arm64"]}])
865
+ @linux(
866
+ packages=Packages(apt=["lyx"]),
867
+ launch=Launch(at="boot", command=["sh", "-c", "cd \"$HOME\" 2>/dev/null; exec 'lyx' \"$HOME\"/'Documents/garden-report.lyx'"], window={"class": "lyx"}, ready=Ready(window=True)),
868
+ paths=PATHS,
869
+ skill="SKILL.md",
870
+ )
871
+ class Lyx(ComputerAppEnvironment):
872
+ """LyX, launched at boot with the captured state in its home.
873
+
874
+ Declaring data hooks switches off agentenv's default data plane, so these call its helpers: the seed is kept as
875
+ the initial state, reset restores it, add writes files under PATHS, and get returns those files plus a typed JSON
876
+ view of each.
877
+ """
878
+
879
+ def __init__(self) -> None:
880
+ super().__init__()
881
+ if not INITIAL.exists():
882
+ _seed_home(Path.home())
883
+ _load_dconf(Path.home())
884
+ keep_initial(self.paths)
885
+
886
+ @add_data
887
+ async def add_files(self, parts: list) -> None:
888
+ await add(parts, self.paths)
889
+
890
+ @get_data
891
+ async def get_files(self, write_namespace=None) -> list:
892
+ files = await get(self.paths, write_namespace)
893
+ views = await in_thread(_views, Path.home(), self.paths)
894
+ return [*files, DataPart(data={"state": views})]
895
+
896
+ @reset_data
897
+ async def reset_files(self) -> None:
898
+ await reset(self.paths)
899
+
900
+ @ready_check
901
+ def main_window_shown(self) -> bool:
902
+ """A window of the app's class that the taskbar lists is shown, not only a splash screen or a dialog."""
903
+ return _taskbar_window(WINDOW_CLASS)
bundle/envs/lyx/seed/.config/LyX/lyx.conf ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [hidden_warnings]
2
+ The%20selected%20document%20class%0A%09Article%20%28Standard%20Class%29%0Arequires%20external%20files%20that%20are%20not%20available.%0AThe%20document%20class%20can%20still%20be%20used%2C%20but%20the%0Adocument%20cannot%20be%20compiled%20until%20the%20following%0Aprerequisites%20are%20installed%3A%0A%09article.cls%0ASee%20section%203.1.2.2%20%28Class%20Availability%29%20of%20the%0AUser%27s%20Guide%20for%20more%20information.=true
3
+
4
+ [ui_files]
5
+ 0=/usr/share/lyx/ui/default.ui
6
+ 0\date=@DateTime(\0\0\0\x10\0\0\0\0\0\0%\x8b\0\0-\xabh\0)
bundle/envs/lyx/seed/.lyx/bbxFiles.lst ADDED
File without changes
bundle/envs/lyx/seed/.lyx/bibFiles.lst ADDED
File without changes
bundle/envs/lyx/seed/.lyx/bstFiles.lst ADDED
File without changes
bundle/envs/lyx/seed/.lyx/cbxFiles.lst ADDED
File without changes
bundle/envs/lyx/seed/.lyx/clsFiles.lst ADDED
File without changes
bundle/envs/lyx/seed/.lyx/configure.log ADDED
@@ -0,0 +1,1240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: +Running LyX configure with Python 3.12.3
2
+ DEBUG: Create directory bind.
3
+ DEBUG: Create directory clipart.
4
+ DEBUG: Create directory doc.
5
+ DEBUG: Create directory examples.
6
+ DEBUG: Create directory images.
7
+ DEBUG: Create directory kbd.
8
+ DEBUG: Create directory layouts.
9
+ DEBUG: Create directory scripts.
10
+ DEBUG: Create directory templates.
11
+ DEBUG: Create directory ui.
12
+ INFO: checking for a Latex2e program...
13
+ DEBUG: (latex $$i,latex2e $$i)
14
+ INFO: +checking for "latex"... not in path
15
+ INFO: +checking for "latex2e"... not in path
16
+ INFO: checking for pLaTeX, the Japanese LaTeX...
17
+ DEBUG: (platex $$i)
18
+ INFO: +checking for "platex"... not in path
19
+ DEBUG: Add to RC:
20
+ \converter latex dvi "" "latex,hyperref-driver=dvips"
21
+
22
+
23
+ INFO: checking for a java interpreter...
24
+ DEBUG: (java)
25
+ INFO: +checking for "java"... not in path
26
+ INFO: checking for a perl interpreter...
27
+ DEBUG: (perl)
28
+ INFO: +checking for "perl"... yes
29
+ INFO: checking for xsltproc...
30
+ DEBUG: (xsltproc)
31
+ INFO: +checking for "xsltproc"... not in path
32
+ INFO: checking for a Tgif viewer and editor...
33
+ DEBUG: (tgif)
34
+ INFO: +checking for "tgif"... no
35
+ DEBUG: Add to RC:
36
+ \Format tgif "obj, tgo" Tgif "" "auto" "auto" "vector" "application/x-tgif"
37
+
38
+
39
+ INFO: checking for a FIG viewer and editor...
40
+ DEBUG: (xfig,jfig3-itext.jar,jfig3.jar)
41
+ INFO: +checking for "xfig"... no
42
+ DEBUG: Add to RC:
43
+ \Format fig fig FIG "" "auto" "auto" "vector" "application/x-xfig"
44
+
45
+
46
+ INFO: checking for a Dia viewer and editor...
47
+ DEBUG: (dia)
48
+ INFO: +checking for "dia"... no
49
+ DEBUG: Add to RC:
50
+ \Format dia dia DIA "" "auto" "auto" "vector,zipped=native", "application/x-dia-diagram"
51
+
52
+
53
+ INFO: checking for an OpenDocument drawing viewer and editor...
54
+ DEBUG: (xdg-open,libreoffice,lodraw,ooffice,oodraw,soffice)
55
+ INFO: +checking for "xdg-open"... yes
56
+ DEBUG: Add to RC:
57
+ \Format odg "odg, sxd" "OpenDocument drawing" "" "xdg-open" "xdg-open" "vector,zipped=native" "application/vnd.oasis.opendocument.graphics"
58
+
59
+
60
+ DEBUG: Add to RC:
61
+ \editor_alternatives odg "xdg-open"
62
+ \viewer_alternatives odg "xdg-open"
63
+
64
+
65
+ INFO: +checking for "libreoffice"... no
66
+ INFO: +checking for "lodraw"... no
67
+ INFO: +checking for "ooffice"... no
68
+ INFO: +checking for "oodraw"... no
69
+ INFO: +checking for "soffice"... no
70
+ INFO: checking for a Grace viewer and editor...
71
+ DEBUG: (xmgrace)
72
+ INFO: +checking for "xmgrace"... no
73
+ DEBUG: Add to RC:
74
+ \Format agr agr Grace "" "auto" "auto" "vector" ""
75
+
76
+
77
+ INFO: checking for a FEN viewer and editor...
78
+ DEBUG: (xboard -lpf $$i -mode EditPosition)
79
+ INFO: +checking for "xboard"... no
80
+ DEBUG: Add to RC:
81
+ \Format fen fen FEN "" "auto" "auto" "" ""
82
+
83
+
84
+ INFO: checking for a SVG viewer and editor...
85
+ DEBUG: (inkscape)
86
+ INFO: +checking for "inkscape"... no
87
+ DEBUG: Add to RC:
88
+ \Format svg "svg" SVG "" "auto" "auto" "vector" "image/svg+xml"
89
+ \Format svgz "svgz" "SVG (compressed)" "" "auto" "auto" "vector,zipped=native" ""
90
+
91
+
92
+ INFO: checking for a raster image viewer...
93
+ DEBUG: (xdg-open,xv,gwenview,kview,eog,xviewer,ristretto,gpicview,lximage-qt,gimp-remote,gimp)
94
+ INFO: +checking for "xdg-open"... yes
95
+ DEBUG: Add to RC:
96
+ \viewer_alternatives bmp "xdg-open"
97
+ \viewer_alternatives gif "xdg-open"
98
+ \viewer_alternatives jpg "xdg-open"
99
+ \viewer_alternatives pbm "xdg-open"
100
+ \viewer_alternatives pgm "xdg-open"
101
+ \viewer_alternatives png "xdg-open"
102
+ \viewer_alternatives ppm "xdg-open"
103
+ \viewer_alternatives tiff "xdg-open"
104
+ \viewer_alternatives xbm "xdg-open"
105
+ \viewer_alternatives xpm "xdg-open"
106
+
107
+
108
+ INFO: +checking for "xv"... no
109
+ INFO: +checking for "gwenview"... no
110
+ INFO: +checking for "kview"... no
111
+ INFO: +checking for "eog"... no
112
+ INFO: +checking for "xviewer"... no
113
+ INFO: +checking for "ristretto"... no
114
+ INFO: +checking for "gpicview"... no
115
+ INFO: +checking for "lximage-qt"... no
116
+ INFO: +checking for "gimp-remote"... no
117
+ INFO: +checking for "gimp"... no
118
+ INFO: checking for a raster image editor...
119
+ DEBUG: (gimp-remote,gimp)
120
+ INFO: +checking for "gimp-remote"... no
121
+ INFO: +checking for "gimp"... no
122
+ DEBUG: Add to RC:
123
+ \Format bmp bmp BMP "" "xdg-open" "auto" "" "image/x-bmp"
124
+ \Format gif gif GIF "" "xdg-open" "auto" "" "image/gif"
125
+ \Format jpg "jpg, jpeg" JPEG "" "xdg-open" "auto" "" "image/jpeg"
126
+ \Format pbm pbm PBM "" "xdg-open" "auto" "" "image/x-portable-bitmap"
127
+ \Format pgm pgm PGM "" "xdg-open" "auto" "" "image/x-portable-graymap"
128
+ \Format png png PNG "" "xdg-open" "auto" "" "image/x-png"
129
+ \Format ppm ppm PPM "" "xdg-open" "auto" "" "image/x-portable-pixmap"
130
+ \Format tiff tif TIFF "" "xdg-open" "auto" "" "image/tiff"
131
+ \Format xbm xbm XBM "" "xdg-open" "auto" "" "image/x-xbitmap"
132
+ \Format xpm xpm XPM "" "xdg-open" "auto" "" "image/x-xpixmap"
133
+
134
+
135
+ INFO: checking for a text editor...
136
+ DEBUG: (xdg-open,xemacs,gvim,kedit,kwrite,kate,nedit,gedit,geany,leafpad,mousepad,xed,notepad,WinEdt,WinShell,PSPad)
137
+ INFO: +checking for "xdg-open"... yes
138
+ DEBUG: Add to RC:
139
+ \Format asciichess asc "Plain text (chess output)" "" "" "xdg-open" "" ""
140
+ \Format docbook5 xml "DocBook 5" "" "" "xdg-open" "document,menu=export" "application/docbook+xml"
141
+ \Format dot dot "Graphviz Dot" "" "" "xdg-open" "vector" "text/vnd.graphviz"
142
+ \Format dviluatex tex "LaTeX (dviluatex)" "" "" "xdg-open" "document,menu=export" ""
143
+ \Format epub epub ePub "" "" "xdg-open" "document,menu=export" "application/epub+zip"
144
+ \Format platex tex "LaTeX (pLaTeX)" "" "" "xdg-open" "document,menu=export" ""
145
+ \Format literate nw NoWeb N "" "xdg-open" "document,menu=export" ""
146
+ \Format sweave Rnw "Sweave" S "" "xdg-open" "document,menu=export" ""
147
+ \Format sweave-ja Rnw "Sweave (Japanese)" S "" "xdg-open" "document,menu=export" ""
148
+ \Format r R "R/S code" "" "" "xdg-open" "document,menu=export" ""
149
+ \Format knitr Rnw "Rnw (knitr)" "" "" "xdg-open" "document,menu=export" ""
150
+ \Format knitr-ja Rnw "Rnw (knitr, Japanese)" "" "" "xdg-open" "document,menu=export" ""
151
+ \Format lilypond-book lytex "LilyPond book (LaTeX)" "" "" "xdg-open" "document,menu=export" ""
152
+ \Format lilypond-book-ja lytex "LilyPond book (pLaTeX)" "" "" "xdg-open" "document,menu=export" ""
153
+ \Format latex tex "LaTeX (plain)" L "" "xdg-open" "document,menu=export" "text/x-tex"
154
+ \Format luatex tex "LaTeX (LuaTeX)" "" "" "xdg-open" "document,menu=export" ""
155
+ \Format pdflatex tex "LaTeX (pdflatex)" "" "" "xdg-open" "document,menu=export" ""
156
+ \Format xetex tex "LaTeX (XeTeX)" "" "" "xdg-open" "document,menu=export" ""
157
+ \Format latexclipboard tex "LaTeX (clipboard)" "" "" "xdg-open" "menu=none" ""
158
+ \Format text txt "Plain text" a "" "xdg-open" "document,menu=export" "text/plain"
159
+ \Format text2 txt "Plain text (pstotext)" "" "" "xdg-open" "document" ""
160
+ \Format text3 txt "Plain text (ps2ascii)" "" "" "xdg-open" "document" ""
161
+ \Format text4 txt "Plain text (catdvi)" "" "" "xdg-open" "document" ""
162
+ \Format textparagraph txt "Plain Text, Join Lines" "" "" "xdg-open" "document" ""
163
+ \Format beamer.info pdf.info "Info (Beamer)" "" "" "xdg-open" "document,menu=export" ""
164
+
165
+
166
+ DEBUG: Add to RC:
167
+ \editor_alternatives asciichess "xdg-open"
168
+ \viewer_alternatives asciichess "xdg-open"
169
+ \editor_alternatives docbook5 "xdg-open"
170
+ \viewer_alternatives docbook5 "xdg-open"
171
+ \editor_alternatives dot "xdg-open"
172
+ \viewer_alternatives dot "xdg-open"
173
+ \editor_alternatives dviluatex "xdg-open"
174
+ \viewer_alternatives dviluatex "xdg-open"
175
+ \editor_alternatives epub "xdg-open"
176
+ \viewer_alternatives epub "xdg-open"
177
+ \editor_alternatives platex "xdg-open"
178
+ \viewer_alternatives platex "xdg-open"
179
+ \editor_alternatives literate "xdg-open"
180
+ \viewer_alternatives literate "xdg-open"
181
+ \editor_alternatives sweave "xdg-open"
182
+ \viewer_alternatives sweave "xdg-open"
183
+ \editor_alternatives sweave-ja "xdg-open"
184
+ \viewer_alternatives sweave-ja "xdg-open"
185
+ \editor_alternatives r "xdg-open"
186
+ \viewer_alternatives r "xdg-open"
187
+ \editor_alternatives knitr "xdg-open"
188
+ \viewer_alternatives knitr "xdg-open"
189
+ \editor_alternatives knitr-ja "xdg-open"
190
+ \viewer_alternatives knitr-ja "xdg-open"
191
+ \editor_alternatives lilypond-book "xdg-open"
192
+ \viewer_alternatives lilypond-book "xdg-open"
193
+ \editor_alternatives lilypond-book-ja "xdg-open"
194
+ \viewer_alternatives lilypond-book-ja "xdg-open"
195
+ \editor_alternatives latex "xdg-open"
196
+ \viewer_alternatives latex "xdg-open"
197
+ \editor_alternatives luatex "xdg-open"
198
+ \viewer_alternatives luatex "xdg-open"
199
+ \editor_alternatives pdflatex "xdg-open"
200
+ \viewer_alternatives pdflatex "xdg-open"
201
+ \editor_alternatives xetex "xdg-open"
202
+ \viewer_alternatives xetex "xdg-open"
203
+ \editor_alternatives latexclipboard "xdg-open"
204
+ \viewer_alternatives latexclipboard "xdg-open"
205
+ \editor_alternatives text "xdg-open"
206
+ \viewer_alternatives text "xdg-open"
207
+ \editor_alternatives text2 "xdg-open"
208
+ \viewer_alternatives text2 "xdg-open"
209
+ \editor_alternatives text3 "xdg-open"
210
+ \viewer_alternatives text3 "xdg-open"
211
+ \editor_alternatives text4 "xdg-open"
212
+ \viewer_alternatives text4 "xdg-open"
213
+ \editor_alternatives textparagraph "xdg-open"
214
+ \viewer_alternatives textparagraph "xdg-open"
215
+ \editor_alternatives beamer.info "xdg-open"
216
+ \viewer_alternatives beamer.info "xdg-open"
217
+
218
+
219
+ INFO: +checking for "xemacs"... no
220
+ INFO: +checking for "gvim"... no
221
+ INFO: +checking for "kedit"... no
222
+ INFO: +checking for "kwrite"... no
223
+ INFO: +checking for "kate"... no
224
+ INFO: +checking for "nedit"... no
225
+ INFO: +checking for "gedit"... no
226
+ INFO: +checking for "geany"... no
227
+ INFO: +checking for "leafpad"... no
228
+ INFO: +checking for "mousepad"... no
229
+ INFO: +checking for "xed"... no
230
+ INFO: +checking for "notepad"... no
231
+ INFO: +checking for "WinEdt"... no
232
+ INFO: +checking for "WinShell"... no
233
+ INFO: +checking for "PSPad"... no
234
+ INFO: checking for a lilypond editor...
235
+ DEBUG: (frescobaldi,xdg-open,xemacs,gvim,kedit,kwrite,kate,nedit,gedit,geany,leafpad,mousepad,xed,notepad,WinEdt,WinShell,PSPad)
236
+ INFO: +checking for "frescobaldi"... no
237
+ INFO: +checking for "xdg-open"... yes
238
+ DEBUG: Add to RC:
239
+ \Format lilypond ly "LilyPond music" "" "" "xdg-open" "vector" "text/x-lilypond"
240
+
241
+
242
+ DEBUG: Add to RC:
243
+ \editor_alternatives lilypond "xdg-open"
244
+ \viewer_alternatives lilypond "xdg-open"
245
+
246
+
247
+ INFO: +checking for "xemacs"... no
248
+ INFO: +checking for "gvim"... no
249
+ INFO: +checking for "kedit"... no
250
+ INFO: +checking for "kwrite"... no
251
+ INFO: +checking for "kate"... no
252
+ INFO: +checking for "nedit"... no
253
+ INFO: +checking for "gedit"... no
254
+ INFO: +checking for "geany"... no
255
+ INFO: +checking for "leafpad"... no
256
+ INFO: +checking for "mousepad"... no
257
+ INFO: +checking for "xed"... no
258
+ INFO: +checking for "notepad"... no
259
+ INFO: +checking for "WinEdt"... no
260
+ INFO: +checking for "WinShell"... no
261
+ INFO: +checking for "PSPad"... no
262
+ INFO: checking for gnumeric spreadsheet software...
263
+ DEBUG: (gnumeric)
264
+ INFO: +checking for "gnumeric"... no
265
+ DEBUG: Add to RC:
266
+ \Format gnumeric gnumeric "Gnumeric spreadsheet" "" "" "auto" "document" "application/x-gnumeric"
267
+ \Format excel xls "Excel spreadsheet" "" "" "auto" "document" "application/vnd.ms-excel"
268
+ \Format excel2 xlsx "MS Excel Office Open XML" "" "" "auto" "document" "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
269
+ \Format xhtml_table xhtml "XHTML Table (for spreadsheets)" "" "" "auto" "document" ""
270
+ \Format html_table html "HTML Table (for spreadsheets)" "" "" "auto" "document" ""
271
+ \Format oocalc ods "OpenDocument spreadsheet" "" "" "auto" "document" "application/vnd.oasis.opendocument.spreadsheet"
272
+
273
+
274
+ INFO: checking for an HTML previewer...
275
+ DEBUG: (firefox,mozilla file://$$p$$i,netscape)
276
+ INFO: +checking for "firefox"... no
277
+ INFO: +checking for "mozilla"... no
278
+ INFO: +checking for "netscape"... no
279
+ DEBUG: Add to RC:
280
+ \Format xhtml xhtml "LyXHTML" y "auto" "" "document,menu=export" "application/xhtml+xml"
281
+
282
+
283
+ INFO: checking for a BibTeX editor...
284
+ DEBUG: (jabref,JabRef,pybliographic,bibdesk,gbib,kbib,kbibtex,sixpack,bibedit,tkbibtex,TeXnicCenter,xdg-open,xemacs,gvim,kedit,kwrite,kate,nedit,gedit,geany,leafpad,mousepad,xed,notepad,WinEdt,WinShell,PSPad)
285
+ INFO: +checking for "jabref"... no
286
+ INFO: +checking for "JabRef"... no
287
+ INFO: +checking for "pybliographic"... no
288
+ INFO: +checking for "bibdesk"... no
289
+ INFO: +checking for "gbib"... no
290
+ INFO: +checking for "kbib"... no
291
+ INFO: +checking for "kbibtex"... no
292
+ INFO: +checking for "sixpack"... no
293
+ INFO: +checking for "bibedit"... no
294
+ INFO: +checking for "tkbibtex"... no
295
+ INFO: +checking for "TeXnicCenter"... no
296
+ INFO: +checking for "xdg-open"... yes
297
+ DEBUG: Add to RC:
298
+ \Format bibtex bib "BibTeX" "" "" "xdg-open" "" "text/x-bibtex"
299
+
300
+
301
+ DEBUG: Add to RC:
302
+ \editor_alternatives bibtex "xdg-open"
303
+
304
+
305
+ INFO: +checking for "xemacs"... no
306
+ INFO: +checking for "gvim"... no
307
+ INFO: +checking for "kedit"... no
308
+ INFO: +checking for "kwrite"... no
309
+ INFO: +checking for "kate"... no
310
+ INFO: +checking for "nedit"... no
311
+ INFO: +checking for "gedit"... no
312
+ INFO: +checking for "geany"... no
313
+ INFO: +checking for "leafpad"... no
314
+ INFO: +checking for "mousepad"... no
315
+ INFO: +checking for "xed"... no
316
+ INFO: +checking for "notepad"... no
317
+ INFO: +checking for "WinEdt"... no
318
+ INFO: +checking for "WinShell"... no
319
+ INFO: +checking for "PSPad"... no
320
+ INFO: checking for a Postscript previewer...
321
+ DEBUG: (xdg-open,kghostview,okular,qpdfview --unique,evince,xreader,gv,ghostview -swap,gsview64,gsview32)
322
+ INFO: +checking for "xdg-open"... yes
323
+ DEBUG: Add to RC:
324
+ \Format eps eps EPS "" "xdg-open" "" "vector" "image/x-eps"
325
+ \Format eps2 eps "EPS (uncropped)" "" "xdg-open" "" "vector" ""
326
+ \Format eps3 eps "EPS (cropped)" "" "xdg-open" "" "document" ""
327
+ \Format ps ps Postscript t "xdg-open" "" "document,vector,menu=export" "application/postscript"
328
+
329
+
330
+ DEBUG: Add to RC:
331
+ \viewer_alternatives eps "xdg-open"
332
+ \viewer_alternatives eps2 "xdg-open"
333
+ \viewer_alternatives eps3 "xdg-open"
334
+ \viewer_alternatives ps "xdg-open"
335
+
336
+
337
+ INFO: +checking for "kghostview"... no
338
+ INFO: +checking for "okular"... no
339
+ INFO: +checking for "qpdfview"... no
340
+ INFO: +checking for "evince"... no
341
+ INFO: +checking for "xreader"... no
342
+ INFO: +checking for "gv"... no
343
+ INFO: +checking for "ghostview"... no
344
+ INFO: +checking for "gsview64"... no
345
+ INFO: +checking for "gsview32"... no
346
+ INFO: checking for a PDF previewer...
347
+ DEBUG: (xdg-open,pdfview,kpdf,okular,qpdfview --unique,evince,xreader,kghostview,xpdf,SumatraPDF,acrobat,acroread,mupdf,Skim.app,gv,ghostview,AcroRd32,gsview64,gsview32)
348
+ INFO: +checking for "xdg-open"... yes
349
+ DEBUG: Add to RC:
350
+ \Format pdf pdf "PDF (ps2pdf)" P "xdg-open" "" "document,vector,menu=export" ""
351
+ \Format pdf2 pdf "PDF (pdflatex)" F "xdg-open" "" "document,vector,menu=export" ""
352
+ \Format pdf3 pdf "PDF (dvipdfm)" m "xdg-open" "" "document,vector,menu=export" ""
353
+ \Format pdf4 pdf "PDF (XeTeX)" X "xdg-open" "" "document,vector,menu=export" ""
354
+ \Format pdf5 pdf "PDF (LuaTeX)" u "xdg-open" "" "document,vector,menu=export" ""
355
+ \Format pdf6 pdf "PDF (graphics)" "" "xdg-open" "" "vector" "application/pdf"
356
+ \Format pdf7 pdf "PDF (cropped)" "" "xdg-open" "" "document,vector" ""
357
+ \Format pdf8 pdf "PDF (lower resolution)" "" "xdg-open" "" "document,vector" ""
358
+ \Format pdf9 pdf "PDF (DocBook)" "" "xdg-open" "" "document,vector,menu=export" ""
359
+
360
+
361
+ DEBUG: Add to RC:
362
+ \viewer_alternatives pdf "xdg-open"
363
+ \viewer_alternatives pdf2 "xdg-open"
364
+ \viewer_alternatives pdf3 "xdg-open"
365
+ \viewer_alternatives pdf4 "xdg-open"
366
+ \viewer_alternatives pdf5 "xdg-open"
367
+ \viewer_alternatives pdf6 "xdg-open"
368
+ \viewer_alternatives pdf7 "xdg-open"
369
+ \viewer_alternatives pdf8 "xdg-open"
370
+ \viewer_alternatives pdf9 "xdg-open"
371
+
372
+
373
+ INFO: +checking for "pdfview"... no
374
+ INFO: +checking for "kpdf"... no
375
+ INFO: +checking for "okular"... no
376
+ INFO: +checking for "qpdfview"... no
377
+ INFO: +checking for "evince"... no
378
+ INFO: +checking for "xreader"... no
379
+ INFO: +checking for "kghostview"... no
380
+ INFO: +checking for "xpdf"... no
381
+ INFO: +checking for "SumatraPDF"... no
382
+ INFO: +checking for "acrobat"... no
383
+ INFO: +checking for "acroread"... no
384
+ INFO: +checking for "mupdf"... no
385
+ INFO: +checking for "Skim.app"... no
386
+ INFO: +checking for "gv"... no
387
+ INFO: +checking for "ghostview"... no
388
+ INFO: +checking for "AcroRd32"... no
389
+ INFO: +checking for "gsview64"... no
390
+ INFO: +checking for "gsview32"... no
391
+ INFO: checking for a DVI previewer...
392
+ DEBUG: (xdvi,kdvi,okular,evince,xreader,yap,dviout -Set=!m)
393
+ INFO: +checking for "xdvi"... no
394
+ INFO: +checking for "kdvi"... no
395
+ INFO: +checking for "okular"... no
396
+ INFO: +checking for "evince"... no
397
+ INFO: +checking for "xreader"... no
398
+ INFO: +checking for "yap"... no
399
+ INFO: +checking for "dviout"... no
400
+ DEBUG: Add to RC:
401
+ \Format dvi dvi DVI D "auto" "" "document,vector,menu=export" "application/x-dvi"
402
+ \Format dvi3 dvi "DVI (LuaTeX)" V "auto" "" "document,vector,menu=export" ""
403
+
404
+
405
+ INFO: checking for an HTML previewer...
406
+ DEBUG: (firefox,mozilla file://$$p$$i,netscape)
407
+ INFO: +checking for "firefox"... no
408
+ INFO: +checking for "mozilla"... no
409
+ INFO: +checking for "netscape"... no
410
+ DEBUG: Add to RC:
411
+ \Format html "html, htm" HTML H "auto" "" "document,menu=export" "text/html"
412
+
413
+
414
+ INFO: checking for Noteedit...
415
+ DEBUG: (noteedit)
416
+ INFO: +checking for "noteedit"... no
417
+ DEBUG: Add to RC:
418
+ \Format noteedit not Noteedit "" "auto" "auto" "vector" ""
419
+
420
+
421
+ INFO: checking for an OpenDocument viewer...
422
+ DEBUG: (libreoffice,lwriter,lowriter,oowriter,swriter,abiword)
423
+ INFO: +checking for "libreoffice"... no
424
+ INFO: +checking for "lwriter"... no
425
+ INFO: +checking for "lowriter"... no
426
+ INFO: +checking for "oowriter"... no
427
+ INFO: +checking for "swriter"... no
428
+ INFO: +checking for "abiword"... no
429
+ DEBUG: Add to RC:
430
+ \Format odt odt "OpenDocument (tex4ht)" "" "auto" "auto" "document,vector,menu=export" "application/vnd.oasis.opendocument.text"
431
+ \Format odt2 odt "OpenDocument (eLyXer)" "" "auto" "auto" "document,vector,menu=export" "application/vnd.oasis.opendocument.text"
432
+ \Format odt3 odt "OpenDocument (Pandoc)" "" "auto" "auto" "document,vector,menu=export" "application/vnd.oasis.opendocument.text"
433
+ \Format sxw sxw "OpenOffice.Org (sxw)" "" "" "" "document,vector" "application/vnd.sun.xml.writer"
434
+
435
+
436
+ INFO: checking for a Rich Text and Word viewer...
437
+ DEBUG: (libreoffice,lwriter,lowriter,oowriter,swriter,abiword)
438
+ INFO: +checking for "libreoffice"... no
439
+ INFO: +checking for "lwriter"... no
440
+ INFO: +checking for "lowriter"... no
441
+ INFO: +checking for "oowriter"... no
442
+ INFO: +checking for "swriter"... no
443
+ INFO: +checking for "abiword"... no
444
+ DEBUG: Add to RC:
445
+ \Format rtf rtf "Rich Text Format" "" "auto" "auto" "document,vector,menu=export" "application/rtf"
446
+ \Format word doc "MS Word" W "auto" "auto" "document,vector,menu=export" "application/msword"
447
+ \Format word2 docx "MS Word Office Open XML" O "auto" "auto" "document,vector,menu=export" "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
448
+
449
+
450
+ DEBUG: Add to RC:
451
+ \Format csv csv "Table (CSV)" "" "" "" "document" "text/csv"
452
+ \Format fax "" Fax "" "" "" "document" ""
453
+ \Format lyx lyx LyX "" "" "" "" "application/x-lyx"
454
+ \Format lyx13x 13.lyx "LyX 1.3.x" "" "" "" "document" ""
455
+ \Format lyx14x 14.lyx "LyX 1.4.x" "" "" "" "document" ""
456
+ \Format lyx15x 15.lyx "LyX 1.5.x" "" "" "" "document" ""
457
+ \Format lyx16x 16.lyx "LyX 1.6.x" "" "" "" "document" ""
458
+ \Format lyx20x 20.lyx "LyX 2.0.x" "" "" "" "document" ""
459
+ \Format lyx21x 21.lyx "LyX 2.1.x" "" "" "" "document" ""
460
+ \Format lyx22x 22.lyx "LyX 2.2.x" "" "" "" "document" ""
461
+ \Format lyx23x 23.lyx "LyX 2.3.x" "" "" "" "document,menu=export" ""
462
+ \Format clyx cjklyx "CJK LyX 1.4.x (big5)" "" "" "" "document" ""
463
+ \Format jlyx cjklyx "CJK LyX 1.4.x (euc-jp)" "" "" "" "document" ""
464
+ \Format klyx cjklyx "CJK LyX 1.4.x (euc-kr)" "" "" "" "document" ""
465
+ \Format lyxpreview lyxpreview "LyX Preview" "" "" "" "" ""
466
+ \Format pdftex "pdftex_t, pdf_tex" PDFTEX "" "" "" "" ""
467
+ \Format program "" Program "" "" "" "" ""
468
+ \Format pstex "pstex_t, ps_tex" PSTEX "" "" "" "" ""
469
+ \Format wmf wmf "Windows Metafile" "" "" "" "vector" "image/x-wmf"
470
+ \Format emf emf "Enhanced Metafile" "" "" "" "vector" "image/x-emf"
471
+ \Format wordhtml "html, htm" "HTML (MS Word)" "" "" "" "document" ""
472
+
473
+
474
+
475
+ INFO: checking for the pdflatex program...
476
+ DEBUG: (pdflatex $$i)
477
+ INFO: +checking for "pdflatex"... not in path
478
+ DEBUG: Add to RC:
479
+ \converter pdflatex pdf2 "" "latex=pdflatex,hyperref-driver=pdftex"
480
+
481
+
482
+ INFO: checking for XeTeX...
483
+ DEBUG: (xelatex $$i)
484
+ INFO: +checking for "xelatex"... not in path
485
+ DEBUG: Add to RC:
486
+ \converter xetex pdf4 "" "latex=xelatex,hyperref-driver=xetex"
487
+
488
+
489
+ INFO: checking for LuaTeX...
490
+ DEBUG: (lualatex $$i)
491
+ INFO: +checking for "lualatex"... not in path
492
+ INFO: checking for LuaTeX (DVI)...
493
+ DEBUG: (dvilualatex $$i)
494
+ INFO: +checking for "dvilualatex"... not in path
495
+ INFO: checking for a LaTeX/Noweb -> LyX converter...
496
+ DEBUG: (/usr/bin/tex2lyx/tex2lyx,/usr/bin/tex2lyx/tex2lyx,/usr/bin/tex2lyx,/usr/bin/tex2lyx,tex2lyx,tex2lyx)
497
+ INFO: +checking for "/usr/bin/tex2lyx/tex2lyx"... not in path
498
+ INFO: +checking for "/usr/bin/tex2lyx/tex2lyx"... not in path
499
+ INFO: +checking for "/usr/bin/tex2lyx"... yes
500
+ DEBUG: Add to RC:
501
+ \converter latex lyx "/usr/bin/tex2lyx -f $$i $$o" ""
502
+ \converter latexclipboard lyx "/usr/bin/tex2lyx -fixedenc utf8 -c $$c -m $$m -f $$i $$o" ""
503
+ \converter literate lyx "/usr/bin/tex2lyx -n -m noweb -f $$i $$o" ""
504
+ \converter sweave lyx "/usr/bin/tex2lyx -n -m sweave -f $$i $$o" ""
505
+ \converter knitr lyx "/usr/bin/tex2lyx -n -m knitr -f $$i $$o" ""
506
+
507
+
508
+ INFO: checking for a Noweb -> LaTeX converter...
509
+ DEBUG: (noweave -delay -index $$i > $$o)
510
+ INFO: +checking for "noweave"... not in path
511
+ DEBUG: Add to RC:
512
+ \converter literate latex "" ""
513
+ \converter literate pdflatex "" ""
514
+ \converter literate xetex "" ""
515
+ \converter literate luatex "" ""
516
+ \converter literate dviluatex "" ""
517
+
518
+
519
+ INFO: checking for a Sweave -> LaTeX converter...
520
+ DEBUG: (Rscript --verbose --no-save --no-restore $$s/scripts/lyxsweave.R $$p$$i $$p$$o $$e $$r)
521
+ INFO: +checking for "Rscript"... not in path
522
+ DEBUG: Add to RC:
523
+ \converter sweave latex "" "needauth"
524
+ \converter sweave pdflatex "" "needauth"
525
+ \converter sweave-ja platex "" "needauth"
526
+ \converter sweave xetex "" "needauth"
527
+ \converter sweave luatex "" "needauth"
528
+ \converter sweave dviluatex "" "needauth"
529
+
530
+
531
+ INFO: checking for a knitr -> LaTeX converter...
532
+ DEBUG: (Rscript --verbose --no-save --no-restore $$s/scripts/lyxknitr.R $$p$$i $$p$$o $$e $$r)
533
+ INFO: +checking for "Rscript"... not in path
534
+ DEBUG: Add to RC:
535
+ \converter knitr latex "" "needauth"
536
+ \converter knitr pdflatex "" "needauth"
537
+ \converter knitr-ja platex "" "needauth"
538
+ \converter knitr xetex "" "needauth"
539
+ \converter knitr luatex "" "needauth"
540
+ \converter knitr dviluatex "" "needauth"
541
+
542
+
543
+ INFO: checking for a Sweave -> R/S code converter...
544
+ DEBUG: (Rscript --verbose --no-save --no-restore $$s/scripts/lyxstangle.R $$i $$e $$r)
545
+ INFO: +checking for "Rscript"... not in path
546
+ DEBUG: Add to RC:
547
+ \converter sweave-ja r "" ""
548
+
549
+
550
+ INFO: checking for a knitr -> R/S code converter...
551
+ DEBUG: (Rscript --verbose --no-save --no-restore $$s/scripts/lyxknitr.R $$p$$i $$p$$o $$e $$r tangle)
552
+ INFO: +checking for "Rscript"... not in path
553
+ DEBUG: Add to RC:
554
+ \converter knitr-ja r "" ""
555
+
556
+
557
+ INFO: checking for an HTML -> LaTeX converter...
558
+ DEBUG: (html2latex $$i,gnuhtml2latex,htmltolatex -input $$i -output $$o,htmltolatex.jar -input $$i -output $$o)
559
+ INFO: +checking for "html2latex"... not in path
560
+ INFO: +checking for "gnuhtml2latex"... not in path
561
+ INFO: +checking for "htmltolatex"... not in path
562
+ INFO: checking for an MS Word -> LaTeX converter...
563
+ DEBUG: (wvCleanLatex $$i $$o)
564
+ INFO: +checking for "wvCleanLatex"... not in path
565
+ DEBUG: Add to RC:
566
+ \converter word latex "" ""
567
+
568
+
569
+ INFO: checking for a LyX -> HTML converter...
570
+ DEBUG: (elyxer.py --nofooter --directory $$r $$i $$o,elyxer --nofooter --directory $$r $$i $$o)
571
+ INFO: +checking for "elyxer.py"... not in path
572
+ INFO: +checking for "elyxer"... not in path
573
+ DEBUG: Add to RC:
574
+ \converter lyx html "" ""
575
+
576
+
577
+ INFO: checking for a LyX -> HTML (MS Word) converter...
578
+ DEBUG: (elyxer.py --nofooter --html --directory $$r $$i $$o,elyxer --nofooter --html --directory $$r $$i $$o)
579
+ INFO: +checking for "elyxer.py"... not in path
580
+ INFO: +checking for "elyxer"... not in path
581
+ DEBUG: Add to RC:
582
+ \converter lyx wordhtml "" ""
583
+
584
+
585
+ INFO: checking for a LyX -> OpenDocument (eLyXer) converter...
586
+ DEBUG: (elyxer.py --html --nofooter --unicode --directory $$r $$i $$o,elyxer --html --nofooter --unicode --directory $$r $$i $$o)
587
+ INFO: +checking for "elyxer.py"... not in path
588
+ INFO: +checking for "elyxer"... not in path
589
+ DEBUG: Add to RC:
590
+ \converter lyx odt2 "" ""
591
+
592
+
593
+ INFO: checking for a LyX -> Word converter...
594
+ DEBUG: (elyxer.py --html --nofooter --unicode --directory $$r $$i $$o,elyxer --html --nofooter --unicode --directory $$r $$i $$o)
595
+ INFO: +checking for "elyxer.py"... not in path
596
+ INFO: +checking for "elyxer"... not in path
597
+ DEBUG: Add to RC:
598
+ \converter lyx word "" ""
599
+
600
+
601
+ INFO: checking for a LaTeX -> HTML converter...
602
+ DEBUG: (htlatex $$i,htlatex.sh $$i,/usr/share/tex4ht/htlatex $$i,tth -t -e2 -L$$b < $$i > $$o,latex2html -no_subdir -split 0 -show_section_numbers $$i,hevea -s $$i)
603
+ INFO: +checking for "htlatex"... not in path
604
+ INFO: +checking for "htlatex.sh"... not in path
605
+ INFO: +checking for "/usr/share/tex4ht/htlatex"... not in path
606
+ INFO: +checking for "tth"... not in path
607
+ INFO: +checking for "latex2html"... not in path
608
+ INFO: +checking for "hevea"... not in path
609
+ DEBUG: Add to RC:
610
+ \converter latex html "" "needaux"
611
+
612
+
613
+ DEBUG: Add to RC:
614
+ \copier html "$${python} $$s/scripts/ext_copy.py $$i $$o"
615
+
616
+
617
+ INFO: checking for a LaTeX -> HTML (MS Word) converter...
618
+ DEBUG: (htlatex $$i 'html,word' 'symbol/!' '-cvalidate',htlatex.sh $$i 'html,word' 'symbol/!' '-cvalidate',/usr/share/tex4ht/htlatex $$i 'html,word' 'symbol/!' '-cvalidate')
619
+ INFO: +checking for "htlatex"... not in path
620
+ INFO: +checking for "htlatex.sh"... not in path
621
+ INFO: +checking for "/usr/share/tex4ht/htlatex"... not in path
622
+ DEBUG: Add to RC:
623
+ \converter latex wordhtml "" "needaux"
624
+
625
+
626
+ DEBUG: Add to RC:
627
+ \copier wordhtml "$${python} $$s/scripts/ext_copy.py $$i $$o"
628
+
629
+
630
+ INFO: checking for "lyxblogger module"... no
631
+ INFO: checking for an OpenOffice.org -> LaTeX converter...
632
+ DEBUG: (w2l -clean $$i)
633
+ INFO: +checking for "w2l"... not in path
634
+ DEBUG: Add to RC:
635
+ \converter sxw latex "" ""
636
+
637
+
638
+ INFO: checking for an OpenDocument -> LaTeX converter...
639
+ DEBUG: (w2l -clean $$i)
640
+ INFO: +checking for "w2l"... not in path
641
+ DEBUG: Add to RC:
642
+ \converter odt latex "" ""
643
+
644
+
645
+ INFO: checking for an Open Document (Pandoc) -> LaTeX converter...
646
+ DEBUG: (pandoc -s -f odt -o $$o -t latex $$i)
647
+ INFO: +checking for "pandoc"... not in path
648
+ DEBUG: Add to RC:
649
+ \converter odt3 latex "" ""
650
+
651
+
652
+ INFO: checking for DocBook converter -> PDF (docbook)...
653
+ DEBUG: (pandoc -f docbook -t latex --pdf-engine=lualatex --toc -o $$o $$i,pandoc -f docbook -t latex --latex-engine=lualatex --toc -o $$o $$i)
654
+ INFO: +checking for "pandoc"... not in path
655
+ INFO: +checking for "pandoc"... not in path
656
+ DEBUG: Add to RC:
657
+ \converter docbook5 pdf9 "" ""
658
+
659
+
660
+ INFO: checking for XSLT stylesheets for ePub...
661
+ DEBUG: (chunk.xsl)
662
+ INFO: +checking for "chunk.xsl"... not in path
663
+ INFO: checking for a MS Word Office Open XML converter -> LaTeX...
664
+ DEBUG: (pandoc -s -f docx -o $$o -t latex $$i)
665
+ INFO: +checking for "pandoc"... not in path
666
+ DEBUG: Add to RC:
667
+ \converter word2 latex "" ""
668
+
669
+
670
+ INFO: checking for an OpenDocument -> PDF converter...
671
+ DEBUG: (unoconv -f pdf --stdout $$i > $$o)
672
+ INFO: +checking for "unoconv"... not in path
673
+ DEBUG: Add to RC:
674
+ \converter odt pdf6 "" ""
675
+
676
+
677
+ INFO: checking for a LaTeX -> Open Document (tex4ht) converter...
678
+ DEBUG: (oolatex $$i,make4ht -f odt $$i,oolatex.sh $$i,/usr/share/tex4ht/oolatex $$i,htlatex $$i 'xhtml,ooffice' 'ooffice/! -cmozhtf' '-coo' '-cvalidate')
679
+ INFO: +checking for "oolatex"... not in path
680
+ INFO: +checking for "make4ht"... not in path
681
+ INFO: +checking for "oolatex.sh"... not in path
682
+ INFO: +checking for "/usr/share/tex4ht/oolatex"... not in path
683
+ INFO: +checking for "htlatex"... not in path
684
+ DEBUG: Add to RC:
685
+ \converter latex odt "" "needaux"
686
+
687
+
688
+ INFO: checking for a LaTeX -> RTF converter...
689
+ DEBUG: (latex2rtf -p -S -o $$o $$i,latex2rt -p -S -o $$o $$i)
690
+ INFO: +checking for "latex2rtf"... not in path
691
+ INFO: +checking for "latex2rt"... not in path
692
+ DEBUG: Add to RC:
693
+ \converter latex rtf "" "needaux"
694
+
695
+
696
+ INFO: checking for a LaTeX -> Open Document (Pandoc) converter...
697
+ DEBUG: (pandoc -s -f latex -o $$o -t odt $$i)
698
+ INFO: +checking for "pandoc"... not in path
699
+ DEBUG: Add to RC:
700
+ \converter latex odt3 "" ""
701
+
702
+
703
+ INFO: checking for a LaTeX -> MS Word Office Open XML converter...
704
+ DEBUG: (pandoc -s -f latex -o $$o -t docx $$i)
705
+ INFO: +checking for "pandoc"... not in path
706
+ DEBUG: Add to RC:
707
+ \converter latex word2 "" ""
708
+
709
+
710
+ INFO: checking for a RTF -> HTML converter...
711
+ DEBUG: (unrtf --html $$i > $$o)
712
+ INFO: +checking for "unrtf"... not in path
713
+ DEBUG: Add to RC:
714
+ \converter rtf html "" ""
715
+
716
+
717
+ INFO: checking for a PS to PDF converter...
718
+ DEBUG: (ps2pdf -dALLOWPSTRANSPARENCY $$i $$o)
719
+ INFO: +checking for "ps2pdf"... not in path
720
+ DEBUG: Add to RC:
721
+ \converter ps pdf "" "hyperref-driver=dvips"
722
+
723
+
724
+ INFO: checking for a PS to TXT converter...
725
+ DEBUG: (pstotext $$i > $$o)
726
+ INFO: +checking for "pstotext"... not in path
727
+ DEBUG: Add to RC:
728
+ \converter ps text2 "" ""
729
+
730
+
731
+ INFO: checking for a PS to TXT converter...
732
+ DEBUG: (ps2ascii $$i $$o)
733
+ INFO: +checking for "ps2ascii"... not in path
734
+ DEBUG: Add to RC:
735
+ \converter ps text3 "" ""
736
+
737
+
738
+ INFO: checking for a PS to EPS converter...
739
+ DEBUG: (ps2eps -- < $$i > $$o)
740
+ INFO: +checking for "ps2eps"... not in path
741
+ DEBUG: Add to RC:
742
+ \converter eps2 eps "" ""
743
+
744
+
745
+ INFO: checking for a PDF to PS converter...
746
+ DEBUG: (pdftops $$i $$o,pdf2ps $$i $$o)
747
+ INFO: +checking for "pdftops"... not in path
748
+ INFO: +checking for "pdf2ps"... not in path
749
+ DEBUG: Add to RC:
750
+ \converter pdf ps "" ""
751
+
752
+
753
+ INFO: checking for a PDF to EPS converter...
754
+ DEBUG: (pdftops -eps -f 1 -l 1 $$i $$o)
755
+ INFO: +checking for "pdftops"... not in path
756
+ DEBUG: Add to RC:
757
+ \converter pdf6 eps "" ""
758
+
759
+
760
+ INFO: checking for a PDF cropping tool...
761
+ DEBUG: (pdfcrop $$i $$o)
762
+ INFO: +checking for "pdfcrop"... not in path
763
+ DEBUG: Add to RC:
764
+ \converter pdf2 pdf7 "" ""
765
+ \converter pdf4 pdf7 "" ""
766
+
767
+
768
+ INFO: checking for Ghostscript...
769
+ DEBUG: (gswin32c,gswin64c,gs)
770
+ INFO: +checking for "gswin32c"... not in path
771
+ INFO: +checking for "gswin64c"... not in path
772
+ INFO: +checking for "gs"... not in path
773
+ DEBUG: Add to RC:
774
+ \converter pdf2 pdf8 "$${python} $$s/scripts/convert_pdf.py $$i $$o ebook" ""
775
+ \converter pdf4 pdf8 "$${python} $$s/scripts/convert_pdf.py $$i $$o ebook" ""
776
+
777
+
778
+ INFO: checking for a Beamer info extractor...
779
+ DEBUG: (makebeamerinfo -p $$i)
780
+ INFO: +checking for "makebeamerinfo"... not in path
781
+ DEBUG: Add to RC:
782
+ \converter pdf2 beamer.info "" ""
783
+
784
+
785
+ INFO: checking for a DVI to TXT converter...
786
+ DEBUG: (catdvi $$i > $$o)
787
+ INFO: +checking for "catdvi"... not in path
788
+ DEBUG: Add to RC:
789
+ \converter dvi text4 "" ""
790
+
791
+
792
+ INFO: checking for a DVI to PS converter...
793
+ DEBUG: (dvips -o $$o $$i)
794
+ INFO: +checking for "dvips"... not in path
795
+ DEBUG: Add to RC:
796
+ \converter dvi ps "" "hyperref-driver=dvips"
797
+
798
+
799
+ INFO: checking for a DVI to cropped EPS converter...
800
+ DEBUG: (dvips -E -o $$o $$i)
801
+ INFO: +checking for "dvips"... not in path
802
+ DEBUG: Add to RC:
803
+ \converter dvi eps3 "" ""
804
+
805
+
806
+ INFO: checking for a DVI to PDF converter...
807
+ DEBUG: (dvipdfmx,dvipdfm)
808
+ INFO: +checking for "dvipdfmx"... not in path
809
+ INFO: +checking for "dvipdfm"... not in path
810
+ DEBUG: Add to RC:
811
+ \converter dvi pdf3 " -o $$o $$i" "hyperref-driver="
812
+
813
+
814
+ INFO: checking for a fax program...
815
+ DEBUG: (kdeprintfax $$i,ksendfax $$i,hylapex $$i)
816
+ INFO: +checking for "kdeprintfax"... not in path
817
+ INFO: +checking for "ksendfax"... not in path
818
+ INFO: +checking for "hylapex"... not in path
819
+ DEBUG: Add to RC:
820
+ \converter ps fax "" ""
821
+
822
+
823
+ INFO: checking for a FIG -> Image converter...
824
+ DEBUG: (fig2dev)
825
+ INFO: +checking for "fig2dev"... not in path
826
+ INFO: checking for a SVG -> PDFTeX converter...
827
+ DEBUG: (inkscape)
828
+ INFO: +checking for "inkscape"... not in path
829
+ DEBUG: Add to RC:
830
+ \converter svg pdftex "$${python} $$s/scripts/svg2pdftex.py $$p$$i $$p$$o" ""
831
+
832
+
833
+ INFO: checking for a SVG -> PSTeX converter...
834
+ DEBUG: (inkscape)
835
+ INFO: +checking for "inkscape"... not in path
836
+ DEBUG: Add to RC:
837
+ \converter svg pstex "$${python} $$s/scripts/svg2pstex.py $$p$$i $$p$$o" ""
838
+
839
+
840
+ INFO: checking for a TIFF -> PS converter...
841
+ DEBUG: (tiff2ps $$i > $$o)
842
+ INFO: +checking for "tiff2ps"... not in path
843
+ DEBUG: Add to RC:
844
+ \converter tiff eps "" ""
845
+
846
+
847
+ INFO: checking for a TGIF -> EPS/PPM converter...
848
+ DEBUG: (tgif)
849
+ INFO: +checking for "tgif"... not in path
850
+ DEBUG: Add to RC:
851
+ \converter tgif eps "tgif -print -color -eps -stdout $$i > $$o" ""
852
+ \converter tgif png "tgif -print -color -png -o $$d $$i" ""
853
+ \converter tgif pdf6 "tgif -print -color -pdf -stdout $$i > $$o" ""
854
+
855
+
856
+ INFO: checking for a WMF -> EPS converter...
857
+ DEBUG: (metafile2eps $$i $$o,wmf2eps -o $$o $$i,inkscape $$i --export-area-drawing --export-filename=$$o)
858
+ INFO: +checking for "metafile2eps"... not in path
859
+ INFO: +checking for "wmf2eps"... not in path
860
+ INFO: +checking for "inkscape"... not in path
861
+ DEBUG: Add to RC:
862
+ \converter wmf eps "" ""
863
+
864
+
865
+ INFO: checking for an EMF -> EPS converter...
866
+ DEBUG: (metafile2eps $$i $$o,inkscape $$i --export-area-drawing --export-filename=$$o)
867
+ INFO: +checking for "metafile2eps"... not in path
868
+ INFO: +checking for "inkscape"... not in path
869
+ DEBUG: Add to RC:
870
+ \converter emf eps "" ""
871
+
872
+
873
+ INFO: checking for a WMF -> PDF converter...
874
+ DEBUG: (inkscape $$i --export-area-drawing --export-filename=$$o)
875
+ INFO: +checking for "inkscape"... not in path
876
+ DEBUG: Add to RC:
877
+ \converter wmf pdf6 "" ""
878
+
879
+
880
+ INFO: checking for an EMF -> PDF converter...
881
+ DEBUG: (inkscape $$i --export-area-drawing --export-filename=$$o)
882
+ INFO: +checking for "inkscape"... not in path
883
+ DEBUG: Add to RC:
884
+ \converter emf pdf6 "" ""
885
+
886
+
887
+ INFO: checking for an EPS -> PDF converter...
888
+ DEBUG: (epstopdf)
889
+ INFO: +checking for "epstopdf"... not in path
890
+ DEBUG: Add to RC:
891
+ \converter eps pdf6 "epstopdf --outfile=$$o $$i" ""
892
+
893
+
894
+ INFO: checking for an EPS -> PNG converter...
895
+ DEBUG: (magick,convert)
896
+ INFO: +checking for "magick"... not in path
897
+ INFO: +checking for "convert"... not in path
898
+ INFO: checking for a PDF to PNG converter...
899
+ DEBUG: (sips --resampleWidth 800 --setProperty format png $$i --out $$o)
900
+ INFO: +checking for "sips"... not in path
901
+ DEBUG: Add to RC:
902
+ \converter pdf6 png "" ""
903
+
904
+
905
+ INFO: checking for a Grace -> Image converter...
906
+ DEBUG: (gracebat)
907
+ INFO: +checking for "gracebat"... not in path
908
+ DEBUG: Add to RC:
909
+ \converter agr eps "gracebat -hardcopy -printfile $$o -hdevice EPS $$i 2>/dev/null" ""
910
+ \converter agr png "gracebat -hardcopy -printfile $$o -hdevice PNG $$i 2>/dev/null" ""
911
+ \converter agr jpg "gracebat -hardcopy -printfile $$o -hdevice JPEG $$i 2>/dev/null" ""
912
+ \converter agr ppm "gracebat -hardcopy -printfile $$o -hdevice PNM $$i 2>/dev/null" ""
913
+
914
+
915
+ INFO: checking for a Dot -> Image converter...
916
+ DEBUG: (dot)
917
+ INFO: +checking for "dot"... not in path
918
+ DEBUG: Add to RC:
919
+ \converter dot eps "dot -Teps $$i -o $$o" ""
920
+ \converter dot png "dot -Tpng $$i -o $$o" ""
921
+
922
+
923
+ INFO: checking for a Dia -> Image converter...
924
+ DEBUG: (dia)
925
+ INFO: +checking for "dia"... not in path
926
+ INFO: checking for an OpenDocument -> EPS converter...
927
+ DEBUG: (libreoffice --headless --nologo --convert-to eps $$i,unoconv -f eps --stdout $$i > $$o)
928
+ INFO: +checking for "libreoffice"... not in path
929
+ INFO: +checking for "unoconv"... not in path
930
+ DEBUG: Add to RC:
931
+ \converter odg eps2 "" ""
932
+
933
+
934
+ INFO: checking for a SVG (compressed) -> SVG converter...
935
+ DEBUG: (gunzip -c $$i > $$o)
936
+ INFO: +checking for "gunzip"... yes
937
+ DEBUG: Add to RC:
938
+ \converter svgz svg "gunzip -c $$i > $$o" ""
939
+
940
+
941
+ INFO: checking for a SVG -> SVG (compressed) converter...
942
+ DEBUG: (gzip -c $$i > $$o)
943
+ INFO: +checking for "gzip"... yes
944
+ DEBUG: Add to RC:
945
+ \converter svg svgz "gzip -c $$i > $$o" ""
946
+
947
+
948
+ INFO: checking for a SVG -> PDF converter...
949
+ DEBUG: (rsvg-convert -f pdf -o $$o $$i,inkscape $$i --export-area-drawing --export-filename=$$o)
950
+ INFO: +checking for "rsvg-convert"... not in path
951
+ INFO: +checking for "inkscape"... not in path
952
+ DEBUG: Add to RC:
953
+ \converter svg pdf6 "" ""
954
+ \converter svgz pdf6 "" ""
955
+
956
+
957
+ INFO: checking for a SVG -> EPS converter...
958
+ DEBUG: (rsvg-convert -f ps -o $$o $$i,inkscape $$i --export-area-drawing --export-filename=$$o)
959
+ INFO: +checking for "rsvg-convert"... not in path
960
+ INFO: +checking for "inkscape"... not in path
961
+ DEBUG: Add to RC:
962
+ \converter svg eps "" ""
963
+ \converter svgz eps "" ""
964
+
965
+
966
+ INFO: checking for a SVG -> PNG converter...
967
+ DEBUG: (rsvg-convert -f png -o $$o $$i,inkscape $$i --export-filename=$$o)
968
+ INFO: +checking for "rsvg-convert"... not in path
969
+ INFO: +checking for "inkscape"... not in path
970
+ DEBUG: Add to RC:
971
+ \converter svg png "" "",
972
+ \converter svgz png "" ""
973
+
974
+
975
+ INFO: checking for Gnuplot...
976
+ DEBUG: (gnuplot)
977
+ INFO: +checking for "gnuplot"... not in path
978
+ DEBUG: Add to RC:
979
+ \Format gnuplot "gp, gnuplot" "Gnuplot" "" "" "" "vector" "text/plain"
980
+ \converter gnuplot pdf6 "$${python} $$s/scripts/gnuplot2pdf.py $$i $$o" "needauth"
981
+
982
+
983
+ INFO: checking for a spreadsheet -> latex converter...
984
+ DEBUG: (ssconvert)
985
+ INFO: +checking for "ssconvert"... not in path
986
+ DEBUG: Add to RC:
987
+ \converter gnumeric latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
988
+ \converter oocalc latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
989
+ \converter excel latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
990
+ \converter excel2 latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
991
+ \converter gnumeric html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
992
+ \converter oocalc html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
993
+ \converter excel html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
994
+ \converter excel2 html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
995
+ \converter gnumeric xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
996
+ \converter oocalc xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
997
+ \converter excel xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
998
+ \converter excel2 xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
999
+
1000
+
1001
+
1002
+ INFO: checking for a LilyPond -> EPS/PDF/PNG converter...
1003
+ DEBUG: (lilypond)
1004
+ INFO: +checking for "lilypond"... not in path
1005
+ INFO: checking for a LilyPond book (LaTeX) -> LaTeX converter...
1006
+ DEBUG: (lilypond-book)
1007
+ INFO: +checking for "lilypond-book"... not in path
1008
+ INFO: checking for a Noteedit -> LilyPond converter...
1009
+ DEBUG: (noteedit --export-lilypond $$i)
1010
+ INFO: +checking for "noteedit"... not in path
1011
+ DEBUG: Add to RC:
1012
+ \converter noteedit lilypond "" ""
1013
+
1014
+
1015
+ DEBUG: Add to RC:
1016
+ \Format lyxgz gz "LyX Archive (tar.gz)" "" "" "" "document,menu=export" ""
1017
+
1018
+
1019
+ DEBUG: Add to RC:
1020
+ \converter lyx lyxgz "$${python} $$s/scripts/lyxpak.py $$r/$$f" ""
1021
+
1022
+
1023
+ DEBUG: Add to RC:
1024
+
1025
+ \converter csv lyx "$${python} $$s/scripts/csv2lyx.py $$i $$o" ""
1026
+ \converter fen asciichess "$${python} $$s/scripts/fen2ascii.py $$i $$o" ""
1027
+ \converter lyx lyx13x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.3 -o $$o $$i" ""
1028
+ \converter lyx lyx14x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o $$i" ""
1029
+ \converter lyx lyx15x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.5 -o $$o $$i" ""
1030
+ \converter lyx lyx16x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.6 -o $$o $$i" ""
1031
+ \converter lyx lyx20x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.0 -o $$o $$i" ""
1032
+ \converter lyx lyx21x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.1 -o $$o $$i" ""
1033
+ \converter lyx lyx22x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.2 -o $$o $$i" ""
1034
+ \converter lyx lyx23x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.3 -o $$o $$i" ""
1035
+ \converter lyx clyx "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o -c big5 $$i" ""
1036
+ \converter lyx jlyx "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o -c euc_jp $$i" ""
1037
+ \converter lyx klyx "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o -c euc_kr $$i" ""
1038
+ \converter clyx lyx "$${python} $$s/lyx2lyx/lyx2lyx -c big5 -o $$o $$i" ""
1039
+ \converter jlyx lyx "$${python} $$s/lyx2lyx/lyx2lyx -c euc_jp -o $$o $$i" ""
1040
+ \converter klyx lyx "$${python} $$s/lyx2lyx/lyx2lyx -c euc_kr -o $$o $$i" ""
1041
+ \converter lyxpreview png "$${python} $$s/scripts/lyxpreview2bitmap.py --png" ""
1042
+ \converter lyxpreview ppm "$${python} $$s/scripts/lyxpreview2bitmap.py --ppm" ""
1043
+
1044
+
1045
+
1046
+ INFO: Checking whether TeX allows spaces in file names... no
1047
+ DEBUG: Add to RC:
1048
+ \tex_allows_spaces false
1049
+
1050
+
1051
+ DEBUG: Removing file a b.tex
1052
+ DEBUG: No need to remove file a b.log (it does not exists)
1053
+ DEBUG: No need to remove file texput.log (it does not exists)
1054
+ INFO: checking for ChkTeX...
1055
+ DEBUG: (chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38)
1056
+ INFO: +checking for "chktex"... not in path
1057
+ DEBUG: Add to RC:
1058
+ \chktex_command ""
1059
+
1060
+
1061
+ INFO: checking for BibTeX or alternative programs...
1062
+ DEBUG: (bibtex,bibtex8,biber)
1063
+ INFO: +checking for "bibtex"... no
1064
+ INFO: +checking for "bibtex8"... no
1065
+ INFO: +checking for "biber"... no
1066
+ DEBUG: Add to RC:
1067
+ \bibtex_command "automatic"
1068
+
1069
+
1070
+ INFO: checking for a specific Japanese BibTeX variant...
1071
+ DEBUG: (pbibtex,upbibtex,jbibtex,bibtex,biber)
1072
+ INFO: +checking for "pbibtex"... no
1073
+ INFO: +checking for "upbibtex"... no
1074
+ INFO: +checking for "jbibtex"... no
1075
+ INFO: +checking for "bibtex"... no
1076
+ INFO: +checking for "biber"... no
1077
+ DEBUG: Add to RC:
1078
+ \jbibtex_command "automatic"
1079
+
1080
+
1081
+ INFO: checking for available index processors...
1082
+ DEBUG: (texindy $$x -t $$b.ilg,xindex -l $$lcode,makeindex -c -q,xindy -M texindy $$x -t $$b.ilg)
1083
+ INFO: +checking for "texindy"... no
1084
+ INFO: +checking for "xindex"... no
1085
+ INFO: +checking for "makeindex"... no
1086
+ INFO: +checking for "xindy"... no
1087
+ DEBUG: Add to RC:
1088
+ \index_command ""
1089
+
1090
+
1091
+ INFO: checking for an index processor appropriate to Japanese...
1092
+ DEBUG: (mendex -c -q,jmakeindex -c -q,makeindex -c -q)
1093
+ INFO: +checking for "mendex"... not in path
1094
+ INFO: +checking for "jmakeindex"... not in path
1095
+ INFO: +checking for "makeindex"... not in path
1096
+ DEBUG: Add to RC:
1097
+ \jindex_command ""
1098
+
1099
+
1100
+ INFO: checking for the splitindex processor...
1101
+ DEBUG: (splitindex.pl,splitindex,splitindex.class)
1102
+ INFO: +checking for "splitindex.pl"... not in path
1103
+ INFO: +checking for "splitindex"... not in path
1104
+ DEBUG: Add to RC:
1105
+ \splitindex_command ""
1106
+
1107
+
1108
+ INFO: checking for a nomenclature processor...
1109
+ DEBUG: (makeindex)
1110
+ INFO: +checking for "makeindex"... not in path
1111
+ DEBUG: Add to RC:
1112
+ \nomencl_command "makeindex -s nomencl.ist"
1113
+
1114
+
1115
+ INFO: checking for a python-pygments driver command...
1116
+ DEBUG: (pygmentize)
1117
+ INFO: +checking for "pygmentize"... not in path
1118
+ DEBUG: Add to RC:
1119
+ \pygmentize_command ""
1120
+
1121
+
1122
+ DEBUG: Add to RC:
1123
+ \citation_search_view "$${python} $$s/scripts/lyxpaperview.py"
1124
+
1125
+
1126
+ DEBUG: Add to RC:
1127
+ \copier fig "$${python} $$s/scripts/fig_copy.py $$i $$o"
1128
+ \copier pstex "$${python} $$s/scripts/tex_copy.py $$i $$o $$l"
1129
+ \copier pdftex "$${python} $$s/scripts/tex_copy.py $$i $$o $$l"
1130
+ \copier program "$${python} $$s/scripts/ext_copy.py $$i $$o"
1131
+
1132
+
1133
+
1134
+ INFO: +Indexing TeX files...
1135
+ INFO: Indexing files of type cls
1136
+ Indexing files of type sty
1137
+ Indexing files of type bst
1138
+ Indexing files of type bib
1139
+ Indexing files of type bbx
1140
+ Indexing files of type cbx
1141
+ INFO: done
1142
+ DEBUG: No need to remove file lyxmodules.lst (it does not exists)
1143
+ DEBUG: No need to remove file chkmodules.tex (it does not exists)
1144
+ INFO: +checking list of modules...
1145
+ INFO: /usr/share/lyx/layouts/theorems-chap.module
1146
+ INFO: /usr/share/lyx/layouts/knitr.module
1147
+ INFO: /usr/share/lyx/layouts/ruby.module
1148
+ INFO: /usr/share/lyx/layouts/tabs-within-sections.module
1149
+ INFO: /usr/share/lyx/layouts/todonotes.module
1150
+ INFO: /usr/share/lyx/layouts/theorems-starred.module
1151
+ INFO: /usr/share/lyx/layouts/tcolorbox.module
1152
+ INFO: /usr/share/lyx/layouts/InStar.module
1153
+ INFO: /usr/share/lyx/layouts/chessboard.module
1154
+ INFO: /usr/share/lyx/layouts/theorems-ams-extended-chap-bytype.module
1155
+ INFO: /usr/share/lyx/layouts/eqs-within-sections.module
1156
+ INFO: /usr/share/lyx/layouts/hpstatement.module
1157
+ INFO: /usr/share/lyx/layouts/theorems-ams-extended.module
1158
+ INFO: /usr/share/lyx/layouts/logicalmkup.module
1159
+ INFO: /usr/share/lyx/layouts/enotez.module
1160
+ INFO: /usr/share/lyx/layouts/algorithm2e.module
1161
+ INFO: /usr/share/lyx/layouts/theorems-ams-chap-bytype.module
1162
+ INFO: /usr/share/lyx/layouts/foottoenotez.module
1163
+ INFO: /usr/share/lyx/layouts/theorems-ams-extended-bytype.module
1164
+ INFO: /usr/share/lyx/layouts/endnotes.module
1165
+ INFO: /usr/share/lyx/layouts/figs-within-sections.module
1166
+ INFO: /usr/share/lyx/layouts/fix-cm.module
1167
+ INFO: /usr/share/lyx/layouts/bicaption.module
1168
+ INFO: /usr/share/lyx/layouts/sweave.module
1169
+ INFO: /usr/share/lyx/layouts/shapepar.module
1170
+ INFO: /usr/share/lyx/layouts/braille.module
1171
+ INFO: /usr/share/lyx/layouts/theorems-std.module
1172
+ INFO: /usr/share/lyx/layouts/multicol.module
1173
+ INFO: /usr/share/lyx/layouts/theorems-ams.module
1174
+ INFO: /usr/share/lyx/layouts/enumitem.module
1175
+ INFO: /usr/share/lyx/layouts/fixltx2e.module
1176
+ INFO: /usr/share/lyx/layouts/theorems-ams-bytype.module
1177
+ INFO: /usr/share/lyx/layouts/theorems-sec-bytype.module
1178
+ INFO: /usr/share/lyx/layouts/pdfform.module
1179
+ INFO: /usr/share/lyx/layouts/pdfcomment.module
1180
+ INFO: /usr/share/lyx/layouts/paralist.module
1181
+ INFO: /usr/share/lyx/layouts/linguistics.module
1182
+ INFO: /usr/share/lyx/layouts/landscape.module
1183
+ INFO: /usr/share/lyx/layouts/fixme.module
1184
+ INFO: /usr/share/lyx/layouts/noweb.module
1185
+ INFO: /usr/share/lyx/layouts/customHeadersFooters.module
1186
+ INFO: /usr/share/lyx/layouts/minimalistic.module
1187
+ INFO: /usr/share/lyx/layouts/graphicboxes.module
1188
+ INFO: /usr/share/lyx/layouts/sectionbox.module
1189
+ INFO: /usr/share/lyx/layouts/theorems-bytype.module
1190
+ INFO: /usr/share/lyx/layouts/initials.module
1191
+ INFO: /usr/share/lyx/layouts/rsphrase.module
1192
+ INFO: /usr/share/lyx/layouts/varwidth.module
1193
+ INFO: /usr/share/lyx/layouts/subequations.module
1194
+ INFO: /usr/share/lyx/layouts/theorems-chap-bytype.module
1195
+ INFO: /usr/share/lyx/layouts/theorems-sec.module
1196
+ INFO: /usr/share/lyx/layouts/natbibapa.module
1197
+ INFO: /usr/share/lyx/layouts/theorems-named.module
1198
+ INFO: /usr/share/lyx/layouts/soul.module
1199
+ INFO: /usr/share/lyx/layouts/foottoend.module
1200
+ INFO: /usr/share/lyx/layouts/lilypond.module
1201
+ INFO: /usr/share/lyx/layouts/hanging.module
1202
+ INFO: done
1203
+ DEBUG: No need to remove file lyxciteengines.lst (it does not exists)
1204
+ DEBUG: No need to remove file chkciteengines.tex (it does not exists)
1205
+ INFO: +checking list of cite engines...
1206
+ INFO: /usr/share/lyx/citeengines/biblatex.citeengine
1207
+ INFO: /usr/share/lyx/citeengines/jurabib.citeengine
1208
+ INFO: /usr/share/lyx/citeengines/biblatex-natbib.citeengine
1209
+ INFO: /usr/share/lyx/citeengines/natbib.citeengine
1210
+ INFO: /usr/share/lyx/citeengines/basic.citeengine
1211
+ INFO: done
1212
+ DEBUG: No need to remove file xtemplates.lst (it does not exists)
1213
+ INFO: +checking list of external templates...
1214
+ INFO: /usr/share/lyx/xtemplates/gnumeric.xtemplate
1215
+ INFO: /usr/share/lyx/xtemplates/inkscape.xtemplate
1216
+ INFO: /usr/share/lyx/xtemplates/vector_graphics.xtemplate
1217
+ INFO: /usr/share/lyx/xtemplates/xfig.xtemplate
1218
+ INFO: /usr/share/lyx/xtemplates/lilypond.xtemplate
1219
+ INFO: /usr/share/lyx/xtemplates/chess.xtemplate
1220
+ INFO: /usr/share/lyx/xtemplates/raster_image.xtemplate
1221
+ INFO: /usr/share/lyx/xtemplates/pdfpages.xtemplate
1222
+ INFO: /usr/share/lyx/xtemplates/dia.xtemplate
1223
+ INFO: done
1224
+ DEBUG: No need to remove file textclass.lst (it does not exists)
1225
+ DEBUG: No need to remove file packages.lst (it does not exists)
1226
+ INFO: checking LaTeX configuration... default values
1227
+ INFO: +checking list of textclasses...
1228
+ INFO: done
1229
+ INFO: +generating default list of packages...
1230
+ DEBUG: No need to remove file packages.lst (it does not exists)
1231
+ INFO: done
1232
+ DEBUG: No need to remove file chkconfig.vars (it does not exists)
1233
+ DEBUG: No need to remove file chklatex.ltx (it does not exists)
1234
+ DEBUG: No need to remove file chklatex.log (it does not exists)
1235
+ DEBUG: No need to remove file chklayouts.tex (it does not exists)
1236
+ DEBUG: Removing file chkmodules.tex
1237
+ DEBUG: Removing file chkciteengines.tex
1238
+ DEBUG: No need to remove file missfont.log (it does not exists)
1239
+ DEBUG: No need to remove file wrap_chkconfig.ltx (it does not exists)
1240
+ DEBUG: No need to remove file wrap_chkconfig.log (it does not exists)
bundle/envs/lyx/seed/.lyx/lyxciteengines.lst ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ ## This file declares cite engines and their associated definition files.
2
+ ## It has been automatically generated by configure
3
+ ## Use "Options/Reconfigure" if you need to update it after a
4
+ ## configuration change.
5
+ ## "CiteEngineName" "filename" "CiteEngineType" "CiteFramework" "DefaultBiblio" "Description" "Packages"
6
+ "Biblatex" "biblatex" "authoryear|numerical" "biblatex" "authoryear:authoryear|numerical:numeric" "Biblatex supports many author-year and numerical styles. It is mainly aimed at the Humanities. It is highly customizable, fully localized and provides many features that are not possible with BibTeX. The use of 'biber' as bibliography processor is advised." "biblatex.sty"
7
+ "Jurabib (BibTeX)" "jurabib" "authoryear" "bibtex" "jurabib" "Jurabib supports a range of author-year styles primarily suitable for law studies and the Humanities. It includes localizations for English, German, French, Dutch, Spanish and Italian." "jurabib.sty"
8
+ "Biblatex (natbib mode)" "biblatex-natbib" "authoryear|numerical" "biblatex" "authoryear:authoryear|numerical:numeric" "This Biblatex variety emulates the Natbib citation commands and thus is best suited for switching from Natbib (or the pre-LyX 2.3 Biblatex workaround) to Biblatex. The natbib mode supports slightly different and a few more styles than normal Biblatex. As with normal Biblatex, the use of 'biber' as Bibliography processor is advised." "biblatex.sty"
9
+ "Natbib (BibTeX)" "natbib" "authoryear|numerical" "bibtex" "authoryear:plainnat|numerical:plainnat" "Natbib supports a range of both author-year and numerical styles mainly aimed at the Humanities. It features automatic sorting and merging of numerical citations, annotations, capitalization of the `van' part of author names, shortened and full author lists, and more." "natbib.sty"
10
+ "Basic (BibTeX)" "basic" "default" "bibtex" "plain" "The basic citation capabilities provided by BibTeX. Mainly simple numeric styles primarily suitable for science and maths." ""
bundle/envs/lyx/seed/.lyx/lyxmodules.lst ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## This file declares modules and their associated definition files.
2
+ ## It has been automatically generated by configure
3
+ ## Use "Options/Reconfigure" if you need to update it after a
4
+ ## configuration change.
5
+ ## "ModuleName" "filename" "Description" "Packages" "Requires" "Excludes" "Category" "Local"
6
+ "Standard Theorems (Numbered by Chapter)" "theorems-chap" "Numbers theorems and the like by chapter (i.e., the counter is reset at each chapter start). Use this module only with document classes that provide a chapter environment." "" "theorems-std|theorems-ams" "theorems-sec" "Maths" "false"
7
+ "Rnw (knitr)" "knitr" "Uses the knitr package in R for dynamic report generation. This R package has to be installed for this module to work: install.packages('knitr'). Note it depends on R >= 2.14.1. For more info see http://yihui.name/knitr" "knitr->latex" "" "lilypond|sweave" "Literate Programming" "false"
8
+ "Ruby (Furigana)" "ruby" "Defines an inset to typeset reading aids (ruby, furigana) to Chinese characters. Uses the 'okumakro', 'luatexja-ruby', or 'ruby' package (depending on the TeX engine) or a fallback definition." "" "" "" "Annotation & Revision" "false"
9
+ "Number Tables by Section" "tabs-within-sections" "Resets the table number at section start and prepends the section number to the table number, as in 'Table 2.1'." "" "" "" "Floats & Captions" "false"
10
+ "TODO Notes" "todonotes" "Provides custom insets to insert TODO items in your document (using the todonotes package). In order to generate a 'List of TODOs', the module provides a paragraph style. Passing 'final' as document class option suppresses the output of TODO notes." "todonotes.sty" "" "" "Annotation & Revision" "false"
11
+ "Standard Theorems (Unnumbered)" "theorems-starred" "Defines only unnumbered theorem environments, and the proof environment, using the extended AMS machinery." "" "" "theorems-std|theorems-ams" "Maths" "false"
12
+ "Fancy Colored Boxes" "tcolorbox" "Adds custom insets that support colored boxes via the tcolorbox package. See the tcolorbox documentation for details." "tcolorbox.sty,environ.sty,etoolbox.sty,pgf.sty" "" "" "Boxes" "false"
13
+ "Title and Preamble Hacks" "InStar" "Provides two new styles: 1. An 'In Preamble' style that puts whatever is entered into it into the preamble. This can be used, if one wishes, to include preamble code in the body of the LyX document. 2. An 'In Title' style that will put its contents into the body of the LaTeX document, but before \maketitle is issued. This is useful for making branches and notes in title-related material. (If you put these in a Standard layout, this signals to LyX to output \maketitle, which may then come too early.)" "" "" "" "Fixes & Hacks" "false"
14
+ "Chess Board" "chessboard" "Support for the chessboard package to print chess games See File > Open Example > Articles > Chess where you will find Game 1 and Game 2." "chessboard.sty,chessfss.sty,xskak.sty" "" "" "Leisure, Sports & Music" "false"
15
+ "AMS Theorems (Extended, Numbered by Type within Chapters)" "theorems-ams-extended-chap-bytype" "Defines some additional theorem environments for use with the AMS theorems packages. Includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary, Conclusion, Assumption, and Case, in both numbered and non-numbered forms. Contrary to the plain AMS-Extended module, the different theorem types provided here each have a separate counter, restarted with each new chapter (e.g., criterion 1.1, criterion 1.2, axiom 1.1, assumption 1.1, #criterion 2.1, criterion 2.2, axiom 2.1..., as opposed to criterion 1, criterion 2, axiom 3, assumption 4...)" "" "theorems-ams-chap-bytype" "" "Maths" "false"
16
+ "Number Equations by Section" "eqs-within-sections" "Resets the equation number at section start and prepends the section number to the equation number, as in '(2.1)'." "" "" "" "Maths" "false"
17
+ "Chemistry: Hazard and Precautionary Statements" "hpstatement" "Provides two insets to typeset numbers and phrases of chemical hazard and precautionary statements. For a description see Help > Specific Manuals > Hazard and Precautionary Statements." "hpstatement.sty" "" "" "Academic Field Specifics" "false"
18
+ "AMS Theorems (Extended)" "theorems-ams-extended" "Defines some additional theorem environments for use with the AMS theorems packages. Includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary, Conclusion, Fact, Assumption, Case, and Question, in both numbered and non-numbered forms." "" "theorems-ams" "" "Maths" "false"
19
+ "Logical Markup" "logicalmkup" "Defines some character styles for logical markup: noun, emph, strong, and code." "" "" "" "Text Markup" "false"
20
+ "Endnotes (Extended)" "enotez" "Adds an endnote inset, in addition to footnotes. This uses the enotez package which is more powerful and customizable than then endnotes package (module 'Endnotes (Basic)'), but requires a fairly modern LaTeX distribution (with LaTeX3). You will need to add an endnotes list (Insert > List/Contents/References > Endnotes) where you want the endnotes to appear." "enotez.sty" "" "endnotes|foottoend" "Foot- and Endnotes" "false"
21
+ "Algorithm2e Float" "algorithm2e" "Use the algorithm2e package for algorithm floats rather than LyX's home-brewed algorithm floats. Use the Algorithm style to enter and indent the algorithm." "algorithm2e.sty" "" "" "Floats & Captions" "false"
22
+ "AMS Theorems (Numbered by Type within Chapters)" "theorems-ams-chap-bytype" "Defines theorem environments and the proof environment using the extended AMS machinery. Both numbered and unnumbered types are provided. Contrary to the plain AMS Theorem module, the different theorem types provided here each have a separate counter (e.g., theorem 1.1, theorem 1.2, lemma 1.1, proposition 1.1, theorem 1.3, lemma 1.2, ..., as opposed to theorem 1, theorem 2, lemma 3, proposition 4, ...). The numbering restarts for each chapter: theorem 1.1, theorem 2.1, ..." "" "" "theorems-std|theorems-starred|theorems-ams|theorems-bytype" "Maths" "false"
23
+ "Footnotes as Endnotes (Extended)" "foottoenotez" "Sets all footnotes as endnotes. This uses the enotez package which is more powerful and customizable than then endnotes package (module 'Footnotes as Endnotes (Basic)'), but requires a fairly modern LaTeX distribution (with LaTeX3).You will need to add an endnotes list (Insert > List/Contents/References > Endnotes) where you want the endnotes to appear." "enotez.sty" "" "endnotes|foottoend" "Foot- and Endnotes" "false"
24
+ "AMS Theorems (Extended, Numbered by Type)" "theorems-ams-extended-bytype" "Defines some additional theorem environments for use with the AMS theorems packages. Includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary, Conclusion, Assumption, and Case, in both numbered and non-numbered forms. Contrary to the plain AMS-Extended module, the different theorem types provided here each have a separate counter (e.g., criterion 1, criterion 2, axiom 1, assumption 1, criterion 3, ..., as opposed to criterion 1, criterion 2, axiom 3, assumption 4, ...)." "" "theorems-ams-bytype" "" "Maths" "false"
25
+ "Endnotes (Basic)" "endnotes" "Adds an endnote inset, in addition to footnotes. This uses the endnotes package, which has some limitations but works with older LaTeX distributions as well. You will need to add an endnotes list (Insert > List/Contents/References > Endnotes) where you want the endnotes to appear." "endnotes.sty" "" "enotez|foottoenotez" "Foot- and Endnotes" "false"
26
+ "Number Figures by Section" "figs-within-sections" "Resets the figure number at section start and prepends the section number to the figure number, as in 'fig. 2.1'." "" "" "" "Floats & Captions" "false"
27
+ "Fix Computer Modern Fonts" "fix-cm" "Fix-cm improves the appearance of Computer Modern fonts and makes them available with arbitrary sizes. For details see the documentation of the fix-cm.sty package: http://tug.org/texmf-dist/doc/latex/base/fixltx2e.pdf" "" "" "" "Fixes & Hacks" "false"
28
+ "Bilingual Captions" "bicaption" "Provides two styles to typeset bilingual captions. For a description see Help > Specific Manuals > Multilingual Captions." "bicaption.sty" "" "" "Floats & Captions" "false"
29
+ "Sweave" "sweave" "Allows to use the statistical language S/R as a literate programming tool via the Sweave() function. For more info see Help > Specific Manuals > Sweave." "sweave->latex,fancyvrb.sty" "" "lilypond" "Literate Programming" "false"
30
+ "Custom Paragraph Shapes" "shapepar" "Provides several paragraph shapes as well as commands to define custom shapes. For a description see LyX's Additional features manual, section Modules > Paragraph Styles > Custom Paragraph Shapes." "shapepar.sty" "" "" "Paragraph Styles" "false"
31
+ "Braille" "braille" "Defines an environment to typeset Braille. For more details see Help > Specific Manuals > Braille." "braille.sty" "" "" "Accessibility" "false"
32
+ "Standard Theorems" "theorems-std" "Defines some theorem environments for use with non-AMS classes. By default, the theorems are numbered consecutively throughout the document. This can be changed by loading one of the 'Theorems (Numbered by ...)' modules." "" "" "theorems-ams|theorems-starred" "Maths" "false"
33
+ "Multiple Columns" "multicol" "Adds a custom inset whose content is set with multiple columns (2 by default). See the Additional manual, section Modules > Page Layout > Multiple Columns, for a detailed description." "multicol.sty" "" "" "Page Layout" "false"
34
+ "AMS Theorems" "theorems-ams" "Defines theorem environments and the proof environment using the extended AMS machinery. Both numbered and unnumbered types are provided. By default, the theorems are numbered consecutively throughout the document. This can be changed by loading one of the 'Theorems (Numbered by ...)' modules." "" "" "theorems-std|theorems-starred" "Maths" "false"
35
+ "Customisable Lists (enumitem)" "enumitem" "Controls the layout of enumerate, itemize, description, and list/labeling. See section Customized Lists of the User's Guide for a detailed description." "enumitem.sty" "" "paralist" "List Enhancements" "false"
36
+ "LaTeX Kernel Fixes (Obsolete)" "fixltx2e" "Loads the LaTeX package fixltx2e which contains some bug fixes for LaTeX. Those fixes were not part of older LaTeX kernels because of backward compatibility. If you use this module your typeset document may look different with different LaTeX versions, depending on the respective version of fixltx2e. NOTE: recent LaTeX kernels (as of 2015/01/01) include the functionality of fixltx2e, so the fixltx2e module becomes obsolete with newer LaTeX distributions." "" "" "" "Fixes & Hacks" "false"
37
+ "AMS Theorems (Numbered by Type)" "theorems-ams-bytype" "Defines theorem environments and the proof environment using the extended AMS machinery. Both numbered and unnumbered types are provided. Contrary to the plain AMS Theorem module, the different theorem types provided here each have a separate counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma 2, ..., as opposed to theorem 1, theorem 2, lemma 3, proposition 4, ...). The numbering's scope is the whole document. For chapter- and section-wide numbering, use one of the 'within Sections'/'within Chapters' modules, respectively." "" "" "theorems-std|theorems-starred|theorems-ams|theorems-bytype" "Maths" "false"
38
+ "Standard Theorems (Numbered by Type within Sections)" "theorems-sec-bytype" "Defines some theorem environments for use with non-AMS classes. Contrary to the plain Theorem module, the different theorem types provided here each have a separate counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma 2, ..., as opposed to theorem 1, theorem 2, lemma 3, proposition 4, ...). The numbering is reset at each section start." "" "theorems-bytype|theorems-ams-bytype" "theorems-std|theorems-ams|theorems-starred|theorems-chap|theorems-chap-bytype" "Maths" "false"
39
+ "PDF Form" "pdfform" "Provides fields and buttons for PDF forms. The module uses the LaTeX package hyperref. Please consult Help > Specific Manuals > PDF forms and the documentation of hyperref for details." "" "" "" "Annotation & Revision" "false"
40
+ "PDF Comments" "pdfcomment" "Provides various kinds of annotations for the PDF output. The module uses the pdfcomment package. Please consult Help > Specific Manuals > PDF comments and the package documentation for details." "datetime.sty,fmtcount.sty" "" "" "Annotation & Revision" "false"
41
+ "Paragraph Lists (paralist)" "paralist" "The package paralist provides some new list environments. Itemized and enumerated lists can be typeset within paragraphs, as paragraphs and in a compact version. Most environments have optional arguments to format the labels. Additionally, the LaTeX environments itemize and enumerate are extended to use a similar optional argument. For details see Paralist in Specific Manuals." "paralist.sty" "" "enumitem" "List Enhancements" "false"
42
+ "Linguistics" "linguistics" "Defines some special environments useful for linguistics (numbered examples, glosses, semantic markup, tableau floats). See Help > Specific Manuals > Linguistics." "covington.sty,drs.sty,forest.sty,pict2e.sty,varwidth.sty" "" "" "Academic Field Specifics" "false"
43
+ "Landscape Document Parts" "landscape" "Output parts of the document in landscape mode." "" "" "" "Page Layout" "false"
44
+ "FiXme Notes" "fixme" "Provides 'FiXme' (marginal) annotations for document revision purposes. A list of annotations can be produced by using the 'List of FIXMEs' paragraph style. The annotations are customizable via the LaTeX preamble. See the FiXme documentation for details. NOTE: By default, the notes are only displayed in 'draft' mode (if the option 'draft' has been inserted to Document > Settings > Document Class > Class Options > Custom). To display them always, insert \fxsetup{draft} to Document > Settings > Preamble. NOTE also that you need version 4 or later of the FiXme package for some features." "fixme.sty" "" "" "Annotation & Revision" "false"
45
+ "Noweb" "noweb" "Allows to use Noweb as a literate programming tool." "literate->latex,noweb.sty" "" "" "Literate Programming" "false"
46
+ "Custom Header/Footer Text" "customHeadersFooters" "Adds environments to define header and footer lines. See the Additional manual, section Modules > Page Layout > Custom Header/Footer Text, for a detailed description. NOTE: To use this module you must set the 'Page style' in the menu Document Settings -> Page Layout to 'fancy'!" "fancyhdr.sty" "" "" "Page Layout" "false"
47
+ "Minimalistic Insets" "minimalistic" "Redefines several insets (Index, Branch, URL) as being Minimalistic." "" "" "" "Fixes & Hacks" "false"
48
+ "GraphicBoxes" "graphicboxes" "Boxes to scale and rotate its contents" "" "" "" "Boxes" "false"
49
+ "Section Boxes" "sectionbox" "Defines Boxes with section header. Mainly intended for the SciPoster class." "sectionbox.sty" "" "" "Boxes" "false"
50
+ "Standard Theorems (Numbered by Type)" "theorems-bytype" "Defines some theorem environments for use with non-AMS classes. Contrary to the plain Theorem module, the different theorem types provided here each have a separate counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma 2, ..., as opposed to theorem 1, theorem 2, lemma 3, proposition 4, ...). The numbering's scope is the whole document. For chapter- and section-wide numbering, use one of the 'within Sections'/'within Chapters' modules, respectively." "" "" "theorems-std|theorems-ams|theorems-starred|theorems-ams-bytype" "Maths" "false"
51
+ "Initials (Drop Caps)" "initials" "Defines a style for paragraphs with an enlarged initial letter (drop cap). See the EmbeddedObjects manual for a detailed description." "" "" "" "Paragraph Styles" "false"
52
+ "Chemistry: Risk and Safety Statements (Obsolete)" "rsphrase" "Provides two insets and one environment to typeset numbers and phrases of chemical risk and safety statements. Now obsoleted and officially replaced by GHS Hazard-Precautionary statement system in the EU." "rsphrase.sty" "" "" "Academic Field Specifics" "false"
53
+ "Variable-width Minipages" "varwidth" "Adds a 'Minipage (Var. Width)' inset using the varwidth LaTeX package. The varwidth package provides a variable-width minipage, whose resulting width is the width of its contents (if this does not exceed the specified maximum width). The inset has two optional arguments: vertical adjustment (c|t|b) and maximum width (defaults to \linewidth). For an example, see File > Open Example > Modules > Variable-width Minipages." "" "" "" "Boxes" "false"
54
+ "Subequations" "subequations" "Provide a straightforward way to segregate subequations in LyX. See the Math manual." "" "" "" "Maths" "false"
55
+ "Standard Theorems (Numbered by Type within Chapters)" "theorems-chap-bytype" "Defines some theorem environments for use with non-AMS classes. Contrary to the plain Theorem module, the different theorem types provided here each have a separate counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma 2, ..., as opposed to theorem 1, theorem 2, lemma 3, proposition 4, ...). The numbering is reset at each chapter start." "" "theorems-bytype|theorems-ams-bytype" "theorems-std|theorems-ams|theorems-starred|theorems-sec|theorems-sec-bytype" "Maths" "false"
56
+ "Standard Theorems (Numbered by Section)" "theorems-sec" "Numbers theorems and the like by section (i.e., the counter is reset at each section start)." "" "theorems-std|theorems-ams" "theorems-chap" "Maths" "false"
57
+ "APA Style with Natbib" "natbibapa" "This module adds support for using natbib together with apacite (the bibliography style need not be apacite--it could be apacite, apacitex, or any bibliography that works with both the natbib and apacite packages.)" "natbib.sty,apacite.sty" "" "" "Bibliography" "false"
58
+ "Standard Theorems (Nameable)" "theorems-named" "Facilitates the use of named theorems. The name of the theorem goes into the 'Additional Theorem Text' argument." "" "" "" "Maths" "false"
59
+ "Hyphenatable Text Markup (Soul)" "soul" "Defines text styles to highlight, space-out, strike-through, underline and capitalize/small-cap text by means of the soul package. As opposed to the markup provided by the Text Properties dialog, words marked-up with soul are hyphenated." "soul.sty" "" "" "Text Markup" "false"
60
+ "Footnotes as Endnotes (Basic)" "foottoend" "Sets all footnotes as endnotes. This uses the endnotes package, which has some limitations but works with older LaTeX distributions as well. You will need to add an endnotes list (Insert > List/Contents/References > Endnotes) where you want the endnotes to appear." "endnotes.sty" "" "enotez|foottoenotez" "Foot- and Endnotes" "false"
61
+ "LilyPond Music Notation" "lilypond" "This module adds an inset to enter LilyPond code directly into LyX. It will be processed in the output. For details, see Help > Specific Manuals > LilyPond." "lilypond-book->latex" "" "sweave" "Leisure, Sports & Music" "false"
62
+ "Hanging Paragraphs" "hanging" "Adds an environment for hanging paragraphs. Hanging paragraph is a paragraph in which the first line is set to the left margin, but all subsequent lines are indented." "" "" "" "Paragraph Styles" "false"
bundle/envs/lyx/seed/.lyx/lyxrc.defaults ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file has been automatically generated by LyX' lib/configure.py
2
+ # script. It contains default settings that have been determined by
3
+ # examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
4
+ # want to customize LyX, use LyX' Preferences dialog or modify directly
5
+ # the "preferences" file instead. Any setting in that file will
6
+ # override the values given here.
7
+
8
+ Format 38
9
+
10
+ \converter latex dvi "" "latex,hyperref-driver=dvips"
11
+ \Format tgif "obj, tgo" Tgif "" "auto" "auto" "vector" "application/x-tgif"
12
+ \Format fig fig FIG "" "auto" "auto" "vector" "application/x-xfig"
13
+ \Format dia dia DIA "" "auto" "auto" "vector,zipped=native", "application/x-dia-diagram"
14
+ \Format odg "odg, sxd" "OpenDocument drawing" "" "xdg-open" "xdg-open" "vector,zipped=native" "application/vnd.oasis.opendocument.graphics"
15
+ \editor_alternatives odg "xdg-open"
16
+ \viewer_alternatives odg "xdg-open"
17
+ \Format agr agr Grace "" "auto" "auto" "vector" ""
18
+ \Format fen fen FEN "" "auto" "auto" "" ""
19
+ \Format svg "svg" SVG "" "auto" "auto" "vector" "image/svg+xml"
20
+ \Format svgz "svgz" "SVG (compressed)" "" "auto" "auto" "vector,zipped=native" ""
21
+ \viewer_alternatives bmp "xdg-open"
22
+ \viewer_alternatives gif "xdg-open"
23
+ \viewer_alternatives jpg "xdg-open"
24
+ \viewer_alternatives pbm "xdg-open"
25
+ \viewer_alternatives pgm "xdg-open"
26
+ \viewer_alternatives png "xdg-open"
27
+ \viewer_alternatives ppm "xdg-open"
28
+ \viewer_alternatives tiff "xdg-open"
29
+ \viewer_alternatives xbm "xdg-open"
30
+ \viewer_alternatives xpm "xdg-open"
31
+ \Format bmp bmp BMP "" "xdg-open" "auto" "" "image/x-bmp"
32
+ \Format gif gif GIF "" "xdg-open" "auto" "" "image/gif"
33
+ \Format jpg "jpg, jpeg" JPEG "" "xdg-open" "auto" "" "image/jpeg"
34
+ \Format pbm pbm PBM "" "xdg-open" "auto" "" "image/x-portable-bitmap"
35
+ \Format pgm pgm PGM "" "xdg-open" "auto" "" "image/x-portable-graymap"
36
+ \Format png png PNG "" "xdg-open" "auto" "" "image/x-png"
37
+ \Format ppm ppm PPM "" "xdg-open" "auto" "" "image/x-portable-pixmap"
38
+ \Format tiff tif TIFF "" "xdg-open" "auto" "" "image/tiff"
39
+ \Format xbm xbm XBM "" "xdg-open" "auto" "" "image/x-xbitmap"
40
+ \Format xpm xpm XPM "" "xdg-open" "auto" "" "image/x-xpixmap"
41
+ \Format asciichess asc "Plain text (chess output)" "" "" "xdg-open" "" ""
42
+ \Format docbook5 xml "DocBook 5" "" "" "xdg-open" "document,menu=export" "application/docbook+xml"
43
+ \Format dot dot "Graphviz Dot" "" "" "xdg-open" "vector" "text/vnd.graphviz"
44
+ \Format dviluatex tex "LaTeX (dviluatex)" "" "" "xdg-open" "document,menu=export" ""
45
+ \Format epub epub ePub "" "" "xdg-open" "document,menu=export" "application/epub+zip"
46
+ \Format platex tex "LaTeX (pLaTeX)" "" "" "xdg-open" "document,menu=export" ""
47
+ \Format literate nw NoWeb N "" "xdg-open" "document,menu=export" ""
48
+ \Format sweave Rnw "Sweave" S "" "xdg-open" "document,menu=export" ""
49
+ \Format sweave-ja Rnw "Sweave (Japanese)" S "" "xdg-open" "document,menu=export" ""
50
+ \Format r R "R/S code" "" "" "xdg-open" "document,menu=export" ""
51
+ \Format knitr Rnw "Rnw (knitr)" "" "" "xdg-open" "document,menu=export" ""
52
+ \Format knitr-ja Rnw "Rnw (knitr, Japanese)" "" "" "xdg-open" "document,menu=export" ""
53
+ \Format lilypond-book lytex "LilyPond book (LaTeX)" "" "" "xdg-open" "document,menu=export" ""
54
+ \Format lilypond-book-ja lytex "LilyPond book (pLaTeX)" "" "" "xdg-open" "document,menu=export" ""
55
+ \Format latex tex "LaTeX (plain)" L "" "xdg-open" "document,menu=export" "text/x-tex"
56
+ \Format luatex tex "LaTeX (LuaTeX)" "" "" "xdg-open" "document,menu=export" ""
57
+ \Format pdflatex tex "LaTeX (pdflatex)" "" "" "xdg-open" "document,menu=export" ""
58
+ \Format xetex tex "LaTeX (XeTeX)" "" "" "xdg-open" "document,menu=export" ""
59
+ \Format latexclipboard tex "LaTeX (clipboard)" "" "" "xdg-open" "menu=none" ""
60
+ \Format text txt "Plain text" a "" "xdg-open" "document,menu=export" "text/plain"
61
+ \Format text2 txt "Plain text (pstotext)" "" "" "xdg-open" "document" ""
62
+ \Format text3 txt "Plain text (ps2ascii)" "" "" "xdg-open" "document" ""
63
+ \Format text4 txt "Plain text (catdvi)" "" "" "xdg-open" "document" ""
64
+ \Format textparagraph txt "Plain Text, Join Lines" "" "" "xdg-open" "document" ""
65
+ \Format beamer.info pdf.info "Info (Beamer)" "" "" "xdg-open" "document,menu=export" ""
66
+ \editor_alternatives asciichess "xdg-open"
67
+ \viewer_alternatives asciichess "xdg-open"
68
+ \editor_alternatives docbook5 "xdg-open"
69
+ \viewer_alternatives docbook5 "xdg-open"
70
+ \editor_alternatives dot "xdg-open"
71
+ \viewer_alternatives dot "xdg-open"
72
+ \editor_alternatives dviluatex "xdg-open"
73
+ \viewer_alternatives dviluatex "xdg-open"
74
+ \editor_alternatives epub "xdg-open"
75
+ \viewer_alternatives epub "xdg-open"
76
+ \editor_alternatives platex "xdg-open"
77
+ \viewer_alternatives platex "xdg-open"
78
+ \editor_alternatives literate "xdg-open"
79
+ \viewer_alternatives literate "xdg-open"
80
+ \editor_alternatives sweave "xdg-open"
81
+ \viewer_alternatives sweave "xdg-open"
82
+ \editor_alternatives sweave-ja "xdg-open"
83
+ \viewer_alternatives sweave-ja "xdg-open"
84
+ \editor_alternatives r "xdg-open"
85
+ \viewer_alternatives r "xdg-open"
86
+ \editor_alternatives knitr "xdg-open"
87
+ \viewer_alternatives knitr "xdg-open"
88
+ \editor_alternatives knitr-ja "xdg-open"
89
+ \viewer_alternatives knitr-ja "xdg-open"
90
+ \editor_alternatives lilypond-book "xdg-open"
91
+ \viewer_alternatives lilypond-book "xdg-open"
92
+ \editor_alternatives lilypond-book-ja "xdg-open"
93
+ \viewer_alternatives lilypond-book-ja "xdg-open"
94
+ \editor_alternatives latex "xdg-open"
95
+ \viewer_alternatives latex "xdg-open"
96
+ \editor_alternatives luatex "xdg-open"
97
+ \viewer_alternatives luatex "xdg-open"
98
+ \editor_alternatives pdflatex "xdg-open"
99
+ \viewer_alternatives pdflatex "xdg-open"
100
+ \editor_alternatives xetex "xdg-open"
101
+ \viewer_alternatives xetex "xdg-open"
102
+ \editor_alternatives latexclipboard "xdg-open"
103
+ \viewer_alternatives latexclipboard "xdg-open"
104
+ \editor_alternatives text "xdg-open"
105
+ \viewer_alternatives text "xdg-open"
106
+ \editor_alternatives text2 "xdg-open"
107
+ \viewer_alternatives text2 "xdg-open"
108
+ \editor_alternatives text3 "xdg-open"
109
+ \viewer_alternatives text3 "xdg-open"
110
+ \editor_alternatives text4 "xdg-open"
111
+ \viewer_alternatives text4 "xdg-open"
112
+ \editor_alternatives textparagraph "xdg-open"
113
+ \viewer_alternatives textparagraph "xdg-open"
114
+ \editor_alternatives beamer.info "xdg-open"
115
+ \viewer_alternatives beamer.info "xdg-open"
116
+ \Format lilypond ly "LilyPond music" "" "" "xdg-open" "vector" "text/x-lilypond"
117
+ \editor_alternatives lilypond "xdg-open"
118
+ \viewer_alternatives lilypond "xdg-open"
119
+ \Format gnumeric gnumeric "Gnumeric spreadsheet" "" "" "auto" "document" "application/x-gnumeric"
120
+ \Format excel xls "Excel spreadsheet" "" "" "auto" "document" "application/vnd.ms-excel"
121
+ \Format excel2 xlsx "MS Excel Office Open XML" "" "" "auto" "document" "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
122
+ \Format xhtml_table xhtml "XHTML Table (for spreadsheets)" "" "" "auto" "document" ""
123
+ \Format html_table html "HTML Table (for spreadsheets)" "" "" "auto" "document" ""
124
+ \Format oocalc ods "OpenDocument spreadsheet" "" "" "auto" "document" "application/vnd.oasis.opendocument.spreadsheet"
125
+ \Format xhtml xhtml "LyXHTML" y "auto" "" "document,menu=export" "application/xhtml+xml"
126
+ \Format bibtex bib "BibTeX" "" "" "xdg-open" "" "text/x-bibtex"
127
+ \editor_alternatives bibtex "xdg-open"
128
+ \Format eps eps EPS "" "xdg-open" "" "vector" "image/x-eps"
129
+ \Format eps2 eps "EPS (uncropped)" "" "xdg-open" "" "vector" ""
130
+ \Format eps3 eps "EPS (cropped)" "" "xdg-open" "" "document" ""
131
+ \Format ps ps Postscript t "xdg-open" "" "document,vector,menu=export" "application/postscript"
132
+ \viewer_alternatives eps "xdg-open"
133
+ \viewer_alternatives eps2 "xdg-open"
134
+ \viewer_alternatives eps3 "xdg-open"
135
+ \viewer_alternatives ps "xdg-open"
136
+ \Format pdf pdf "PDF (ps2pdf)" P "xdg-open" "" "document,vector,menu=export" ""
137
+ \Format pdf2 pdf "PDF (pdflatex)" F "xdg-open" "" "document,vector,menu=export" ""
138
+ \Format pdf3 pdf "PDF (dvipdfm)" m "xdg-open" "" "document,vector,menu=export" ""
139
+ \Format pdf4 pdf "PDF (XeTeX)" X "xdg-open" "" "document,vector,menu=export" ""
140
+ \Format pdf5 pdf "PDF (LuaTeX)" u "xdg-open" "" "document,vector,menu=export" ""
141
+ \Format pdf6 pdf "PDF (graphics)" "" "xdg-open" "" "vector" "application/pdf"
142
+ \Format pdf7 pdf "PDF (cropped)" "" "xdg-open" "" "document,vector" ""
143
+ \Format pdf8 pdf "PDF (lower resolution)" "" "xdg-open" "" "document,vector" ""
144
+ \Format pdf9 pdf "PDF (DocBook)" "" "xdg-open" "" "document,vector,menu=export" ""
145
+ \viewer_alternatives pdf "xdg-open"
146
+ \viewer_alternatives pdf2 "xdg-open"
147
+ \viewer_alternatives pdf3 "xdg-open"
148
+ \viewer_alternatives pdf4 "xdg-open"
149
+ \viewer_alternatives pdf5 "xdg-open"
150
+ \viewer_alternatives pdf6 "xdg-open"
151
+ \viewer_alternatives pdf7 "xdg-open"
152
+ \viewer_alternatives pdf8 "xdg-open"
153
+ \viewer_alternatives pdf9 "xdg-open"
154
+ \Format dvi dvi DVI D "auto" "" "document,vector,menu=export" "application/x-dvi"
155
+ \Format dvi3 dvi "DVI (LuaTeX)" V "auto" "" "document,vector,menu=export" ""
156
+ \Format html "html, htm" HTML H "auto" "" "document,menu=export" "text/html"
157
+ \Format noteedit not Noteedit "" "auto" "auto" "vector" ""
158
+ \Format odt odt "OpenDocument (tex4ht)" "" "auto" "auto" "document,vector,menu=export" "application/vnd.oasis.opendocument.text"
159
+ \Format odt2 odt "OpenDocument (eLyXer)" "" "auto" "auto" "document,vector,menu=export" "application/vnd.oasis.opendocument.text"
160
+ \Format odt3 odt "OpenDocument (Pandoc)" "" "auto" "auto" "document,vector,menu=export" "application/vnd.oasis.opendocument.text"
161
+ \Format sxw sxw "OpenOffice.Org (sxw)" "" "" "" "document,vector" "application/vnd.sun.xml.writer"
162
+ \Format rtf rtf "Rich Text Format" "" "auto" "auto" "document,vector,menu=export" "application/rtf"
163
+ \Format word doc "MS Word" W "auto" "auto" "document,vector,menu=export" "application/msword"
164
+ \Format word2 docx "MS Word Office Open XML" O "auto" "auto" "document,vector,menu=export" "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
165
+ \Format csv csv "Table (CSV)" "" "" "" "document" "text/csv"
166
+ \Format fax "" Fax "" "" "" "document" ""
167
+ \Format lyx lyx LyX "" "" "" "" "application/x-lyx"
168
+ \Format lyx13x 13.lyx "LyX 1.3.x" "" "" "" "document" ""
169
+ \Format lyx14x 14.lyx "LyX 1.4.x" "" "" "" "document" ""
170
+ \Format lyx15x 15.lyx "LyX 1.5.x" "" "" "" "document" ""
171
+ \Format lyx16x 16.lyx "LyX 1.6.x" "" "" "" "document" ""
172
+ \Format lyx20x 20.lyx "LyX 2.0.x" "" "" "" "document" ""
173
+ \Format lyx21x 21.lyx "LyX 2.1.x" "" "" "" "document" ""
174
+ \Format lyx22x 22.lyx "LyX 2.2.x" "" "" "" "document" ""
175
+ \Format lyx23x 23.lyx "LyX 2.3.x" "" "" "" "document,menu=export" ""
176
+ \Format clyx cjklyx "CJK LyX 1.4.x (big5)" "" "" "" "document" ""
177
+ \Format jlyx cjklyx "CJK LyX 1.4.x (euc-jp)" "" "" "" "document" ""
178
+ \Format klyx cjklyx "CJK LyX 1.4.x (euc-kr)" "" "" "" "document" ""
179
+ \Format lyxpreview lyxpreview "LyX Preview" "" "" "" "" ""
180
+ \Format pdftex "pdftex_t, pdf_tex" PDFTEX "" "" "" "" ""
181
+ \Format program "" Program "" "" "" "" ""
182
+ \Format pstex "pstex_t, ps_tex" PSTEX "" "" "" "" ""
183
+ \Format wmf wmf "Windows Metafile" "" "" "" "vector" "image/x-wmf"
184
+ \Format emf emf "Enhanced Metafile" "" "" "" "vector" "image/x-emf"
185
+ \Format wordhtml "html, htm" "HTML (MS Word)" "" "" "" "document" ""
186
+
187
+ \converter pdflatex pdf2 "" "latex=pdflatex,hyperref-driver=pdftex"
188
+ \converter xetex pdf4 "" "latex=xelatex,hyperref-driver=xetex"
189
+ \converter latex lyx "/usr/bin/tex2lyx -f $$i $$o" ""
190
+ \converter latexclipboard lyx "/usr/bin/tex2lyx -fixedenc utf8 -c $$c -m $$m -f $$i $$o" ""
191
+ \converter literate lyx "/usr/bin/tex2lyx -n -m noweb -f $$i $$o" ""
192
+ \converter sweave lyx "/usr/bin/tex2lyx -n -m sweave -f $$i $$o" ""
193
+ \converter knitr lyx "/usr/bin/tex2lyx -n -m knitr -f $$i $$o" ""
194
+ \converter literate latex "" ""
195
+ \converter literate pdflatex "" ""
196
+ \converter literate xetex "" ""
197
+ \converter literate luatex "" ""
198
+ \converter literate dviluatex "" ""
199
+ \converter sweave latex "" "needauth"
200
+ \converter sweave pdflatex "" "needauth"
201
+ \converter sweave-ja platex "" "needauth"
202
+ \converter sweave xetex "" "needauth"
203
+ \converter sweave luatex "" "needauth"
204
+ \converter sweave dviluatex "" "needauth"
205
+ \converter knitr latex "" "needauth"
206
+ \converter knitr pdflatex "" "needauth"
207
+ \converter knitr-ja platex "" "needauth"
208
+ \converter knitr xetex "" "needauth"
209
+ \converter knitr luatex "" "needauth"
210
+ \converter knitr dviluatex "" "needauth"
211
+ \converter sweave-ja r "" ""
212
+ \converter knitr-ja r "" ""
213
+ \converter word latex "" ""
214
+ \converter lyx html "" ""
215
+ \converter lyx wordhtml "" ""
216
+ \converter lyx odt2 "" ""
217
+ \converter lyx word "" ""
218
+ \converter latex html "" "needaux"
219
+ \copier html "$${python} $$s/scripts/ext_copy.py $$i $$o"
220
+ \converter latex wordhtml "" "needaux"
221
+ \copier wordhtml "$${python} $$s/scripts/ext_copy.py $$i $$o"
222
+ \converter sxw latex "" ""
223
+ \converter odt latex "" ""
224
+ \converter odt3 latex "" ""
225
+ \converter docbook5 pdf9 "" ""
226
+ \converter word2 latex "" ""
227
+ \converter odt pdf6 "" ""
228
+ \converter latex odt "" "needaux"
229
+ \converter latex rtf "" "needaux"
230
+ \converter latex odt3 "" ""
231
+ \converter latex word2 "" ""
232
+ \converter rtf html "" ""
233
+ \converter ps pdf "" "hyperref-driver=dvips"
234
+ \converter ps text2 "" ""
235
+ \converter ps text3 "" ""
236
+ \converter eps2 eps "" ""
237
+ \converter pdf ps "" ""
238
+ \converter pdf6 eps "" ""
239
+ \converter pdf2 pdf7 "" ""
240
+ \converter pdf4 pdf7 "" ""
241
+ \converter pdf2 pdf8 "$${python} $$s/scripts/convert_pdf.py $$i $$o ebook" ""
242
+ \converter pdf4 pdf8 "$${python} $$s/scripts/convert_pdf.py $$i $$o ebook" ""
243
+ \converter pdf2 beamer.info "" ""
244
+ \converter dvi text4 "" ""
245
+ \converter dvi ps "" "hyperref-driver=dvips"
246
+ \converter dvi eps3 "" ""
247
+ \converter dvi pdf3 " -o $$o $$i" "hyperref-driver="
248
+ \converter ps fax "" ""
249
+ \converter svg pdftex "$${python} $$s/scripts/svg2pdftex.py $$p$$i $$p$$o" ""
250
+ \converter svg pstex "$${python} $$s/scripts/svg2pstex.py $$p$$i $$p$$o" ""
251
+ \converter tiff eps "" ""
252
+ \converter tgif eps "tgif -print -color -eps -stdout $$i > $$o" ""
253
+ \converter tgif png "tgif -print -color -png -o $$d $$i" ""
254
+ \converter tgif pdf6 "tgif -print -color -pdf -stdout $$i > $$o" ""
255
+ \converter wmf eps "" ""
256
+ \converter emf eps "" ""
257
+ \converter wmf pdf6 "" ""
258
+ \converter emf pdf6 "" ""
259
+ \converter eps pdf6 "epstopdf --outfile=$$o $$i" ""
260
+ \converter pdf6 png "" ""
261
+ \converter agr eps "gracebat -hardcopy -printfile $$o -hdevice EPS $$i 2>/dev/null" ""
262
+ \converter agr png "gracebat -hardcopy -printfile $$o -hdevice PNG $$i 2>/dev/null" ""
263
+ \converter agr jpg "gracebat -hardcopy -printfile $$o -hdevice JPEG $$i 2>/dev/null" ""
264
+ \converter agr ppm "gracebat -hardcopy -printfile $$o -hdevice PNM $$i 2>/dev/null" ""
265
+ \converter dot eps "dot -Teps $$i -o $$o" ""
266
+ \converter dot png "dot -Tpng $$i -o $$o" ""
267
+ \converter odg eps2 "" ""
268
+ \converter svgz svg "gunzip -c $$i > $$o" ""
269
+ \converter svg svgz "gzip -c $$i > $$o" ""
270
+ \converter svg pdf6 "" ""
271
+ \converter svgz pdf6 "" ""
272
+ \converter svg eps "" ""
273
+ \converter svgz eps "" ""
274
+ \converter svg png "" "",
275
+ \converter svgz png "" ""
276
+ \Format gnuplot "gp, gnuplot" "Gnuplot" "" "" "" "vector" "text/plain"
277
+ \converter gnuplot pdf6 "$${python} $$s/scripts/gnuplot2pdf.py $$i $$o" "needauth"
278
+ \converter gnumeric latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
279
+ \converter oocalc latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
280
+ \converter excel latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
281
+ \converter excel2 latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
282
+ \converter gnumeric html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
283
+ \converter oocalc html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
284
+ \converter excel html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
285
+ \converter excel2 html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
286
+ \converter gnumeric xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
287
+ \converter oocalc xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
288
+ \converter excel xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
289
+ \converter excel2 xhtml_table "$${python} $$s/scripts/spreadsheet_to_docbook.py $$i $$o" ""
290
+
291
+ \converter noteedit lilypond "" ""
292
+ \Format lyxgz gz "LyX Archive (tar.gz)" "" "" "" "document,menu=export" ""
293
+ \converter lyx lyxgz "$${python} $$s/scripts/lyxpak.py $$r/$$f" ""
294
+
295
+ \converter csv lyx "$${python} $$s/scripts/csv2lyx.py $$i $$o" ""
296
+ \converter fen asciichess "$${python} $$s/scripts/fen2ascii.py $$i $$o" ""
297
+ \converter lyx lyx13x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.3 -o $$o $$i" ""
298
+ \converter lyx lyx14x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o $$i" ""
299
+ \converter lyx lyx15x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.5 -o $$o $$i" ""
300
+ \converter lyx lyx16x "$${python} $$s/lyx2lyx/lyx2lyx -V 1.6 -o $$o $$i" ""
301
+ \converter lyx lyx20x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.0 -o $$o $$i" ""
302
+ \converter lyx lyx21x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.1 -o $$o $$i" ""
303
+ \converter lyx lyx22x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.2 -o $$o $$i" ""
304
+ \converter lyx lyx23x "$${python} $$s/lyx2lyx/lyx2lyx -V 2.3 -o $$o $$i" ""
305
+ \converter lyx clyx "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o -c big5 $$i" ""
306
+ \converter lyx jlyx "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o -c euc_jp $$i" ""
307
+ \converter lyx klyx "$${python} $$s/lyx2lyx/lyx2lyx -V 1.4 -o $$o -c euc_kr $$i" ""
308
+ \converter clyx lyx "$${python} $$s/lyx2lyx/lyx2lyx -c big5 -o $$o $$i" ""
309
+ \converter jlyx lyx "$${python} $$s/lyx2lyx/lyx2lyx -c euc_jp -o $$o $$i" ""
310
+ \converter klyx lyx "$${python} $$s/lyx2lyx/lyx2lyx -c euc_kr -o $$o $$i" ""
311
+ \converter lyxpreview png "$${python} $$s/scripts/lyxpreview2bitmap.py --png" ""
312
+ \converter lyxpreview ppm "$${python} $$s/scripts/lyxpreview2bitmap.py --ppm" ""
313
+
314
+ \tex_allows_spaces false
315
+ \chktex_command ""
316
+ \bibtex_command "automatic"
317
+ \jbibtex_command "automatic"
318
+ \index_command ""
319
+ \jindex_command ""
320
+ \splitindex_command ""
321
+ \nomencl_command "makeindex -s nomencl.ist"
322
+ \pygmentize_command ""
323
+ \citation_search_view "$${python} $$s/scripts/lyxpaperview.py"
324
+ \copier fig "$${python} $$s/scripts/fig_copy.py $$i $$o"
325
+ \copier pstex "$${python} $$s/scripts/tex_copy.py $$i $$o $$l"
326
+ \copier pdftex "$${python} $$s/scripts/tex_copy.py $$i $$o $$l"
327
+ \copier program "$${python} $$s/scripts/ext_copy.py $$i $$o"
328
+
bundle/envs/lyx/seed/.lyx/packages.lst ADDED
File without changes
bundle/envs/lyx/seed/.lyx/session ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Automatically generated lyx session file
2
+ ## Editing this file manually may cause lyx to crash.
3
+
4
+ [recent files]
5
+ /home/user/Documents/garden-report.lyx
6
+ /usr/share/lyx/examples/Welcome.lyx
7
+
8
+ [last opened files]
9
+
10
+ [cursor positions]
11
+ 0, 0, /usr/share/lyx/examples/Welcome.lyx
12
+
13
+ [last commands]
14
+
15
+ [bookmarks]
16
+ 0, 6, 1, /home/user/newfile1.lyx
17
+
18
+ [auth files]
19
+
20
+ [shell escape files]
bundle/envs/lyx/seed/.lyx/styFiles.lst ADDED
File without changes
bundle/envs/lyx/seed/.lyx/textclass.lst ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # This file declares layouts and their associated definition files
3
+ # (include dir. relative to the place where this file is).
4
+ # It contains only default values, since chkconfig.ltx could not be run
5
+ # for some reason. Run ./configure.py if you need to update it after a
6
+ # configuration change.
7
+ "docbook-section" "docbook5_section" "DocBook Section (XML)" "false" "docbook5_section.cls" "Books"
8
+ "cl2emult" "cl2emult" "Springer Contributed Books (cl2emult, Obsolete!)" "false" "cl2emult.cls" "Obsolete"
9
+ "svprobth" "svjour" "Probability Theory and Related Fields (Springer svprobth)" "false" "svjour.cls,svprobth.clo" "Articles"
10
+ "llncs" "llncs" "Lecture Notes in Comp. Science (LNCS)" "false" "llncs.cls,aliascnt.sty,multicol.sty" "Articles"
11
+ "tufte-handout" "tufte-handout" "Tufte Handout" "false" "tufte-handout.cls" "Handouts"
12
+ "jlreq-book" "jlreq" "Japanese Book (JLReq Class)" "false" "jlreq.cls,l3keys2e.sty,lmodern.sty,everyhook.sty,luatexja.sty,luatexja-adjust.sty" "Books"
13
+ "dinbrief" "dinbrief" "DIN-Brief" "false" "dinbrief.cls" "Letters"
14
+ "foils" "foils" "FoilTeX" "false" "foils.cls" "Presentations"
15
+ "scrartcl" "scrartcl" "KOMA-Script Article" "false" "scrartcl.cls" "Articles"
16
+ "jgrga" "aguplus" "American Geophysical Union (AGUPLUS JGR)" "false" "aguplus.cls,jgrga.sty" "Articles"
17
+ "revtex4-1" "revtex4-1" "REVTeX (V. 4.1)" "false" "revtex4-1.cls,natbib.sty,revsymb4-1.sty,textcase.sty,url.sty" "Articles"
18
+ "hollywood" "hollywood" "Hollywood" "false" "hollywood.cls,calc.sty,fancyhdr.sty,ulem.sty" "Scripts"
19
+ "europasscv" "europasscv" "Europass CV (2013)" "false" "europasscv.cls,footnote.sty,tabu.sty,totpages.sty" "Curricula Vitae"
20
+ "siamltex" "siamltex" "Society for Industrial and Applied Mathematics (SIAM)" "false" "siamltex.cls" "Articles"
21
+ "bxjsarticle" "bxjsarticle" "Japanese Article (BX Bundle)" "false" "bxjsarticle.cls" "Articles"
22
+ "acm-sigs" "acm_proc_article-sp" "ACM SIG Proceedings (SP, Obsolete)" "false" "acm_proc_article-sp.cls" "Obsolete"
23
+ "memoir" "memoir" "Memoir" "false" "memoir.cls" "Books"
24
+ "article-beamer" "article" "Beamer Article (Standard Class)" "false" "article.cls,beamerarticle.sty,keyval.sty,pgf.sty" "Articles"
25
+ "ltjtarticle" "ltjtarticle" "Japanese Article (Standard Class for LuaTeX, vertical Writing)" "false" "ltjtarticle.cls" "Articles"
26
+ "arab-article" "arabart" "Arabic Article" "false" "arabart.cls,arabrep.cls,altxext.sty,arabext.sty,arabtex.sty" "Articles"
27
+ "ctex-book" "ctexbook" "Chinese Book (CTeX)" "false" "ctexbook.cls,savesym.sty,xeCJK.sty" "Books"
28
+ "broadway" "broadway" "Broadway" "false" "broadway.cls,extramarks.sty,fancyhdr.sty,lastpage.sty" "Scripts"
29
+ "aastex" "aastex" "American Astronomical Society (AASTeX v. 5)" "false" "aastex.cls,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty" "Articles"
30
+ "ltjsbook" "ltjsbook" "Japanese Book (JS Bundle for LuaTeX)" "false" "ltjsbook.cls" "Books"
31
+ "jlreq-report" "jlreq" "Japanese Report (JLReq Class)" "false" "jlreq.cls,l3keys2e.sty,lmodern.sty,everyhook.sty,luatexja.sty,luatexja-adjust.sty" "Reports"
32
+ "frletter" "frletter" "French Letter (frletter)" "false" "frletter.cls" "Letters"
33
+ "revtex4" "revtex4" "REVTeX (V. 4)" "false" "revtex4.cls,natbib.sty,revsymb.sty" "Articles"
34
+ "chess" "article" "Chess" "false" "article.cls,calc.sty,lambda.sty,lyxskak.sty,pst-node.sty" "Articles"
35
+ "ltjreport" "ltjreport" "Japanese Report (Standard Class for LuaTeX)" "false" "ltjreport.cls" "Reports"
36
+ "beamer" "beamer" "Beamer" "false" "beamer.cls" "Presentations"
37
+ "revtex4-2" "revtex4-2" "REVTeX (V. 4.2)" "false" "revtex4-2.cls,natbib.sty,revsymb4-2.sty,textcase.sty,url.sty" "Articles"
38
+ "iopart" "iopart" "Institute of Physics (IOP)" "false" "iopart.cls,amsmath.sty,amssymb.sty,iopams.sty,setstack.sty" "Articles"
39
+ "g-brief2" "g-brief2" "G-Brief (V. 2)" "false" "g-brief2.cls" "Letters"
40
+ "svglobal" "svjour" "Springer's Global Journal Template (Obsolete Version)" "false" "svjour.cls,svglobal.clo" "Obsolete"
41
+ "ltugboat" "ltugboat" "TUGboat" "false" "ltugboat.cls" "Articles"
42
+ "beamerposter" "beamer" "Beamerposter" "false" "beamer.cls,beamerposter.sty" "Posters"
43
+ "ltjsreport" "ltjsreport" "Japanese Report (JS Bundle for LuaTeX)" "false" "ltjsreport.cls" "Reports"
44
+ "dtk" "dtk" "Die TeXnische Komoedie" "false" "dtk.cls" "Articles"
45
+ "AEA" "AEA" "American Economic Association (AEA)" "false" "AEA.cls,amsmath.sty,harvard.sty,multicol.sty,setspace.sty" "Articles"
46
+ "book" "book" "Book (Standard Class)" "false" "book.cls" "Books"
47
+ "elsarticle" "elsarticle" "Elsevier" "false" "elsarticle.cls,natbib.sty,pifont.sty" "Articles"
48
+ "ltjtbook" "ltjtbook" "Japanese Book (Standard Class for LuaTeX, vertical Writing)" "false" "ltjtbook.cls" "Books"
49
+ "aapaper" "aa" "Astronomy & Astrophysics (V. 4, Obsolete)" "false" "aa.cls" "Obsolete"
50
+ "extarticle" "extarticle" "Article (Standard Class with Extra Font Sizes)" "false" "extarticle.cls" "Articles"
51
+ "svmult" "svmult" "Springer Contributed Books (svmult)" "false" "svmult.cls,natbib.sty" "Books"
52
+ "latex8" "article" "Latex8 Article (Obsolete)" "false" "article.cls,latex8.sty,times.sty" "Obsolete"
53
+ "isprs" "isprs" "Int. Society f. Photogrammetry and Remote Sensing (ISPRS)" "false" "isprs.cls,epsfig.sty,times.sty" "Articles"
54
+ "maa-monthly" "article" "Mathematical Monthly article" "false" "article.cls,maa-monthly.sty" "Articles"
55
+ "docbook-chapter" "docbook5_chapter" "DocBook Chapter (XML)" "false" "docbook5_chapter.cls" "Books"
56
+ "extreport" "extreport" "Report (Standard Class with Extra Font Sizes)" "false" "extreport.cls" "Reports"
57
+ "ltjtreport" "ltjtreport" "Japanese Report (Standard Class for LuaTeX, vertical Writing)" "false" "ltjtreport.cls" "Reports"
58
+ "egs" "egs" "European Geophysical Society (EGS)" "false" "egs.cls" "Articles"
59
+ "acm-sigs-alt" "sig-alternate" "ACM SIGS ('Alternate' Style, obsolete)" "false" "sig-alternate.cls" "Obsolete"
60
+ "jasatex" "jasatex" "Journal of the Acoustical Society of America (JASA)" "false" "jasatex.cls" "Articles"
61
+ "extletter" "extletter" "Letter (Standard Class with Extra Font Sizes)" "false" "extletter.cls" "Letters"
62
+ "tarticle" "tarticle" "Japanese Article (Standard Class, vertical Writing)" "false" "tarticle.cls,plext.sty" "Articles"
63
+ "ltjarticle" "ltjarticle" "Japanese Article (Standard Class for LuaTeX)" "false" "ltjarticle.cls" "Articles"
64
+ "aa" "aa" "Astronomy & Astrophysics" "false" "aa.cls,answers.sty" "Articles"
65
+ "acmsiggraph-0-92" "acmsiggraph" "ACM SIGGGRAPH 0.92 (obsolete)" "false" "acmsiggraph.cls,comment.sty,lineno.sty" "Obsolete"
66
+ "bxjsreport" "bxjsreport" "Japanese Report (BX Bundle)" "false" "bxjsreport.cls" "Reports"
67
+ "apa6" "apa6" "American Psychological Association (APA), v. 6" "false" "apa6.cls" "Articles"
68
+ "apa" "apa" "American Psychological Association (APA)" "false" "apa.cls,apacite.sty,endfloat.sty,endnotes.sty,flushend.sty,txfonts.sty" "Articles"
69
+ "sciposter" "sciposter" "SciPoster" "false" "sciposter.cls,sectionbox.sty,wallpaper.sty" "Posters"
70
+ "ijmpd" "ws-ijmpd" "Int. Journal of Modern Physics D" "false" "ws-ijmpd.cls,amsmath.sty,amssymb.sty,rotating.sty" "Articles"
71
+ "spie" "spie" "SPIE Proceedings" "false" "spie.cls,cite.sty" "Articles"
72
+ "bxjsbook" "bxjsbook" "Japanese Book (BX Bundle)" "false" "bxjsbook.cls" "Books"
73
+ "singlecol-new" "singlecol-new" "Inderscience 9.5 x 6.5 Journals" "false" "singlecol-new.cls,amsmath.sty,amssymb.sty,bm.sty,calc.sty,color.sty,dcolumn.sty,endnotes.sty,epsf.sty,lastpage.sty,latexsym.sty,leqno.sty,theorem.sty" "Articles"
74
+ "tufte-book" "tufte-book" "Tufte Book" "false" "tufte-book.cls" "Books"
75
+ "letter" "letter" "Letter (Standard Class)" "false" "letter.cls" "Letters"
76
+ "svmono" "svmono" "Springer Monographs (svmono)" "false" "svmono.cls" "Books"
77
+ "amsbook" "amsbook" "American Mathematical Society (AMS)" "false" "amsbook.cls" "Books"
78
+ "jreport" "jreport" "Japanese Report (Standard Class)" "false" "jreport.cls" "Reports"
79
+ "aastex62" "aastex62" "American Astronomical Society (AASTeX v. 6.2)" "false" "aastex62.cls,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty" "Articles"
80
+ "jlreq-article" "jlreq" "Japanese Article (JLReq Class)" "false" "jlreq.cls,l3keys2e.sty,lmodern.sty,everyhook.sty,luatexja.sty,luatexja-adjust.sty" "Articles"
81
+ "acmsiggraph" "acmsiggraph" "ACM SIGGRAPH (older than 0.91, obsolete)" "false" "acmsiggraph.cls,comment.sty,lineno.sty" "Obsolete"
82
+ "extbook" "extbook" "Book (Standard Class with Extra Font Sizes)" "false" "extbook.cls" "Books"
83
+ "svglobal3" "svjour3" "Springer's Global Journal Template (V. 3)" "false" "svjour3.cls,svglov3.clo,natbib.sty" "Articles"
84
+ "scrbook" "scrbook" "KOMA-Script Book" "false" "scrbook.cls" "Books"
85
+ "IEEEtran-TransMag" "IEEEtran" "IEEE Transactions on Magnetics" "false" "IEEEtran.cls" "Articles"
86
+ "IEEEtran" "IEEEtran" "IEEE Transactions" "false" "IEEEtran.cls" "Articles"
87
+ "scrlttr2" "scrlttr2" "KOMA-Script Letter (V. 2)" "false" "scrlttr2.cls" "Letters"
88
+ "recipebook" "scrbook" "Recipe Book" "false" "scrbook.cls" "Books"
89
+ "ectaart" "ectaart" "Econometrica" "false" "ectaart.cls" "Articles"
90
+ "entcs" "entcs" "Electronic Notes in Theor. Comp. Sc. (ENTCS)" "false" "entcs.cls,amssymb.sty,entcsmacro.sty,hyperref.sty,ifpdf.sty,latexsym.sty,newlfont.sty" "Articles"
91
+ "jarticle" "jarticle" "Japanese Article (Standard Class)" "false" "jarticle.cls" "Articles"
92
+ "jbook" "jbook" "Japanese Book (Standard Class)" "false" "jbook.cls" "Books"
93
+ "svjog" "svjour" "Journal of Geodesy (Springer)" "false" "svjour.cls,svjog.clo,natbib.sty" "Articles"
94
+ "lettre" "lettre" "French Letter (lettre)" "false" "lettre.cls" "Letters"
95
+ "mwart" "mwart" "Polish Article (MW Bundle)" "false" "mwart.cls" "Articles"
96
+ "docbook-book" "docbook5_book" "DocBook Book (XML)" "false" "docbook5_book.cls" "Books"
97
+ "apa7" "apa7" "American Psychological Association (APA), v. 7" "false" "apa7.cls" "Articles"
98
+ "achemso" "achemso" "American Chemical Society (ACS)" "false" "achemso.cls,caption.sty,courier.sty,cleveref.sty,float.sty,helvet.sty,mathptmx.sty,mciteplus.sty,natbib.sty,natmove.sty,setspace.sty,xkeyval.sty" "Articles"
99
+ "powerdot" "powerdot" "Powerdot" "false" "powerdot.cls,enumitem.sty,hyperref.sty,pstricks.sty,pst-grad.sty,verbatim.sty,xcolor.sty,xkeyval.sty" "Presentations"
100
+ "jss" "jss" "Journal of Statistical Software (JSS) version 2" "false" "jss.cls,ae.sty,color.sty,fancyvrb.sty,hyperref.sty,natbib.sty,upquote.sty" "Articles"
101
+ "agutex" "agutex" "American Geophysical Union (AGUTeX)" "false" "agutex.cls" "Articles"
102
+ "amsart" "amsart" "American Mathematical Society (AMS)" "false" "amsart.cls" "Articles"
103
+ "treport" "treport" "Japanese Report (Standard Class, vertical Writing)" "false" "treport.cls,plext.sty" "Reports"
104
+ "tbook" "tbook" "Japanese Book (Standard Class, vertical Writing)" "false" "tbook.cls,plext.sty" "Books"
105
+ "ctex-report" "ctexrep" "Chinese Report (CTeX)" "false" "ctexrep.cls,savesym.sty,xeCJK.sty" "Reports"
106
+ "ltjbook" "ltjbook" "Japanese Book (Standard Class for LuaTeX)" "false" "ltjbook.cls" "Books"
107
+ "IEEEtran-CompSoc" "IEEEtran" "IEEE Transactions Computer Society" "false" "IEEEtran.cls" "Articles"
108
+ "paper" "paper" "Paper (Standard Class)" "false" "paper.cls" "Articles"
109
+ "article" "article" "Article (Standard Class)" "false" "article.cls" "Articles"
110
+ "seminar" "seminar" "Seminar" "false" "seminar.cls,sem-page.sty" "Presentations"
111
+ "singlecol" "singlecol" "Inderscience Journals (Obsolete)" "false" "singlecol.cls,natbib.sty" "Obsolete"
112
+ "RJournal" "report" "R Journal" "false" "report.cls,RJournal.sty,booktabs.sty,natbib.sty" "Reports"
113
+ "jsbook" "jsbook" "Japanese Book (JS Bundle)" "false" "jsbook.cls" "Books"
114
+ "ijmpc" "ws-ijmpc" "Int. Journal of Modern Physics C" "false" "ws-ijmpc.cls,amsmath.sty,amssymb.sty,rotating.sty" "Articles"
115
+ "mwbk" "mwbk" "Polish Book (MW Bundle)" "false" "mwbk.cls" "Books"
116
+ "slides" "slides" "Slides" "false" "slides.cls" "Presentations"
117
+ "scrlettr" "scrlettr" "KOMA-Script Letter (V. 1, Obsolete)" "false" "scrlettr.cls" "Obsolete"
118
+ "acmart" "acmart" "Association for Computing Machinery (ACM)" "false" "acmart.cls" "Articles"
119
+ "elsart" "elsart" "Elsevier (Obsolete Version)" "false" "elsart.cls,amssymb.sty,latexsym.sty" "Obsolete"
120
+ "revtex" "revtex" "REVTeX (Obsolete Version)" "false" "revtex.cls,revtex.sty" "Obsolete"
121
+ "europecv" "europecv" "Europe CV" "false" "europecv.cls,fancyhdr.sty,longtable.sty,ucs.sty" "Curricula Vitae"
122
+ "simplecv" "simplecv" "Simple CV" "false" "simplecv.cls" "Curricula Vitae"
123
+ "scrreprt" "scrreprt" "KOMA-Script Report" "false" "scrreprt.cls" "Reports"
124
+ "doublecol-new" "doublecol-new" "Inderscience A4 Journals" "false" "doublecol-new.cls,amsmath.sty,amssymb.sty,bm.sty,calc.sty,color.sty,dcolumn.sty,endnotes.sty,epsf.sty,lastpage.sty,latexsym.sty,leqno.sty,theorem.sty" "Articles"
125
+ "agums" "aguplus" "American Geophysical Union (AGUPLUS Manuscript)" "false" "aguplus.cls,agums.sty" "Articles"
126
+ "copernicus" "copernicus" "Copernicus Publications Manuscript Preparation" "false" "copernicus.cls,manuscript.sty" "Articles"
127
+ "a0poster" "a0poster" "A0 Poster" "false" "a0poster.cls" "Posters"
128
+ "ctex-article" "ctexart" "Chinese Article (CTeX)" "false" "ctexart.cls,savesym.sty,xeCJK.sty" "Articles"
129
+ "g-brief" "g-brief" "G-Brief (V. 1, Obsolete)" "false" "g-brief.cls" "Obsolete"
130
+ "scrarticle-beamer" "scrartcl" "Beamer Article (KOMA-Script)" "false" "scrartcl.cls,beamerarticle.sty,keyval.sty,pgf.sty" "Articles"
131
+ "mwrep" "mwrep" "Polish Report (MW Bundle)" "false" "mwrep.cls" "Reports"
132
+ "report" "report" "Report (Standard Class)" "false" "report.cls" "Reports"
133
+ "iucr" "iucr" "International Union of Crystallography (IUCr)" "false" "iucr.cls,float.sty,harvard.sty,html.sty,multicol.sty,tabularx.sty" "Articles"
134
+ "bxjsslide" "bxjsslide" "Japanese Slides (BX Bundle)" "false" "bxjsslide.cls" "Presentations"
135
+ "jsarticle" "jsarticle" "Japanese Article (JS Bundle)" "false" "jsarticle.cls" "Articles"
136
+ "heb-letter" "letter" "Hebrew Letter" "false" "letter.cls" "Letters"
137
+ "moderncv" "moderncv" "Modern CV" "false" "moderncv.cls,ebgaramond.sty,fancyhdr.sty,fontawesome.sty,ifpdf.sty,marvosym.sty" "Curricula Vitae"
138
+ "sigplanconf" "sigplanconf" "ACM SIGPLAN (Obsolete)" "false" "sigplanconf.cls,natbib.sty" "Obsolete"
139
+ "heb-article" "article" "Hebrew Article" "false" "article.cls,theorem.sty" "Articles"
140
+ "ltjsarticle" "ltjsarticle" "Japanese Article (JS Bundle for LuaTeX)" "false" "ltjsarticle.cls" "Articles"
141
+ "kluwer" "kluwer" "Kluwer" "false" "kluwer.cls" "Articles"
142
+ "aastex6" "aastex6" "American Astronomical Society (AASTeX v. 6)" "false" "aastex6.cls,amssymb.sty,latexsym.sty,natbib.sty,verbatim.sty" "Articles"
bundle/envs/lyx/seed/.lyx/xtemplates.lst ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## This file lists external templates.
2
+ ## It has been automatically generated by configure
3
+ ## Use "Options/Reconfigure" if you need to update it after a
4
+ ## configuration change.
5
+ gnumeric.xtemplate
6
+ inkscape.xtemplate
7
+ vector_graphics.xtemplate
8
+ xfig.xtemplate
9
+ lilypond.xtemplate
10
+ chess.xtemplate
11
+ raster_image.xtemplate
12
+ pdfpages.xtemplate
13
+ dia.xtemplate
bundle/envs/lyx/seed/Documents/garden-report.lyx ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #LyX 2.4 created this file. For more info see https://www.lyx.org/
2
+ \lyxformat 620
3
+ \begin_document
4
+ \begin_header
5
+ \save_transient_properties true
6
+ \origin unavailable
7
+ \textclass article
8
+ \use_default_options true
9
+ \maintain_unincluded_children no
10
+ \language american
11
+ \language_package default
12
+ \inputencoding utf8
13
+ \fontencoding auto
14
+ \font_roman "default" "default"
15
+ \font_sans "default" "default"
16
+ \font_typewriter "default" "default"
17
+ \font_math "auto" "auto"
18
+ \font_default_family default
19
+ \use_non_tex_fonts false
20
+ \font_sc false
21
+ \font_roman_osf false
22
+ \font_sans_osf false
23
+ \font_typewriter_osf false
24
+ \font_sf_scale 100 100
25
+ \font_tt_scale 100 100
26
+ \use_microtype false
27
+ \use_dash_ligatures true
28
+ \graphics default
29
+ \default_output_format default
30
+ \output_sync 0
31
+ \bibtex_command default
32
+ \index_command default
33
+ \float_placement class
34
+ \float_alignment class
35
+ \paperfontsize default
36
+ \use_hyperref false
37
+ \papersize default
38
+ \use_geometry false
39
+ \use_package amsmath 1
40
+ \use_package amssymb 1
41
+ \use_package cancel 1
42
+ \use_package esint 1
43
+ \use_package mathdots 1
44
+ \use_package mathtools 1
45
+ \use_package mhchem 1
46
+ \use_package stackrel 1
47
+ \use_package stmaryrd 1
48
+ \use_package undertilde 1
49
+ \cite_engine basic
50
+ \cite_engine_type default
51
+ \use_bibtopic false
52
+ \use_indices false
53
+ \paperorientation portrait
54
+ \suppress_date false
55
+ \justification true
56
+ \use_refstyle 1
57
+ \use_formatted_ref 0
58
+ \use_minted 0
59
+ \use_lineno 0
60
+ \index Index
61
+ \shortcut idx
62
+ \color #008000
63
+ \end_index
64
+ \secnumdepth 3
65
+ \tocdepth 3
66
+ \paragraph_separation indent
67
+ \paragraph_indentation default
68
+ \is_math_indent 0
69
+ \math_numbering_side default
70
+ \quotes_style english
71
+ \dynamic_quotes 0
72
+ \papercolumns 1
73
+ \papersides 1
74
+ \paperpagestyle default
75
+ \tablestyle default
76
+ \tracking_changes false
77
+ \output_changes false
78
+ \change_bars false
79
+ \postpone_fragile_content true
80
+ \html_math_output 0
81
+ \html_css_as_file 0
82
+ \html_be_strict false
83
+ \docbook_table_output 0
84
+ \docbook_mathml_prefix 1
85
+ \end_header
86
+
87
+ \begin_body
88
+
89
+ \begin_layout Title
90
+ Riverside Garden Spring Report
91
+ \end_layout
92
+
93
+ \begin_layout Section
94
+ Introduction
95
+ \end_layout
96
+
97
+ \begin_layout Standard
98
+ This report summarises the spring season at the Riverside Community Garden.
99
+ \end_layout
100
+
101
+ \begin_layout Section
102
+ Soil Preperation
103
+ \end_layout
104
+
105
+ \begin_layout Standard
106
+ Volunteers spread compost over all twelve raised beds in early March.
107
+ \end_layout
108
+
109
+ \begin_layout Section
110
+ Harvest Results
111
+ \end_layout
112
+
113
+ \begin_layout Standard
114
+ The beds produced 140 kg of vegetables by the end of June.
115
+ \end_layout
116
+
117
+ \end_body
118
+ \end_document
bundle/evals/lyx.toml ADDED
@@ -0,0 +1 @@
 
 
1
+ tasks = ["fix-section-heading"]
bundle/tasks/fix-section-heading.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {"id":"env","type":"deploy_env","env_id":"lyx"},
3
+ {"id":"agent","type":"deploy_agent","env_ids":["lyx"]},
4
+ {"id":"skills","type":"add_skills","env_ids":["lyx"]},
5
+ {"id":"record","type":"start_computer_recording","env_id":"lyx","name":"agent","depends_on":["env"]},
6
+ {"id":"task","type":"prompt_agent","depends_on":["skills","record"],"prompt":"In LyX, the heading of section 2 in Documents/garden-report.lyx says \"Soil Preperation\". Correct the misspelled word so the heading reads \"Soil Preparation\", and save the document."},
7
+ {"id":"check","type":"env_outcome_verifier","env_id":"lyx","file_artifact_id":"fix-section-heading-check","verifier_id":"fix-section-heading","depends_on":["task"]},
8
+ {"id":"end","type":"end_computer_recording","name":"agent","depends_on":["task"]}
9
+ ]
bundle/tasks/smoke.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "lyx"
6
+ }
7
+ ]
media/hero.gif ADDED

Git LFS Details

  • SHA256: e04e7b28925c6408ef4c1b36ce5725d12bd2367a2109de2e56636494a9cc4517
  • Pointer size: 131 Bytes
  • Size of remote file: 168 kB
media/solve-1.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b3293ee10e5196643ca0be72b97909519520447407489c129e28715bc6b32cf
3
+ size 978364
media/solve-2.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b94a08e244281b1ce83fb6d00e435294bb6093b32764a22fc52ff33c69f4fc40
3
+ size 1578218
media/solve-3.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1bfa6c9c2268e1c1b88cda635c865eb99ec1e8d0ed029fded7eafdba624ec47
3
+ size 867878
media/witness.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e610d10601416c9d78e695354a2ba2f9475e376c7457ea5d11ba6b7f6c94000
3
+ size 5830064
results.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "environment": "LyX",
3
+ "app_version": "LyX 2.4 document processor",
4
+ "task": "fix-section-heading",
5
+ "prompt": "In LyX, the heading of section 2 in Documents/garden-report.lyx says \"Soil Preperation\". Correct the misspelled word so the heading reads \"Soil Preparation\", and save the document.",
6
+ "agent": "claude-code",
7
+ "model": "claude-sonnet-5-5",
8
+ "agentenv_framework": "0.9.1431",
9
+ "witness": "checks failed on the seed, passed after an edit made through computer actions, failed on a near miss (\"Soil Preparaton\") and failed again after data/reset, in a fresh computer; held on the first try",
10
+ "runs": [
11
+ {
12
+ "run": 1,
13
+ "verdict": "passed",
14
+ "turns": 7,
15
+ "usd": 0.68,
16
+ "checks": {
17
+ "fix-section-heading": {
18
+ "score": 1.0,
19
+ "results": [
20
+ {
21
+ "id": "heading-fixed",
22
+ "result": true,
23
+ "description": "Documents/garden-report.lyx has the line(s) [\"Soil Preparation\"]",
24
+ "settled": true,
25
+ "read_cut": false
26
+ },
27
+ {
28
+ "id": "typo-gone",
29
+ "result": true,
30
+ "description": "Documents/garden-report.lyx has none of the lines [\"Soil Preperation\"]",
31
+ "settled": true,
32
+ "read_cut": false
33
+ },
34
+ {
35
+ "id": "three-sections",
36
+ "result": true,
37
+ "description": "3 line(s) of Documents/garden-report.lyx match \"\\\\begin_layout Section\", expected equals 3",
38
+ "settled": true,
39
+ "read_cut": false
40
+ },
41
+ {
42
+ "id": "other-headings-kept",
43
+ "result": true,
44
+ "description": "Documents/garden-report.lyx has the line(s) [\"Introduction\",\"Harvest Results\"]",
45
+ "settled": true,
46
+ "read_cut": false
47
+ }
48
+ ]
49
+ }
50
+ }
51
+ },
52
+ {
53
+ "run": 2,
54
+ "verdict": "passed",
55
+ "turns": 11,
56
+ "usd": 0.77,
57
+ "checks": {
58
+ "fix-section-heading": {
59
+ "score": 1.0,
60
+ "results": [
61
+ {
62
+ "id": "heading-fixed",
63
+ "result": true,
64
+ "description": "Documents/garden-report.lyx has the line(s) [\"Soil Preparation\"]",
65
+ "settled": true,
66
+ "read_cut": false
67
+ },
68
+ {
69
+ "id": "typo-gone",
70
+ "result": true,
71
+ "description": "Documents/garden-report.lyx has none of the lines [\"Soil Preperation\"]",
72
+ "settled": true,
73
+ "read_cut": false
74
+ },
75
+ {
76
+ "id": "three-sections",
77
+ "result": true,
78
+ "description": "3 line(s) of Documents/garden-report.lyx match \"\\\\begin_layout Section\", expected equals 3",
79
+ "settled": true,
80
+ "read_cut": false
81
+ },
82
+ {
83
+ "id": "other-headings-kept",
84
+ "result": true,
85
+ "description": "Documents/garden-report.lyx has the line(s) [\"Introduction\",\"Harvest Results\"]",
86
+ "settled": true,
87
+ "read_cut": false
88
+ }
89
+ ]
90
+ }
91
+ }
92
+ },
93
+ {
94
+ "run": 3,
95
+ "verdict": "passed",
96
+ "turns": 7,
97
+ "usd": 0.18,
98
+ "checks": {
99
+ "fix-section-heading": {
100
+ "score": 1.0,
101
+ "results": [
102
+ {
103
+ "id": "heading-fixed",
104
+ "result": true,
105
+ "description": "Documents/garden-report.lyx has the line(s) [\"Soil Preparation\"]",
106
+ "settled": true,
107
+ "read_cut": false
108
+ },
109
+ {
110
+ "id": "typo-gone",
111
+ "result": true,
112
+ "description": "Documents/garden-report.lyx has none of the lines [\"Soil Preperation\"]",
113
+ "settled": true,
114
+ "read_cut": false
115
+ },
116
+ {
117
+ "id": "three-sections",
118
+ "result": true,
119
+ "description": "3 line(s) of Documents/garden-report.lyx match \"\\\\begin_layout Section\", expected equals 3",
120
+ "settled": true,
121
+ "read_cut": false
122
+ },
123
+ {
124
+ "id": "other-headings-kept",
125
+ "result": true,
126
+ "description": "Documents/garden-report.lyx has the line(s) [\"Introduction\",\"Harvest Results\"]",
127
+ "settled": true,
128
+ "read_cut": false
129
+ }
130
+ ]
131
+ }
132
+ }
133
+ }
134
+ ]
135
+ }