Repository navigation
Releases
Releases · hugosantanna/tex-visual
TeX Visual 0.4.2
- Fixed: a macro defined in a file that the preamble reaches through a second
\inputwas not found, and stayed on the page as dim source. A hand-writtenmacros.texthat collects the files a statistics script writes, one per table, is such a case. An\inputin the preamble is now followed into the files it names in turn, four levels deep. - Fixed:
\addbibresourcewritten in a package of your own was not found, so every citation stayed a raw command. A package kept beside the root file, such as\usepackage{style/references}with astyle/references.stythere, is now read like a file the preamble inputs: its bibliography, macros, colors and theorem names all reach the editor. Packages of the TeX installation are not looked for. - The view follows these files as they change, a
.txtof macros that a script rewrites included, and shows what you type in one that is open in another tab before it is saved. (#2) - A redefinition that KaTeX cannot run no longer breaks the command it replaces. A poster package that sets
\smallwith\fontsizemade every formula that says\smallan error; now KaTeX's own\smallstays.\renewcommand{\epsilon}{\varepsilon}works as it did. - Fixed: a table in its own file was not drawn when a comment in that file mentioned
\documentclass(say, a note on how to compile it alone). Only a real\documentclassmakes a file a document of its own.
Full Changelog: v0.4.1...v0.4.2
TeX Visual 0.4.1
- A comment macro looks the way it prints. With
\newcommand{\hugo}[1]{\textcolor{red}{\textbf{[Hugo: #1]}}},\hugo{check this}was red text and nothing else; now it is a bold red [Hugo: check this], as in the PDF. A macro of your own that takes one argument brings its font along (\textbf,\textit,\texttt…, or a switch such as\bfseries) and shows the text its body writes around the argument, in text, table cells and captions. With the cursor inside, the source shows as before. A macro that builds something other than text around its argument (a table row, a box, a picture) is left as it was.
Full Changelog: v0.4.0...v0.4.1
TeX Visual 0.4.0
- The line numbers of the source are in the left margin, so you can tell where you are in the file while you read the rendered page. In the visual view a line is numbered beside the row of text it begins on: a paragraph written on four lines carries four numbers, wherever the page breaks its rows. Where two lines begin on the same row the first is shown, unless the cursor is in the second. A table, a figure, a display or the folded preamble carries the number of its first line. The number of the cursor's line is darker. The
</>source view numbers every line.texVisual.lineNumbersturns the numbers off. - The text starts 12px further from the left edge of the pane, to make room for the numbers.
Full Changelog: v0.3.1...v0.4.0
TeX Visual 0.3.1
- Saving from the visual editor compiles again. LaTeX Workshop builds only while a text editor is the active editor, so with the visual editor in front a save compiled nothing. TeX Visual now runs the LaTeX Workshop recipe itself in that case, and
Cmd+Alt+Bcompiles on demand. The tools' output goes to the TeX Visual output channel.texVisual.buildOnSaveturns it off. - Fixed: folding the preamble again from its chip left the cursor on
\maketitle, which replaced the title block by that command until you clicked elsewhere. Folding now leaves nothing open. - With the cursor on
\maketitlethe title block stays, drawn under the command, so the title is always there to click. - Colored text is colored.
\textcolor{…}{…},{\color{…} …},\hl{…}(with\sethlcolor) and\colorbox{…}{…}show their color in text, table cells, captions and math, and so does a macro of your own that colors its argument, such as\newcommand{\edit}[1]{\textcolor{red}{#1}}. Colors are xcolor's names (withdvipsnamesandsvgnames), the ones the document sets with\definecolorand\colorlet, and mixes likered!60!black. On a dark theme a color keeps its hue but is lightened enough to read. \sout{…}and soul's\st{…}are struck through, also inside a macro of your own such as\newcommand{\cut}[1]{\textcolor{red}{\sout{#1}}}.- Paragraphs look the same however their source is wrapped. A paragraph written on one long line filled the page, while one wrapped at 80 columns or written a sentence per line broke wherever the source did. Now a single line break inside a paragraph is drawn as the space TeX makes of it, in text, list items, captions, notes, theorems and
thebibliographyentries, and a blank line starts a new paragraph. The file is not touched: its line breaks stay where they are, and the</>button shows them.\\,\item, headings, displays, tables, comments, lines that hold only commands and environments the editor does not know keep their lines. - The text of a theorem runs on after a
\labelwritten on the line below its\begin, as it already did after one written on the same line. \newblockin athebibliographyentry is hidden.
Full Changelog: v0.3.0...v0.3.1
TeX Visual 0.3.0
- Tables are editable where they are drawn. Click a cell to edit its LaTeX;
Tab,Shift+Tab,
Enterand the arrow keys move between cells,Cmd+Enteradds a row. A cell of a table that
lives in another file (\input{tables/…}) is changed in that file. - A file the document
\inputs is redrawn while it is being edited in another tab, before it is
saved. - Fixed: a click on the title block showed
\maketitle. A click on the title, the authors, the
date or a\thanksnote now puts the cursor in\title{…},\author{…}or\date{…}, and
shows that command alone while the rest of the preamble stays folded.
Full Changelog: v0.2.0...v0.3.0
TeX Visual 0.2.0
Brings in what Basil did for applied papers, and makes
the numbering follow real documents.
- Tables kept in their own files are drawn in place of
\input{…}, and redrawn when the file
changes on disk. Atabularthat shares its line with other material (a panel heading) renders
too.\multirow,\makecell,\resizebox{…}{…}{…}and\parboxshow their content. threeparttablenotes,\caption*notes and long captions are set as note paragraphs;
subfigures are drawn side by side with lettered captions.\bibliography{…}/\printbibliographyshow the cited entries of the.bibfiles.- The title block picks up
\title,\authorand\dateplaced after\begin{document}, and
lists\thanksnotes under it. - Numbering follows
\appendix,\begin{appendices},\setcounter,\addtocounter,
\numberwithin,\renewcommand{\the…}{…},\captionof, theorem environments numbered by hand,
and continues through\inputfiles.\crefuses\crefname. - Layout commands with arguments (
\vspace{…},\setlength{…}{…},\captionsetup{…}, …) are
hidden like\centeringalready was, and a line that shows nothing takes no room. - Macros of the document's own used in running text show their value.
- Completion for environments, common commands and the document's macros.
- Fixed:
\caption*took a figure number; a\labelafter\captioninsidethreeparttable
resolved to the section; a label inside an environment kept the number of an earlier section;
wide tables broke numbers across lines; a commented-out\nonumbersuppressed an equation number.
Full Changelog: v0.1.0...v0.2.0
TeX Visual 0.1.0
First release.
- Visual editor for
.texfiles: math (KaTeX), sections, text styles, theorem environments,
lists,tabular, figures (PDF and raster), cross-references and citations render in place. - Live preview while editing a formula; source is shown only around the cursor.
- Two-way sync with the VS Code document, including undo/redo and external edits.
- Side-by-side mode with scroll sync, raw-source toggle,
\ref{/\cite{completion.
Full Changelog: https://github.com/hugosantanna/tex-visual/commits/v0.1.0