Skip to content

Commit

Permalink
fix small typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertucci47 committed Jun 7, 2024
1 parent 84d1628 commit 716e0ae
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ if options["target"] == "testpkg" then
else
os_message("** Copying files from sources/test-pkg to ./"..tmpdir)
end
-- Fisrt, no check error level :(
-- First, no check error level :(
local file = jobname(tmpdir.."/test-pkg-current.tex")
print("Running first test on the file: "..file..".tex using [pdflatex]")
os_message("** Running: pdflatex -interaction=batchmode "..file..".tex")
Expand Down
16 changes: 8 additions & 8 deletions sources/scontents.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1769,20 +1769,20 @@ breakaftersymbolpre={\,\tiny\ensuremath{\rfloor}}]}%
\setlength{\parindent}{0pt}
\pagestyle{empty}
\begin{document}
\section{Test \texttt{\textbackslash begin\{scontents\}} whit \texttt{fancyvrb}}
\section{Test \texttt{\textbackslash begin\{scontents\}} with \texttt{fancyvrb}}
Test \verb+{scontents}+ \par
\begin{scontents}
Using \verb+scontents+ env no \verb+[key=val]+, save in seq \verb+contents+
with index 1.
Prove new \Verb*{ fancyvrb whit braces } and environment \verb+Verbatim*+
Prove new \Verb*{ fancyvrb with braces } and environment \verb+Verbatim*+
\begin{verbatim}
verbatim environment
\end{verbatim}
\end{scontents}
\section{Test \texttt{\textbackslash Scontents} whit \texttt{fancyvrb}}
\section{Test \texttt{\textbackslash Scontents} with \texttt{fancyvrb}}
\Scontents{ We have coded this in \LaTeX: $E=mc^2$.}
\section{Test \texttt{\textbackslash getstored}}
Expand Down Expand Up @@ -1839,7 +1839,7 @@ Prove new \Verb*{ fancyvrb whit braces } and environment \verb+Verbatim*+
\setlength{\parindent}{0pt}
\pagestyle{empty}
\begin{document}
\section{Test \texttt{\textbackslash begin\{scontents\}} whit \texttt{listings}}
\section{Test \texttt{\textbackslash begin\{scontents\}} with \texttt{listings}}
Test \verb+{scontents}+ \par
\begin{scontents}
Expand All @@ -1851,7 +1851,7 @@ Prove \lstinline[basicstyle=\ttfamily]| lstinline | and environment \verb+Verbat
\end{verbatim}
\end{scontents}
\section{Test \texttt{\textbackslash Scontents*} whit \texttt{listings}}
\section{Test \texttt{\textbackslash Scontents*} with \texttt{listings}}
\Scontents*+ We have coded this in \lstinline[basicstyle=\ttfamily]|\LaTeX: $E=mc^2$|
and more.+
Expand Down Expand Up @@ -1893,14 +1893,14 @@ and more.+
\pagestyle{empty}
\setlength{\parindent}{0pt}
\begin{document}
\section{Test \texttt{\textbackslash begin\{scontents\}} whit \texttt{minted}}
\section{Test \texttt{\textbackslash begin\{scontents\}} with \texttt{minted}}
Test \verb+{scontents}+ \par
\begin{scontents}[overwrite,write-env=\jobname.tsc,force-eol=true]
Using \verb+scontents+ env no \verb+[key=val]+, save in seq \verb+contents+
with index 1.\par
Prove new \Verb*{ new fvextra whit braces } and environment \verb+Verbatim*+
Prove new \Verb*{ new fvextra with braces } and environment \verb+Verbatim*+
\begin{Verbatim}[obeytabs, showtabs, tab=\rightarrowfill, tabcolor=red]
No tab
One real tab
Expand All @@ -1912,7 +1912,7 @@ No tab
Read \Verb{\jobname.tsc} (shows TABs as red arrows):
\VerbatimInput[obeytabs, showtabs, tab=\rightarrowfill, tabcolor=red]{\jobname.tsc}
\section{Test \texttt{\textbackslash Scontents} whit \texttt{minted}}
\section{Test \texttt{\textbackslash Scontents} with \texttt{minted}}
\Scontents{ We have coded \par this in \LaTeX: $E=mc^2$.}
Expand Down
2 changes: 1 addition & 1 deletion sources/test-pkg/test-nospace.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ \section{Test \texttt{\textbackslash begin\{scontents\}}}
Using \verb+scontents+ env no \verb+[key=val]+, save in seq \verb+contents+
with index $1$.
% this line ignore by \getstored
Prove \verb*| verb inline whit bars | and environment \verb+verbatim*+
Prove \verb*| verb inline with bars | and environment \verb+verbatim*+
\begin{verbatim}
A verbatim
environment
Expand Down
22 changes: 11 additions & 11 deletions sources/test-pkg/test-pkg-current.tex
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
\end{verbatim}

SECOND\par
% These outputs should look the same whit print-env=true
% These outputs should look the same with print-env=true
\begin{scontents}[store-env=newattempt,print-env=true]
This ^^J is normal ^^J text.
\verb|This is from the verb command.|
Expand Down Expand Up @@ -222,21 +222,21 @@ \section{Test \texttt{\textbackslash Scontents[key=val]}}

