Skip to content

Commit

Permalink
v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoore committed Feb 4, 2019
1 parent b03a712 commit cc1c0c5
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 8 deletions.
39 changes: 39 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
# Changes


## v1.4 (2019/02/04)
* Reimplemented `\Verb`. It now works as expected inside other commands
(with a few limitations), including in movable arguments, and is compatible
with `hyperref` for things like PDF bookmarks. It now supports
`breaklines` and relevant line-breaking options.

* Reimplemented `\SaveVerb` and `\UseVerb` to be equivalent to the new
`\Verb`. The new option `retokenize` allows saved verbatim material to be
retokenized under new `commandchars` and `codes` when it is inserted with
`\UseVerb`.

* New command `\EscVerb` works like the reimplemented `\Verb`, except that
special characters can be escaped with a backslash. It works inside other
commands without any limitations, including in movable arguments, and is
compatible with `hyperref` for things like PDF bookmarks.

* Added `extra` option for switching between the reimplemented `\Verb`,
`\SaveVerb`, `\UseVerb` and the original `fancyvrb` definitions.
Reimplemented versions are used by default. This option will apply to any
future reimplemented commands and environments.

* New command `\fvinlineset` only applies options to commands related to
typesetting verbatim inline, like `\Verb`, `\SaveVerb`, `\UseVerb`. It
only works with commands that are defined or reimplemented by `fvextra`.
It overrides options from `\fvset`.

* Patched `fancyvrb` so that `\Verb` (either reimplemented version or
original) can use characters like `%` for delimiters when used outside any
commands.

* `obeytabs` now works with the `calc` package's redefined `\setcounter`.
Since `minted` loads `calc`, this also fixes `minted` compatibility
(`minted` #221).

* Added new option `fontencoding` (`minted` #208).

* `highlightlines` now works correctly with `frame` (#7).


## v1.3.1 (2017/07/08)

* `beameroverlays` now works with `VerbatimOut`.
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ It also patches some `fancyvrb` internals.

`fancyvrb` is one of the primary packages for working with verbatim text in
LaTeX. `fvextra` builds on `fancyvrb` by adding support for automatic line
breaking and improving math mode, among other things. Many of the improvements
are geared toward typesetting computer code; parts of `fvextra` were originally
developed as part of the [`pythontex`](https://github.com/gpoore/pythontex)
and [`minted`](https://github.com/gpoore/minted) packages.
breaking and improving math mode, among other things. It provides a
reimplemented `\Verb` command that works (with a few limitations) inside other
commands, even in movable arguments and PDF bookmarks. It also provides
`\EscVerb`, which is similar to `\Verb` except that it works everywhere
without limitations by allowing the backslash to serve as an escape character.

Many of the improvements provided by `fvextra` are geared toward typesetting
computer code. Parts of `fvextra` were originally developed as part of the
[`pythontex`](https://github.com/gpoore/pythontex) and
[`minted`](https://github.com/gpoore/minted) packages.


## License
Expand Down
6 changes: 3 additions & 3 deletions fvextra/fvextra.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{fvextra}
%<*package>
[2019/01/26 v1.4dev fvextra - extensions and patches for fancyvrb]
[2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb]
%</package>
%
%<*driver>
Expand Down Expand Up @@ -249,12 +249,12 @@
% Right brace \} Tilde \~}
%
%
% \begin{changelog}{v1.4}{2019/01/??}
% \begin{changelog}{v1.4}{2019/02/04}
% \item Reimplemented \texttt{\string\Verb}. It now works as expected inside other commands (with a few limitations), including in movable arguments, and is compatible with \texttt{hyperref} for things like PDF bookmarks. It now supports \texttt{breaklines} and relevant line-breaking options.
% \item Reimplemented \texttt{\string\SaveVerb} and \texttt{\string\UseVerb} to be equivalent to the new \texttt{\string\Verb}. The new option \texttt{retokenize} allows saved verbatim material to be retokenized under new \texttt{commandchars} and \texttt{codes} when it is inserted with \texttt{\string\UseVerb}.
% \item New command \texttt{\string\EscVerb} works like the reimplemented \texttt{\string\Verb}, except that special characters can be escaped with a backslash. It works inside other commands without any limitations, including in movable arguments, and is compatible with \texttt{hyperref} for things like PDF bookmarks.
% \item Added \texttt{extra} option for switching between the reimplemented \texttt{\string\Verb}, \texttt{\string\SaveVerb}, \texttt{\string\UseVerb} and the original \texttt{fancyvrb} definitions. Reimplemented versions are used by default. This option will apply to any future reimplemented commands and environments.
% \item New command \texttt{\string\fvinlineset} only applies options to commands related to typesetting verbatim inline, like \texttt{\string\Verb}, \texttt{\string\SaveVerb}, \texttt{\string\UseVerb}. It overrides options from \texttt{\string\fvset}.
% \item New command \texttt{\string\fvinlineset} only applies options to commands related to typesetting verbatim inline, like \texttt{\string\Verb}, \texttt{\string\SaveVerb}, \texttt{\string\UseVerb}. It only works with commands that are defined or reimplemented by \texttt{fvextra}. It overrides options from \texttt{\string\fvset}.
% \item Patched \texttt{fancyvrb} so that \texttt{\string\Verb} (either reimplemented version or original) can use characters like \texttt{\%} for delimiters when used outside any commands.
% \item \texttt{obeytabs} now works with the \texttt{calc} package's redefined \texttt{\string\setcounter}. Since \texttt{minted} loads \texttt{calc}, this also fixes \texttt{minted} compatibility (\texttt{minted} \#221).
% \item Added new option \texttt{fontencoding} (\texttt{minted} \#208).
Expand Down
Binary file modified fvextra/fvextra.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion fvextra/fvextra.sty
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{fvextra}
[2019/01/26 v1.4dev fvextra - extensions and patches for fancyvrb]
[2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb]
\RequirePackage{ifthen}
\RequirePackage{etoolbox}
\RequirePackage{fancyvrb}
Expand Down

0 comments on commit cc1c0c5

Please sign in to comment.