-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved \kwfont default for e.g. beamer
- Loading branch information
Showing
9 changed files
with
225 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
\documentclass[beamer,preview,multi, border={-.14pt .14pt 0pt .03pt}]{standalone} | ||
|
||
% To silence the warning from the first execution of \kwfont, in this case: | ||
\usepackage{silence} | ||
\WarningFilter{latexfont}{Font shape} | ||
\WarningFilter{latexfont}{Some font shapes} | ||
|
||
\usepackage{varwidth} | ||
|
||
\usepackage{pseudo} | ||
\pseudoset{compact} | ||
|
||
\standaloneenv{myenv} | ||
|
||
\begin{document} | ||
|
||
% Contents duplicated from pseudo.doc: | ||
\begin{standaloneframe} | ||
\begin{myenv} | ||
\begin{varwidth}{\linewidth} | ||
\textbf{while}\\ % Extended | ||
\kw{while}\\ % Keyword | ||
{\fontseries{b}\selectfont while} % Non-extended | ||
\end{varwidth} | ||
\end{myenv} | ||
\end{standaloneframe} | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
\begin{pseudo}* | ||
|
||
\hd{Backward}(V, E, v, i) \\ | ||
\hd{Backward}(V, E, v, i) \\ | ||
|
||
$v.\id{label} = i$ \\ | ||
$v.\id{label} = i$ \\ | ||
|
||
for $(u,v)\in E$ \\+ | ||
if $0 < v.\id{label} < i$ \\+ | ||
\pr{Backward}(V, E, u, i) \\-- | ||
for $(u,v)\in E$ \\+ | ||
if $0 < v.\id{label} < i$ \\+ | ||
\pr{Backward}(V, E, u, i) \\-- | ||
|
||
for $(u,v)\in E$ \\+ | ||
if $u.\id{label} \== 0$ \\+ | ||
for $(u,v)\in E$ \\+ | ||
if $u.\id{label} \== 0$ \\+ | ||
\pr{Backward}(V, E, u, i+1) | ||
|
||
\end{pseudo} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.