\Scontents[print-cmd=false]{
Using \texttt{\textbackslash Scontents} command, \par
no environment verbatim suport,\par
no environment verbatim support,\par
but \Verb{fvextra inline yes} and \lstinline[basicstyle=\ttfamily]|lstinline yes|,
save in seq \texttt{contents} with index $1$.}\par

Test \verb+\Scontents[print-cmd=true]+\par

\Scontents[print-cmd=true]{
Using \texttt{\textbackslash Scontents} command, no environment verbatim suport,
Using \texttt{\textbackslash Scontents} command, no environment verbatim support,
but \Verb{fvextra inline yes} and \lstinline[basicstyle=\ttfamily]|lstinline yes|,
save in seq \texttt{contents} with index $2$.}

Test \verb+\Scontents[store-cmd=testcmd]+\par

\Scontents[store-cmd=testcmd]{
Using \texttt{\textbackslash Scontents} command, no environment verbatim suport,
Using \texttt{\textbackslash Scontents} command, no environment verbatim support,
but \Verb{fvextra inline yes} and \lstinline[basicstyle=\ttfamily]|lstinline yes|,
save in seq \texttt{testcmd} with index 1.}

Expand Down Expand Up @@ -293,7 +293,7 @@ \section{Test \texttt{\textbackslash Scontents*[key=val]}}

\Scontents*[print-cmd=false]{Using \texttt{\textbackslash Scontents*} command,

with verbatim suport.
with verbatim support.

\begin{verbatim*}
verbatim
Expand All @@ -303,7 +303,7 @@ \section{Test \texttt{\textbackslash Scontents*[key=val]}}
\Verb{fvextra inline yes}, save in seq \texttt{testcmdvrb} with index 1.}

Test \verb+\Scontents*[print-cmd=true]+\par
\Scontents*[print-cmd=true]|Using \verb/\Scontents*[print-cmd=true]+...+/ command, with verbatim suport,
\Scontents*[print-cmd=true]|Using \verb/\Scontents*[print-cmd=true]+...+/ command, with verbatim support,

\begin{verbatim}
more verbatim environment
Expand All @@ -313,7 +313,7 @@ \section{Test \texttt{\textbackslash Scontents*[key=val]}}

Test \verb+\Scontents[store-cmd=othervrb]+\par
\Scontents*[store-cmd=othervrb]{
Using \texttt{\textbackslash Scontents*} command, whit verbatim suport,
Using \texttt{\textbackslash Scontents*} command, with verbatim support,

\begin{verbatim}
other verbatim environment
Expand Down Expand Up @@ -389,7 +389,7 @@ \subsection{Test \texttt{\textbackslash typestored[index]\{seq name\}}}

\section{Test \texttt{\textbackslash Scontents*} and \texttt{\textbackslash Scontents} back to default}

\Scontents[store-cmd=contents]{Using \texttt{\textbackslash Scontents} command whit braces,
\Scontents[store-cmd=contents]{Using \texttt{\textbackslash Scontents} command with braces,
save in seq \texttt{contents} with index $3$.}
\getstored[3]{contents}

Expand Down Expand Up @@ -421,7 +421,7 @@ \subsection{no \texttt{[key=val]}}
Using \verb+scontents+ env, \verb+[force-eol]+, save in seq \verb+testenv+ index 1.\par
We have coded this in \LaTeX: $E=mc^2$.

Prove new \Verb*{ verbatim from fvextra whit braces } and environment \verb+Verbatim*+.
Prove new \Verb*{ verbatim from fvextra with braces } and environment \verb+Verbatim*+.
\begin{Verbatim*}
(A) verbatim
environment
Expand All @@ -440,7 +440,7 @@ \subsubsection{\Verb{\meaningsc[1]{testenv}}}
\subsubsection{\Verb{\typestored[1]{testenv}}}
\typestored[1]{testenv}

\subsection{whit \texttt{[key=val]}}
\subsection{with \texttt{[key=val]}}

\subsubsection{\Verb{[write-env=\jobname.tsc]}}

Expand Down Expand Up @@ -554,7 +554,7 @@ \subsubsection{\Verb{[print-env=true,store-env=other]}}
\Verb{\typestored[1]{other}}\par
\typestored[1]{other}

\section{A simple aplication}
\section{A simple application}
\setupsc{ store-env=answers, store-cmd= answers }

\newcounter{exeNr}
Expand Down
26 changes: 13 additions & 13 deletions sources/test-pkg/test-pkg-other.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
\Scontents*[print-cmd=false,force-eol=true]{We know that we cannot place text (or anything) on the same line that
closes Verbatim (fancyvrb), it would be an Error.
\begin{Verbatim*}
Good bye again, whit command
Good bye again, with command
\end{Verbatim*}}ZZZZZ

AAA\getstored[3]{contents}WWWW
Expand All @@ -64,7 +64,7 @@
This text is found just before opening environment
\begin{scontents}[print-env=false]
% this line ignore by \getstored
Prove \verb*| verb inline whit bars | and environment \verb+Verbatim*+
Prove \verb*| verb inline with bars | and environment \verb+Verbatim*+
\begin{Verbatim}
A verbatim
environment
Expand All @@ -84,7 +84,7 @@

\Scontents*[store-cmd=nospace]{Write in one line \LaTeX: $E=mc^2$, no space after dot.}

\Scontents[store-cmd=nospace]{Other whit in \{one\} no \}space\{ after dot.}
\Scontents[store-cmd=nospace]{Other with in \{one\} no \}space\{ after dot.}

XX\getstored[1]{nospace}YY\par
XX\getstored[2]{nospace}YY\par
Expand All @@ -107,7 +107,7 @@
\end{verbatim}

SECOND\par
% These outputs should look the same whit print-env=true
% These outputs should look the same with print-env=true
\begin{scontents}[store-env=newattempt,print-env=false]
This is normal text.
\verb|This is from the verb command.|
Expand Down Expand Up @@ -138,21 +138,21 @@ \section{Test \texttt{\textbackslash Scontents[key=val]}}

\Scontents[print-cmd=false]{
Using \texttt{\textbackslash Scontents} command, \par
no environment verbatim suport,\par
no environment verbatim support,\par
but \Verb{fvextra inline yes} and \lstinline[basicstyle=\ttfamily]|lstinline yes|,
save in seq \texttt{contents} with index $1$.}\par

Test \verb+\Scontents[print-cmd=true]+\par

\Scontents[print-cmd=true]{
Using \texttt{\textbackslash Scontents} command, no environment verbatim suport,
Using \texttt{\textbackslash Scontents} command, no environment verbatim support,
but \Verb{fvextra inline yes} and \lstinline[basicstyle=\ttfamily]|lstinline yes|,
save in seq \texttt{contents} with index $2$.}

Test \verb+\Scontents[store-cmd=testcmd]+\par

\Scontents[store-cmd=testcmd]{
Using \texttt{\textbackslash Scontents} command, no environment verbatim suport,
Using \texttt{\textbackslash Scontents} command, no environment verbatim support,
but \Verb{fvextra inline yes} and \lstinline[basicstyle=\ttfamily]|lstinline yes|,
save in seq \texttt{testcmd} with index 1.}

Expand Down Expand Up @@ -209,7 +209,7 @@ \section{Test \texttt{\textbackslash Scontents*[key=val]}}

\Scontents*[print-cmd=false]{Using \texttt{\textbackslash Scontents*} command,

with verbatim suport.
with verbatim support.

\begin{verbatim*}
verbatim
Expand All @@ -219,7 +219,7 @@ \section{Test \texttt{\textbackslash Scontents*[key=val]}}
\Verb{fvextra inline yes}, save in seq \texttt{testcmdvrb} with index 1.}

Test \verb+\Scontents*[print-cmd=true]+\par
\Scontents*[print-cmd=true]|Using \verb/\Scontents*[print-cmd=true]+...+/ command, with verbatim suport,
\Scontents*[print-cmd=true]|Using \verb/\Scontents*[print-cmd=true]+...+/ command, with verbatim support,

\begin{verbatim}
more verbatim environment
Expand All @@ -229,7 +229,7 @@ \section{Test \texttt{\textbackslash Scontents*[key=val]}}

Test \verb+\Scontents[store-cmd=othervrb]+\par
\Scontents*[store-cmd=othervrb]{
Using \texttt{\textbackslash Scontents*} command, whit verbatim suport,
Using \texttt{\textbackslash Scontents*} command, with verbatim support,

\begin{verbatim}
other verbatim environment
Expand Down Expand Up @@ -305,7 +305,7 @@ \subsection{Test \texttt{\textbackslash typestored*[index]\{seq name\}}}

\section{Test \texttt{\textbackslash Scontents*} and \texttt{\textbackslash Scontents} back to default}

\Scontents[store-cmd=contents]{Using \texttt{\textbackslash Scontents} command whit braces,
\Scontents[store-cmd=contents]{Using \texttt{\textbackslash Scontents} command with braces,
save in seq \texttt{contents} with index $3$.}
\getstored[3]{contents}

Expand Down Expand Up @@ -344,7 +344,7 @@ \subsubsection{\Verb{\meaningsc[1]{testenv}}}
\subsubsection{\Verb{\typestored[1]{testenv}}}
\typestored[1]{testenv}

\subsection{whit \texttt{[key=val]}}
\subsection{with \texttt{[key=val]}}

\subsubsection{\Verb{[write-env=\jobname.tsc]}}

Expand Down Expand Up @@ -458,7 +458,7 @@ \subsubsection{\Verb{[print-env=true,store-env=other]}}
\Verb{\typestored[1]{other}}\par
\typestored[1]{other}

\section{A simple aplication}
\section{A simple application}
\setupsc{ store-env=answers, store-cmd= answers }

\newcounter{exeNr}
Expand Down

0 comments on commit 716e0ae

Please sign in to comment.